// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class CreateServiceRequestTags extends $dara.Model { /** * @remarks * The tag key. * * @example * env */ key?: string; /** * @remarks * The tag value. * * @example * prod */ value?: string; static names(): { [key: string]: string } { return { key: 'key', value: 'value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateServiceRequest extends $dara.Model { /** * @remarks * The extended attributes. * * @example * {"language":"java"} */ attributes?: string; /** * @remarks * The service description. This parameter is valid only when serviceType is set to RUM. * * @example * Mag test application */ description?: string; /** * @remarks * The display name. This parameter is valid only when serviceType is set to RUM. * * @example * Mag test application */ displayName?: string; /** * @remarks * The application ID. Generally, you do not need to specify this parameter. * * @example * bx3udsi5ie@ed2ba6beebdb6de */ pid?: string; /** * @remarks * The resource group ID. * * @example * rg-xxxxxxx */ resourceGroupId?: string; /** * @remarks * The service name. * * This parameter is required. * * @example * mag_test */ serviceName?: string; /** * @remarks * The service status. You do not need to specify this parameter when creating a service. * * @example * Created */ serviceStatus?: string; /** * @remarks * The service type. * * This parameter is required. * * @example * TRACE */ serviceType?: string; /** * @remarks * The tags. */ tags?: CreateServiceRequestTags[]; static names(): { [key: string]: string } { return { attributes: 'attributes', description: 'description', displayName: 'displayName', pid: 'pid', resourceGroupId: 'resourceGroupId', serviceName: 'serviceName', serviceStatus: 'serviceStatus', serviceType: 'serviceType', tags: 'tags', }; } static types(): { [key: string]: any } { return { attributes: 'string', description: 'string', displayName: 'string', pid: 'string', resourceGroupId: 'string', serviceName: 'string', serviceStatus: 'string', serviceType: 'string', tags: { 'type': 'array', 'itemType': CreateServiceRequestTags }, }; } validate() { if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }