// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class GetRoleResponseBodyRole extends $dara.Model { /** * @remarks * The Alibaba Cloud Resource Name (ARN) of the RAM role. * * @example * acs:ram::123456789012****:role/ECSAdmin */ arn?: string; /** * @remarks * The policy that specifies the trusted entity to assume the RAM role. * * @example * { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "RAM": "acs:ram::123456789012****:root" } } ], "Version": "1" } */ assumeRolePolicyDocument?: string; /** * @remarks * The time when the RAM role was created. * * @example * 2015-01-23T12:33:18Z */ createDate?: string; /** * @remarks * The description of the RAM role. * * @example * ECS administrator */ description?: string; /** * @remarks * The maximum session duration of the RAM role. * * @example * 3600 */ maxSessionDuration?: number; /** * @remarks * The ID of the RAM role. * * @example * 901234567890**** */ roleId?: string; /** * @remarks * The name of the RAM role. * * @example * ECSAdmin */ roleName?: string; /** * @remarks * The time when the RAM role was modified. * * @example * 2015-01-23T12:33:18Z */ updateDate?: string; static names(): { [key: string]: string } { return { arn: 'Arn', assumeRolePolicyDocument: 'AssumeRolePolicyDocument', createDate: 'CreateDate', description: 'Description', maxSessionDuration: 'MaxSessionDuration', roleId: 'RoleId', roleName: 'RoleName', updateDate: 'UpdateDate', }; } static types(): { [key: string]: any } { return { arn: 'string', assumeRolePolicyDocument: 'string', createDate: 'string', description: 'string', maxSessionDuration: 'number', roleId: 'string', roleName: 'string', updateDate: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetRoleResponseBody extends $dara.Model { /** * @remarks * The request ID. * * @example * 04F0F334-1335-436C-A1D7-6C044FE73368 */ requestId?: string; /** * @remarks * The information about the RAM role. */ role?: GetRoleResponseBodyRole; static names(): { [key: string]: string } { return { requestId: 'RequestId', role: 'Role', }; } static types(): { [key: string]: any } { return { requestId: 'string', role: GetRoleResponseBodyRole, }; } validate() { if(this.role && typeof (this.role as any).validate === 'function') { (this.role as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }