// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class SetDomainRequest extends $dara.Model { /** * @remarks * The environment which you can access by using the domain name. If you do not specify this parameter, the domain name can be used to access all environments. * * If you specify an environment, the domain name can be used to access only the specified environment. Valid values: * * * TEST * * PRE * * RELEASE * * If you want to use the domain name to access all environments, set this parameter to an empty string (""). * * @example * RELEASE */ bindStageName?: string; /** * @remarks * The network type of the domain name to be bound. Default value: INTERNET. Valid values: * * * INTERNET * * INTRANET. If you set this parameter to this value, the domain name cannot be used on the Internet. * * @example * INTERNET */ customDomainType?: string; /** * @remarks * The custom domain name. * * This parameter is required. * * @example * api.demo.com */ domainName?: string; /** * @remarks * The ID of the API group. This ID is generated by the system and globally unique. * * This parameter is required. * * @example * 927d50c0f2e54b359919923d908bb015 */ groupId?: string; /** * @remarks * Specifies whether this binding relationship takes precedence over the binding relationships between the domain name and other API groups. If you set this parameter to true, this binding relationship takes precedence, and the domain name is automatically unbound from other API groups. This operation brings risks. Proceed with caution. * * @example * false */ isForce?: boolean; /** * @remarks * Specifies whether to redirect HTTP requests to HTTPS requests. * * @example * false */ isHttpRedirectToHttps?: boolean; static names(): { [key: string]: string } { return { bindStageName: 'BindStageName', customDomainType: 'CustomDomainType', domainName: 'DomainName', groupId: 'GroupId', isForce: 'IsForce', isHttpRedirectToHttps: 'IsHttpRedirectToHttps', }; } static types(): { [key: string]: any } { return { bindStageName: 'string', customDomainType: 'string', domainName: 'string', groupId: 'string', isForce: 'boolean', isHttpRedirectToHttps: 'boolean', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }