Selaa lähdekoodia

Merge pull request #26 from aliyun/test

bugfix for #4
gaort 8 vuotta sitten
vanhempi
commit
b5829a0278
100 muutettua tiedostoa jossa 742 lisäystä ja 226 poistoa
  1. 1 1
      .travis.yml
  2. 4 0
      ChangeLog.txt
  3. 25 16
      sdk/client.go
  4. 1 2
      sdk/client_test.go
  5. 8 8
      sdk/responses/json_parser.go
  6. 14 3
      sdk/responses/json_parser_test.go
  7. 1 1
      sdk/responses/response.go
  8. 0 0
      services/alidns/describe_dnsslb_sub_domains.go
  9. 0 0
      services/alidns/modify_hichina_domain_dns.go
  10. 0 0
      services/alidns/set_dnsslb_status.go
  11. 0 0
      services/alidns/update_dnsslb_weight.go
  12. 1 1
      services/arms/arms_query_data_set.go
  13. 0 0
      services/arms4finance/arms_query_data_set.go
  14. 1 1
      services/cdn/describe_domain_bps_data.go
  15. 0 0
      services/cdn/describe_domain_cc_attack_info.go
  16. 0 0
      services/cdn/describe_domain_cc_data.go
  17. 1 1
      services/cdn/describe_domain_flow_data.go
  18. 0 0
      services/cdn/describe_domain_isp_data.go
  19. 1 1
      services/cdn/describe_domain_qps_data.go
  20. 4 4
      services/cdn/describe_user_domains.go
  21. 8 7
      services/cdn/set_req_auth_config.go
  22. 1 0
      services/cdn/set_req_header_config.go
  23. 2 2
      services/cloudphoto/activate_photos.go
  24. 2 2
      services/cloudphoto/add_album_photos.go
  25. 3 3
      services/cloudphoto/create_album.go
  26. 6 6
      services/cloudphoto/create_photo.go
  27. 3 3
      services/cloudphoto/create_photo_store.go
  28. 4 4
      services/cloudphoto/create_transaction.go
  29. 2 2
      services/cloudphoto/delete_albums.go
  30. 1 1
      services/cloudphoto/delete_faces.go
  31. 1 1
      services/cloudphoto/delete_photo_store.go
  32. 2 2
      services/cloudphoto/delete_photos.go
  33. 5 5
      services/cloudphoto/edit_photo_store.go
  34. 5 5
      services/cloudphoto/edit_photos.go
  35. 2 2
      services/cloudphoto/get_download_url.go
  36. 2 2
      services/cloudphoto/get_download_urls.go
  37. 3 3
      services/cloudphoto/get_framed_photo_urls.go
  38. 1 1
      services/cloudphoto/get_library.go
  39. 1 1
      services/cloudphoto/get_photo_store.go
  40. 2 2
      services/cloudphoto/get_photos.go
  41. 3 3
      services/cloudphoto/get_photos_by_md5s.go
  42. 2 2
      services/cloudphoto/get_private_access_urls.go
  43. 3 3
      services/cloudphoto/get_public_access_urls.go
  44. 1 1
      services/cloudphoto/get_quota.go
  45. 2 2
      services/cloudphoto/get_similar_photos.go
  46. 2 2
      services/cloudphoto/get_thumbnail.go
  47. 2 2
      services/cloudphoto/get_thumbnails.go
  48. 2 2
      services/cloudphoto/get_video_cover.go
  49. 3 3
      services/cloudphoto/inactivate_photos.go
  50. 2 2
      services/cloudphoto/like_photo.go
  51. 5 5
      services/cloudphoto/list_album_photos.go
  52. 4 4
      services/cloudphoto/list_albums.go
  53. 4 4
      services/cloudphoto/list_face_photos.go
  54. 5 5
      services/cloudphoto/list_faces.go
  55. 4 4
      services/cloudphoto/list_moment_photos.go
  56. 4 4
      services/cloudphoto/list_moments.go
  57. 2 2
      services/cloudphoto/list_photo_faces.go
  58. 1 1
      services/cloudphoto/list_photo_stores.go
  59. 2 2
      services/cloudphoto/list_photo_tags.go
  60. 4 4
      services/cloudphoto/list_photos.go
  61. 1 1
      services/cloudphoto/list_registered_tags.go
  62. 4 4
      services/cloudphoto/list_tag_photos.go
  63. 1 1
      services/cloudphoto/list_tags.go
  64. 7 7
      services/cloudphoto/list_time_line_photos.go
  65. 5 5
      services/cloudphoto/list_time_lines.go
  66. 2 2
      services/cloudphoto/merge_faces.go
  67. 3 3
      services/cloudphoto/move_album_photos.go
  68. 3 3
      services/cloudphoto/move_face_photos.go
  69. 2 2
      services/cloudphoto/reactivate_photos.go
  70. 8 8
      services/cloudphoto/register_photo.go
  71. 2 2
      services/cloudphoto/register_tag.go
  72. 2 2
      services/cloudphoto/remove_album_photos.go
  73. 2 2
      services/cloudphoto/remove_face_photos.go
  74. 3 3
      services/cloudphoto/rename_album.go
  75. 2 2
      services/cloudphoto/rename_face.go
  76. 4 4
      services/cloudphoto/search_photos.go
  77. 2 2
      services/cloudphoto/set_album_cover.go
  78. 2 2
      services/cloudphoto/set_face_cover.go
  79. 1 1
      services/cloudphoto/set_me.go
  80. 1 1
      services/cloudphoto/set_quota.go
  81. 3 3
      services/cloudphoto/tag_photo.go
  82. 2 2
      services/cloudphoto/toggle_features.go
  83. 1 1
      services/cms/access_key_get.go
  84. 92 0
      services/cms/add_my_group_instances.go
  85. 2 2
      services/cms/create_alarm.go
  86. 96 0
      services/cms/create_my_groups.go
  87. 1 1
      services/cms/create_notify_policy.go
  88. 1 1
      services/cms/delete_alarm.go
  89. 1 1
      services/cms/delete_custom_metric.go
  90. 92 0
      services/cms/delete_my_group_instances.go
  91. 103 0
      services/cms/delete_my_groups.go
  92. 1 1
      services/cms/delete_notify_policy.go
  93. 1 1
      services/cms/describe_alarm_history.go
  94. 1 1
      services/cms/disable_alarm.go
  95. 1 1
      services/cms/enable_alarm.go
  96. 108 0
      services/cms/get_my_groups.go
  97. 1 1
      services/cms/get_notify_policy.go
  98. 1 1
      services/cms/list_alarm.go
  99. 1 1
      services/cms/list_alarm_history.go
  100. 1 1
      services/cms/list_contact_group.go

+ 1 - 1
.travis.yml

@@ -22,4 +22,4 @@ script:
   - go vet ./services/...
   - go build ./sdk
   - go build ./services/...
-  - go test -v  -timeout 20m ./integration/...
+  - go test -v -timeout 60m ./integration/...

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-01-11 Version: 0.7.8
+1. complete partly missed service codes
+2. add default http method for roa requests
+
 2018-01-11 Version: 0.7.7
 1, Bug fix: Replenish user interface
 

+ 25 - 16
sdk/client.go

@@ -21,8 +21,8 @@ import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-	"net/http"
 	"net"
+	"net/http"
 )
 
 // this value will be replaced while build: -ldflags="-X sdk.version=x.x.x"
@@ -187,15 +187,24 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r
 		httpRequest.Header[key] = []string{value}
 	}
 	var httpResponse *http.Response
-	for retryTimes := 0; retryTimes < client.config.MaxRetryTime; retryTimes++ {
+	for retryTimes := 0; retryTimes <= client.config.MaxRetryTime; retryTimes++ {
 		httpResponse, err = client.httpClient.Do(httpRequest)
-		// if status code >= 500 or timeout, will trigger retry
-		if client.config.AutoRetry && isNeedRetry(httpResponse, err){
-			continue
-		}
-		// receive error but not timeout
+
+		// retry params
+		var timeout bool
+		var serverError bool
+
+		// receive error
 		if err != nil {
-			return
+			// if not timeout error, return
+			if timeout = isTimeout(err); !timeout {
+				return
+			}
+		}
+		serverError = isServerError(httpResponse)
+		//  if status code >= 500 or timeout, will trigger retry
+		if client.config.AutoRetry && (timeout || serverError) {
+			continue
 		}
 		break
 	}
@@ -203,16 +212,16 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r
 	return
 }
 
-func isNeedRetry(response *http.Response, err error) bool {
-	if response.StatusCode >= http.StatusInternalServerError {
-		// internal server error
-		return true
-	}else if  err, ok := err.(net.Error); ok && err.Timeout() {
-		// timeout
-		return true
-	}else{
+func isTimeout(err error) bool {
+	if err == nil {
 		return false
 	}
+	netErr, isNetError := err.(net.Error)
+	return isNetError && netErr.Timeout()
+}
+
+func isServerError(httpResponse *http.Response) bool {
+	return httpResponse.StatusCode >= http.StatusInternalServerError
 }
 
 func (client *Client) AddAsyncTask(task func()) (err error) {

+ 1 - 2
sdk/client_test.go

@@ -17,6 +17,7 @@ package sdk
 import (
 	"crypto/tls"
 	"encoding/json"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 	"github.com/stretchr/testify/assert"
@@ -25,7 +26,6 @@ import (
 	"os"
 	"os/user"
 	"testing"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials"
 )
 
 var client, clientKeyPair, clientEcs, clientRoleArn *Client
@@ -108,7 +108,6 @@ func testSetup() {
 	if err != nil {
 		panic(err)
 	}
-
 	//err = clientKeyPair.InitWithKeyPair("cn-hangzhou", testConfig.PublicKeyId, testConfig.PrivateKey, 3600)
 	//if err != nil {
 	//	panic(err)

+ 8 - 8
sdk/responses/json_parser.go

@@ -1,14 +1,14 @@
 package responses
 
 import (
-	"github.com/json-iterator/go"
-	"sync"
-	"unsafe"
 	"encoding/json"
-	"strconv"
-	"strings"
+	"github.com/json-iterator/go"
 	"io"
 	"math"
+	"strconv"
+	"strings"
+	"sync"
+	"unsafe"
 )
 
 const maxUint = ^uint(0)
@@ -241,7 +241,7 @@ func (decoder *nullableFuzzyIntegerDecoder) Decode(ptr unsafe.Pointer, iter *jso
 	case jsoniter.StringValue:
 		str = iter.ReadString()
 		// support empty string
-		if str == ""{
+		if str == "" {
 			str = "0"
 		}
 	case jsoniter.BoolValue:
@@ -277,7 +277,7 @@ func (decoder *nullableFuzzyFloat32Decoder) Decode(ptr unsafe.Pointer, iter *jso
 	case jsoniter.StringValue:
 		str = iter.ReadString()
 		// support empty string
-		if str == ""{
+		if str == "" {
 			*((*float32)(ptr)) = 0
 			return
 		}
@@ -314,7 +314,7 @@ func (decoder *nullableFuzzyFloat64Decoder) Decode(ptr unsafe.Pointer, iter *jso
 	case jsoniter.StringValue:
 		str = iter.ReadString()
 		// support empty string
-		if str == ""{
+		if str == "" {
 			*((*float64)(ptr)) = 0
 			return
 		}

+ 14 - 3
sdk/responses/json_parser_test.go

@@ -1,13 +1,13 @@
 package responses
 
 import (
-	"testing"
 	"encoding/json"
-	"github.com/stretchr/testify/assert"
 	"fmt"
+	"github.com/stretchr/testify/assert"
+	"testing"
 )
 
-func TestUnmarshal(t *testing.T) {
+func TestFuzzyFieldUnmarshal(t *testing.T) {
 	from, err := getJsonBytes()
 	if err != nil {
 		panic(err)
@@ -50,6 +50,17 @@ func TestUnmarshal(t *testing.T) {
 	assert.Equal(t, "", to.EmptyStrToStr)
 }
 
+//func TestFuzzyTypeUnmarshal(t *testing.T){
+//	arrayJson := "[{\"instance_type\":\"ecs.n4.large\",\"vpc_id\":\"\",\"vswitch_id\":\"\",\"vswitch_cidr\":\"\",\"image_id\":\"registry-internal.cn-beijing.aliyuncs.com/acs/agent\",\"data_disk_size\":0,\"data_disk_category\":\"cloud_ssd\",\"security_group_id\":\"sg-2ze57kc2cf36f9mrsrjx\",\"tags\":\"\",\"zone_id\":\"cn-beijing-a\",\"-\":\"PayByTraffic\",\"name\":\"Hello\",\"cluster_id\":\"ca737c2c04143464eaf439e245ceb1bf4\",\"size\":3,\"region_id\":\"cn-beijing\",\"network_mode\":\"classic\",\"subnet_cidr\":\"172.18.1.1/24\",\"state\":\"running\",\"master_url\":\"https://master4g7.cs-cn-beijing.aliyun.com:20019\",\"agent_version\":\"0.9-cdb96d4\",\"external_loadbalancer_id\":\"lb-2zegrgbsmjvxx1r1v26pn\",\"internal_master_url\":\"https://master4g7.cs-cn-beijing.aliyun-inc.com:20019\",\"port\":20019,\"node_status\":\"{\\\"health\\\":0,\\\"unhealth\\\":3}\",\"cluster_healthy\":\"unhealth\",\"docker_version\":\"17.06.1-ce\",\"cluster_type\":\"aliyun\",\"swarm_mode\":true,\"init_version\":\"\",\"current_version\":\"\",\"meta_data\":\"\",\"upgrade_components\":null,\"capabilities\":{\"acslogging\":true,\"acsrouting\":true,\"blue-green_confirm\":true,\"blue-green_deployment\":true,\"cluster_event\":true,\"compose_v2\":true,\"config_map\":true,\"cron\":true,\"default_update_method\":true,\"drain\":true,\"logging_sls\":true,\"monitoring\":true,\"node_scaling\":true,\"porject_event_deletion\":true,\"porject_trigger\":true,\"rebalance\":true,\"reset_node\":true,\"routing_custom_root_domain\":true,\"routing_slb\":true,\"scalingtrigger\":true,\"slb-blue-green_deployment\":true,\"update_force_reschedule\":true,\"volume_ossfs\":true,\"volume_yunpan\":true},\"need_update_agent\":false,\"created\":\"2017-09-12T07:26:58Z\",\"updated\":\"2017-12-26T11:36:41Z\",\"outputs\":null,\"parameters\":null}]"
+//	commonResponse := NewCommonResponse()
+//	// support auto json type trans
+//	initJsonParserOnce()
+//	err := jsonParser.Unmarshal([]byte(arrayJson), commonResponse)
+//	if err != nil {
+//		panic(err)
+//	}
+//}
+
 func getJsonBytes() ([]byte, error) {
 	from := &From{
 		StrToStr:            "demo string",

+ 1 - 1
sdk/responses/response.go

@@ -121,7 +121,7 @@ type CommonResponse struct {
 	*BaseResponse
 }
 
-func NewCommonResponse() (request *CommonResponse) {
+func NewCommonResponse() (response *CommonResponse) {
 	return &CommonResponse{
 		BaseResponse: &BaseResponse{},
 	}

+ 0 - 0
services/alidns/describe_d_n_s_s_l_b_sub_domains.go → services/alidns/describe_dnsslb_sub_domains.go


+ 0 - 0
services/alidns/modify_hichina_domain_d_n_s.go → services/alidns/modify_hichina_domain_dns.go


+ 0 - 0
services/alidns/set_d_n_s_s_l_b_status.go → services/alidns/set_dnsslb_status.go


+ 0 - 0
services/alidns/update_d_n_s_s_l_b_weight.go → services/alidns/update_dnsslb_weight.go


+ 1 - 1
services/arms/a_r_m_s_query_data_set.go → services/arms/arms_query_data_set.go

@@ -66,8 +66,8 @@ type ARMSQueryDataSetRequest struct {
 	*requests.RpcRequest
 	Limit         requests.Integer                `position:"Query" name:"Limit"`
 	IntervalInSec requests.Integer                `position:"Query" name:"IntervalInSec"`
-	DatasetId     requests.Integer                `position:"Query" name:"DatasetId"`
 	RequiredDims  *[]ARMSQueryDataSetRequiredDims `position:"Query" name:"RequiredDims"  type:"Repeated"`
+	DatasetId     requests.Integer                `position:"Query" name:"DatasetId"`
 	ReduceTail    requests.Boolean                `position:"Query" name:"ReduceTail"`
 	OptionalDims  *[]ARMSQueryDataSetOptionalDims `position:"Query" name:"OptionalDims"  type:"Repeated"`
 	MinTime       requests.Integer                `position:"Query" name:"MinTime"`

+ 0 - 0
services/arms4finance/a_r_m_s_query_data_set.go → services/arms4finance/arms_query_data_set.go


+ 1 - 1
services/cdn/describe_domain_bps_data.go

@@ -67,9 +67,9 @@ type DescribeDomainBpsDataRequest struct {
 	EndTime        string           `position:"Query" name:"EndTime"`
 	StartTime      string           `position:"Query" name:"StartTime"`
 	Interval       string           `position:"Query" name:"Interval"`
+	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
 	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
 	IspNameEn      string           `position:"Query" name:"IspNameEn"`
-	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 	DomainType     string           `position:"Query" name:"DomainType"`
 	DomainName     string           `position:"Query" name:"DomainName"`

+ 0 - 0
services/cdn/describe_domain_c_c_attack_info.go → services/cdn/describe_domain_cc_attack_info.go


+ 0 - 0
services/cdn/describe_domain_c_c_data.go → services/cdn/describe_domain_cc_data.go


+ 1 - 1
services/cdn/describe_domain_flow_data.go

@@ -67,9 +67,9 @@ type DescribeDomainFlowDataRequest struct {
 	EndTime        string           `position:"Query" name:"EndTime"`
 	StartTime      string           `position:"Query" name:"StartTime"`
 	Interval       string           `position:"Query" name:"Interval"`
+	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
 	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
 	IspNameEn      string           `position:"Query" name:"IspNameEn"`
-	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 	DomainType     string           `position:"Query" name:"DomainType"`
 	DomainName     string           `position:"Query" name:"DomainName"`

+ 0 - 0
services/cdn/describe_domain_i_s_p_data.go → services/cdn/describe_domain_isp_data.go


+ 1 - 1
services/cdn/describe_domain_qps_data.go

@@ -67,9 +67,9 @@ type DescribeDomainQpsDataRequest struct {
 	EndTime        string           `position:"Query" name:"EndTime"`
 	StartTime      string           `position:"Query" name:"StartTime"`
 	Interval       string           `position:"Query" name:"Interval"`
+	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
 	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
 	IspNameEn      string           `position:"Query" name:"IspNameEn"`
-	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 	DomainType     string           `position:"Query" name:"DomainType"`
 	DomainName     string           `position:"Query" name:"DomainName"`

+ 4 - 4
services/cdn/describe_user_domains.go

@@ -66,15 +66,15 @@ type DescribeUserDomainsRequest struct {
 	*requests.RpcRequest
 	PageSize         requests.Integer `position:"Query" name:"PageSize"`
 	CheckDomainShow  requests.Boolean `position:"Query" name:"CheckDomainShow"`
+	DomainName       string           `position:"Query" name:"DomainName"`
 	ResourceGroupId  string           `position:"Query" name:"ResourceGroupId"`
 	PageNumber       requests.Integer `position:"Query" name:"PageNumber"`
-	FuncId           string           `position:"Query" name:"FuncId"`
-	OwnerId          requests.Integer `position:"Query" name:"OwnerId"`
-	Sources          string           `position:"Query" name:"Sources"`
-	DomainName       string           `position:"Query" name:"DomainName"`
 	DomainSearchType string           `position:"Query" name:"DomainSearchType"`
 	CdnType          string           `position:"Query" name:"CdnType"`
+	FuncId           string           `position:"Query" name:"FuncId"`
+	OwnerId          requests.Integer `position:"Query" name:"OwnerId"`
 	SecurityToken    string           `position:"Query" name:"SecurityToken"`
+	Sources          string           `position:"Query" name:"Sources"`
 	DomainStatus     string           `position:"Query" name:"DomainStatus"`
 	FuncFilter       string           `position:"Query" name:"FuncFilter"`
 }

+ 8 - 7
services/cdn/set_req_auth_config.go

@@ -64,13 +64,14 @@ func (client *Client) SetReqAuthConfigWithCallback(request *SetReqAuthConfigRequ
 
 type SetReqAuthConfigRequest struct {
 	*requests.RpcRequest
-	AuthType      string           `position:"Query" name:"AuthType"`
-	DomainName    string           `position:"Query" name:"DomainName"`
-	Key2          string           `position:"Query" name:"Key2"`
-	Key1          string           `position:"Query" name:"Key1"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
-	SecurityToken string           `position:"Query" name:"SecurityToken"`
-	TimeOut       string           `position:"Query" name:"TimeOut"`
+	AuthType       string           `position:"Query" name:"AuthType"`
+	DomainName     string           `position:"Query" name:"DomainName"`
+	AuthRemoteDesc string           `position:"Query" name:"AuthRemoteDesc"`
+	Key2           string           `position:"Query" name:"Key2"`
+	Key1           string           `position:"Query" name:"Key1"`
+	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
+	SecurityToken  string           `position:"Query" name:"SecurityToken"`
+	TimeOut        string           `position:"Query" name:"TimeOut"`
 }
 
 type SetReqAuthConfigResponse struct {

+ 1 - 0
services/cdn/set_req_header_config.go

@@ -65,6 +65,7 @@ func (client *Client) SetReqHeaderConfigWithCallback(request *SetReqHeaderConfig
 type SetReqHeaderConfigRequest struct {
 	*requests.RpcRequest
 	DomainName    string           `position:"Query" name:"DomainName"`
+	ConfigId      requests.Integer `position:"Query" name:"ConfigId"`
 	Value         string           `position:"Query" name:"Value"`
 	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`

+ 2 - 2
services/cloudphoto/activate_photos.go

@@ -65,8 +65,8 @@ func (client *Client) ActivatePhotosWithCallback(request *ActivatePhotosRequest,
 type ActivatePhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type ActivatePhotosResponse struct {
@@ -86,7 +86,7 @@ func CreateActivatePhotosRequest() (request *ActivatePhotosRequest) {
 	request = &ActivatePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ActivatePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ActivatePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/add_album_photos.go

@@ -65,9 +65,9 @@ func (client *Client) AddAlbumPhotosWithCallback(request *AddAlbumPhotosRequest,
 type AddAlbumPhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
+	StoreName string           `position:"Query" name:"StoreName"`
 	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
 	PhotoId   *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
-	StoreName string           `position:"Query" name:"StoreName"`
 }
 
 type AddAlbumPhotosResponse struct {
@@ -87,7 +87,7 @@ func CreateAddAlbumPhotosRequest() (request *AddAlbumPhotosRequest) {
 	request = &AddAlbumPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "AddAlbumPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "AddAlbumPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/create_album.go

@@ -64,10 +64,10 @@ func (client *Client) CreateAlbumWithCallback(request *CreateAlbumRequest, callb
 
 type CreateAlbumRequest struct {
 	*requests.RpcRequest
-	AlbumName string `position:"Query" name:"AlbumName"`
+	Remark    string `position:"Query" name:"Remark"`
 	LibraryId string `position:"Query" name:"LibraryId"`
 	StoreName string `position:"Query" name:"StoreName"`
-	Remark    string `position:"Query" name:"Remark"`
+	AlbumName string `position:"Query" name:"AlbumName"`
 }
 
 type CreateAlbumResponse struct {
@@ -104,7 +104,7 @@ func CreateCreateAlbumRequest() (request *CreateAlbumRequest) {
 	request = &CreateAlbumRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateAlbum", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateAlbum", "cloudphoto", "openAPI")
 	return
 }
 

+ 6 - 6
services/cloudphoto/create_photo.go

@@ -64,15 +64,15 @@ func (client *Client) CreatePhotoWithCallback(request *CreatePhotoRequest, callb
 
 type CreatePhotoRequest struct {
 	*requests.RpcRequest
+	Staging         string           `position:"Query" name:"Staging"`
+	ShareExpireTime requests.Integer `position:"Query" name:"ShareExpireTime"`
 	PhotoTitle      string           `position:"Query" name:"PhotoTitle"`
+	Remark          string           `position:"Query" name:"Remark"`
+	UploadType      string           `position:"Query" name:"UploadType"`
 	LibraryId       string           `position:"Query" name:"LibraryId"`
-	ShareExpireTime requests.Integer `position:"Query" name:"ShareExpireTime"`
 	StoreName       string           `position:"Query" name:"StoreName"`
-	UploadType      string           `position:"Query" name:"UploadType"`
-	Remark          string           `position:"Query" name:"Remark"`
-	SessionId       string           `position:"Query" name:"SessionId"`
-	Staging         string           `position:"Query" name:"Staging"`
 	FileId          string           `position:"Query" name:"FileId"`
+	SessionId       string           `position:"Query" name:"SessionId"`
 }
 
 type CreatePhotoResponse struct {
@@ -104,7 +104,7 @@ func CreateCreatePhotoRequest() (request *CreatePhotoRequest) {
 	request = &CreatePhotoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreatePhoto", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreatePhoto", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/create_photo_store.go

@@ -64,10 +64,10 @@ func (client *Client) CreatePhotoStoreWithCallback(request *CreatePhotoStoreRequ
 
 type CreatePhotoStoreRequest struct {
 	*requests.RpcRequest
+	DefaultQuota requests.Integer `position:"Query" name:"DefaultQuota"`
 	BucketName   string           `position:"Query" name:"BucketName"`
-	StoreName    string           `position:"Query" name:"StoreName"`
 	Remark       string           `position:"Query" name:"Remark"`
-	DefaultQuota requests.Integer `position:"Query" name:"DefaultQuota"`
+	StoreName    string           `position:"Query" name:"StoreName"`
 }
 
 type CreatePhotoStoreResponse struct {
@@ -82,7 +82,7 @@ func CreateCreatePhotoStoreRequest() (request *CreatePhotoStoreRequest) {
 	request = &CreatePhotoStoreRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreatePhotoStore", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreatePhotoStore", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/create_transaction.go

@@ -64,12 +64,12 @@ func (client *Client) CreateTransactionWithCallback(request *CreateTransactionRe
 
 type CreateTransactionRequest struct {
 	*requests.RpcRequest
-	Ext       string           `position:"Query" name:"Ext"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Md5       string           `position:"Query" name:"Md5"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	Force     string           `position:"Query" name:"Force"`
-	Md5       string           `position:"Query" name:"Md5"`
+	Ext       string           `position:"Query" name:"Ext"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type CreateTransactionResponse struct {
@@ -96,7 +96,7 @@ func CreateCreateTransactionRequest() (request *CreateTransactionRequest) {
 	request = &CreateTransactionRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateTransaction", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateTransaction", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/delete_albums.go

@@ -65,8 +65,8 @@ func (client *Client) DeleteAlbumsWithCallback(request *DeleteAlbumsRequest, cal
 type DeleteAlbumsRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	AlbumId   *[]string `position:"Query" name:"AlbumId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	AlbumId   *[]string `position:"Query" name:"AlbumId"  type:"Repeated"`
 }
 
 type DeleteAlbumsResponse struct {
@@ -86,7 +86,7 @@ func CreateDeleteAlbumsRequest() (request *DeleteAlbumsRequest) {
 	request = &DeleteAlbumsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteAlbums", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteAlbums", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/delete_faces.go

@@ -86,7 +86,7 @@ func CreateDeleteFacesRequest() (request *DeleteFacesRequest) {
 	request = &DeleteFacesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteFaces", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteFaces", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/delete_photo_store.go

@@ -79,7 +79,7 @@ func CreateDeletePhotoStoreRequest() (request *DeletePhotoStoreRequest) {
 	request = &DeletePhotoStoreRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeletePhotoStore", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeletePhotoStore", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/delete_photos.go

@@ -65,8 +65,8 @@ func (client *Client) DeletePhotosWithCallback(request *DeletePhotosRequest, cal
 type DeletePhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type DeletePhotosResponse struct {
@@ -86,7 +86,7 @@ func CreateDeletePhotosRequest() (request *DeletePhotosRequest) {
 	request = &DeletePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeletePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeletePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 5 - 5
services/cloudphoto/edit_photo_store.go

@@ -64,12 +64,12 @@ func (client *Client) EditPhotoStoreWithCallback(request *EditPhotoStoreRequest,
 
 type EditPhotoStoreRequest struct {
 	*requests.RpcRequest
-	AutoCleanEnabled  string           `position:"Query" name:"AutoCleanEnabled"`
-	DefaultTrashQuota requests.Integer `position:"Query" name:"DefaultTrashQuota"`
-	StoreName         string           `position:"Query" name:"StoreName"`
-	Remark            string           `position:"Query" name:"Remark"`
 	DefaultQuota      requests.Integer `position:"Query" name:"DefaultQuota"`
+	Remark            string           `position:"Query" name:"Remark"`
 	AutoCleanDays     requests.Integer `position:"Query" name:"AutoCleanDays"`
+	StoreName         string           `position:"Query" name:"StoreName"`
+	DefaultTrashQuota requests.Integer `position:"Query" name:"DefaultTrashQuota"`
+	AutoCleanEnabled  string           `position:"Query" name:"AutoCleanEnabled"`
 }
 
 type EditPhotoStoreResponse struct {
@@ -84,7 +84,7 @@ func CreateEditPhotoStoreRequest() (request *EditPhotoStoreRequest) {
 	request = &EditPhotoStoreRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditPhotoStore", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto", "openAPI")
 	return
 }
 

+ 5 - 5
services/cloudphoto/edit_photos.go

@@ -64,12 +64,12 @@ func (client *Client) EditPhotosWithCallback(request *EditPhotosRequest, callbac
 
 type EditPhotosRequest struct {
 	*requests.RpcRequest
-	LibraryId       string           `position:"Query" name:"LibraryId"`
+	Title           string           `position:"Query" name:"Title"`
 	ShareExpireTime requests.Integer `position:"Query" name:"ShareExpireTime"`
-	PhotoId         *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
-	StoreName       string           `position:"Query" name:"StoreName"`
 	Remark          string           `position:"Query" name:"Remark"`
-	Title           string           `position:"Query" name:"Title"`
+	LibraryId       string           `position:"Query" name:"LibraryId"`
+	StoreName       string           `position:"Query" name:"StoreName"`
+	PhotoId         *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type EditPhotosResponse struct {
@@ -89,7 +89,7 @@ func CreateEditPhotosRequest() (request *EditPhotosRequest) {
 	request = &EditPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_download_url.go

@@ -65,8 +65,8 @@ func (client *Client) GetDownloadUrlWithCallback(request *GetDownloadUrlRequest,
 type GetDownloadUrlRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type GetDownloadUrlResponse struct {
@@ -82,7 +82,7 @@ func CreateGetDownloadUrlRequest() (request *GetDownloadUrlRequest) {
 	request = &GetDownloadUrlRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetDownloadUrl", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetDownloadUrl", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_download_urls.go

@@ -65,8 +65,8 @@ func (client *Client) GetDownloadUrlsWithCallback(request *GetDownloadUrlsReques
 type GetDownloadUrlsRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type GetDownloadUrlsResponse struct {
@@ -89,7 +89,7 @@ func CreateGetDownloadUrlsRequest() (request *GetDownloadUrlsRequest) {
 	request = &GetDownloadUrlsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetDownloadUrls", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetDownloadUrls", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/get_framed_photo_urls.go

@@ -64,10 +64,10 @@ func (client *Client) GetFramedPhotoUrlsWithCallback(request *GetFramedPhotoUrls
 
 type GetFramedPhotoUrlsRequest struct {
 	*requests.RpcRequest
-	FrameId   string    `position:"Query" name:"FrameId"`
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	FrameId   string    `position:"Query" name:"FrameId"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type GetFramedPhotoUrlsResponse struct {
@@ -90,7 +90,7 @@ func CreateGetFramedPhotoUrlsRequest() (request *GetFramedPhotoUrlsRequest) {
 	request = &GetFramedPhotoUrlsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetFramedPhotoUrls", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetFramedPhotoUrls", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/get_library.go

@@ -96,7 +96,7 @@ func CreateGetLibraryRequest() (request *GetLibraryRequest) {
 	request = &GetLibraryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetLibrary", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetLibrary", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/get_photo_store.go

@@ -96,7 +96,7 @@ func CreateGetPhotoStoreRequest() (request *GetPhotoStoreRequest) {
 	request = &GetPhotoStoreRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotoStore", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotoStore", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_photos.go

@@ -65,8 +65,8 @@ func (client *Client) GetPhotosWithCallback(request *GetPhotosRequest, callback
 type GetPhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type GetPhotosResponse struct {
@@ -100,7 +100,7 @@ func CreateGetPhotosRequest() (request *GetPhotosRequest) {
 	request = &GetPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/get_photos_by_md5s.go

@@ -64,10 +64,10 @@ func (client *Client) GetPhotosByMd5sWithCallback(request *GetPhotosByMd5sReques
 
 type GetPhotosByMd5sRequest struct {
 	*requests.RpcRequest
-	LibraryId string    `position:"Query" name:"LibraryId"`
-	StoreName string    `position:"Query" name:"StoreName"`
 	State     string    `position:"Query" name:"State"`
 	Md5       *[]string `position:"Query" name:"Md5"  type:"Repeated"`
+	LibraryId string    `position:"Query" name:"LibraryId"`
+	StoreName string    `position:"Query" name:"StoreName"`
 }
 
 type GetPhotosByMd5sResponse struct {
@@ -99,7 +99,7 @@ func CreateGetPhotosByMd5sRequest() (request *GetPhotosByMd5sRequest) {
 	request = &GetPhotosByMd5sRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotosByMd5s", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPhotosByMd5s", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_private_access_urls.go

@@ -65,9 +65,9 @@ func (client *Client) GetPrivateAccessUrlsWithCallback(request *GetPrivateAccess
 type GetPrivateAccessUrlsRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
 	ZoomType  string    `position:"Query" name:"ZoomType"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type GetPrivateAccessUrlsResponse struct {
@@ -88,7 +88,7 @@ func CreateGetPrivateAccessUrlsRequest() (request *GetPrivateAccessUrlsRequest)
 	request = &GetPrivateAccessUrlsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPrivateAccessUrls", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPrivateAccessUrls", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/get_public_access_urls.go

@@ -64,11 +64,11 @@ func (client *Client) GetPublicAccessUrlsWithCallback(request *GetPublicAccessUr
 
 type GetPublicAccessUrlsRequest struct {
 	*requests.RpcRequest
-	DomainType string    `position:"Query" name:"DomainType"`
 	LibraryId  string    `position:"Query" name:"LibraryId"`
-	PhotoId    *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName  string    `position:"Query" name:"StoreName"`
 	ZoomType   string    `position:"Query" name:"ZoomType"`
+	DomainType string    `position:"Query" name:"DomainType"`
+	PhotoId    *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type GetPublicAccessUrlsResponse struct {
@@ -89,7 +89,7 @@ func CreateGetPublicAccessUrlsRequest() (request *GetPublicAccessUrlsRequest) {
 	request = &GetPublicAccessUrlsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPublicAccessUrls", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetPublicAccessUrls", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/get_quota.go

@@ -87,7 +87,7 @@ func CreateGetQuotaRequest() (request *GetQuotaRequest) {
 	request = &GetQuotaRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetQuota", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetQuota", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_similar_photos.go

@@ -65,8 +65,8 @@ func (client *Client) GetSimilarPhotosWithCallback(request *GetSimilarPhotosRequ
 type GetSimilarPhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type GetSimilarPhotosResponse struct {
@@ -100,7 +100,7 @@ func CreateGetSimilarPhotosRequest() (request *GetSimilarPhotosRequest) {
 	request = &GetSimilarPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetSimilarPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetSimilarPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_thumbnail.go

@@ -65,9 +65,9 @@ func (client *Client) GetThumbnailWithCallback(request *GetThumbnailRequest, cal
 type GetThumbnailRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	ZoomType  string           `position:"Query" name:"ZoomType"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type GetThumbnailResponse struct {
@@ -83,7 +83,7 @@ func CreateGetThumbnailRequest() (request *GetThumbnailRequest) {
 	request = &GetThumbnailRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetThumbnail", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetThumbnail", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_thumbnails.go

@@ -65,9 +65,9 @@ func (client *Client) GetThumbnailsWithCallback(request *GetThumbnailsRequest, c
 type GetThumbnailsRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
 	ZoomType  string    `position:"Query" name:"ZoomType"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type GetThumbnailsResponse struct {
@@ -90,7 +90,7 @@ func CreateGetThumbnailsRequest() (request *GetThumbnailsRequest) {
 	request = &GetThumbnailsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetThumbnails", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetThumbnails", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/get_video_cover.go

@@ -65,9 +65,9 @@ func (client *Client) GetVideoCoverWithCallback(request *GetVideoCoverRequest, c
 type GetVideoCoverRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	ZoomType  string           `position:"Query" name:"ZoomType"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type GetVideoCoverResponse struct {
@@ -83,7 +83,7 @@ func CreateGetVideoCoverRequest() (request *GetVideoCoverRequest) {
 	request = &GetVideoCoverRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetVideoCover", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetVideoCover", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/inactivate_photos.go

@@ -64,10 +64,10 @@ func (client *Client) InactivatePhotosWithCallback(request *InactivatePhotosRequ
 
 type InactivatePhotosRequest struct {
 	*requests.RpcRequest
+	InactiveTime requests.Integer `position:"Query" name:"InactiveTime"`
 	LibraryId    string           `position:"Query" name:"LibraryId"`
-	PhotoId      *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName    string           `position:"Query" name:"StoreName"`
-	InactiveTime requests.Integer `position:"Query" name:"InactiveTime"`
+	PhotoId      *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type InactivatePhotosResponse struct {
@@ -87,7 +87,7 @@ func CreateInactivatePhotosRequest() (request *InactivatePhotosRequest) {
 	request = &InactivatePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "InactivatePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/like_photo.go

@@ -65,8 +65,8 @@ func (client *Client) LikePhotoWithCallback(request *LikePhotoRequest, callback
 type LikePhotoRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type LikePhotoResponse struct {
@@ -81,7 +81,7 @@ func CreateLikePhotoRequest() (request *LikePhotoRequest) {
 	request = &LikePhotoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "LikePhoto", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "LikePhoto", "cloudphoto", "openAPI")
 	return
 }
 

+ 5 - 5
services/cloudphoto/list_album_photos.go

@@ -65,12 +65,12 @@ func (client *Client) ListAlbumPhotosWithCallback(request *ListAlbumPhotosReques
 type ListAlbumPhotosRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
 	StoreName string           `position:"Query" name:"StoreName"`
-	State     string           `position:"Query" name:"State"`
-	Direction string           `position:"Query" name:"Direction"`
+	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListAlbumPhotosResponse struct {
@@ -91,7 +91,7 @@ func CreateListAlbumPhotosRequest() (request *ListAlbumPhotosRequest) {
 	request = &ListAlbumPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListAlbumPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListAlbumPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/list_albums.go

@@ -65,11 +65,11 @@ func (client *Client) ListAlbumsWithCallback(request *ListAlbumsRequest, callbac
 type ListAlbumsRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
-	State     string           `position:"Query" name:"State"`
-	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListAlbumsResponse struct {
@@ -107,7 +107,7 @@ func CreateListAlbumsRequest() (request *ListAlbumsRequest) {
 	request = &ListAlbumsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListAlbums", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListAlbums", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/list_face_photos.go

@@ -65,12 +65,12 @@ func (client *Client) ListFacePhotosWithCallback(request *ListFacePhotosRequest,
 type ListFacePhotosRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	FaceId    requests.Integer `position:"Query" name:"FaceId"`
-	State     string           `position:"Query" name:"State"`
-	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListFacePhotosResponse struct {
@@ -91,7 +91,7 @@ func CreateListFacePhotosRequest() (request *ListFacePhotosRequest) {
 	request = &ListFacePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListFacePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListFacePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 5 - 5
services/cloudphoto/list_faces.go

@@ -65,12 +65,12 @@ func (client *Client) ListFacesWithCallback(request *ListFacesRequest, callback
 type ListFacesRequest struct {
 	*requests.RpcRequest
 	Cursor      string           `position:"Query" name:"Cursor"`
-	HasFaceName string           `position:"Query" name:"HasFaceName"`
-	Size        requests.Integer `position:"Query" name:"Size"`
+	Direction   string           `position:"Query" name:"Direction"`
+	State       string           `position:"Query" name:"State"`
 	LibraryId   string           `position:"Query" name:"LibraryId"`
 	StoreName   string           `position:"Query" name:"StoreName"`
-	State       string           `position:"Query" name:"State"`
-	Direction   string           `position:"Query" name:"Direction"`
+	HasFaceName string           `position:"Query" name:"HasFaceName"`
+	Size        requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListFacesResponse struct {
@@ -110,7 +110,7 @@ func CreateListFacesRequest() (request *ListFacesRequest) {
 	request = &ListFacesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListFaces", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListFaces", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/list_moment_photos.go

@@ -65,12 +65,12 @@ func (client *Client) ListMomentPhotosWithCallback(request *ListMomentPhotosRequ
 type ListMomentPhotosRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
-	State     string           `position:"Query" name:"State"`
 	MomentId  requests.Integer `position:"Query" name:"MomentId"`
-	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListMomentPhotosResponse struct {
@@ -91,7 +91,7 @@ func CreateListMomentPhotosRequest() (request *ListMomentPhotosRequest) {
 	request = &ListMomentPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListMomentPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/list_moments.go

@@ -65,11 +65,11 @@ func (client *Client) ListMomentsWithCallback(request *ListMomentsRequest, callb
 type ListMomentsRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
-	State     string           `position:"Query" name:"State"`
-	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListMomentsResponse struct {
@@ -95,7 +95,7 @@ func CreateListMomentsRequest() (request *ListMomentsRequest) {
 	request = &ListMomentsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListMoments", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/list_photo_faces.go

@@ -65,8 +65,8 @@ func (client *Client) ListPhotoFacesWithCallback(request *ListPhotoFacesRequest,
 type ListPhotoFacesRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type ListPhotoFacesResponse struct {
@@ -86,7 +86,7 @@ func CreateListPhotoFacesRequest() (request *ListPhotoFacesRequest) {
 	request = &ListPhotoFacesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoFaces", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoFaces", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/list_photo_stores.go

@@ -93,7 +93,7 @@ func CreateListPhotoStoresRequest() (request *ListPhotoStoresRequest) {
 	request = &ListPhotoStoresRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoStores", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoStores", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/list_photo_tags.go

@@ -65,9 +65,9 @@ func (client *Client) ListPhotoTagsWithCallback(request *ListPhotoTagsRequest, c
 type ListPhotoTagsRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	Lang      string           `position:"Query" name:"Lang"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type ListPhotoTagsResponse struct {
@@ -88,7 +88,7 @@ func CreateListPhotoTagsRequest() (request *ListPhotoTagsRequest) {
 	request = &ListPhotoTagsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoTags", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotoTags", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/list_photos.go

@@ -65,11 +65,11 @@ func (client *Client) ListPhotosWithCallback(request *ListPhotosRequest, callbac
 type ListPhotosRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
-	State     string           `position:"Query" name:"State"`
-	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListPhotosResponse struct {
@@ -104,7 +104,7 @@ func CreateListPhotosRequest() (request *ListPhotosRequest) {
 	request = &ListPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/list_registered_tags.go

@@ -87,7 +87,7 @@ func CreateListRegisteredTagsRequest() (request *ListRegisteredTagsRequest) {
 	request = &ListRegisteredTagsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListRegisteredTags", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListRegisteredTags", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/list_tag_photos.go

@@ -65,12 +65,12 @@ func (client *Client) ListTagPhotosWithCallback(request *ListTagPhotosRequest, c
 type ListTagPhotosRequest struct {
 	*requests.RpcRequest
 	Cursor    string           `position:"Query" name:"Cursor"`
-	Size      requests.Integer `position:"Query" name:"Size"`
 	TagId     requests.Integer `position:"Query" name:"TagId"`
+	Direction string           `position:"Query" name:"Direction"`
+	State     string           `position:"Query" name:"State"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
-	State     string           `position:"Query" name:"State"`
-	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListTagPhotosResponse struct {
@@ -91,7 +91,7 @@ func CreateListTagPhotosRequest() (request *ListTagPhotosRequest) {
 	request = &ListTagPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTagPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTagPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/list_tags.go

@@ -100,7 +100,7 @@ func CreateListTagsRequest() (request *ListTagsRequest) {
 	request = &ListTagsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTags", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTags", "cloudphoto", "openAPI")
 	return
 }
 

+ 7 - 7
services/cloudphoto/list_time_line_photos.go

@@ -64,15 +64,15 @@ func (client *Client) ListTimeLinePhotosWithCallback(request *ListTimeLinePhotos
 
 type ListTimeLinePhotosRequest struct {
 	*requests.RpcRequest
-	Size      requests.Integer `position:"Query" name:"Size"`
-	LibraryId string           `position:"Query" name:"LibraryId"`
 	EndTime   requests.Integer `position:"Query" name:"EndTime"`
-	StoreName string           `position:"Query" name:"StoreName"`
-	Page      requests.Integer `position:"Query" name:"Page"`
-	StartTime requests.Integer `position:"Query" name:"StartTime"`
 	FilterBy  string           `position:"Query" name:"FilterBy"`
-	Direction string           `position:"Query" name:"Direction"`
+	StartTime requests.Integer `position:"Query" name:"StartTime"`
 	Order     string           `position:"Query" name:"Order"`
+	Page      requests.Integer `position:"Query" name:"Page"`
+	Direction string           `position:"Query" name:"Direction"`
+	LibraryId string           `position:"Query" name:"LibraryId"`
+	StoreName string           `position:"Query" name:"StoreName"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type ListTimeLinePhotosResponse struct {
@@ -106,7 +106,7 @@ func CreateListTimeLinePhotosRequest() (request *ListTimeLinePhotosRequest) {
 	request = &ListTimeLinePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTimeLinePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTimeLinePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 5 - 5
services/cloudphoto/list_time_lines.go

@@ -64,15 +64,15 @@ func (client *Client) ListTimeLinesWithCallback(request *ListTimeLinesRequest, c
 
 type ListTimeLinesRequest struct {
 	*requests.RpcRequest
+	FilterBy      string           `position:"Query" name:"FilterBy"`
 	Cursor        requests.Integer `position:"Query" name:"Cursor"`
-	PhotoSize     requests.Integer `position:"Query" name:"PhotoSize"`
+	Order         string           `position:"Query" name:"Order"`
+	Direction     string           `position:"Query" name:"Direction"`
 	TimeLineCount requests.Integer `position:"Query" name:"TimeLineCount"`
 	LibraryId     string           `position:"Query" name:"LibraryId"`
 	StoreName     string           `position:"Query" name:"StoreName"`
 	TimeLineUnit  string           `position:"Query" name:"TimeLineUnit"`
-	FilterBy      string           `position:"Query" name:"FilterBy"`
-	Direction     string           `position:"Query" name:"Direction"`
-	Order         string           `position:"Query" name:"Order"`
+	PhotoSize     requests.Integer `position:"Query" name:"PhotoSize"`
 }
 
 type ListTimeLinesResponse struct {
@@ -112,7 +112,7 @@ func CreateListTimeLinesRequest() (request *ListTimeLinesRequest) {
 	request = &ListTimeLinesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTimeLines", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListTimeLines", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/merge_faces.go

@@ -65,9 +65,9 @@ func (client *Client) MergeFacesWithCallback(request *MergeFacesRequest, callbac
 type MergeFacesRequest struct {
 	*requests.RpcRequest
 	LibraryId    string           `position:"Query" name:"LibraryId"`
-	TargetFaceId requests.Integer `position:"Query" name:"TargetFaceId"`
 	StoreName    string           `position:"Query" name:"StoreName"`
 	FaceId       *[]string        `position:"Query" name:"FaceId"  type:"Repeated"`
+	TargetFaceId requests.Integer `position:"Query" name:"TargetFaceId"`
 }
 
 type MergeFacesResponse struct {
@@ -89,7 +89,7 @@ func CreateMergeFacesRequest() (request *MergeFacesRequest) {
 	request = &MergeFacesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MergeFaces", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MergeFaces", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/move_album_photos.go

@@ -64,11 +64,11 @@ func (client *Client) MoveAlbumPhotosWithCallback(request *MoveAlbumPhotosReques
 
 type MoveAlbumPhotosRequest struct {
 	*requests.RpcRequest
-	SourceAlbumId requests.Integer `position:"Query" name:"SourceAlbumId"`
 	TargetAlbumId requests.Integer `position:"Query" name:"TargetAlbumId"`
+	SourceAlbumId requests.Integer `position:"Query" name:"SourceAlbumId"`
 	LibraryId     string           `position:"Query" name:"LibraryId"`
-	PhotoId       *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName     string           `position:"Query" name:"StoreName"`
+	PhotoId       *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type MoveAlbumPhotosResponse struct {
@@ -88,7 +88,7 @@ func CreateMoveAlbumPhotosRequest() (request *MoveAlbumPhotosRequest) {
 	request = &MoveAlbumPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/move_face_photos.go

@@ -64,11 +64,11 @@ func (client *Client) MoveFacePhotosWithCallback(request *MoveFacePhotosRequest,
 
 type MoveFacePhotosRequest struct {
 	*requests.RpcRequest
+	SourceFaceId requests.Integer `position:"Query" name:"SourceFaceId"`
 	LibraryId    string           `position:"Query" name:"LibraryId"`
+	StoreName    string           `position:"Query" name:"StoreName"`
 	TargetFaceId requests.Integer `position:"Query" name:"TargetFaceId"`
 	PhotoId      *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
-	StoreName    string           `position:"Query" name:"StoreName"`
-	SourceFaceId requests.Integer `position:"Query" name:"SourceFaceId"`
 }
 
 type MoveFacePhotosResponse struct {
@@ -88,7 +88,7 @@ func CreateMoveFacePhotosRequest() (request *MoveFacePhotosRequest) {
 	request = &MoveFacePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MoveFacePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "MoveFacePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/reactivate_photos.go

@@ -65,8 +65,8 @@ func (client *Client) ReactivatePhotosWithCallback(request *ReactivatePhotosRequ
 type ReactivatePhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string    `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type ReactivatePhotosResponse struct {
@@ -86,7 +86,7 @@ func CreateReactivatePhotosRequest() (request *ReactivatePhotosRequest) {
 	request = &ReactivatePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ReactivatePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ReactivatePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 8 - 8
services/cloudphoto/register_photo.go

@@ -64,19 +64,19 @@ func (client *Client) RegisterPhotoWithCallback(request *RegisterPhotoRequest, c
 
 type RegisterPhotoRequest struct {
 	*requests.RpcRequest
-	LibraryId  string           `position:"Query" name:"LibraryId"`
-	Latitude   requests.Float   `position:"Query" name:"Latitude"`
 	PhotoTitle string           `position:"Query" name:"PhotoTitle"`
-	StoreName  string           `position:"Query" name:"StoreName"`
-	IsVideo    string           `position:"Query" name:"IsVideo"`
 	Remark     string           `position:"Query" name:"Remark"`
+	Location   string           `position:"Query" name:"Location"`
+	Width      requests.Integer `position:"Query" name:"Width"`
+	IsVideo    string           `position:"Query" name:"IsVideo"`
+	LibraryId  string           `position:"Query" name:"LibraryId"`
 	Size       requests.Integer `position:"Query" name:"Size"`
 	TakenAt    requests.Integer `position:"Query" name:"TakenAt"`
-	Width      requests.Integer `position:"Query" name:"Width"`
-	Location   string           `position:"Query" name:"Location"`
-	Longitude  requests.Float   `position:"Query" name:"Longitude"`
 	Height     requests.Integer `position:"Query" name:"Height"`
 	Md5        string           `position:"Query" name:"Md5"`
+	StoreName  string           `position:"Query" name:"StoreName"`
+	Longitude  requests.Float   `position:"Query" name:"Longitude"`
+	Latitude   requests.Float   `position:"Query" name:"Latitude"`
 }
 
 type RegisterPhotoResponse struct {
@@ -108,7 +108,7 @@ func CreateRegisterPhotoRequest() (request *RegisterPhotoRequest) {
 	request = &RegisterPhotoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RegisterPhoto", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RegisterPhoto", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/register_tag.go

@@ -64,9 +64,9 @@ func (client *Client) RegisterTagWithCallback(request *RegisterTagRequest, callb
 
 type RegisterTagRequest struct {
 	*requests.RpcRequest
-	StoreName string `position:"Query" name:"StoreName"`
 	Text      string `position:"Query" name:"Text"`
 	TagKey    string `position:"Query" name:"TagKey"`
+	StoreName string `position:"Query" name:"StoreName"`
 	Lang      string `position:"Query" name:"Lang"`
 }
 
@@ -82,7 +82,7 @@ func CreateRegisterTagRequest() (request *RegisterTagRequest) {
 	request = &RegisterTagRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RegisterTag", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RegisterTag", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/remove_album_photos.go

@@ -65,9 +65,9 @@ func (client *Client) RemoveAlbumPhotosWithCallback(request *RemoveAlbumPhotosRe
 type RemoveAlbumPhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
+	StoreName string           `position:"Query" name:"StoreName"`
 	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
 	PhotoId   *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
-	StoreName string           `position:"Query" name:"StoreName"`
 }
 
 type RemoveAlbumPhotosResponse struct {
@@ -87,7 +87,7 @@ func CreateRemoveAlbumPhotosRequest() (request *RemoveAlbumPhotosRequest) {
 	request = &RemoveAlbumPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/remove_face_photos.go

@@ -65,9 +65,9 @@ func (client *Client) RemoveFacePhotosWithCallback(request *RemoveFacePhotosRequ
 type RemoveFacePhotosRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	FaceId    requests.Integer `position:"Query" name:"FaceId"`
+	PhotoId   *[]string        `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type RemoveFacePhotosResponse struct {
@@ -87,7 +87,7 @@ func CreateRemoveFacePhotosRequest() (request *RemoveFacePhotosRequest) {
 	request = &RemoveFacePhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RemoveFacePhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RemoveFacePhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/rename_album.go

@@ -64,10 +64,10 @@ func (client *Client) RenameAlbumWithCallback(request *RenameAlbumRequest, callb
 
 type RenameAlbumRequest struct {
 	*requests.RpcRequest
-	AlbumName string           `position:"Query" name:"AlbumName"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
 	StoreName string           `position:"Query" name:"StoreName"`
+	AlbumName string           `position:"Query" name:"AlbumName"`
+	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
 }
 
 type RenameAlbumResponse struct {
@@ -82,7 +82,7 @@ func CreateRenameAlbumRequest() (request *RenameAlbumRequest) {
 	request = &RenameAlbumRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RenameAlbum", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RenameAlbum", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/rename_face.go

@@ -64,10 +64,10 @@ func (client *Client) RenameFaceWithCallback(request *RenameFaceRequest, callbac
 
 type RenameFaceRequest struct {
 	*requests.RpcRequest
+	FaceName  string           `position:"Query" name:"FaceName"`
 	LibraryId string           `position:"Query" name:"LibraryId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	FaceId    requests.Integer `position:"Query" name:"FaceId"`
-	FaceName  string           `position:"Query" name:"FaceName"`
 }
 
 type RenameFaceResponse struct {
@@ -82,7 +82,7 @@ func CreateRenameFaceRequest() (request *RenameFaceRequest) {
 	request = &RenameFaceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RenameFace", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "RenameFace", "cloudphoto", "openAPI")
 	return
 }
 

+ 4 - 4
services/cloudphoto/search_photos.go

@@ -64,11 +64,11 @@ func (client *Client) SearchPhotosWithCallback(request *SearchPhotosRequest, cal
 
 type SearchPhotosRequest struct {
 	*requests.RpcRequest
-	Size      requests.Integer `position:"Query" name:"Size"`
-	LibraryId string           `position:"Query" name:"LibraryId"`
-	StoreName string           `position:"Query" name:"StoreName"`
 	Page      requests.Integer `position:"Query" name:"Page"`
 	Keyword   string           `position:"Query" name:"Keyword"`
+	LibraryId string           `position:"Query" name:"LibraryId"`
+	StoreName string           `position:"Query" name:"StoreName"`
+	Size      requests.Integer `position:"Query" name:"Size"`
 }
 
 type SearchPhotosResponse struct {
@@ -100,7 +100,7 @@ func CreateSearchPhotosRequest() (request *SearchPhotosRequest) {
 	request = &SearchPhotosRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SearchPhotos", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SearchPhotos", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/set_album_cover.go

@@ -65,9 +65,9 @@ func (client *Client) SetAlbumCoverWithCallback(request *SetAlbumCoverRequest, c
 type SetAlbumCoverRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
+	StoreName string           `position:"Query" name:"StoreName"`
 	AlbumId   requests.Integer `position:"Query" name:"AlbumId"`
 	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
-	StoreName string           `position:"Query" name:"StoreName"`
 }
 
 type SetAlbumCoverResponse struct {
@@ -82,7 +82,7 @@ func CreateSetAlbumCoverRequest() (request *SetAlbumCoverRequest) {
 	request = &SetAlbumCoverRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetAlbumCover", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetAlbumCover", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/set_face_cover.go

@@ -65,9 +65,9 @@ func (client *Client) SetFaceCoverWithCallback(request *SetFaceCoverRequest, cal
 type SetFaceCoverRequest struct {
 	*requests.RpcRequest
 	LibraryId string           `position:"Query" name:"LibraryId"`
-	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 	StoreName string           `position:"Query" name:"StoreName"`
 	FaceId    requests.Integer `position:"Query" name:"FaceId"`
+	PhotoId   requests.Integer `position:"Query" name:"PhotoId"`
 }
 
 type SetFaceCoverResponse struct {
@@ -82,7 +82,7 @@ func CreateSetFaceCoverRequest() (request *SetFaceCoverRequest) {
 	request = &SetFaceCoverRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetFaceCover", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetFaceCover", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/set_me.go

@@ -81,7 +81,7 @@ func CreateSetMeRequest() (request *SetMeRequest) {
 	request = &SetMeRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetMe", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetMe", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cloudphoto/set_quota.go

@@ -81,7 +81,7 @@ func CreateSetQuotaRequest() (request *SetQuotaRequest) {
 	request = &SetQuotaRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetQuota", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "SetQuota", "cloudphoto", "openAPI")
 	return
 }
 

+ 3 - 3
services/cloudphoto/tag_photo.go

@@ -64,11 +64,11 @@ func (client *Client) TagPhotoWithCallback(request *TagPhotoRequest, callback fu
 
 type TagPhotoRequest struct {
 	*requests.RpcRequest
+	TagKey     *[]string        `position:"Query" name:"TagKey"  type:"Repeated"`
 	LibraryId  string           `position:"Query" name:"LibraryId"`
-	Confidence *[]string        `position:"Query" name:"Confidence"  type:"Repeated"`
 	StoreName  string           `position:"Query" name:"StoreName"`
+	Confidence *[]string        `position:"Query" name:"Confidence"  type:"Repeated"`
 	PhotoId    requests.Integer `position:"Query" name:"PhotoId"`
-	TagKey     *[]string        `position:"Query" name:"TagKey"  type:"Repeated"`
 }
 
 type TagPhotoResponse struct {
@@ -83,7 +83,7 @@ func CreateTagPhotoRequest() (request *TagPhotoRequest) {
 	request = &TagPhotoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "TagPhoto", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "TagPhoto", "cloudphoto", "openAPI")
 	return
 }
 

+ 2 - 2
services/cloudphoto/toggle_features.go

@@ -64,9 +64,9 @@ func (client *Client) ToggleFeaturesWithCallback(request *ToggleFeaturesRequest,
 
 type ToggleFeaturesRequest struct {
 	*requests.RpcRequest
+	EnabledFeatures  *[]string `position:"Query" name:"EnabledFeatures"  type:"Repeated"`
 	DisabledFeatures *[]string `position:"Query" name:"DisabledFeatures"  type:"Repeated"`
 	StoreName        string    `position:"Query" name:"StoreName"`
-	EnabledFeatures  *[]string `position:"Query" name:"EnabledFeatures"  type:"Repeated"`
 }
 
 type ToggleFeaturesResponse struct {
@@ -81,7 +81,7 @@ func CreateToggleFeaturesRequest() (request *ToggleFeaturesRequest) {
 	request = &ToggleFeaturesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ToggleFeatures", "", "")
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ToggleFeatures", "cloudphoto", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/access_key_get.go

@@ -82,7 +82,7 @@ func CreateAccessKeyGetRequest() (request *AccessKeyGetRequest) {
 	request = &AccessKeyGetRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "AccessKeyGet", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "AccessKeyGet", "cms", "openAPI")
 	return
 }
 

+ 92 - 0
services/cms/add_my_group_instances.go

@@ -0,0 +1,92 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+func (client *Client) AddMyGroupInstances(request *AddMyGroupInstancesRequest) (response *AddMyGroupInstancesResponse, err error) {
+	response = CreateAddMyGroupInstancesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) AddMyGroupInstancesWithChan(request *AddMyGroupInstancesRequest) (<-chan *AddMyGroupInstancesResponse, <-chan error) {
+	responseChan := make(chan *AddMyGroupInstancesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddMyGroupInstances(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) AddMyGroupInstancesWithCallback(request *AddMyGroupInstancesRequest, callback func(response *AddMyGroupInstancesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddMyGroupInstancesResponse
+		var err error
+		defer close(result)
+		response, err = client.AddMyGroupInstances(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type AddMyGroupInstancesRequest struct {
+	*requests.RpcRequest
+	GroupId   requests.Integer `position:"Query" name:"GroupId"`
+	Instances string           `position:"Query" name:"Instances"`
+}
+
+type AddMyGroupInstancesResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+}
+
+func CreateAddMyGroupInstancesRequest() (request *AddMyGroupInstancesRequest) {
+	request = &AddMyGroupInstancesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "AddMyGroupInstances", "cms", "openAPI")
+	return
+}
+
+func CreateAddMyGroupInstancesResponse() (response *AddMyGroupInstancesResponse) {
+	response = &AddMyGroupInstancesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/cms/create_alarm.go

@@ -64,8 +64,8 @@ func (client *Client) CreateAlarmWithCallback(request *CreateAlarmRequest, callb
 
 type CreateAlarmRequest struct {
 	*requests.RpcRequest
-	ComparisonOperator string           `position:"Query" name:"ComparisonOperator"`
 	EndTime            requests.Integer `position:"Query" name:"EndTime"`
+	ComparisonOperator string           `position:"Query" name:"ComparisonOperator"`
 	StartTime          requests.Integer `position:"Query" name:"StartTime"`
 	NotifyType         requests.Integer `position:"Query" name:"NotifyType"`
 	Period             requests.Integer `position:"Query" name:"Period"`
@@ -95,7 +95,7 @@ func CreateCreateAlarmRequest() (request *CreateAlarmRequest) {
 	request = &CreateAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "CreateAlarm", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "CreateAlarm", "cms", "openAPI")
 	return
 }
 

+ 96 - 0
services/cms/create_my_groups.go

@@ -0,0 +1,96 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+func (client *Client) CreateMyGroups(request *CreateMyGroupsRequest) (response *CreateMyGroupsResponse, err error) {
+	response = CreateCreateMyGroupsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) CreateMyGroupsWithChan(request *CreateMyGroupsRequest) (<-chan *CreateMyGroupsResponse, <-chan error) {
+	responseChan := make(chan *CreateMyGroupsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateMyGroups(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) CreateMyGroupsWithCallback(request *CreateMyGroupsRequest, callback func(response *CreateMyGroupsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateMyGroupsResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateMyGroups(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type CreateMyGroupsRequest struct {
+	*requests.RpcRequest
+	BindUrl       string           `position:"Query" name:"BindUrl"`
+	GroupName     string           `position:"Query" name:"GroupName"`
+	Type          string           `position:"Query" name:"Type"`
+	ContactGroups string           `position:"Query" name:"ContactGroups"`
+	ServiceId     requests.Integer `position:"Query" name:"ServiceId"`
+}
+
+type CreateMyGroupsResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	GroupId      int    `json:"GroupId" xml:"GroupId"`
+}
+
+func CreateCreateMyGroupsRequest() (request *CreateMyGroupsRequest) {
+	request = &CreateMyGroupsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "CreateMyGroups", "cms", "openAPI")
+	return
+}
+
+func CreateCreateMyGroupsResponse() (response *CreateMyGroupsResponse) {
+	response = &CreateMyGroupsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/create_notify_policy.go

@@ -84,7 +84,7 @@ func CreateCreateNotifyPolicyRequest() (request *CreateNotifyPolicyRequest) {
 	request = &CreateNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "CreateNotifyPolicy", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "CreateNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_alarm.go

@@ -80,7 +80,7 @@ func CreateDeleteAlarmRequest() (request *DeleteAlarmRequest) {
 	request = &DeleteAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteAlarm", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_custom_metric.go

@@ -82,7 +82,7 @@ func CreateDeleteCustomMetricRequest() (request *DeleteCustomMetricRequest) {
 	request = &DeleteCustomMetricRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteCustomMetric", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteCustomMetric", "cms", "openAPI")
 	return
 }
 

+ 92 - 0
services/cms/delete_my_group_instances.go

@@ -0,0 +1,92 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+func (client *Client) DeleteMyGroupInstances(request *DeleteMyGroupInstancesRequest) (response *DeleteMyGroupInstancesResponse, err error) {
+	response = CreateDeleteMyGroupInstancesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) DeleteMyGroupInstancesWithChan(request *DeleteMyGroupInstancesRequest) (<-chan *DeleteMyGroupInstancesResponse, <-chan error) {
+	responseChan := make(chan *DeleteMyGroupInstancesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteMyGroupInstances(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) DeleteMyGroupInstancesWithCallback(request *DeleteMyGroupInstancesRequest, callback func(response *DeleteMyGroupInstancesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteMyGroupInstancesResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteMyGroupInstances(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type DeleteMyGroupInstancesRequest struct {
+	*requests.RpcRequest
+	InstanceIds string           `position:"Query" name:"InstanceIds"`
+	GroupId     requests.Integer `position:"Query" name:"GroupId"`
+}
+
+type DeleteMyGroupInstancesResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+}
+
+func CreateDeleteMyGroupInstancesRequest() (request *DeleteMyGroupInstancesRequest) {
+	request = &DeleteMyGroupInstancesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteMyGroupInstances", "cms", "openAPI")
+	return
+}
+
+func CreateDeleteMyGroupInstancesResponse() (response *DeleteMyGroupInstancesResponse) {
+	response = &DeleteMyGroupInstancesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 103 - 0
services/cms/delete_my_groups.go

@@ -0,0 +1,103 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+func (client *Client) DeleteMyGroups(request *DeleteMyGroupsRequest) (response *DeleteMyGroupsResponse, err error) {
+	response = CreateDeleteMyGroupsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) DeleteMyGroupsWithChan(request *DeleteMyGroupsRequest) (<-chan *DeleteMyGroupsResponse, <-chan error) {
+	responseChan := make(chan *DeleteMyGroupsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteMyGroups(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) DeleteMyGroupsWithCallback(request *DeleteMyGroupsRequest, callback func(response *DeleteMyGroupsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteMyGroupsResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteMyGroups(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type DeleteMyGroupsRequest struct {
+	*requests.RpcRequest
+	GroupId requests.Integer `position:"Query" name:"GroupId"`
+}
+
+type DeleteMyGroupsResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Group        struct {
+		GroupId       int    `json:"GroupId" xml:"GroupId"`
+		GroupName     string `json:"GroupName" xml:"GroupName"`
+		ServiceId     string `json:"ServiceId" xml:"ServiceId"`
+		BindUrls      string `json:"BindUrls" xml:"BindUrls"`
+		Type          string `json:"Type" xml:"Type"`
+		ContactGroups struct {
+			ContactGroup []struct {
+				Name string `json:"Name" xml:"Name"`
+			} `json:"ContactGroup" xml:"ContactGroup"`
+		} `json:"ContactGroups" xml:"ContactGroups"`
+	} `json:"Group" xml:"Group"`
+}
+
+func CreateDeleteMyGroupsRequest() (request *DeleteMyGroupsRequest) {
+	request = &DeleteMyGroupsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteMyGroups", "cms", "openAPI")
+	return
+}
+
+func CreateDeleteMyGroupsResponse() (response *DeleteMyGroupsResponse) {
+	response = &DeleteMyGroupsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/delete_notify_policy.go

@@ -83,7 +83,7 @@ func CreateDeleteNotifyPolicyRequest() (request *DeleteNotifyPolicyRequest) {
 	request = &DeleteNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteNotifyPolicy", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/describe_alarm_history.go

@@ -129,7 +129,7 @@ func CreateDescribeAlarmHistoryRequest() (request *DescribeAlarmHistoryRequest)
 	request = &DescribeAlarmHistoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DescribeAlarmHistory", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "DescribeAlarmHistory", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/disable_alarm.go

@@ -80,7 +80,7 @@ func CreateDisableAlarmRequest() (request *DisableAlarmRequest) {
 	request = &DisableAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DisableAlarm", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "DisableAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/enable_alarm.go

@@ -80,7 +80,7 @@ func CreateEnableAlarmRequest() (request *EnableAlarmRequest) {
 	request = &EnableAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "EnableAlarm", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "EnableAlarm", "cms", "openAPI")
 	return
 }
 

+ 108 - 0
services/cms/get_my_groups.go

@@ -0,0 +1,108 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+func (client *Client) GetMyGroups(request *GetMyGroupsRequest) (response *GetMyGroupsResponse, err error) {
+	response = CreateGetMyGroupsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) GetMyGroupsWithChan(request *GetMyGroupsRequest) (<-chan *GetMyGroupsResponse, <-chan error) {
+	responseChan := make(chan *GetMyGroupsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMyGroups(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) GetMyGroupsWithCallback(request *GetMyGroupsRequest, callback func(response *GetMyGroupsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMyGroupsResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMyGroups(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type GetMyGroupsRequest struct {
+	*requests.RpcRequest
+	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
+	BindUrl             string           `position:"Query" name:"BindUrl"`
+	GroupName           string           `position:"Query" name:"GroupName"`
+	GroupId             requests.Integer `position:"Query" name:"GroupId"`
+	Type                string           `position:"Query" name:"Type"`
+	InstanceId          string           `position:"Query" name:"InstanceId"`
+}
+
+type GetMyGroupsResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Group        struct {
+		GroupId       int    `json:"GroupId" xml:"GroupId"`
+		GroupName     string `json:"GroupName" xml:"GroupName"`
+		ServiceId     int    `json:"ServiceId" xml:"ServiceId"`
+		BindUrl       string `json:"BindUrl" xml:"BindUrl"`
+		Type          string `json:"Type" xml:"Type"`
+		ContactGroups struct {
+			ContactGroup []struct {
+				Name string `json:"Name" xml:"Name"`
+			} `json:"ContactGroup" xml:"ContactGroup"`
+		} `json:"ContactGroups" xml:"ContactGroups"`
+	} `json:"Group" xml:"Group"`
+}
+
+func CreateGetMyGroupsRequest() (request *GetMyGroupsRequest) {
+	request = &GetMyGroupsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "GetMyGroups", "cms", "openAPI")
+	return
+}
+
+func CreateGetMyGroupsResponse() (response *GetMyGroupsResponse) {
+	response = &GetMyGroupsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/get_notify_policy.go

@@ -90,7 +90,7 @@ func CreateGetNotifyPolicyRequest() (request *GetNotifyPolicyRequest) {
 	request = &GetNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "GetNotifyPolicy", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "GetNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_alarm.go

@@ -111,7 +111,7 @@ func CreateListAlarmRequest() (request *ListAlarmRequest) {
 	request = &ListAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListAlarm", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "ListAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_alarm_history.go

@@ -101,7 +101,7 @@ func CreateListAlarmHistoryRequest() (request *ListAlarmHistoryRequest) {
 	request = &ListAlarmHistoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListAlarmHistory", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "ListAlarmHistory", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_contact_group.go

@@ -86,7 +86,7 @@ func CreateListContactGroupRequest() (request *ListContactGroupRequest) {
 	request = &ListContactGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListContactGroup", "", "")
+	request.InitWithApiInfo("Cms", "2017-03-01", "ListContactGroup", "cms", "openAPI")
 	return
 }
 

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä