Bladeren bron

Merge pull request #268 from aliyun/dev_4.30

fix rds api
wenzuochao 6 jaren geleden
bovenliggende
commit
62f3cb8727

+ 5 - 5
services/rds/struct_available_zone.go

@@ -17,9 +17,9 @@ package rds
 
 
 // AvailableZone is a nested struct in rds response
 // AvailableZone is a nested struct in rds response
 type AvailableZone struct {
 type AvailableZone struct {
-	RegionId        string             `json:"RegionId" xml:"RegionId"`
-	ZoneId          string             `json:"ZoneId" xml:"ZoneId"`
-	Status          string             `json:"Status" xml:"Status"`
-	NetworkTypes    string             `json:"NetworkTypes" xml:"NetworkTypes"`
-	SupportedEngine []SupportedEngines `json:"SupportedEngine" xml:"SupportedEngine"`
+	RegionId        string                                     `json:"RegionId" xml:"RegionId"`
+	ZoneId          string                                     `json:"ZoneId" xml:"ZoneId"`
+	Status          string                                     `json:"Status" xml:"Status"`
+	NetworkTypes    string                                     `json:"NetworkTypes" xml:"NetworkTypes"`
+	SupportedEngine SupportedEngineInDescribeAvailableResource `json:"SupportedEngine" xml:"SupportedEngine"`
 }
 }

+ 2 - 2
services/rds/struct_supported_categorys.go

@@ -17,6 +17,6 @@ package rds
 
 
 // SupportedCategorys is a nested struct in rds response
 // SupportedCategorys is a nested struct in rds response
 type SupportedCategorys struct {
 type SupportedCategorys struct {
-	Category             string                  `json:"Category" xml:"Category"`
-	SupportedStorageType []SupportedStorageTypes `json:"SupportedStorageType" xml:"SupportedStorageType"`
+	Category             string                                          `json:"Category" xml:"Category"`
+	SupportedStorageType SupportedStorageTypeInDescribeAvailableResource `json:"SupportedStorageType" xml:"SupportedStorageType"`
 }
 }

+ 2 - 2
services/rds/struct_supported_engine_versions.go

@@ -17,6 +17,6 @@ package rds
 
 
 // SupportedEngineVersions is a nested struct in rds response
 // SupportedEngineVersions is a nested struct in rds response
 type SupportedEngineVersions struct {
 type SupportedEngineVersions struct {
-	Version           string               `json:"Version" xml:"Version"`
-	SupportedCategory []SupportedCategorys `json:"SupportedCategory" xml:"SupportedCategory"`
+	Version           string                                       `json:"Version" xml:"Version"`
+	SupportedCategory SupportedCategoryInDescribeAvailableResource `json:"SupportedCategory" xml:"SupportedCategory"`
 }
 }

+ 2 - 2
services/rds/struct_supported_engines.go

@@ -17,6 +17,6 @@ package rds
 
 
 // SupportedEngines is a nested struct in rds response
 // SupportedEngines is a nested struct in rds response
 type SupportedEngines struct {
 type SupportedEngines struct {
-	Engine                 string                    `json:"Engine" xml:"Engine"`
-	SupportedEngineVersion []SupportedEngineVersions `json:"SupportedEngineVersion" xml:"SupportedEngineVersion"`
+	Engine                 string                                            `json:"Engine" xml:"Engine"`
+	SupportedEngineVersion SupportedEngineVersionInDescribeAvailableResource `json:"SupportedEngineVersion" xml:"SupportedEngineVersion"`
 }
 }

+ 2 - 2
services/rds/struct_supported_storage_types.go

@@ -17,6 +17,6 @@ package rds
 
 
 // SupportedStorageTypes is a nested struct in rds response
 // SupportedStorageTypes is a nested struct in rds response
 type SupportedStorageTypes struct {
 type SupportedStorageTypes struct {
-	StorageType       string               `json:"StorageType" xml:"StorageType"`
-	AvailableResource []AvailableResources `json:"AvailableResource" xml:"AvailableResource"`
+	StorageType       string                                       `json:"StorageType" xml:"StorageType"`
+	AvailableResource AvailableResourceInDescribeAvailableResource `json:"AvailableResource" xml:"AvailableResource"`
 }
 }