UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
2,079 lines (1,741 loc) • 186 kB
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ const AbstractModel = require("../../common/abstract_model"); /** * DRM configure info. * @class */ class DRMInfo extends AbstractModel { constructor(){ super(); /** * Encryption method, optional values: `CBCS`, `CENC`. * @type {string || null} */ this.EncryptionMethod = null; /** * DRM system providers, when the encryption method is CBCS, the optional values are `PlayReady`, `Widevine`, `FairPlay`; when the encryption method is CENC, the oprional values are `PlayReady`, `Widevine`. * @type {Array.<string> || null} */ this.DRMSystems = null; /** * The resource ID sent to the key server. It can contain 1 to 128 characters, including numbers, letters, underscores (_), and hyphens (-). * @type {string || null} */ this.ResourceID = null; /** * Key server address; must start with https://. * @type {string || null} */ this.KeyServerUrl = null; /** * Video encryption presets, options: `Preset Video 1` - Encrypts all video tracks with one key `Preset Video 2` - Encrypts SD and HD video tracks with 2 different keys `Preset Video 3` - Encrypts SD, HD and UHD video tracks with 3 different keys `Preset Video 4` - Encrypts SD, HD, UHD1 and UHD2 video tracks with 4 different keys `Preset Video 5` - Encrypts SD, HD1, HD2, UHD1 and UHD2 video tracks with 5 different keys `Preset Video 6` - Encrypts SD, HD1, HD2, UHD video tracks with 4 different keys `Preset Video 7` - Encrypts SD + HD1, HD2, UHD video tracks with 3 different keys `Preset Video 8` - Encrypts SD + HD1, HD2, UHD1, UHD2 video tracks with 4 different keys `Shared` - Encrypts all video and audio tracks with one key `Unencrypted` - Does not encrypt any track * @type {string || null} */ this.VideoEncryptionPreset = null; /** * Audio encryption presets, options: `Preset Audio 1` - Encrypts all audio tracks with one key `Preset Audio 2` - Encrypts STEREO and MULTICHANNEL audio tracks with 2 different keys `Preset Audio 3` - Encrypts STEREO, MULTICHANNEL 3-6 and MULTICHANNEL 7 audio tracks with 3 different keys `Shared` - Encrypts all video and audio tracks with one key `Unencrypted` - Does not encrypt any track * @type {string || null} */ this.AudioEncryptionPreset = null; /** * Optional, used together with the key to encrypt the content; a 128-bit, 32-character, hexadecimal-encoded string. * @type {string || null} */ this.ConstantInitializationVector = null; /** * Optional, specifies the rotation interval in seconds; empty, or an integer between 300-2592000. * @type {number || null} */ this.KeyRotationInterval = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EncryptionMethod = 'EncryptionMethod' in params ? params.EncryptionMethod : null; this.DRMSystems = 'DRMSystems' in params ? params.DRMSystems : null; this.ResourceID = 'ResourceID' in params ? params.ResourceID : null; this.KeyServerUrl = 'KeyServerUrl' in params ? params.KeyServerUrl : null; this.VideoEncryptionPreset = 'VideoEncryptionPreset' in params ? params.VideoEncryptionPreset : null; this.AudioEncryptionPreset = 'AudioEncryptionPreset' in params ? params.AudioEncryptionPreset : null; this.ConstantInitializationVector = 'ConstantInitializationVector' in params ? params.ConstantInitializationVector : null; this.KeyRotationInterval = 'KeyRotationInterval' in params ? params.KeyRotationInterval : null; } } /** * Source file information. * @class */ class SourcePackageConf extends AbstractModel { constructor(){ super(); /** * Group name. When the channel is in Linear mode and vod source is selected, the group name corresponds to the output group name of the channel output. * @type {string || null} */ this.GroupName = null; /** * Type, distinguish between HLS and DASH, optional values: HLS, DASH. * @type {string || null} */ this.Type = null; /** * access path. * @type {string || null} */ this.Path = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupName = 'GroupName' in params ? params.GroupName : null; this.Type = 'Type' in params ? params.Type : null; this.Path = 'Path' in params ? params.Path : null; } } /** * CreateStreamPackageSSAIChannel request structure. * @class */ class CreateStreamPackageSSAIChannelRequest extends AbstractModel { constructor(){ super(); /** * Ad insertion configuration name, globally unique, cannot be repeated with other configurations * @type {string || null} */ this.Name = null; /** * Source stream url prefix * @type {string || null} */ this.ContentSource = null; /** * Ad insertion configuration information * @type {SSAIConf || null} */ this.SSAIInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.ContentSource = 'ContentSource' in params ? params.ContentSource : null; if (params.SSAIInfo) { let obj = new SSAIConf(); obj.deserialize(params.SSAIInfo) this.SSAIInfo = obj; } } } /** * AdBreakInfo. * @class */ class AdBreakInfo extends AbstractModel { constructor(){ super(); /** * SourceLocationId. * @type {string || null} */ this.SourceLocationId = null; /** * VodSourceName. * @type {string || null} */ this.VodSourceName = null; /** * Offset. * @type {number || null} */ this.Offset = null; /** * MessageType, divided into SpliceInsert and TimeSignal. * @type {string || null} */ this.MessageType = null; /** * TimeSignalConf. * @type {TimeSignalInfo || null} */ this.TimeSignalConf = null; /** * SpliceInsertConf. * @type {SpliceInsertInfo || null} */ this.SpliceInsertConf = null; /** * Metadatas. * @type {Array.<Metadata> || null} */ this.Metadatas = null; /** * SourceLocationName. * @type {string || null} */ this.SourceLocationName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SourceLocationId = 'SourceLocationId' in params ? params.SourceLocationId : null; this.VodSourceName = 'VodSourceName' in params ? params.VodSourceName : null; this.Offset = 'Offset' in params ? params.Offset : null; this.MessageType = 'MessageType' in params ? params.MessageType : null; if (params.TimeSignalConf) { let obj = new TimeSignalInfo(); obj.deserialize(params.TimeSignalConf) this.TimeSignalConf = obj; } if (params.SpliceInsertConf) { let obj = new SpliceInsertInfo(); obj.deserialize(params.SpliceInsertConf) this.SpliceInsertConf = obj; } if (params.Metadatas) { this.Metadatas = new Array(); for (let z in params.Metadatas) { let obj = new Metadata(); obj.deserialize(params.Metadatas[z]); this.Metadatas.push(obj); } } this.SourceLocationName = 'SourceLocationName' in params ? params.SourceLocationName : null; } } /** * ModifyStreamPackageLinearAssemblyProgram response structure. * @class */ class ModifyStreamPackageLinearAssemblyProgramResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * BindNewLVBDomainWithChannel response structure. * @class */ class BindNewLVBDomainWithChannelResponse extends AbstractModel { constructor(){ super(); /** * The LVB domain name bound successfully * @type {string || null} */ this.LVBDomain = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LVBDomain = 'LVBDomain' in params ? params.LVBDomain : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteStreamPackageLinearAssemblyChannels request structure. * @class */ class DeleteStreamPackageLinearAssemblyChannelsRequest extends AbstractModel { constructor(){ super(); /** * List of channel ids. * @type {Array.<string> || null} */ this.Ids = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Ids = 'Ids' in params ? params.Ids : null; } } /** * * @class */ class CdnDomainInfo extends AbstractModel { constructor(){ super(); /** * * @type {number || null} */ this.TotalSize = null; /** * * @type {Array.<DomainRecordInfo> || null} */ this.Records = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalSize = 'TotalSize' in params ? params.TotalSize : null; if (params.Records) { this.Records = new Array(); for (let z in params.Records) { let obj = new DomainRecordInfo(); obj.deserialize(params.Records[z]); this.Records.push(obj); } } } } /** * StartStreamPackageLinearAssemblyChannel request structure. * @class */ class StartStreamPackageLinearAssemblyChannelRequest extends AbstractModel { constructor(){ super(); /** * Channel ID. * @type {string || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; } } /** * Channel Linear Assembly Location Alarm Information. * @class */ class LocationAlert extends AbstractModel { constructor(){ super(); /** * Location ID. * @type {string || null} */ this.LocationId = null; /** * Alarm event code. * @type {number || null} */ this.Code = null; /** * Alarm classification. * @type {string || null} */ this.Category = null; /** * Alarm message. * @type {string || null} */ this.Message = null; /** * Update time. * @type {number || null} */ this.LastModifiedTime = null; /** * Location name. * @type {string || null} */ this.LocationName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LocationId = 'LocationId' in params ? params.LocationId : null; this.Code = 'Code' in params ? params.Code : null; this.Category = 'Category' in params ? params.Category : null; this.Message = 'Message' in params ? params.Message : null; this.LastModifiedTime = 'LastModifiedTime' in params ? params.LastModifiedTime : null; this.LocationName = 'LocationName' in params ? params.LocationName : null; } } /** * Metadata. * @class */ class Metadata extends AbstractModel { constructor(){ super(); /** * Key. * @type {string || null} */ this.Key = null; /** * Value. * @type {string || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Key = 'Key' in params ? params.Key : null; this.Value = 'Value' in params ? params.Value : null; } } /** * Spacer configuration. * @class */ class ClipRangeInfo extends AbstractModel { constructor(){ super(); /** * The vod type is valid, the content is valid starting time, Entire and SpecifyTimeRange are optional. * @type {string || null} */ this.Type = null; /** * Offset, valid when Type is SpecifyTimeRange. * @type {number || null} */ this.Offset = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Type = 'Type' in params ? params.Type : null; this.Offset = 'Offset' in params ? params.Offset : null; } } /** * Alias-value configuration information. * @class */ class AliasValueConf extends AbstractModel { constructor(){ super(); /** * Alias. * @type {string || null} */ this.Alias = null; /** * Value. * @type {string || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Alias = 'Alias' in params ? params.Alias : null; this.Value = 'Value' in params ? params.Value : null; } } /** * DescribeStreamPackageSSAIChannel request structure. * @class */ class DescribeStreamPackageSSAIChannelRequest extends AbstractModel { constructor(){ super(); /** * Ad insertion configuration ID * @type {string || null} */ this.ID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ID = 'ID' in params ? params.ID : null; } } /** * DescribeLinearAssemblyCDNDomainWithChannel response structure. * @class */ class DescribeLinearAssemblyCDNDomainWithChannelResponse extends AbstractModel { constructor(){ super(); /** * The CDN domain name information associated with the channel. * @type {CdnDomainInfo || null} */ this.Info = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Info) { let obj = new CdnDomainInfo(); obj.deserialize(params.Info) this.Info = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyStreamPackageSSAIChannel response structure. * @class */ class ModifyStreamPackageSSAIChannelResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyStreamPackageChannelInputAuthInfo request structure. * @class */ class ModifyStreamPackageChannelInputAuthInfoRequest extends AbstractModel { constructor(){ super(); /** * Channel ID * @type {string || null} */ this.Id = null; /** * Channel input URL * @type {string || null} */ this.Url = null; /** * Authentication configuration. Valid values: `CLOSE`, `UPDATE` `CLOSE`: disable authentication `UPDATE`: update authentication information * @type {string || null} */ this.ActionType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Url = 'Url' in params ? params.Url : null; this.ActionType = 'ActionType' in params ? params.ActionType : null; } } /** * Linear assembly channel alarm return information. * @class */ class ChannelAlertResp extends AbstractModel { constructor(){ super(); /** * Program alarm aggregation information. * @type {Array.<ProgramAlertCounts> || null} */ this.ProgramAlertCounts = null; /** * Program alarm details. * @type {Array.<ProgramAlertInfos> || null} */ this.ProgramAlertInfos = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.ProgramAlertCounts) { this.ProgramAlertCounts = new Array(); for (let z in params.ProgramAlertCounts) { let obj = new ProgramAlertCounts(); obj.deserialize(params.ProgramAlertCounts[z]); this.ProgramAlertCounts.push(obj); } } if (params.ProgramAlertInfos) { this.ProgramAlertInfos = new Array(); for (let z in params.ProgramAlertInfos) { let obj = new ProgramAlertInfos(); obj.deserialize(params.ProgramAlertInfos[z]); this.ProgramAlertInfos.push(obj); } } } } /** * DeleteStreamPackageChannels request structure. * @class */ class DeleteStreamPackageChannelsRequest extends AbstractModel { constructor(){ super(); /** * List of the IDs of the channels to delete * @type {Array.<string> || null} */ this.Ids = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Ids = 'Ids' in params ? params.Ids : null; } } /** * Channel input. * @class */ class InputInfo extends AbstractModel { constructor(){ super(); /** * Channel input URL. Note: this field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Url = null; /** * Channel input authentication information. * @type {InputAuthInfo || null} */ this.AuthInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Url = 'Url' in params ? params.Url : null; if (params.AuthInfo) { let obj = new InputAuthInfo(); obj.deserialize(params.AuthInfo) this.AuthInfo = obj; } } } /** * DescribeStreamPackageLinearAssemblyPrograms response structure. * @class */ class DescribeStreamPackageLinearAssemblyProgramsResponse extends AbstractModel { constructor(){ super(); /** * Program list. * @type {Array.<LinearAssemblyProgramInfo> || null} */ this.Infos = null; /** * Number of pages. * @type {number || null} */ this.PageNum = null; /** * Size per page. * @type {number || null} */ this.PageSize = null; /** * The total amount. * @type {number || null} */ this.TotalNum = null; /** * total pages. * @type {number || null} */ this.TotalPage = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Infos) { this.Infos = new Array(); for (let z in params.Infos) { let obj = new LinearAssemblyProgramInfo(); obj.deserialize(params.Infos[z]); this.Infos.push(obj); } } this.PageNum = 'PageNum' in params ? params.PageNum : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; this.TotalPage = 'TotalPage' in params ? params.TotalPage : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Channel input and output. * @class */ class PointInfo extends AbstractModel { constructor(){ super(); /** * Channel input list. * @type {Array.<InputInfo> || null} */ this.Inputs = null; /** * Channel output list. Note: this field may return null, indicating that no valid values can be obtained. * @type {Array.<EndpointInfo> || null} */ this.Endpoints = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Inputs) { this.Inputs = new Array(); for (let z in params.Inputs) { let obj = new InputInfo(); obj.deserialize(params.Inputs[z]); this.Inputs.push(obj); } } if (params.Endpoints) { this.Endpoints = new Array(); for (let z in params.Endpoints) { let obj = new EndpointInfo(); obj.deserialize(params.Endpoints[z]); this.Endpoints.push(obj); } } } } /** * DescribeStreamPackageSourceAlerts request structure. * @class */ class DescribeStreamPackageSourceAlertsRequest extends AbstractModel { constructor(){ super(); /** * Source ID. * @type {string || null} */ this.SourceId = null; /** * Query start time, Unix timestamp, supports queries in the last seven days. * @type {number || null} */ this.StartTime = null; /** * Query end time, Unix timestamp, supports queries in the last seven days. * @type {number || null} */ this.EndTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SourceId = 'SourceId' in params ? params.SourceId : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; } } /** * ModifyStreamPackageSSAIChannel request structure. * @class */ class ModifyStreamPackageSSAIChannelRequest extends AbstractModel { constructor(){ super(); /** * Ad insertion configuration name, globally unique, cannot be repeated. * @type {string || null} */ this.Name = null; /** * Content source prefix. * @type {string || null} */ this.ContentSource = null; /** * Ad insertion configuration information * @type {SSAIConf || null} */ this.SSAIInfo = null; /** * Ad insertion configuration ID * @type {string || null} */ this.ID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.ContentSource = 'ContentSource' in params ? params.ContentSource : null; if (params.SSAIInfo) { let obj = new SSAIConf(); obj.deserialize(params.SSAIInfo) this.SSAIInfo = obj; } this.ID = 'ID' in params ? params.ID : null; } } /** * CreateStreamPackageSource response structure. * @class */ class CreateStreamPackageSourceResponse extends AbstractModel { constructor(){ super(); /** * Source information. * @type {SourceInfo || null} */ this.Info = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Info) { let obj = new SourceInfo(); obj.deserialize(params.Info) this.Info = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Channel linear assembly program alarm information details. * @class */ class ProgramAlertInfos extends AbstractModel { constructor(){ super(); /** * Channel ID. * @type {string || null} */ this.ChannelId = null; /** * Channel name. * @type {string || null} */ this.ChannelName = null; /** * ProgramID. * @type {string || null} */ this.ProgramId = null; /** * ProgramName. * @type {string || null} */ this.ProgramName = null; /** * Alarm event code. * @type {number || null} */ this.Code = null; /** * Alarm classification. * @type {string || null} */ this.Category = null; /** * Alarm message. * @type {string || null} */ this.Message = null; /** * Update time. * @type {number || null} */ this.LastModifiedTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ChannelId = 'ChannelId' in params ? params.ChannelId : null; this.ChannelName = 'ChannelName' in params ? params.ChannelName : null; this.ProgramId = 'ProgramId' in params ? params.ProgramId : null; this.ProgramName = 'ProgramName' in params ? params.ProgramName : null; this.Code = 'Code' in params ? params.Code : null; this.Category = 'Category' in params ? params.Category : null; this.Message = 'Message' in params ? params.Message : null; this.LastModifiedTime = 'LastModifiedTime' in params ? params.LastModifiedTime : null; } } /** * DeleteStreamPackageSource request structure. * @class */ class DeleteStreamPackageSourceRequest extends AbstractModel { constructor(){ super(); /** * SourceLocation Id. * @type {string || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; } } /** * DescribeStreamPackageHarvestJobs response structure. * @class */ class DescribeStreamPackageHarvestJobsResponse extends AbstractModel { constructor(){ super(); /** * HarvestJob information list. * @type {Array.<HarvestJobResp> || null} */ this.Infos = null; /** * Page number. * @type {number || null} */ this.PageNum = null; /** * PageSize * @type {number || null} */ this.PageSize = null; /** * TotalNum * @type {number || null} */ this.TotalNum = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Infos) { this.Infos = new Array(); for (let z in params.Infos) { let obj = new HarvestJobResp(); obj.deserialize(params.Infos[z]); this.Infos.push(obj); } } this.PageNum = 'PageNum' in params ? params.PageNum : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeStreamPackageSourceLocationAlerts request structure. * @class */ class DescribeStreamPackageSourceLocationAlertsRequest extends AbstractModel { constructor(){ super(); /** * Location ID. * @type {string || null} */ this.LocationId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LocationId = 'LocationId' in params ? params.LocationId : null; } } /** * UnbindCdnDomainWithChannel response structure. * @class */ class UnbindCdnDomainWithChannelResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyStreamPackageChannelEndpoint request structure. * @class */ class ModifyStreamPackageChannelEndpointRequest extends AbstractModel { constructor(){ super(); /** * Channel ID * @type {string || null} */ this.Id = null; /** * Channel endpoint URL * @type {string || null} */ this.Url = null; /** * New endpoint name * @type {string || null} */ this.Name = null; /** * New channel authentication information * @type {EndpointAuthInfo || null} */ this.AuthInfo = null; /** * Endpoint protocol. * @type {string || null} */ this.Protocol = null; /** * Whether to turn on the time shift function, true: on, false: off, the default is off. * @type {boolean || null} */ this.TimeShiftEnable = null; /** * The number of days in the time shift window, up to 30 days. Valid when TimeShiftEnable is turned on. * @type {number || null} */ this.TimeShiftDuration = null; /** * Advertising insertion function switch. * @type {boolean || null} */ this.SSAIEnable = null; /** * Ad insertion function configuration information. Valid when SSAIEnable is turned on. * @type {SSAIConf || null} */ this.SSAIInfo = null; /** * The customer-defined url parameter is inserted into the subscript at the specified position of the Endpoint url. Calculation starts from the first '/' in the url path, and the subscript starts from 0, the optional range of the subscript is: [0,3]. * @type {number || null} */ this.CustomUrlParamIndex = null; /** * Customer-defined url parameters are inserted into the specified position of the Endpoint url based on the CustomUrlParamIndex. The parameters can only contain digits, letters, underscores (_), and hyphens (-), with a length of 1 to 64 chars. * @type {string || null} */ this.CustomUrlParam = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Url = 'Url' in params ? params.Url : null; this.Name = 'Name' in params ? params.Name : null; if (params.AuthInfo) { let obj = new EndpointAuthInfo(); obj.deserialize(params.AuthInfo) this.AuthInfo = obj; } this.Protocol = 'Protocol' in params ? params.Protocol : null; this.TimeShiftEnable = 'TimeShiftEnable' in params ? params.TimeShiftEnable : null; this.TimeShiftDuration = 'TimeShiftDuration' in params ? params.TimeShiftDuration : null; this.SSAIEnable = 'SSAIEnable' in params ? params.SSAIEnable : null; if (params.SSAIInfo) { let obj = new SSAIConf(); obj.deserialize(params.SSAIInfo) this.SSAIInfo = obj; } this.CustomUrlParamIndex = 'CustomUrlParamIndex' in params ? params.CustomUrlParamIndex : null; this.CustomUrlParam = 'CustomUrlParam' in params ? params.CustomUrlParam : null; } } /** * * @class */ class SSAIChannelInfo extends AbstractModel { constructor(){ super(); /** * SSAI configuration ID, globally unique identifier * @type {string || null} */ this.ID = null; /** * Configuration name * @type {string || null} */ this.Name = null; /** * Content source stream prefix * @type {string || null} */ this.ContentSource = null; /** * Generated playback address prefix * @type {string || null} */ this.PlaybackPrefix = null; /** * SSAI configuration info * @type {SSAIConf || null} */ this.SSAIInfo = null; /** * Region info * @type {string || null} */ this.Region = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ID = 'ID' in params ? params.ID : null; this.Name = 'Name' in params ? params.Name : null; this.ContentSource = 'ContentSource' in params ? params.ContentSource : null; this.PlaybackPrefix = 'PlaybackPrefix' in params ? params.PlaybackPrefix : null; if (params.SSAIInfo) { let obj = new SSAIConf(); obj.deserialize(params.SSAIInfo) this.SSAIInfo = obj; } this.Region = 'Region' in params ? params.Region : null; } } /** * ModifyStreamPackageSourceLocation response structure. * @class */ class ModifyStreamPackageSourceLocationResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * BindLinearAssemblyCDNDomainWithChannel response structure. * @class */ class BindLinearAssemblyCDNDomainWithChannelResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeStreamPackageChannel response structure. * @class */ class DescribeStreamPackageChannelResponse extends AbstractModel { constructor(){ super(); /** * Channel information * @type {ChannelInfo || null} */ this.Info = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Info) { let obj = new ChannelInfo(); obj.deserialize(params.Info) this.Info = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeStreamPackageLinearAssemblyPrograms request structure. * @class */ class DescribeStreamPackageLinearAssemblyProgramsRequest extends AbstractModel { constructor(){ super(); /** * Paging query page number, the value range is [1, 1000]. * @type {number || null} */ this.PageNum = null; /** * Paging query the size of each page, the value range is [1, 1000]. * @type {number || null} */ this.PageSize = null; /** * Query all Programs under a Channel. * @type {string || null} */ this.ChannelId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PageNum = 'PageNum' in params ? params.PageNum : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.ChannelId = 'ChannelId' in params ? params.ChannelId : null; } } /** * * @class */ class DomainRecordInfo extends AbstractModel { constructor(){ super(); /** * * @type {string || null} */ this.CdnDomain = null; /** * * @type {string || null} */ this.Region = null; /** * * @type {string || null} */ this.ChannelId = null; /** * * @type {string || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CdnDomain = 'CdnDomain' in params ? params.CdnDomain : null; this.Region = 'Region' in params ? params.Region : null; this.ChannelId = 'ChannelId' in params ? params.ChannelId : null; this.Id = 'Id' in params ? params.Id : null; } } /** * Linearly assembled channel time-shift configuration information. * @class */ class TimeShiftInfo extends AbstractModel { constructor(){ super(); /** * Lookback window, in seconds. * @type {number || null} */ this.TimeWindows = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TimeWindows = 'TimeWindows' in params ? params.TimeWindows : null; } } /** * DescribeStreamPackageLinearAssemblyProgramSchedules response structure. * @class */ class DescribeStreamPackageLinearAssemblyProgramSchedulesResponse extends AbstractModel { constructor(){ super(); /** * Program's scheduling list. * @type {Array.<LinearAssemblyProgramInfo> || null} */ this.Infos = null; /** * Number of pages. * @type {number || null} */ this.PageNum = null; /** * Size per page. * @type {number || null} */ this.PageSize = null; /** * The total amount. * @type {number || null} */ this.TotalNum = null; /** * Total pages. * @type {number || null} */ this.TotalPage = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Infos) { this.Infos = new Array(); for (let z in params.Infos) { let obj = new LinearAssemblyProgramInfo(); obj.deserialize(params.Infos[z]); this.Infos.push(obj); } } this.PageNum = 'PageNum' in params ? params.PageNum : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; this.TotalPage = 'TotalPage' in params ? params.TotalPage : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeStreamPackageHarvestJob request structure. * @class */ class DescribeStreamPackageHarvestJobRequest extends AbstractModel { constructor(){ super(); /** * HarvestJob ID, a globally unique identifier. * @type {string || null} */ this.ID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ID = 'ID' in params ? params.ID : null; } } /** * DescribeStreamPackageLinearAssemblyChannels request structure. * @class */ class DescribeStreamPackageLinearAssemblyChannelsRequest extends AbstractModel { constructor(){ super(); /** * Paging query page number, the value range is [1, 1000]. * @type {number || null} */ this.PageNum = null; /** * Paging query the size of each page, the value range is [1, 1000]. * @type {number || null} */ this.PageSize = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PageNum = 'PageNum' in params ? params.PageNum : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; } } /** * Channel Linear Assembly Location Alarm Information * @class */ class SourceAlert extends AbstractModel { constructor(){ super(); /** * Source ID. * @type {string || null} */ this.SourceId = null; /** * Source name. * @type {string || null} */ this.SourceName = null; /** * Alarm event code. * @type {number || null} */ this.Code = null; /** * Alarm classification. * @type {string || null} */ this.Category = null; /** * Alarm message. * @type {string || null} */ this.Message = null; /** * Update time. * @type {number || null} */ this.LastModifiedTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SourceId = 'SourceId' in params ? params.SourceId : null; this.SourceName = 'SourceName' in params ? params.SourceName : null; this.Code = 'Code' in params ? params.Code : null; this.Category = 'Category' in params ? params.Category : null; this.Message = 'Message' in params ? params.Message : null; this.LastModifiedTime = 'LastModifiedTime' in params ? params.LastModifiedTime : null; } } /** * DescribeStreamPackageSources response structure. * @class */ class DescribeStreamPackageSourcesResponse extends AbstractModel { constructor(){ super(); /** * Source list. * @type {Array.<SourceInfo> || null} */ this.Infos = null; /** * Number of pages. * @type {number || null} */ this.PageNum = null; /** * Size per page. * @type {number || null} */ this.PageSize = null; /** * The total amount. * @type {number || null} */ this.TotalNum = null; /** * total pages. * @type {number || null} */ this.TotalPage = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Infos) { this.Infos = new Array(); for (let z in params.Infos) { let obj = new SourceInfo(); obj.deserialize(params.Infos[z]); this.Infos.push(obj); } } this.PageNum = 'PageNum' in params ? params.PageNum : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.TotalNum = 'TotalNum' in params ? params.TotalNum : null; this.TotalPage = 'TotalPage' in params ? params.TotalPage : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SourceInfo. * @class */ class SourceInfo extends AbstractModel { constructor(){ super(); /** * name. * @type {string || null} */ this.Name = null; /** * The source type distinguishes between live broadcast and on-demand Vod. * @type {string || null} */ this.Type = null; /** * Source configuration. * @type {Array.<SourcePackageConf> || null} */ this.PackageConf = null; /** * ID. * @type {string || null} */ this.Id = null; /** * Create timestamp. * @type {number || null} */ this.CreateTime = null; /** * Update timestamp. * @type {number || null} */ this.UpdateTime = null; /** * Region. * @type {string || null} */ this.R