tencentcloud-sdk-nodejs-intl-en 3.0.1262 → 3.0.1264

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4093,7 +4093,7 @@ class CreateStreamPackageChannelRequest extends AbstractModel {
4093
4093
  this.Name = null;
4094
4094
 
4095
4095
  /**
4096
- * Channel protocol. Valid values: HLS, DASH, CMAF.
4096
+ * Channel protocol. Valid values: HLS/DASH.
4097
4097
  * @type {string || null}
4098
4098
  */
4099
4099
  this.Protocol = null;
@@ -4158,6 +4158,12 @@ Optional values: Live, VOD (on demand)
4158
4158
  */
4159
4159
  this.PackageConfs = null;
4160
4160
 
4161
+ /**
4162
+ * ADS can return more precise advertisements based on Source Tag information.
4163
+ * @type {Array.<SourceTag> || null}
4164
+ */
4165
+ this.SourceTags = null;
4166
+
4161
4167
  }
4162
4168
 
4163
4169
  /**
@@ -4180,6 +4186,15 @@ Optional values: Live, VOD (on demand)
4180
4186
  }
4181
4187
  }
4182
4188
 
4189
+ if (params.SourceTags) {
4190
+ this.SourceTags = new Array();
4191
+ for (let z in params.SourceTags) {
4192
+ let obj = new SourceTag();
4193
+ obj.deserialize(params.SourceTags[z]);
4194
+ this.SourceTags.push(obj);
4195
+ }
4196
+ }
4197
+
4183
4198
  }
4184
4199
  }
4185
4200
 
@@ -4549,6 +4564,12 @@ class CreateStreamPackageSourceRequest extends AbstractModel {
4549
4564
  */
4550
4565
  this.PackageConfs = null;
4551
4566
 
4567
+ /**
4568
+ * The sourcetag allows ADS to deliver more precise ads based on the Source Tag information
4569
+ * @type {Array.<SourceTag> || null}
4570
+ */
4571
+ this.SourceTags = null;
4572
+
4552
4573
  }
4553
4574
 
4554
4575
  /**
@@ -4571,6 +4592,15 @@ class CreateStreamPackageSourceRequest extends AbstractModel {
4571
4592
  }
4572
4593
  }
4573
4594
 
4595
+ if (params.SourceTags) {
4596
+ this.SourceTags = new Array();
4597
+ for (let z in params.SourceTags) {
4598
+ let obj = new SourceTag();
4599
+ obj.deserialize(params.SourceTags[z]);
4600
+ this.SourceTags.push(obj);
4601
+ }
4602
+ }
4603
+
4574
4604
  }
4575
4605
  }
4576
4606
 
@@ -6495,6 +6525,44 @@ class ProgramScheduleInfo extends AbstractModel {
6495
6525
  }
6496
6526
  }
6497
6527
 
6528
+ /**
6529
+ * type SourceTag struct {
6530
+ Key string `json:"Key"`
6531
+ Value string `json:"Value"`
6532
+ }
6533
+ * @class
6534
+ */
6535
+ class SourceTag extends AbstractModel {
6536
+ constructor(){
6537
+ super();
6538
+
6539
+ /**
6540
+ *
6541
+ * @type {string || null}
6542
+ */
6543
+ this.Key = null;
6544
+
6545
+ /**
6546
+ *
6547
+ * @type {string || null}
6548
+ */
6549
+ this.Value = null;
6550
+
6551
+ }
6552
+
6553
+ /**
6554
+ * @private
6555
+ */
6556
+ deserialize(params) {
6557
+ if (!params) {
6558
+ return;
6559
+ }
6560
+ this.Key = 'Key' in params ? params.Key : null;
6561
+ this.Value = 'Value' in params ? params.Value : null;
6562
+
6563
+ }
6564
+ }
6565
+
6498
6566
  /**
6499
6567
  * DeleteStreamPackageLinearAssemblyPrograms response structure.
6500
6568
  * @class
@@ -8339,6 +8407,7 @@ module.exports = {
8339
8407
  DeleteStreamPackageLinearAssemblyProgramRequest: DeleteStreamPackageLinearAssemblyProgramRequest,
8340
8408
  DeleteStreamPackageChannelsResponse: DeleteStreamPackageChannelsResponse,
8341
8409
  ProgramScheduleInfo: ProgramScheduleInfo,
8410
+ SourceTag: SourceTag,
8342
8411
  DeleteStreamPackageLinearAssemblyProgramsResponse: DeleteStreamPackageLinearAssemblyProgramsResponse,
8343
8412
  SpliceInsertInfo: SpliceInsertInfo,
8344
8413
  CreateStreamPackageLinearAssemblyProgramResponse: CreateStreamPackageLinearAssemblyProgramResponse,
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20181225: require("./v20181225"),
3
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./message_client"),
3
+ Models: require("./models"),
4
+ };
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const ModifySendChannelOnMsgTypesResponse = models.ModifySendChannelOnMsgTypesResponse;
20
+ const SendType = models.SendType;
21
+ const ModifySendChannelOnMsgTypesRequest = models.ModifySendChannelOnMsgTypesRequest;
22
+
23
+
24
+ /**
25
+ * message client
26
+ * @class
27
+ */
28
+ class MessageClient extends AbstractClient {
29
+
30
+ constructor(credential, region, profile) {
31
+ super("message.intl.tencentcloudapi.com", "2018-12-25", credential, region, profile);
32
+ }
33
+
34
+ /**
35
+ * This API is used to batch modify delivery methods.
36
+ * @param {ModifySendChannelOnMsgTypesRequest} req
37
+ * @param {function(string, ModifySendChannelOnMsgTypesResponse):void} cb
38
+ * @public
39
+ */
40
+ ModifySendChannelOnMsgTypes(req, cb) {
41
+ let resp = new ModifySendChannelOnMsgTypesResponse();
42
+ this.request("ModifySendChannelOnMsgTypes", req, resp, cb);
43
+ }
44
+
45
+
46
+ }
47
+ module.exports = MessageClient;
@@ -0,0 +1,123 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const AbstractModel = require("../../common/abstract_model");
18
+
19
+ /**
20
+ * ModifySendChannelOnMsgTypes response structure.
21
+ * @class
22
+ */
23
+ class ModifySendChannelOnMsgTypesResponse extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * 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.
29
+ * @type {string || null}
30
+ */
31
+ this.RequestId = null;
32
+
33
+ }
34
+
35
+ /**
36
+ * @private
37
+ */
38
+ deserialize(params) {
39
+ if (!params) {
40
+ return;
41
+ }
42
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
43
+
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Message type sending channel.
49
+ * @class
50
+ */
51
+ class SendType extends AbstractModel {
52
+ constructor(){
53
+ super();
54
+
55
+ /**
56
+ * Message type.
57
+ * @type {number || null}
58
+ */
59
+ this.MsgType = null;
60
+
61
+ /**
62
+ * Delivery channel.
63
+ * @type {number || null}
64
+ */
65
+ this.SendChannel = null;
66
+
67
+ }
68
+
69
+ /**
70
+ * @private
71
+ */
72
+ deserialize(params) {
73
+ if (!params) {
74
+ return;
75
+ }
76
+ this.MsgType = 'MsgType' in params ? params.MsgType : null;
77
+ this.SendChannel = 'SendChannel' in params ? params.SendChannel : null;
78
+
79
+ }
80
+ }
81
+
82
+ /**
83
+ * ModifySendChannelOnMsgTypes request structure.
84
+ * @class
85
+ */
86
+ class ModifySendChannelOnMsgTypesRequest extends AbstractModel {
87
+ constructor(){
88
+ super();
89
+
90
+ /**
91
+ * Message sending channel.
92
+ * @type {Array.<SendType> || null}
93
+ */
94
+ this.SendTypes = null;
95
+
96
+ }
97
+
98
+ /**
99
+ * @private
100
+ */
101
+ deserialize(params) {
102
+ if (!params) {
103
+ return;
104
+ }
105
+
106
+ if (params.SendTypes) {
107
+ this.SendTypes = new Array();
108
+ for (let z in params.SendTypes) {
109
+ let obj = new SendType();
110
+ obj.deserialize(params.SendTypes[z]);
111
+ this.SendTypes.push(obj);
112
+ }
113
+ }
114
+
115
+ }
116
+ }
117
+
118
+ module.exports = {
119
+ ModifySendChannelOnMsgTypesResponse: ModifySendChannelOnMsgTypesResponse,
120
+ SendType: SendType,
121
+ ModifySendChannelOnMsgTypesRequest: ModifySendChannelOnMsgTypesRequest,
122
+
123
+ }