// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class GetLivePackageChannelResponseBodyLivePackageChannelIngestEndpoints extends $dara.Model { /** * @remarks * The ingest endpoint ID. * * @example * ingest1 */ id?: string; /** * @remarks * The password. * * @example * 2F9e******b569c8 */ password?: string; /** * @remarks * The ingest endpoint URL. * * @example * http://xxx-1.packagepush-abcxxx.ap-southeast-1.aliyuncsiceintl.com/v1/group01/1/ch01/manifest */ url?: string; /** * @remarks * The username. * * @example * us12******das */ username?: string; static names(): { [key: string]: string } { return { id: 'Id', password: 'Password', url: 'Url', username: 'Username', }; } static types(): { [key: string]: any } { return { id: 'string', password: 'string', url: 'string', username: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetLivePackageChannelResponseBodyLivePackageChannel extends $dara.Model { /** * @remarks * The channel name. * * @example * ch4 */ channelName?: string; /** * @remarks * The time when the channel was created. * * @example * 2023-04-01T12:00:00Z */ createTime?: string; /** * @remarks * The channel description. */ description?: string; /** * @remarks * The channel group name. * * @example * channel-group-1 */ groupName?: string; /** * @remarks * The ingest endpoints. */ ingestEndpoints?: GetLivePackageChannelResponseBodyLivePackageChannelIngestEndpoints[]; /** * @remarks * The time when the endpoint was last modified. * * @example * 2023-04-01T12:00:00Z */ lastModified?: string; /** * @remarks * The ingest protocol. Only HLS is supported. * * @example * HLS */ protocol?: string; /** * @remarks * The number of M3U8 segments. * * @example * 3 */ segmentCount?: number; /** * @remarks * The segment duration. * * @example * 5 */ segmentDuration?: number; static names(): { [key: string]: string } { return { channelName: 'ChannelName', createTime: 'CreateTime', description: 'Description', groupName: 'GroupName', ingestEndpoints: 'IngestEndpoints', lastModified: 'LastModified', protocol: 'Protocol', segmentCount: 'SegmentCount', segmentDuration: 'SegmentDuration', }; } static types(): { [key: string]: any } { return { channelName: 'string', createTime: 'string', description: 'string', groupName: 'string', ingestEndpoints: { 'type': 'array', 'itemType': GetLivePackageChannelResponseBodyLivePackageChannelIngestEndpoints }, lastModified: 'string', protocol: 'string', segmentCount: 'number', segmentDuration: 'number', }; } validate() { if(Array.isArray(this.ingestEndpoints)) { $dara.Model.validateArray(this.ingestEndpoints); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetLivePackageChannelResponseBody extends $dara.Model { /** * @remarks * Details of the live package channel. */ livePackageChannel?: GetLivePackageChannelResponseBodyLivePackageChannel; /** * @remarks * The request ID. * * @example * RequestId-12345678 */ requestId?: string; static names(): { [key: string]: string } { return { livePackageChannel: 'LivePackageChannel', requestId: 'RequestId', }; } static types(): { [key: string]: any } { return { livePackageChannel: GetLivePackageChannelResponseBodyLivePackageChannel, requestId: 'string', }; } validate() { if(this.livePackageChannel && typeof (this.livePackageChannel as any).validate === 'function') { (this.livePackageChannel as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }