Browse Source

由廷诚发起的CLOUDPHOTO SDK自动发布, 版本号:1.4.10

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
d4c345910a

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-03-29 Version: 1.4.10
+1, edit FetchLibraries return param format
+
 2018-03-29 Version: 1.4.9
 2018-03-29 Version: 1.4.9
 1, Add APIs: CreateAlias, UpdateAlias, DeleteAlias, ListAliases, ListAliasesByKeyId.
 1, Add APIs: CreateAlias, UpdateAlias, DeleteAlias, ListAliases, ListAliasesByKeyId.
 2, Add APIs: GetParametersForImport, ImportKeyMaterial, DeleteKeyMaterial.
 2, Add APIs: GetParametersForImport, ImportKeyMaterial, DeleteKeyMaterial.

+ 6 - 6
services/cloudphoto/fetch_libraries.go

@@ -84,12 +84,12 @@ type FetchLibrariesRequest struct {
 // FetchLibrariesResponse is the response struct for api FetchLibraries
 // FetchLibrariesResponse is the response struct for api FetchLibraries
 type FetchLibrariesResponse struct {
 type FetchLibrariesResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	Code       string                  `json:"Code" xml:"Code"`
-	Message    string                  `json:"Message" xml:"Message"`
-	TotalCount int                     `json:"TotalCount" xml:"TotalCount"`
-	RequestId  string                  `json:"RequestId" xml:"RequestId"`
-	Action     string                  `json:"Action" xml:"Action"`
-	Library    LibraryInFetchLibraries `json:"Library" xml:"Library"`
+	Code       string    `json:"Code" xml:"Code"`
+	Message    string    `json:"Message" xml:"Message"`
+	TotalCount int       `json:"TotalCount" xml:"TotalCount"`
+	RequestId  string    `json:"RequestId" xml:"RequestId"`
+	Action     string    `json:"Action" xml:"Action"`
+	Libraries  []Library `json:"Libraries" xml:"Libraries"`
 }
 }
 
 
 // CreateFetchLibrariesRequest creates a request to invoke FetchLibraries API
 // CreateFetchLibrariesRequest creates a request to invoke FetchLibraries API

+ 3 - 3
services/cloudphoto/struct_library_in_fetch_libraries.go → services/cloudphoto/struct_libraries.go

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

+ 1 - 0
services/cloudphoto/struct_library.go

@@ -17,6 +17,7 @@ package cloudphoto
 
 
 // Library is a nested struct in cloudphoto response
 // Library is a nested struct in cloudphoto response
 type Library struct {
 type Library struct {
+	LibraryId       string          `json:"LibraryId" xml:"LibraryId"`
 	AutoCleanConfig AutoCleanConfig `json:"AutoCleanConfig" xml:"AutoCleanConfig"`
 	AutoCleanConfig AutoCleanConfig `json:"AutoCleanConfig" xml:"AutoCleanConfig"`
 	Quota           Quota           `json:"Quota" xml:"Quota"`
 	Quota           Quota           `json:"Quota" xml:"Quota"`
 }
 }