Procházet zdrojové kódy

Generated 2015-05-01 for Ram.

sdk-team před 5 roky
rodič
revize
c5b7876b10
100 změnil soubory, kde provedl 641 přidání a 497 odebrání
  1. 4 0
      ChangeLog.txt
  2. 1 1
      services/ram/add_user_to_group.go
  3. 2 2
      services/ram/attach_policy_to_group.go
  4. 1 1
      services/ram/attach_policy_to_role.go
  5. 1 1
      services/ram/attach_policy_to_user.go
  6. 1 1
      services/ram/bind_mfa_device.go
  7. 1 1
      services/ram/change_password.go
  8. 1 1
      services/ram/clear_account_alias.go
  9. 25 0
      services/ram/client.go
  10. 3 3
      services/ram/create_access_key.go
  11. 3 3
      services/ram/create_group.go
  12. 4 4
      services/ram/create_login_profile.go
  13. 3 3
      services/ram/create_policy.go
  14. 3 3
      services/ram/create_policy_version.go
  15. 7 6
      services/ram/create_role.go
  16. 5 5
      services/ram/create_user.go
  17. 3 3
      services/ram/create_virtual_mfa_device.go
  18. 1 1
      services/ram/delete_access_key.go
  19. 1 1
      services/ram/delete_group.go
  20. 1 1
      services/ram/delete_login_profile.go
  21. 1 1
      services/ram/delete_policy.go
  22. 1 1
      services/ram/delete_policy_version.go
  23. 0 104
      services/ram/delete_public_key.go
  24. 1 1
      services/ram/delete_role.go
  25. 1 1
      services/ram/delete_user.go
  26. 1 1
      services/ram/delete_virtual_mfa_device.go
  27. 2 2
      services/ram/detach_policy_from_group.go
  28. 1 1
      services/ram/detach_policy_from_role.go
  29. 1 1
      services/ram/detach_policy_from_user.go
  30. 20 0
      services/ram/endpoint.go
  31. 1 1
      services/ram/get_access_key_last_used.go
  32. 1 1
      services/ram/get_account_alias.go
  33. 3 3
      services/ram/get_group.go
  34. 3 3
      services/ram/get_login_profile.go
  35. 3 3
      services/ram/get_password_policy.go
  36. 2 2
      services/ram/get_policy.go
  37. 4 4
      services/ram/get_policy_version.go
  38. 0 105
      services/ram/get_public_key.go
  39. 3 3
      services/ram/get_role.go
  40. 3 3
      services/ram/get_security_preference.go
  41. 3 3
      services/ram/get_user.go
  42. 3 3
      services/ram/get_user_mfa_info.go
  43. 1 1
      services/ram/list_access_keys.go
  44. 1 1
      services/ram/list_entities_for_policy.go
  45. 1 1
      services/ram/list_groups.go
  46. 1 1
      services/ram/list_groups_for_user.go
  47. 1 1
      services/ram/list_policies.go
  48. 1 1
      services/ram/list_policies_for_group.go
  49. 1 1
      services/ram/list_policies_for_role.go
  50. 1 1
      services/ram/list_policies_for_user.go
  51. 1 1
      services/ram/list_policy_versions.go
  52. 0 104
      services/ram/list_public_keys.go
  53. 1 1
      services/ram/list_roles.go
  54. 1 1
      services/ram/list_users.go
  55. 2 2
      services/ram/list_users_for_group.go
  56. 1 1
      services/ram/list_virtual_mfa_devices.go
  57. 1 1
      services/ram/remove_user_from_group.go
  58. 1 1
      services/ram/set_account_alias.go
  59. 1 1
      services/ram/set_default_policy_version.go
  60. 6 6
      services/ram/set_password_policy.go
  61. 6 6
      services/ram/set_security_preference.go
  62. 4 4
      services/ram/struct_access_key_in_create_access_key.go
  63. 23 0
      services/ram/struct_access_key_in_list_access_keys.go
  64. 2 2
      services/ram/struct_access_key_preference_in_get_security_preference.go
  65. 21 0
      services/ram/struct_access_key_preference_in_set_security_preference.go
  66. 1 1
      services/ram/struct_access_keys.go
  67. 23 0
      services/ram/struct_group_in_create_group.go
  68. 3 5
      services/ram/struct_group_in_get_group.go
  69. 23 0
      services/ram/struct_group_in_list_entities_for_policy.go
  70. 24 0
      services/ram/struct_group_in_list_groups.go
  71. 23 0
      services/ram/struct_group_in_list_groups_for_user.go
  72. 24 0
      services/ram/struct_group_in_update_group.go
  73. 1 1
      services/ram/struct_groups_in_list_entities_for_policy.go
  74. 1 1
      services/ram/struct_groups_in_list_groups.go
  75. 1 1
      services/ram/struct_groups_in_list_groups_for_user.go
  76. 24 0
      services/ram/struct_login_profile_in_create_login_profile.go
  77. 4 4
      services/ram/struct_login_profile_in_get_login_profile.go
  78. 4 4
      services/ram/struct_login_profile_preference_in_get_security_preference.go
  79. 24 0
      services/ram/struct_login_profile_preference_in_set_security_preference.go
  80. 2 2
      services/ram/struct_mfa_device_in_get_user_mfa_info.go
  81. 3 3
      services/ram/struct_mfa_device_in_unbind_mfa_device.go
  82. 2 2
      services/ram/struct_mfa_preference_in_get_security_preference.go
  83. 21 0
      services/ram/struct_mfa_preference_in_set_security_preference.go
  84. 7 7
      services/ram/struct_password_policy_in_get_password_policy.go
  85. 29 0
      services/ram/struct_password_policy_in_set_password_policy.go
  86. 1 1
      services/ram/struct_policies_in_list_policies.go
  87. 1 1
      services/ram/struct_policies_in_list_policies_for_group.go
  88. 1 1
      services/ram/struct_policies_in_list_policies_for_role.go
  89. 1 1
      services/ram/struct_policies_in_list_policies_for_user.go
  90. 25 0
      services/ram/struct_policy_in_create_policy.go
  91. 6 7
      services/ram/struct_policy_in_get_policy.go
  92. 27 0
      services/ram/struct_policy_in_list_policies.go
  93. 25 0
      services/ram/struct_policy_in_list_policies_for_group.go
  94. 25 0
      services/ram/struct_policy_in_list_policies_for_role.go
  95. 25 0
      services/ram/struct_policy_in_list_policies_for_user.go
  96. 24 0
      services/ram/struct_policy_version_in_create_policy_version.go
  97. 3 3
      services/ram/struct_policy_version_in_get_policy_version.go
  98. 24 0
      services/ram/struct_policy_version_in_list_policy_versions.go
  99. 1 1
      services/ram/struct_policy_versions.go
  100. 0 24
      services/ram/struct_public_key.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-03-20 Version: v1.61.68
+- Generated 2015-05-01 for `Ram`.
+- RAM role support MaxSessionDuration.
+
 2020-03-18 Version: v1.61.67
 - Generated 2015-01-09 for `Alidns`.
 - Supported API for DescribeInstanceDomains.

+ 1 - 1
services/ram/add_user_to_group.go

@@ -91,7 +91,7 @@ func CreateAddUserToGroupRequest() (request *AddUserToGroupRequest) {
 	request = &AddUserToGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "AddUserToGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "AddUserToGroup", "Ram", "openAPI")
 	return
 }
 

+ 2 - 2
services/ram/attach_policy_to_group.go

@@ -77,8 +77,8 @@ func (client *Client) AttachPolicyToGroupWithCallback(request *AttachPolicyToGro
 type AttachPolicyToGroupRequest struct {
 	*requests.RpcRequest
 	PolicyType string `position:"Query" name:"PolicyType"`
-	PolicyName string `position:"Query" name:"PolicyName"`
 	GroupName  string `position:"Query" name:"GroupName"`
+	PolicyName string `position:"Query" name:"PolicyName"`
 }
 
 // AttachPolicyToGroupResponse is the response struct for api AttachPolicyToGroup
@@ -92,7 +92,7 @@ func CreateAttachPolicyToGroupRequest() (request *AttachPolicyToGroupRequest) {
 	request = &AttachPolicyToGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToGroup", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/attach_policy_to_role.go

@@ -92,7 +92,7 @@ func CreateAttachPolicyToRoleRequest() (request *AttachPolicyToRoleRequest) {
 	request = &AttachPolicyToRoleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToRole", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToRole", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/attach_policy_to_user.go

@@ -92,7 +92,7 @@ func CreateAttachPolicyToUserRequest() (request *AttachPolicyToUserRequest) {
 	request = &AttachPolicyToUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "AttachPolicyToUser", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/bind_mfa_device.go

@@ -93,7 +93,7 @@ func CreateBindMFADeviceRequest() (request *BindMFADeviceRequest) {
 	request = &BindMFADeviceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "BindMFADevice", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "BindMFADevice", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/change_password.go

@@ -91,7 +91,7 @@ func CreateChangePasswordRequest() (request *ChangePasswordRequest) {
 	request = &ChangePasswordRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ChangePassword", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ChangePassword", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/clear_account_alias.go

@@ -89,7 +89,7 @@ func CreateClearAccountAliasRequest() (request *ClearAccountAliasRequest) {
 	request = &ClearAccountAliasRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ClearAccountAlias", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ClearAccountAlias", "Ram", "openAPI")
 	return
 }
 

+ 25 - 0
services/ram/client.go

@@ -16,6 +16,8 @@ package ram
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 import (
+	"reflect"
+
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
@@ -26,10 +28,25 @@ type Client struct {
 	sdk.Client
 }
 
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
 // NewClient creates a sdk client with environment variables
 func NewClient() (client *Client, err error) {
 	client = &Client{}
 	err = client.Init()
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -44,6 +61,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 		pc = provider.NewProviderChain(providers)
 	}
 	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -52,6 +70,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -60,6 +79,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -68,6 +88,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -76,6 +97,7 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -84,6 +106,7 @@ func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, role
 func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -92,6 +115,7 @@ func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySec
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -100,5 +124,6 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
 	return
 }

+ 3 - 3
services/ram/create_access_key.go

@@ -82,8 +82,8 @@ type CreateAccessKeyRequest struct {
 // CreateAccessKeyResponse is the response struct for api CreateAccessKey
 type CreateAccessKeyResponse struct {
 	*responses.BaseResponse
-	RequestId string    `json:"RequestId" xml:"RequestId"`
-	AccessKey AccessKey `json:"AccessKey" xml:"AccessKey"`
+	RequestId string                     `json:"RequestId" xml:"RequestId"`
+	AccessKey AccessKeyInCreateAccessKey `json:"AccessKey" xml:"AccessKey"`
 }
 
 // CreateCreateAccessKeyRequest creates a request to invoke CreateAccessKey API
@@ -91,7 +91,7 @@ func CreateCreateAccessKeyRequest() (request *CreateAccessKeyRequest) {
 	request = &CreateAccessKeyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreateAccessKey", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreateAccessKey", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/create_group.go

@@ -83,8 +83,8 @@ type CreateGroupRequest struct {
 // CreateGroupResponse is the response struct for api CreateGroup
 type CreateGroupResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Group     Group  `json:"Group" xml:"Group"`
+	RequestId string             `json:"RequestId" xml:"RequestId"`
+	Group     GroupInCreateGroup `json:"Group" xml:"Group"`
 }
 
 // CreateCreateGroupRequest creates a request to invoke CreateGroup API
@@ -92,7 +92,7 @@ func CreateCreateGroupRequest() (request *CreateGroupRequest) {
 	request = &CreateGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreateGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreateGroup", "Ram", "openAPI")
 	return
 }
 

+ 4 - 4
services/ram/create_login_profile.go

@@ -76,8 +76,8 @@ func (client *Client) CreateLoginProfileWithCallback(request *CreateLoginProfile
 // CreateLoginProfileRequest is the request struct for api CreateLoginProfile
 type CreateLoginProfileRequest struct {
 	*requests.RpcRequest
-	Password              string           `position:"Query" name:"Password"`
 	PasswordResetRequired requests.Boolean `position:"Query" name:"PasswordResetRequired"`
+	Password              string           `position:"Query" name:"Password"`
 	MFABindRequired       requests.Boolean `position:"Query" name:"MFABindRequired"`
 	UserName              string           `position:"Query" name:"UserName"`
 }
@@ -85,8 +85,8 @@ type CreateLoginProfileRequest struct {
 // CreateLoginProfileResponse is the response struct for api CreateLoginProfile
 type CreateLoginProfileResponse struct {
 	*responses.BaseResponse
-	RequestId    string       `json:"RequestId" xml:"RequestId"`
-	LoginProfile LoginProfile `json:"LoginProfile" xml:"LoginProfile"`
+	RequestId    string                           `json:"RequestId" xml:"RequestId"`
+	LoginProfile LoginProfileInCreateLoginProfile `json:"LoginProfile" xml:"LoginProfile"`
 }
 
 // CreateCreateLoginProfileRequest creates a request to invoke CreateLoginProfile API
@@ -94,7 +94,7 @@ func CreateCreateLoginProfileRequest() (request *CreateLoginProfileRequest) {
 	request = &CreateLoginProfileRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreateLoginProfile", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreateLoginProfile", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/create_policy.go

@@ -84,8 +84,8 @@ type CreatePolicyRequest struct {
 // CreatePolicyResponse is the response struct for api CreatePolicy
 type CreatePolicyResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Policy    Policy `json:"Policy" xml:"Policy"`
+	RequestId string               `json:"RequestId" xml:"RequestId"`
+	Policy    PolicyInCreatePolicy `json:"Policy" xml:"Policy"`
 }
 
 // CreateCreatePolicyRequest creates a request to invoke CreatePolicy API
@@ -93,7 +93,7 @@ func CreateCreatePolicyRequest() (request *CreatePolicyRequest) {
 	request = &CreatePolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreatePolicy", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreatePolicy", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/create_policy_version.go

@@ -85,8 +85,8 @@ type CreatePolicyVersionRequest struct {
 // CreatePolicyVersionResponse is the response struct for api CreatePolicyVersion
 type CreatePolicyVersionResponse struct {
 	*responses.BaseResponse
-	RequestId     string        `json:"RequestId" xml:"RequestId"`
-	PolicyVersion PolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"`
+	RequestId     string                             `json:"RequestId" xml:"RequestId"`
+	PolicyVersion PolicyVersionInCreatePolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"`
 }
 
 // CreateCreatePolicyVersionRequest creates a request to invoke CreatePolicyVersion API
@@ -94,7 +94,7 @@ func CreateCreatePolicyVersionRequest() (request *CreatePolicyVersionRequest) {
 	request = &CreatePolicyVersionRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreatePolicyVersion", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreatePolicyVersion", "Ram", "openAPI")
 	return
 }
 

+ 7 - 6
services/ram/create_role.go

@@ -76,16 +76,17 @@ func (client *Client) CreateRoleWithCallback(request *CreateRoleRequest, callbac
 // CreateRoleRequest is the request struct for api CreateRole
 type CreateRoleRequest struct {
 	*requests.RpcRequest
-	RoleName                 string `position:"Query" name:"RoleName"`
-	Description              string `position:"Query" name:"Description"`
-	AssumeRolePolicyDocument string `position:"Query" name:"AssumeRolePolicyDocument"`
+	MaxSessionDuration       requests.Integer `position:"Query" name:"MaxSessionDuration"`
+	RoleName                 string           `position:"Query" name:"RoleName"`
+	Description              string           `position:"Query" name:"Description"`
+	AssumeRolePolicyDocument string           `position:"Query" name:"AssumeRolePolicyDocument"`
 }
 
 // CreateRoleResponse is the response struct for api CreateRole
 type CreateRoleResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Role      Role   `json:"Role" xml:"Role"`
+	RequestId string           `json:"RequestId" xml:"RequestId"`
+	Role      RoleInCreateRole `json:"Role" xml:"Role"`
 }
 
 // CreateCreateRoleRequest creates a request to invoke CreateRole API
@@ -93,7 +94,7 @@ func CreateCreateRoleRequest() (request *CreateRoleRequest) {
 	request = &CreateRoleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreateRole", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreateRole", "Ram", "openAPI")
 	return
 }
 

+ 5 - 5
services/ram/create_user.go

@@ -76,18 +76,18 @@ func (client *Client) CreateUserWithCallback(request *CreateUserRequest, callbac
 // CreateUserRequest is the request struct for api CreateUser
 type CreateUserRequest struct {
 	*requests.RpcRequest
-	Comments    string `position:"Query" name:"Comments"`
-	DisplayName string `position:"Query" name:"DisplayName"`
 	MobilePhone string `position:"Query" name:"MobilePhone"`
 	Email       string `position:"Query" name:"Email"`
+	Comments    string `position:"Query" name:"Comments"`
+	DisplayName string `position:"Query" name:"DisplayName"`
 	UserName    string `position:"Query" name:"UserName"`
 }
 
 // CreateUserResponse is the response struct for api CreateUser
 type CreateUserResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	User      User   `json:"User" xml:"User"`
+	RequestId string           `json:"RequestId" xml:"RequestId"`
+	User      UserInCreateUser `json:"User" xml:"User"`
 }
 
 // CreateCreateUserRequest creates a request to invoke CreateUser API
@@ -95,7 +95,7 @@ func CreateCreateUserRequest() (request *CreateUserRequest) {
 	request = &CreateUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreateUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreateUser", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/create_virtual_mfa_device.go

@@ -82,8 +82,8 @@ type CreateVirtualMFADeviceRequest struct {
 // CreateVirtualMFADeviceResponse is the response struct for api CreateVirtualMFADevice
 type CreateVirtualMFADeviceResponse struct {
 	*responses.BaseResponse
-	RequestId        string           `json:"RequestId" xml:"RequestId"`
-	VirtualMFADevice VirtualMFADevice `json:"VirtualMFADevice" xml:"VirtualMFADevice"`
+	RequestId        string                                   `json:"RequestId" xml:"RequestId"`
+	VirtualMFADevice VirtualMFADeviceInCreateVirtualMFADevice `json:"VirtualMFADevice" xml:"VirtualMFADevice"`
 }
 
 // CreateCreateVirtualMFADeviceRequest creates a request to invoke CreateVirtualMFADevice API
@@ -91,7 +91,7 @@ func CreateCreateVirtualMFADeviceRequest() (request *CreateVirtualMFADeviceReque
 	request = &CreateVirtualMFADeviceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "CreateVirtualMFADevice", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "CreateVirtualMFADevice", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_access_key.go

@@ -91,7 +91,7 @@ func CreateDeleteAccessKeyRequest() (request *DeleteAccessKeyRequest) {
 	request = &DeleteAccessKeyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteAccessKey", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteAccessKey", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_group.go

@@ -90,7 +90,7 @@ func CreateDeleteGroupRequest() (request *DeleteGroupRequest) {
 	request = &DeleteGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteGroup", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_login_profile.go

@@ -90,7 +90,7 @@ func CreateDeleteLoginProfileRequest() (request *DeleteLoginProfileRequest) {
 	request = &DeleteLoginProfileRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteLoginProfile", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteLoginProfile", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_policy.go

@@ -90,7 +90,7 @@ func CreateDeletePolicyRequest() (request *DeletePolicyRequest) {
 	request = &DeletePolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeletePolicy", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeletePolicy", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_policy_version.go

@@ -91,7 +91,7 @@ func CreateDeletePolicyVersionRequest() (request *DeletePolicyVersionRequest) {
 	request = &DeletePolicyVersionRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeletePolicyVersion", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeletePolicyVersion", "Ram", "openAPI")
 	return
 }
 

+ 0 - 104
services/ram/delete_public_key.go

@@ -1,104 +0,0 @@
-package ram
-
-//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"
-)
-
-// DeletePublicKey invokes the ram.DeletePublicKey API synchronously
-// api document: https://help.aliyun.com/api/ram/deletepublickey.html
-func (client *Client) DeletePublicKey(request *DeletePublicKeyRequest) (response *DeletePublicKeyResponse, err error) {
-	response = CreateDeletePublicKeyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DeletePublicKeyWithChan invokes the ram.DeletePublicKey API asynchronously
-// api document: https://help.aliyun.com/api/ram/deletepublickey.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeletePublicKeyWithChan(request *DeletePublicKeyRequest) (<-chan *DeletePublicKeyResponse, <-chan error) {
-	responseChan := make(chan *DeletePublicKeyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DeletePublicKey(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DeletePublicKeyWithCallback invokes the ram.DeletePublicKey API asynchronously
-// api document: https://help.aliyun.com/api/ram/deletepublickey.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeletePublicKeyWithCallback(request *DeletePublicKeyRequest, callback func(response *DeletePublicKeyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DeletePublicKeyResponse
-		var err error
-		defer close(result)
-		response, err = client.DeletePublicKey(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DeletePublicKeyRequest is the request struct for api DeletePublicKey
-type DeletePublicKeyRequest struct {
-	*requests.RpcRequest
-	UserPublicKeyId string `position:"Query" name:"UserPublicKeyId"`
-	UserName        string `position:"Query" name:"UserName"`
-}
-
-// DeletePublicKeyResponse is the response struct for api DeletePublicKey
-type DeletePublicKeyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateDeletePublicKeyRequest creates a request to invoke DeletePublicKey API
-func CreateDeletePublicKeyRequest() (request *DeletePublicKeyRequest) {
-	request = &DeletePublicKeyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeletePublicKey", "", "")
-	return
-}
-
-// CreateDeletePublicKeyResponse creates a response to parse from DeletePublicKey response
-func CreateDeletePublicKeyResponse() (response *DeletePublicKeyResponse) {
-	response = &DeletePublicKeyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/ram/delete_role.go

@@ -90,7 +90,7 @@ func CreateDeleteRoleRequest() (request *DeleteRoleRequest) {
 	request = &DeleteRoleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteRole", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteRole", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_user.go

@@ -90,7 +90,7 @@ func CreateDeleteUserRequest() (request *DeleteUserRequest) {
 	request = &DeleteUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteUser", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/delete_virtual_mfa_device.go

@@ -90,7 +90,7 @@ func CreateDeleteVirtualMFADeviceRequest() (request *DeleteVirtualMFADeviceReque
 	request = &DeleteVirtualMFADeviceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteVirtualMFADevice", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DeleteVirtualMFADevice", "Ram", "openAPI")
 	return
 }
 

+ 2 - 2
services/ram/detach_policy_from_group.go

@@ -77,8 +77,8 @@ func (client *Client) DetachPolicyFromGroupWithCallback(request *DetachPolicyFro
 type DetachPolicyFromGroupRequest struct {
 	*requests.RpcRequest
 	PolicyType string `position:"Query" name:"PolicyType"`
-	PolicyName string `position:"Query" name:"PolicyName"`
 	GroupName  string `position:"Query" name:"GroupName"`
+	PolicyName string `position:"Query" name:"PolicyName"`
 }
 
 // DetachPolicyFromGroupResponse is the response struct for api DetachPolicyFromGroup
@@ -92,7 +92,7 @@ func CreateDetachPolicyFromGroupRequest() (request *DetachPolicyFromGroupRequest
 	request = &DetachPolicyFromGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromGroup", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/detach_policy_from_role.go

@@ -92,7 +92,7 @@ func CreateDetachPolicyFromRoleRequest() (request *DetachPolicyFromRoleRequest)
 	request = &DetachPolicyFromRoleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromRole", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromRole", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/detach_policy_from_user.go

@@ -92,7 +92,7 @@ func CreateDetachPolicyFromUserRequest() (request *DetachPolicyFromUserRequest)
 	request = &DetachPolicyFromUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "DetachPolicyFromUser", "Ram", "openAPI")
 	return
 }
 

+ 20 - 0
services/ram/endpoint.go

@@ -0,0 +1,20 @@
+package ram
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "central"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 1 - 1
services/ram/get_access_key_last_used.go

@@ -92,7 +92,7 @@ func CreateGetAccessKeyLastUsedRequest() (request *GetAccessKeyLastUsedRequest)
 	request = &GetAccessKeyLastUsedRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetAccessKeyLastUsed", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetAccessKeyLastUsed", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/get_account_alias.go

@@ -90,7 +90,7 @@ func CreateGetAccountAliasRequest() (request *GetAccountAliasRequest) {
 	request = &GetAccountAliasRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetAccountAlias", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetAccountAlias", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/get_group.go

@@ -82,8 +82,8 @@ type GetGroupRequest struct {
 // GetGroupResponse is the response struct for api GetGroup
 type GetGroupResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Group     Group  `json:"Group" xml:"Group"`
+	RequestId string          `json:"RequestId" xml:"RequestId"`
+	Group     GroupInGetGroup `json:"Group" xml:"Group"`
 }
 
 // CreateGetGroupRequest creates a request to invoke GetGroup API
@@ -91,7 +91,7 @@ func CreateGetGroupRequest() (request *GetGroupRequest) {
 	request = &GetGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetGroup", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/get_login_profile.go

@@ -82,8 +82,8 @@ type GetLoginProfileRequest struct {
 // GetLoginProfileResponse is the response struct for api GetLoginProfile
 type GetLoginProfileResponse struct {
 	*responses.BaseResponse
-	RequestId    string       `json:"RequestId" xml:"RequestId"`
-	LoginProfile LoginProfile `json:"LoginProfile" xml:"LoginProfile"`
+	RequestId    string                        `json:"RequestId" xml:"RequestId"`
+	LoginProfile LoginProfileInGetLoginProfile `json:"LoginProfile" xml:"LoginProfile"`
 }
 
 // CreateGetLoginProfileRequest creates a request to invoke GetLoginProfile API
@@ -91,7 +91,7 @@ func CreateGetLoginProfileRequest() (request *GetLoginProfileRequest) {
 	request = &GetLoginProfileRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetLoginProfile", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetLoginProfile", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/get_password_policy.go

@@ -81,8 +81,8 @@ type GetPasswordPolicyRequest struct {
 // GetPasswordPolicyResponse is the response struct for api GetPasswordPolicy
 type GetPasswordPolicyResponse struct {
 	*responses.BaseResponse
-	RequestId      string         `json:"RequestId" xml:"RequestId"`
-	PasswordPolicy PasswordPolicy `json:"PasswordPolicy" xml:"PasswordPolicy"`
+	RequestId      string                            `json:"RequestId" xml:"RequestId"`
+	PasswordPolicy PasswordPolicyInGetPasswordPolicy `json:"PasswordPolicy" xml:"PasswordPolicy"`
 }
 
 // CreateGetPasswordPolicyRequest creates a request to invoke GetPasswordPolicy API
@@ -90,7 +90,7 @@ func CreateGetPasswordPolicyRequest() (request *GetPasswordPolicyRequest) {
 	request = &GetPasswordPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetPasswordPolicy", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetPasswordPolicy", "Ram", "openAPI")
 	return
 }
 

+ 2 - 2
services/ram/get_policy.go

@@ -84,7 +84,7 @@ type GetPolicyRequest struct {
 type GetPolicyResponse struct {
 	*responses.BaseResponse
 	RequestId            string               `json:"RequestId" xml:"RequestId"`
-	Policy               Policy               `json:"Policy" xml:"Policy"`
+	Policy               PolicyInGetPolicy    `json:"Policy" xml:"Policy"`
 	DefaultPolicyVersion DefaultPolicyVersion `json:"DefaultPolicyVersion" xml:"DefaultPolicyVersion"`
 }
 
@@ -93,7 +93,7 @@ func CreateGetPolicyRequest() (request *GetPolicyRequest) {
 	request = &GetPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetPolicy", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetPolicy", "Ram", "openAPI")
 	return
 }
 

+ 4 - 4
services/ram/get_policy_version.go

@@ -76,16 +76,16 @@ func (client *Client) GetPolicyVersionWithCallback(request *GetPolicyVersionRequ
 // GetPolicyVersionRequest is the request struct for api GetPolicyVersion
 type GetPolicyVersionRequest struct {
 	*requests.RpcRequest
-	VersionId  string `position:"Query" name:"VersionId"`
 	PolicyType string `position:"Query" name:"PolicyType"`
+	VersionId  string `position:"Query" name:"VersionId"`
 	PolicyName string `position:"Query" name:"PolicyName"`
 }
 
 // GetPolicyVersionResponse is the response struct for api GetPolicyVersion
 type GetPolicyVersionResponse struct {
 	*responses.BaseResponse
-	RequestId     string        `json:"RequestId" xml:"RequestId"`
-	PolicyVersion PolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"`
+	RequestId     string                          `json:"RequestId" xml:"RequestId"`
+	PolicyVersion PolicyVersionInGetPolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"`
 }
 
 // CreateGetPolicyVersionRequest creates a request to invoke GetPolicyVersion API
@@ -93,7 +93,7 @@ func CreateGetPolicyVersionRequest() (request *GetPolicyVersionRequest) {
 	request = &GetPolicyVersionRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetPolicyVersion", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetPolicyVersion", "Ram", "openAPI")
 	return
 }
 

+ 0 - 105
services/ram/get_public_key.go

@@ -1,105 +0,0 @@
-package ram
-
-//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"
-)
-
-// GetPublicKey invokes the ram.GetPublicKey API synchronously
-// api document: https://help.aliyun.com/api/ram/getpublickey.html
-func (client *Client) GetPublicKey(request *GetPublicKeyRequest) (response *GetPublicKeyResponse, err error) {
-	response = CreateGetPublicKeyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetPublicKeyWithChan invokes the ram.GetPublicKey API asynchronously
-// api document: https://help.aliyun.com/api/ram/getpublickey.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetPublicKeyWithChan(request *GetPublicKeyRequest) (<-chan *GetPublicKeyResponse, <-chan error) {
-	responseChan := make(chan *GetPublicKeyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetPublicKey(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetPublicKeyWithCallback invokes the ram.GetPublicKey API asynchronously
-// api document: https://help.aliyun.com/api/ram/getpublickey.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetPublicKeyWithCallback(request *GetPublicKeyRequest, callback func(response *GetPublicKeyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetPublicKeyResponse
-		var err error
-		defer close(result)
-		response, err = client.GetPublicKey(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetPublicKeyRequest is the request struct for api GetPublicKey
-type GetPublicKeyRequest struct {
-	*requests.RpcRequest
-	UserPublicKeyId string `position:"Query" name:"UserPublicKeyId"`
-	UserName        string `position:"Query" name:"UserName"`
-}
-
-// GetPublicKeyResponse is the response struct for api GetPublicKey
-type GetPublicKeyResponse struct {
-	*responses.BaseResponse
-	RequestId string    `json:"RequestId" xml:"RequestId"`
-	PublicKey PublicKey `json:"PublicKey" xml:"PublicKey"`
-}
-
-// CreateGetPublicKeyRequest creates a request to invoke GetPublicKey API
-func CreateGetPublicKeyRequest() (request *GetPublicKeyRequest) {
-	request = &GetPublicKeyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetPublicKey", "", "")
-	return
-}
-
-// CreateGetPublicKeyResponse creates a response to parse from GetPublicKey response
-func CreateGetPublicKeyResponse() (response *GetPublicKeyResponse) {
-	response = &GetPublicKeyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 3 - 3
services/ram/get_role.go

@@ -82,8 +82,8 @@ type GetRoleRequest struct {
 // GetRoleResponse is the response struct for api GetRole
 type GetRoleResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Role      Role   `json:"Role" xml:"Role"`
+	RequestId string        `json:"RequestId" xml:"RequestId"`
+	Role      RoleInGetRole `json:"Role" xml:"Role"`
 }
 
 // CreateGetRoleRequest creates a request to invoke GetRole API
@@ -91,7 +91,7 @@ func CreateGetRoleRequest() (request *GetRoleRequest) {
 	request = &GetRoleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetRole", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetRole", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/get_security_preference.go

@@ -81,8 +81,8 @@ type GetSecurityPreferenceRequest struct {
 // GetSecurityPreferenceResponse is the response struct for api GetSecurityPreference
 type GetSecurityPreferenceResponse struct {
 	*responses.BaseResponse
-	RequestId          string             `json:"RequestId" xml:"RequestId"`
-	SecurityPreference SecurityPreference `json:"SecurityPreference" xml:"SecurityPreference"`
+	RequestId          string                                    `json:"RequestId" xml:"RequestId"`
+	SecurityPreference SecurityPreferenceInGetSecurityPreference `json:"SecurityPreference" xml:"SecurityPreference"`
 }
 
 // CreateGetSecurityPreferenceRequest creates a request to invoke GetSecurityPreference API
@@ -90,7 +90,7 @@ func CreateGetSecurityPreferenceRequest() (request *GetSecurityPreferenceRequest
 	request = &GetSecurityPreferenceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetSecurityPreference", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetSecurityPreference", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/get_user.go

@@ -82,8 +82,8 @@ type GetUserRequest struct {
 // GetUserResponse is the response struct for api GetUser
 type GetUserResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	User      User   `json:"User" xml:"User"`
+	RequestId string        `json:"RequestId" xml:"RequestId"`
+	User      UserInGetUser `json:"User" xml:"User"`
 }
 
 // CreateGetUserRequest creates a request to invoke GetUser API
@@ -91,7 +91,7 @@ func CreateGetUserRequest() (request *GetUserRequest) {
 	request = &GetUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetUser", "Ram", "openAPI")
 	return
 }
 

+ 3 - 3
services/ram/get_user_mfa_info.go

@@ -82,8 +82,8 @@ type GetUserMFAInfoRequest struct {
 // GetUserMFAInfoResponse is the response struct for api GetUserMFAInfo
 type GetUserMFAInfoResponse struct {
 	*responses.BaseResponse
-	RequestId string    `json:"RequestId" xml:"RequestId"`
-	MFADevice MFADevice `json:"MFADevice" xml:"MFADevice"`
+	RequestId string                    `json:"RequestId" xml:"RequestId"`
+	MFADevice MFADeviceInGetUserMFAInfo `json:"MFADevice" xml:"MFADevice"`
 }
 
 // CreateGetUserMFAInfoRequest creates a request to invoke GetUserMFAInfo API
@@ -91,7 +91,7 @@ func CreateGetUserMFAInfoRequest() (request *GetUserMFAInfoRequest) {
 	request = &GetUserMFAInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "GetUserMFAInfo", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "GetUserMFAInfo", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_access_keys.go

@@ -91,7 +91,7 @@ func CreateListAccessKeysRequest() (request *ListAccessKeysRequest) {
 	request = &ListAccessKeysRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListAccessKeys", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListAccessKeys", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_entities_for_policy.go

@@ -94,7 +94,7 @@ func CreateListEntitiesForPolicyRequest() (request *ListEntitiesForPolicyRequest
 	request = &ListEntitiesForPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListEntitiesForPolicy", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListEntitiesForPolicy", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_groups.go

@@ -94,7 +94,7 @@ func CreateListGroupsRequest() (request *ListGroupsRequest) {
 	request = &ListGroupsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListGroups", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListGroups", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_groups_for_user.go

@@ -91,7 +91,7 @@ func CreateListGroupsForUserRequest() (request *ListGroupsForUserRequest) {
 	request = &ListGroupsForUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListGroupsForUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListGroupsForUser", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_policies.go

@@ -95,7 +95,7 @@ func CreateListPoliciesRequest() (request *ListPoliciesRequest) {
 	request = &ListPoliciesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListPolicies", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListPolicies", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_policies_for_group.go

@@ -91,7 +91,7 @@ func CreateListPoliciesForGroupRequest() (request *ListPoliciesForGroupRequest)
 	request = &ListPoliciesForGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForGroup", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_policies_for_role.go

@@ -91,7 +91,7 @@ func CreateListPoliciesForRoleRequest() (request *ListPoliciesForRoleRequest) {
 	request = &ListPoliciesForRoleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForRole", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForRole", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_policies_for_user.go

@@ -91,7 +91,7 @@ func CreateListPoliciesForUserRequest() (request *ListPoliciesForUserRequest) {
 	request = &ListPoliciesForUserRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForUser", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListPoliciesForUser", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_policy_versions.go

@@ -92,7 +92,7 @@ func CreateListPolicyVersionsRequest() (request *ListPolicyVersionsRequest) {
 	request = &ListPolicyVersionsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListPolicyVersions", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListPolicyVersions", "Ram", "openAPI")
 	return
 }
 

+ 0 - 104
services/ram/list_public_keys.go

@@ -1,104 +0,0 @@
-package ram
-
-//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"
-)
-
-// ListPublicKeys invokes the ram.ListPublicKeys API synchronously
-// api document: https://help.aliyun.com/api/ram/listpublickeys.html
-func (client *Client) ListPublicKeys(request *ListPublicKeysRequest) (response *ListPublicKeysResponse, err error) {
-	response = CreateListPublicKeysResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ListPublicKeysWithChan invokes the ram.ListPublicKeys API asynchronously
-// api document: https://help.aliyun.com/api/ram/listpublickeys.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ListPublicKeysWithChan(request *ListPublicKeysRequest) (<-chan *ListPublicKeysResponse, <-chan error) {
-	responseChan := make(chan *ListPublicKeysResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ListPublicKeys(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ListPublicKeysWithCallback invokes the ram.ListPublicKeys API asynchronously
-// api document: https://help.aliyun.com/api/ram/listpublickeys.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ListPublicKeysWithCallback(request *ListPublicKeysRequest, callback func(response *ListPublicKeysResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ListPublicKeysResponse
-		var err error
-		defer close(result)
-		response, err = client.ListPublicKeys(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ListPublicKeysRequest is the request struct for api ListPublicKeys
-type ListPublicKeysRequest struct {
-	*requests.RpcRequest
-	UserName string `position:"Query" name:"UserName"`
-}
-
-// ListPublicKeysResponse is the response struct for api ListPublicKeys
-type ListPublicKeysResponse struct {
-	*responses.BaseResponse
-	RequestId  string     `json:"RequestId" xml:"RequestId"`
-	PublicKeys PublicKeys `json:"PublicKeys" xml:"PublicKeys"`
-}
-
-// CreateListPublicKeysRequest creates a request to invoke ListPublicKeys API
-func CreateListPublicKeysRequest() (request *ListPublicKeysRequest) {
-	request = &ListPublicKeysRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListPublicKeys", "", "")
-	return
-}
-
-// CreateListPublicKeysResponse creates a response to parse from ListPublicKeys response
-func CreateListPublicKeysResponse() (response *ListPublicKeysResponse) {
-	response = &ListPublicKeysResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/ram/list_roles.go

@@ -94,7 +94,7 @@ func CreateListRolesRequest() (request *ListRolesRequest) {
 	request = &ListRolesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListRoles", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListRoles", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_users.go

@@ -94,7 +94,7 @@ func CreateListUsersRequest() (request *ListUsersRequest) {
 	request = &ListUsersRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListUsers", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListUsers", "Ram", "openAPI")
 	return
 }
 

+ 2 - 2
services/ram/list_users_for_group.go

@@ -76,9 +76,9 @@ func (client *Client) ListUsersForGroupWithCallback(request *ListUsersForGroupRe
 // ListUsersForGroupRequest is the request struct for api ListUsersForGroup
 type ListUsersForGroupRequest struct {
 	*requests.RpcRequest
+	GroupName string           `position:"Query" name:"GroupName"`
 	Marker    string           `position:"Query" name:"Marker"`
 	MaxItems  requests.Integer `position:"Query" name:"MaxItems"`
-	GroupName string           `position:"Query" name:"GroupName"`
 }
 
 // ListUsersForGroupResponse is the response struct for api ListUsersForGroup
@@ -95,7 +95,7 @@ func CreateListUsersForGroupRequest() (request *ListUsersForGroupRequest) {
 	request = &ListUsersForGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListUsersForGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListUsersForGroup", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/list_virtual_mfa_devices.go

@@ -90,7 +90,7 @@ func CreateListVirtualMFADevicesRequest() (request *ListVirtualMFADevicesRequest
 	request = &ListVirtualMFADevicesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "ListVirtualMFADevices", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "ListVirtualMFADevices", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/remove_user_from_group.go

@@ -91,7 +91,7 @@ func CreateRemoveUserFromGroupRequest() (request *RemoveUserFromGroupRequest) {
 	request = &RemoveUserFromGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "RemoveUserFromGroup", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "RemoveUserFromGroup", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/set_account_alias.go

@@ -90,7 +90,7 @@ func CreateSetAccountAliasRequest() (request *SetAccountAliasRequest) {
 	request = &SetAccountAliasRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "SetAccountAlias", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "SetAccountAlias", "Ram", "openAPI")
 	return
 }
 

+ 1 - 1
services/ram/set_default_policy_version.go

@@ -91,7 +91,7 @@ func CreateSetDefaultPolicyVersionRequest() (request *SetDefaultPolicyVersionReq
 	request = &SetDefaultPolicyVersionRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "SetDefaultPolicyVersion", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "SetDefaultPolicyVersion", "Ram", "openAPI")
 	return
 }
 

+ 6 - 6
services/ram/set_password_policy.go

@@ -76,22 +76,22 @@ func (client *Client) SetPasswordPolicyWithCallback(request *SetPasswordPolicyRe
 // SetPasswordPolicyRequest is the request struct for api SetPasswordPolicy
 type SetPasswordPolicyRequest struct {
 	*requests.RpcRequest
-	RequireNumbers             requests.Boolean `position:"Query" name:"RequireNumbers"`
 	PasswordReusePrevention    requests.Integer `position:"Query" name:"PasswordReusePrevention"`
 	RequireUppercaseCharacters requests.Boolean `position:"Query" name:"RequireUppercaseCharacters"`
+	MinimumPasswordLength      requests.Integer `position:"Query" name:"MinimumPasswordLength"`
+	RequireNumbers             requests.Boolean `position:"Query" name:"RequireNumbers"`
+	RequireLowercaseCharacters requests.Boolean `position:"Query" name:"RequireLowercaseCharacters"`
 	MaxPasswordAge             requests.Integer `position:"Query" name:"MaxPasswordAge"`
 	MaxLoginAttemps            requests.Integer `position:"Query" name:"MaxLoginAttemps"`
 	HardExpiry                 requests.Boolean `position:"Query" name:"HardExpiry"`
-	MinimumPasswordLength      requests.Integer `position:"Query" name:"MinimumPasswordLength"`
-	RequireLowercaseCharacters requests.Boolean `position:"Query" name:"RequireLowercaseCharacters"`
 	RequireSymbols             requests.Boolean `position:"Query" name:"RequireSymbols"`
 }
 
 // SetPasswordPolicyResponse is the response struct for api SetPasswordPolicy
 type SetPasswordPolicyResponse struct {
 	*responses.BaseResponse
-	RequestId      string         `json:"RequestId" xml:"RequestId"`
-	PasswordPolicy PasswordPolicy `json:"PasswordPolicy" xml:"PasswordPolicy"`
+	RequestId      string                            `json:"RequestId" xml:"RequestId"`
+	PasswordPolicy PasswordPolicyInSetPasswordPolicy `json:"PasswordPolicy" xml:"PasswordPolicy"`
 }
 
 // CreateSetPasswordPolicyRequest creates a request to invoke SetPasswordPolicy API
@@ -99,7 +99,7 @@ func CreateSetPasswordPolicyRequest() (request *SetPasswordPolicyRequest) {
 	request = &SetPasswordPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "SetPasswordPolicy", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "SetPasswordPolicy", "Ram", "openAPI")
 	return
 }
 

+ 6 - 6
services/ram/set_security_preference.go

@@ -76,20 +76,20 @@ func (client *Client) SetSecurityPreferenceWithCallback(request *SetSecurityPref
 // SetSecurityPreferenceRequest is the request struct for api SetSecurityPreference
 type SetSecurityPreferenceRequest struct {
 	*requests.RpcRequest
-	AllowUserToManageAccessKeys requests.Boolean `position:"Query" name:"AllowUserToManageAccessKeys"`
-	AllowUserToManageMFADevices requests.Boolean `position:"Query" name:"AllowUserToManageMFADevices"`
-	AllowUserToManagePublicKeys requests.Boolean `position:"Query" name:"AllowUserToManagePublicKeys"`
 	EnableSaveMFATicket         requests.Boolean `position:"Query" name:"EnableSaveMFATicket"`
 	LoginNetworkMasks           string           `position:"Query" name:"LoginNetworkMasks"`
 	AllowUserToChangePassword   requests.Boolean `position:"Query" name:"AllowUserToChangePassword"`
+	AllowUserToManagePublicKeys requests.Boolean `position:"Query" name:"AllowUserToManagePublicKeys"`
 	LoginSessionDuration        requests.Integer `position:"Query" name:"LoginSessionDuration"`
+	AllowUserToManageAccessKeys requests.Boolean `position:"Query" name:"AllowUserToManageAccessKeys"`
+	AllowUserToManageMFADevices requests.Boolean `position:"Query" name:"AllowUserToManageMFADevices"`
 }
 
 // SetSecurityPreferenceResponse is the response struct for api SetSecurityPreference
 type SetSecurityPreferenceResponse struct {
 	*responses.BaseResponse
-	RequestId          string             `json:"RequestId" xml:"RequestId"`
-	SecurityPreference SecurityPreference `json:"SecurityPreference" xml:"SecurityPreference"`
+	RequestId          string                                    `json:"RequestId" xml:"RequestId"`
+	SecurityPreference SecurityPreferenceInSetSecurityPreference `json:"SecurityPreference" xml:"SecurityPreference"`
 }
 
 // CreateSetSecurityPreferenceRequest creates a request to invoke SetSecurityPreference API
@@ -97,7 +97,7 @@ func CreateSetSecurityPreferenceRequest() (request *SetSecurityPreferenceRequest
 	request = &SetSecurityPreferenceRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Ram", "2015-05-01", "SetSecurityPreference", "", "")
+	request.InitWithApiInfo("Ram", "2015-05-01", "SetSecurityPreference", "Ram", "openAPI")
 	return
 }
 

+ 4 - 4
services/ram/struct_access_key.go → services/ram/struct_access_key_in_create_access_key.go

@@ -15,10 +15,10 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// AccessKey is a nested struct in ram response
-type AccessKey struct {
+// AccessKeyInCreateAccessKey is a nested struct in ram response
+type AccessKeyInCreateAccessKey struct {
+	AccessKeyId     string `json:"AccessKeyId" xml:"AccessKeyId"`
 	AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"`
-	CreateDate      string `json:"CreateDate" xml:"CreateDate"`
 	Status          string `json:"Status" xml:"Status"`
-	AccessKeyId     string `json:"AccessKeyId" xml:"AccessKeyId"`
+	CreateDate      string `json:"CreateDate" xml:"CreateDate"`
 }

+ 23 - 0
services/ram/struct_access_key_in_list_access_keys.go

@@ -0,0 +1,23 @@
+package ram
+
+//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.
+
+// AccessKeyInListAccessKeys is a nested struct in ram response
+type AccessKeyInListAccessKeys struct {
+	AccessKeyId string `json:"AccessKeyId" xml:"AccessKeyId"`
+	Status      string `json:"Status" xml:"Status"`
+	CreateDate  string `json:"CreateDate" xml:"CreateDate"`
+}

+ 2 - 2
services/ram/struct_access_key_preference.go → services/ram/struct_access_key_preference_in_get_security_preference.go

@@ -15,7 +15,7 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// AccessKeyPreference is a nested struct in ram response
-type AccessKeyPreference struct {
+// AccessKeyPreferenceInGetSecurityPreference is a nested struct in ram response
+type AccessKeyPreferenceInGetSecurityPreference struct {
 	AllowUserToManageAccessKeys bool `json:"AllowUserToManageAccessKeys" xml:"AllowUserToManageAccessKeys"`
 }

+ 21 - 0
services/ram/struct_access_key_preference_in_set_security_preference.go

@@ -0,0 +1,21 @@
+package ram
+
+//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.
+
+// AccessKeyPreferenceInSetSecurityPreference is a nested struct in ram response
+type AccessKeyPreferenceInSetSecurityPreference struct {
+	AllowUserToManageAccessKeys bool `json:"AllowUserToManageAccessKeys" xml:"AllowUserToManageAccessKeys"`
+}

+ 1 - 1
services/ram/struct_access_keys.go

@@ -17,5 +17,5 @@ package ram
 
 // AccessKeys is a nested struct in ram response
 type AccessKeys struct {
-	AccessKey []AccessKey `json:"AccessKey" xml:"AccessKey"`
+	AccessKey []AccessKeyInListAccessKeys `json:"AccessKey" xml:"AccessKey"`
 }

+ 23 - 0
services/ram/struct_group_in_create_group.go

@@ -0,0 +1,23 @@
+package ram
+
+//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.
+
+// GroupInCreateGroup is a nested struct in ram response
+type GroupInCreateGroup struct {
+	GroupName  string `json:"GroupName" xml:"GroupName"`
+	Comments   string `json:"Comments" xml:"Comments"`
+	CreateDate string `json:"CreateDate" xml:"CreateDate"`
+}

+ 3 - 5
services/ram/struct_group.go → services/ram/struct_group_in_get_group.go

@@ -15,12 +15,10 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// Group is a nested struct in ram response
-type Group struct {
+// GroupInGetGroup is a nested struct in ram response
+type GroupInGetGroup struct {
+	GroupName  string `json:"GroupName" xml:"GroupName"`
 	Comments   string `json:"Comments" xml:"Comments"`
-	AttachDate string `json:"AttachDate" xml:"AttachDate"`
 	CreateDate string `json:"CreateDate" xml:"CreateDate"`
 	UpdateDate string `json:"UpdateDate" xml:"UpdateDate"`
-	GroupName  string `json:"GroupName" xml:"GroupName"`
-	JoinDate   string `json:"JoinDate" xml:"JoinDate"`
 }

+ 23 - 0
services/ram/struct_group_in_list_entities_for_policy.go

@@ -0,0 +1,23 @@
+package ram
+
+//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.
+
+// GroupInListEntitiesForPolicy is a nested struct in ram response
+type GroupInListEntitiesForPolicy struct {
+	GroupName  string `json:"GroupName" xml:"GroupName"`
+	Comments   string `json:"Comments" xml:"Comments"`
+	AttachDate string `json:"AttachDate" xml:"AttachDate"`
+}

+ 24 - 0
services/ram/struct_group_in_list_groups.go

@@ -0,0 +1,24 @@
+package ram
+
+//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.
+
+// GroupInListGroups is a nested struct in ram response
+type GroupInListGroups struct {
+	GroupName  string `json:"GroupName" xml:"GroupName"`
+	Comments   string `json:"Comments" xml:"Comments"`
+	CreateDate string `json:"CreateDate" xml:"CreateDate"`
+	UpdateDate string `json:"UpdateDate" xml:"UpdateDate"`
+}

+ 23 - 0
services/ram/struct_group_in_list_groups_for_user.go

@@ -0,0 +1,23 @@
+package ram
+
+//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.
+
+// GroupInListGroupsForUser is a nested struct in ram response
+type GroupInListGroupsForUser struct {
+	GroupName string `json:"GroupName" xml:"GroupName"`
+	Comments  string `json:"Comments" xml:"Comments"`
+	JoinDate  string `json:"JoinDate" xml:"JoinDate"`
+}

+ 24 - 0
services/ram/struct_group_in_update_group.go

@@ -0,0 +1,24 @@
+package ram
+
+//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.
+
+// GroupInUpdateGroup is a nested struct in ram response
+type GroupInUpdateGroup struct {
+	GroupName  string `json:"GroupName" xml:"GroupName"`
+	Comments   string `json:"Comments" xml:"Comments"`
+	CreateDate string `json:"CreateDate" xml:"CreateDate"`
+	UpdateDate string `json:"UpdateDate" xml:"UpdateDate"`
+}

+ 1 - 1
services/ram/struct_groups_in_list_entities_for_policy.go

@@ -17,5 +17,5 @@ package ram
 
 // GroupsInListEntitiesForPolicy is a nested struct in ram response
 type GroupsInListEntitiesForPolicy struct {
-	Group []Group `json:"Group" xml:"Group"`
+	Group []GroupInListEntitiesForPolicy `json:"Group" xml:"Group"`
 }

+ 1 - 1
services/ram/struct_groups_in_list_groups.go

@@ -17,5 +17,5 @@ package ram
 
 // GroupsInListGroups is a nested struct in ram response
 type GroupsInListGroups struct {
-	Group []Group `json:"Group" xml:"Group"`
+	Group []GroupInListGroups `json:"Group" xml:"Group"`
 }

+ 1 - 1
services/ram/struct_groups_in_list_groups_for_user.go

@@ -17,5 +17,5 @@ package ram
 
 // GroupsInListGroupsForUser is a nested struct in ram response
 type GroupsInListGroupsForUser struct {
-	Group []Group `json:"Group" xml:"Group"`
+	Group []GroupInListGroupsForUser `json:"Group" xml:"Group"`
 }

+ 24 - 0
services/ram/struct_login_profile_in_create_login_profile.go

@@ -0,0 +1,24 @@
+package ram
+
+//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.
+
+// LoginProfileInCreateLoginProfile is a nested struct in ram response
+type LoginProfileInCreateLoginProfile struct {
+	UserName              string `json:"UserName" xml:"UserName"`
+	PasswordResetRequired bool   `json:"PasswordResetRequired" xml:"PasswordResetRequired"`
+	MFABindRequired       bool   `json:"MFABindRequired" xml:"MFABindRequired"`
+	CreateDate            string `json:"CreateDate" xml:"CreateDate"`
+}

+ 4 - 4
services/ram/struct_login_profile.go → services/ram/struct_login_profile_in_get_login_profile.go

@@ -15,10 +15,10 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// LoginProfile is a nested struct in ram response
-type LoginProfile struct {
-	MFABindRequired       bool   `json:"MFABindRequired" xml:"MFABindRequired"`
-	CreateDate            string `json:"CreateDate" xml:"CreateDate"`
+// LoginProfileInGetLoginProfile is a nested struct in ram response
+type LoginProfileInGetLoginProfile struct {
 	UserName              string `json:"UserName" xml:"UserName"`
 	PasswordResetRequired bool   `json:"PasswordResetRequired" xml:"PasswordResetRequired"`
+	MFABindRequired       bool   `json:"MFABindRequired" xml:"MFABindRequired"`
+	CreateDate            string `json:"CreateDate" xml:"CreateDate"`
 }

+ 4 - 4
services/ram/struct_login_profile_preference.go → services/ram/struct_login_profile_preference_in_get_security_preference.go

@@ -15,10 +15,10 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// LoginProfilePreference is a nested struct in ram response
-type LoginProfilePreference struct {
-	LoginNetworkMasks         string `json:"LoginNetworkMasks" xml:"LoginNetworkMasks"`
-	LoginSessionDuration      int    `json:"LoginSessionDuration" xml:"LoginSessionDuration"`
+// LoginProfilePreferenceInGetSecurityPreference is a nested struct in ram response
+type LoginProfilePreferenceInGetSecurityPreference struct {
 	EnableSaveMFATicket       bool   `json:"EnableSaveMFATicket" xml:"EnableSaveMFATicket"`
 	AllowUserToChangePassword bool   `json:"AllowUserToChangePassword" xml:"AllowUserToChangePassword"`
+	LoginSessionDuration      int    `json:"LoginSessionDuration" xml:"LoginSessionDuration"`
+	LoginNetworkMasks         string `json:"LoginNetworkMasks" xml:"LoginNetworkMasks"`
 }

+ 24 - 0
services/ram/struct_login_profile_preference_in_set_security_preference.go

@@ -0,0 +1,24 @@
+package ram
+
+//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.
+
+// LoginProfilePreferenceInSetSecurityPreference is a nested struct in ram response
+type LoginProfilePreferenceInSetSecurityPreference struct {
+	EnableSaveMFATicket       bool   `json:"EnableSaveMFATicket" xml:"EnableSaveMFATicket"`
+	AllowUserToChangePassword bool   `json:"AllowUserToChangePassword" xml:"AllowUserToChangePassword"`
+	LoginSessionDuration      int    `json:"LoginSessionDuration" xml:"LoginSessionDuration"`
+	LoginNetworkMasks         string `json:"LoginNetworkMasks" xml:"LoginNetworkMasks"`
+}

+ 2 - 2
services/ram/struct_mfa_device.go → services/ram/struct_mfa_device_in_get_user_mfa_info.go

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

+ 3 - 3
services/ram/struct_public_keys.go → services/ram/struct_mfa_device_in_unbind_mfa_device.go

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

+ 2 - 2
services/ram/struct_mfa_preference.go → services/ram/struct_mfa_preference_in_get_security_preference.go

@@ -15,7 +15,7 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// MFAPreference is a nested struct in ram response
-type MFAPreference struct {
+// MFAPreferenceInGetSecurityPreference is a nested struct in ram response
+type MFAPreferenceInGetSecurityPreference struct {
 	AllowUserToManageMFADevices bool `json:"AllowUserToManageMFADevices" xml:"AllowUserToManageMFADevices"`
 }

+ 21 - 0
services/ram/struct_mfa_preference_in_set_security_preference.go

@@ -0,0 +1,21 @@
+package ram
+
+//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.
+
+// MFAPreferenceInSetSecurityPreference is a nested struct in ram response
+type MFAPreferenceInSetSecurityPreference struct {
+	AllowUserToManageMFADevices bool `json:"AllowUserToManageMFADevices" xml:"AllowUserToManageMFADevices"`
+}

+ 7 - 7
services/ram/struct_password_policy.go → services/ram/struct_password_policy_in_get_password_policy.go

@@ -15,15 +15,15 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// PasswordPolicy is a nested struct in ram response
-type PasswordPolicy struct {
+// PasswordPolicyInGetPasswordPolicy is a nested struct in ram response
+type PasswordPolicyInGetPasswordPolicy struct {
+	MinimumPasswordLength      int  `json:"MinimumPasswordLength" xml:"MinimumPasswordLength"`
+	RequireLowercaseCharacters bool `json:"RequireLowercaseCharacters" xml:"RequireLowercaseCharacters"`
 	RequireUppercaseCharacters bool `json:"RequireUppercaseCharacters" xml:"RequireUppercaseCharacters"`
-	MaxPasswordAge             int  `json:"MaxPasswordAge" xml:"MaxPasswordAge"`
+	RequireNumbers             bool `json:"RequireNumbers" xml:"RequireNumbers"`
 	RequireSymbols             bool `json:"RequireSymbols" xml:"RequireSymbols"`
-	RequireLowercaseCharacters bool `json:"RequireLowercaseCharacters" xml:"RequireLowercaseCharacters"`
-	PasswordReusePrevention    int  `json:"PasswordReusePrevention" xml:"PasswordReusePrevention"`
 	HardExpiry                 bool `json:"HardExpiry" xml:"HardExpiry"`
+	MaxPasswordAge             int  `json:"MaxPasswordAge" xml:"MaxPasswordAge"`
+	PasswordReusePrevention    int  `json:"PasswordReusePrevention" xml:"PasswordReusePrevention"`
 	MaxLoginAttemps            int  `json:"MaxLoginAttemps" xml:"MaxLoginAttemps"`
-	MinimumPasswordLength      int  `json:"MinimumPasswordLength" xml:"MinimumPasswordLength"`
-	RequireNumbers             bool `json:"RequireNumbers" xml:"RequireNumbers"`
 }

+ 29 - 0
services/ram/struct_password_policy_in_set_password_policy.go

@@ -0,0 +1,29 @@
+package ram
+
+//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.
+
+// PasswordPolicyInSetPasswordPolicy is a nested struct in ram response
+type PasswordPolicyInSetPasswordPolicy struct {
+	MinimumPasswordLength      int  `json:"MinimumPasswordLength" xml:"MinimumPasswordLength"`
+	RequireLowercaseCharacters bool `json:"RequireLowercaseCharacters" xml:"RequireLowercaseCharacters"`
+	RequireUppercaseCharacters bool `json:"RequireUppercaseCharacters" xml:"RequireUppercaseCharacters"`
+	RequireNumbers             bool `json:"RequireNumbers" xml:"RequireNumbers"`
+	RequireSymbols             bool `json:"RequireSymbols" xml:"RequireSymbols"`
+	HardExpiry                 bool `json:"HardExpiry" xml:"HardExpiry"`
+	MaxPasswordAge             int  `json:"MaxPasswordAge" xml:"MaxPasswordAge"`
+	PasswordReusePrevention    int  `json:"PasswordReusePrevention" xml:"PasswordReusePrevention"`
+	MaxLoginAttemps            int  `json:"MaxLoginAttemps" xml:"MaxLoginAttemps"`
+}

+ 1 - 1
services/ram/struct_policies_in_list_policies.go

@@ -17,5 +17,5 @@ package ram
 
 // PoliciesInListPolicies is a nested struct in ram response
 type PoliciesInListPolicies struct {
-	Policy []Policy `json:"Policy" xml:"Policy"`
+	Policy []PolicyInListPolicies `json:"Policy" xml:"Policy"`
 }

+ 1 - 1
services/ram/struct_policies_in_list_policies_for_group.go

@@ -17,5 +17,5 @@ package ram
 
 // PoliciesInListPoliciesForGroup is a nested struct in ram response
 type PoliciesInListPoliciesForGroup struct {
-	Policy []Policy `json:"Policy" xml:"Policy"`
+	Policy []PolicyInListPoliciesForGroup `json:"Policy" xml:"Policy"`
 }

+ 1 - 1
services/ram/struct_policies_in_list_policies_for_role.go

@@ -17,5 +17,5 @@ package ram
 
 // PoliciesInListPoliciesForRole is a nested struct in ram response
 type PoliciesInListPoliciesForRole struct {
-	Policy []Policy `json:"Policy" xml:"Policy"`
+	Policy []PolicyInListPoliciesForRole `json:"Policy" xml:"Policy"`
 }

+ 1 - 1
services/ram/struct_policies_in_list_policies_for_user.go

@@ -17,5 +17,5 @@ package ram
 
 // PoliciesInListPoliciesForUser is a nested struct in ram response
 type PoliciesInListPoliciesForUser struct {
-	Policy []Policy `json:"Policy" xml:"Policy"`
+	Policy []PolicyInListPoliciesForUser `json:"Policy" xml:"Policy"`
 }

+ 25 - 0
services/ram/struct_policy_in_create_policy.go

@@ -0,0 +1,25 @@
+package ram
+
+//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.
+
+// PolicyInCreatePolicy is a nested struct in ram response
+type PolicyInCreatePolicy struct {
+	PolicyName     string `json:"PolicyName" xml:"PolicyName"`
+	PolicyType     string `json:"PolicyType" xml:"PolicyType"`
+	Description    string `json:"Description" xml:"Description"`
+	DefaultVersion string `json:"DefaultVersion" xml:"DefaultVersion"`
+	CreateDate     string `json:"CreateDate" xml:"CreateDate"`
+}

+ 6 - 7
services/ram/struct_policy.go → services/ram/struct_policy_in_get_policy.go

@@ -15,15 +15,14 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// Policy is a nested struct in ram response
-type Policy struct {
+// PolicyInGetPolicy is a nested struct in ram response
+type PolicyInGetPolicy struct {
+	PolicyName      string `json:"PolicyName" xml:"PolicyName"`
+	PolicyType      string `json:"PolicyType" xml:"PolicyType"`
+	Description     string `json:"Description" xml:"Description"`
+	DefaultVersion  string `json:"DefaultVersion" xml:"DefaultVersion"`
 	PolicyDocument  string `json:"PolicyDocument" xml:"PolicyDocument"`
-	AttachDate      string `json:"AttachDate" xml:"AttachDate"`
 	CreateDate      string `json:"CreateDate" xml:"CreateDate"`
-	PolicyType      string `json:"PolicyType" xml:"PolicyType"`
 	UpdateDate      string `json:"UpdateDate" xml:"UpdateDate"`
 	AttachmentCount int    `json:"AttachmentCount" xml:"AttachmentCount"`
-	PolicyName      string `json:"PolicyName" xml:"PolicyName"`
-	DefaultVersion  string `json:"DefaultVersion" xml:"DefaultVersion"`
-	Description     string `json:"Description" xml:"Description"`
 }

+ 27 - 0
services/ram/struct_policy_in_list_policies.go

@@ -0,0 +1,27 @@
+package ram
+
+//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.
+
+// PolicyInListPolicies is a nested struct in ram response
+type PolicyInListPolicies struct {
+	PolicyName      string `json:"PolicyName" xml:"PolicyName"`
+	PolicyType      string `json:"PolicyType" xml:"PolicyType"`
+	Description     string `json:"Description" xml:"Description"`
+	DefaultVersion  string `json:"DefaultVersion" xml:"DefaultVersion"`
+	CreateDate      string `json:"CreateDate" xml:"CreateDate"`
+	UpdateDate      string `json:"UpdateDate" xml:"UpdateDate"`
+	AttachmentCount int    `json:"AttachmentCount" xml:"AttachmentCount"`
+}

+ 25 - 0
services/ram/struct_policy_in_list_policies_for_group.go

@@ -0,0 +1,25 @@
+package ram
+
+//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.
+
+// PolicyInListPoliciesForGroup is a nested struct in ram response
+type PolicyInListPoliciesForGroup struct {
+	PolicyName     string `json:"PolicyName" xml:"PolicyName"`
+	PolicyType     string `json:"PolicyType" xml:"PolicyType"`
+	Description    string `json:"Description" xml:"Description"`
+	DefaultVersion string `json:"DefaultVersion" xml:"DefaultVersion"`
+	AttachDate     string `json:"AttachDate" xml:"AttachDate"`
+}

+ 25 - 0
services/ram/struct_policy_in_list_policies_for_role.go

@@ -0,0 +1,25 @@
+package ram
+
+//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.
+
+// PolicyInListPoliciesForRole is a nested struct in ram response
+type PolicyInListPoliciesForRole struct {
+	PolicyName     string `json:"PolicyName" xml:"PolicyName"`
+	PolicyType     string `json:"PolicyType" xml:"PolicyType"`
+	Description    string `json:"Description" xml:"Description"`
+	DefaultVersion string `json:"DefaultVersion" xml:"DefaultVersion"`
+	AttachDate     string `json:"AttachDate" xml:"AttachDate"`
+}

+ 25 - 0
services/ram/struct_policy_in_list_policies_for_user.go

@@ -0,0 +1,25 @@
+package ram
+
+//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.
+
+// PolicyInListPoliciesForUser is a nested struct in ram response
+type PolicyInListPoliciesForUser struct {
+	PolicyName     string `json:"PolicyName" xml:"PolicyName"`
+	PolicyType     string `json:"PolicyType" xml:"PolicyType"`
+	Description    string `json:"Description" xml:"Description"`
+	DefaultVersion string `json:"DefaultVersion" xml:"DefaultVersion"`
+	AttachDate     string `json:"AttachDate" xml:"AttachDate"`
+}

+ 24 - 0
services/ram/struct_policy_version_in_create_policy_version.go

@@ -0,0 +1,24 @@
+package ram
+
+//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.
+
+// PolicyVersionInCreatePolicyVersion is a nested struct in ram response
+type PolicyVersionInCreatePolicyVersion struct {
+	VersionId        string `json:"VersionId" xml:"VersionId"`
+	IsDefaultVersion bool   `json:"IsDefaultVersion" xml:"IsDefaultVersion"`
+	PolicyDocument   string `json:"PolicyDocument" xml:"PolicyDocument"`
+	CreateDate       string `json:"CreateDate" xml:"CreateDate"`
+}

+ 3 - 3
services/ram/struct_policy_version.go → services/ram/struct_policy_version_in_get_policy_version.go

@@ -15,10 +15,10 @@ package ram
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// PolicyVersion is a nested struct in ram response
-type PolicyVersion struct {
+// PolicyVersionInGetPolicyVersion is a nested struct in ram response
+type PolicyVersionInGetPolicyVersion struct {
 	VersionId        string `json:"VersionId" xml:"VersionId"`
+	IsDefaultVersion bool   `json:"IsDefaultVersion" xml:"IsDefaultVersion"`
 	PolicyDocument   string `json:"PolicyDocument" xml:"PolicyDocument"`
 	CreateDate       string `json:"CreateDate" xml:"CreateDate"`
-	IsDefaultVersion bool   `json:"IsDefaultVersion" xml:"IsDefaultVersion"`
 }

+ 24 - 0
services/ram/struct_policy_version_in_list_policy_versions.go

@@ -0,0 +1,24 @@
+package ram
+
+//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.
+
+// PolicyVersionInListPolicyVersions is a nested struct in ram response
+type PolicyVersionInListPolicyVersions struct {
+	VersionId        string `json:"VersionId" xml:"VersionId"`
+	IsDefaultVersion bool   `json:"IsDefaultVersion" xml:"IsDefaultVersion"`
+	PolicyDocument   string `json:"PolicyDocument" xml:"PolicyDocument"`
+	CreateDate       string `json:"CreateDate" xml:"CreateDate"`
+}

+ 1 - 1
services/ram/struct_policy_versions.go

@@ -17,5 +17,5 @@ package ram
 
 // PolicyVersions is a nested struct in ram response
 type PolicyVersions struct {
-	PolicyVersion []PolicyVersion `json:"PolicyVersion" xml:"PolicyVersion"`
+	PolicyVersion []PolicyVersionInListPolicyVersions `json:"PolicyVersion" xml:"PolicyVersion"`
 }

+ 0 - 24
services/ram/struct_public_key.go

@@ -1,24 +0,0 @@
-package ram
-
-//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.
-
-// PublicKey is a nested struct in ram response
-type PublicKey struct {
-	CreateDate    string `json:"CreateDate" xml:"CreateDate"`
-	PublicKeyId   string `json:"PublicKeyId" xml:"PublicKeyId"`
-	Status        string `json:"Status" xml:"Status"`
-	PublicKeySpec string `json:"PublicKeySpec" xml:"PublicKeySpec"`
-}

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů