// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class GetPolicyVersionResponseBodyPolicyVersion extends $dara.Model { /** * @remarks * The creation time. * * @example * 2015-01-23T12:33:18Z */ createDate?: string; /** * @remarks * Indicates whether the policy version is the default version. * * @example * false */ isDefaultVersion?: boolean; /** * @remarks * The document of the policy. * * @example * { "Statement": [{ "Action": ["oss:*"], "Effect": "Allow", "Resource": ["acs:oss:*:*:*"]}], "Version": "1"} */ policyDocument?: string; /** * @remarks * The ID of the policy version. * * @example * v3 */ versionId?: string; static names(): { [key: string]: string } { return { createDate: 'CreateDate', isDefaultVersion: 'IsDefaultVersion', policyDocument: 'PolicyDocument', versionId: 'VersionId', }; } static types(): { [key: string]: any } { return { createDate: 'string', isDefaultVersion: 'boolean', policyDocument: 'string', versionId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetPolicyVersionResponseBody extends $dara.Model { /** * @remarks * The information about the policy version. */ policyVersion?: GetPolicyVersionResponseBodyPolicyVersion; /** * @remarks * The request ID. * * @example * 9B34724D-54B0-4A51-B34D-4512372FE1BE */ requestId?: string; static names(): { [key: string]: string } { return { policyVersion: 'PolicyVersion', requestId: 'RequestId', }; } static types(): { [key: string]: any } { return { policyVersion: GetPolicyVersionResponseBodyPolicyVersion, requestId: 'string', }; } validate() { if(this.policyVersion && typeof (this.policyVersion as any).validate === 'function') { (this.policyVersion as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }