// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; /** */ export class AddEntriesToAclRequestAclEntries extends $dara.Model { /** * @remarks * The description of the ACL entry. The description must be 2 to 256 characters in length, and can contain letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-). * * You can add at most 20 entries in each call. * * @example * test-entry */ description?: string; /** * @remarks * The CIDR block in the ACL entry. * * This parameter is required. * * @example * 10.0.1.0/24 */ entry?: string; static names(): { [key: string]: string } { return { description: 'Description', entry: 'Entry', }; } static types(): { [key: string]: any } { return { description: 'string', entry: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEntriesToAclRequest extends $dara.Model { /** * @remarks * The ACL entries that you want to add. You can add at most 20 entries in each call. * * This parameter is required. */ aclEntries?: AddEntriesToAclRequestAclEntries[]; /** * @remarks * The ID of the ACL. * * This parameter is required. * * @example * acl-hp34s2h0xx1ht4nwo**** */ aclId?: string; /** * @remarks * The client token that is used to ensure the idempotence of the request. * * You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. * * > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B3****** */ clientToken?: string; /** * @remarks * Specifies whether to perform only a dry run, without performing the actual request. Valid values: * * * **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. * * @example * false */ dryRun?: boolean; static names(): { [key: string]: string } { return { aclEntries: 'AclEntries', aclId: 'AclId', clientToken: 'ClientToken', dryRun: 'DryRun', }; } static types(): { [key: string]: any } { return { aclEntries: { 'type': 'array', 'itemType': AddEntriesToAclRequestAclEntries }, aclId: 'string', clientToken: 'string', dryRun: 'boolean', }; } validate() { if(Array.isArray(this.aclEntries)) { $dara.Model.validateArray(this.aclEntries); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }