// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class AddIpControlPolicyItemRequest extends $dara.Model { /** * @remarks * The restriction policy on app IDs for a specific policy. You can restrict app IDs only for whitelists. The IpControlType values of whitelists are ALLOW. * * * You can add only one app ID restriction policy at a time. * * If this parameter is empty, no restriction is imposed on the app IDs. * * If this parameter is not empty, there is restriction not only on IP addresses, but also on apps. * * Please note that if this parameter is not empty and the security authentication method of the API is No Authentication, all API calls are restricted. * * If this parameter is not empty for a blacklist, API Gateway automatically skips this parameter and sets only restriction on IP addresses. The IpControlType value of a blacklist is REFUSE. * * @example * 1111111 */ appId?: string; /** * @remarks * The IP addresses or CIDR blocks involved in the policy. Separate multiple IP addresses or CIDR blocks with semicolons (;). You can specify a maximum of 10 IP addresses or CIDR blocks. * * This parameter is required. * * @example * 113.125.1.101;101.11.1.1 */ cidrIp?: string; /** * @remarks * The ID of the ACL. The ID is unique. * * This parameter is required. * * @example * 7ea91319a34d48a09b5c9c871d9768b1 */ ipControlId?: string; securityToken?: string; static names(): { [key: string]: string } { return { appId: 'AppId', cidrIp: 'CidrIp', ipControlId: 'IpControlId', securityToken: 'SecurityToken', }; } static types(): { [key: string]: any } { return { appId: 'string', cidrIp: 'string', ipControlId: 'string', securityToken: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }