@@ -28,6 +28,104 @@ function getEndpoint(productId: string, regionId: string, endpointRule: string,
28
28
return EndpointUtil .getEndpointRules (productId, regionId, endpointRule, network, suffix);
29
29
}
30
30
31
+ model CreatePlayingListRequest {
32
+ deviceInfo?: {
33
+ encodeKey?: string (name= ' EncodeKey' , description= ' This parameter is required.' , example= ' 123' ),
34
+ encodeType?: string (name= ' EncodeType' , description= ' This parameter is required.' , example= ' UC_CLIENT_ID' ),
35
+ id?: string (name= ' Id' , description= ' This parameter is required.' , example= ' 123' ),
36
+ idType?: string (name= ' IdType' , description= ' This parameter is required.' , example= ' OPEN_ID' ),
37
+ organizationId?: string (name= ' OrganizationId' , example= ' 1' ),
38
+ }(name= ' DeviceInfo' , description= ' This parameter is required.' ),
39
+ openCreatePlayingListRequest?: {
40
+ contentList?: [
41
+ {
42
+ rawId?: string (name= ' RawId' , description= ' This parameter is required.' , example= ' 12345' ),
43
+ source?: string (name= ' Source' , description= ' This parameter is required.' , example= ' ximalayaH5' ),
44
+ }
45
+ ](name= ' ContentList' , description= ' This parameter is required.' ),
46
+ contentType?: string (name= ' ContentType' , description= ' This parameter is required.' , example= ' content' ),
47
+ extendInfo?: map[string]any (name= ' ExtendInfo' , example= ' {}' ),
48
+ index?: int32 (name= ' Index' , example= ' 1' ),
49
+ needAlbumContinued?: boolean (name= ' NeedAlbumContinued' , example= ' true' ),
50
+ playFrom?: string (name= ' PlayFrom' , example= ' default' ),
51
+ playMode?: string (name= ' PlayMode' , example= ' Normal' ),
52
+ }(name= ' OpenCreatePlayingListRequest' , description= ' This parameter is required.' ),
53
+ }
54
+
55
+ model CreatePlayingListShrinkRequest {
56
+ deviceInfoShrink?: string (name= ' DeviceInfo' , description= ' This parameter is required.' ),
57
+ openCreatePlayingListRequestShrink?: string (name= ' OpenCreatePlayingListRequest' , description= ' This parameter is required.' ),
58
+ }
59
+
60
+ model CreatePlayingListResponseBody = {
61
+ requestId?: string (name= ' RequestId' , example= ' 10002398812' ),
62
+ }
63
+
64
+ model CreatePlayingListResponse = {
65
+ headers?: map[string]string (name= ' headers' ),
66
+ statusCode?: int32 (name= ' statusCode' ),
67
+ body?: CreatePlayingListResponseBody (name= ' body' ),
68
+ }
69
+
70
+ /**
71
+ * @summary 创建播放列表
72
+ *
73
+ * @param tmpReq CreatePlayingListRequest
74
+ * @param headers map
75
+ * @param runtime runtime options for this request RuntimeOptions
76
+ * @return CreatePlayingListResponse
77
+ */
78
+ async function createPlayingListWithOptions (tmpReq : CreatePlayingListRequest , headers : map [string ]string , runtime : Util .RuntimeOptions ): CreatePlayingListResponse {
79
+ Util .validateModel (tmpReq);
80
+ var request = new CreatePlayingListShrinkRequest {};
81
+ OpenApiUtil .convert (tmpReq, request);
82
+ if (! Util .isUnset (tmpReq .deviceInfo )) {
83
+ request .deviceInfoShrink = OpenApiUtil .arrayToStringWithSpecifiedStyle (tmpReq .deviceInfo , ' DeviceInfo' , ' json' );
84
+ }
85
+ if (! Util .isUnset (tmpReq .openCreatePlayingListRequest )) {
86
+ request .openCreatePlayingListRequestShrink = OpenApiUtil .arrayToStringWithSpecifiedStyle (tmpReq .openCreatePlayingListRequest , ' OpenCreatePlayingListRequest' , ' json' );
87
+ }
88
+ var query : map[string]any = {};
89
+ if (! Util .isUnset (request .deviceInfoShrink )) {
90
+ query[' DeviceInfo' ] = request .deviceInfoShrink ;
91
+ }
92
+
93
+ var body : map[string]any = {};
94
+ if (! Util .isUnset (request .openCreatePlayingListRequestShrink )) {
95
+ body[' OpenCreatePlayingListRequest' ] = request .openCreatePlayingListRequestShrink ;
96
+ }
97
+
98
+ var req = new OpenApi.OpenApiRequest {
99
+ headers = headers,
100
+ query = OpenApiUtil .query (query),
101
+ body = OpenApiUtil .parseToMap (body),
102
+ };
103
+ var params = new OpenApi.Params {
104
+ action = ' CreatePlayingList' ,
105
+ version = ' oauth2_1.0' ,
106
+ protocol = ' HTTPS' ,
107
+ pathname = ` /v1.0/oauth2/content/playing/create` ,
108
+ method = ' POST' ,
109
+ authType = ' AK' ,
110
+ style = ' ROA' ,
111
+ reqBodyType = ' formData' ,
112
+ bodyType = ' json' ,
113
+ };
114
+ return callApi (params, req, runtime);
115
+ }
116
+
117
+ /**
118
+ * @summary 创建播放列表
119
+ *
120
+ * @param request CreatePlayingListRequest
121
+ * @return CreatePlayingListResponse
122
+ */
123
+ async function createPlayingList (request : CreatePlayingListRequest ): CreatePlayingListResponse {
124
+ var runtime = new Util.RuntimeOptions {};
125
+ var headers : map[string]string = {};
126
+ return createPlayingListWithOptions (request, headers, runtime);
127
+ }
128
+
31
129
model ExecuteSceneRequest {
32
130
sceneId?: string (name= ' SceneId' , example= ' a84a55aa410e460a9ac753570c76fecc' ),
33
131
}
@@ -72,11 +170,7 @@ async function executeSceneWithOptions(request: ExecuteSceneRequest, headers: ma
72
170
reqBodyType = ' formData' ,
73
171
bodyType = ' json' ,
74
172
};
75
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
76
- return callApi (params, req, runtime);
77
- } else {
78
- return execute (params, req, runtime);
79
- }
173
+ return callApi (params, req, runtime);
80
174
}
81
175
82
176
/**
@@ -129,11 +223,7 @@ async function getSceneListWithOptions(headers: map[string]string, runtime: Util
129
223
reqBodyType = ' json' ,
130
224
bodyType = ' json' ,
131
225
};
132
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
133
- return callApi (params, req, runtime);
134
- } else {
135
- return execute (params, req, runtime);
136
- }
226
+ return callApi (params, req, runtime);
137
227
}
138
228
139
229
/**
@@ -188,11 +278,7 @@ async function getUserBasicInfoWithOptions(headers: map[string]string, runtime:
188
278
reqBodyType = ' json' ,
189
279
bodyType = ' json' ,
190
280
};
191
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
192
- return callApi (params, req, runtime);
193
- } else {
194
- return execute (params, req, runtime);
195
- }
281
+ return callApi (params, req, runtime);
196
282
}
197
283
198
284
/**
@@ -239,11 +325,7 @@ async function getUserPhoneWithOptions(headers: map[string]string, runtime: Util
239
325
reqBodyType = ' json' ,
240
326
bodyType = ' json' ,
241
327
};
242
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
243
- return callApi (params, req, runtime);
244
- } else {
245
- return execute (params, req, runtime);
246
- }
328
+ return callApi (params, req, runtime);
247
329
}
248
330
249
331
/**
@@ -321,11 +403,7 @@ async function oAuth2RevocationEndpointWithOptions(request: OAuth2RevocationEndp
321
403
reqBodyType = ' formData' ,
322
404
bodyType = ' json' ,
323
405
};
324
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
325
- return callApi (params, req, runtime);
326
- } else {
327
- return execute (params, req, runtime);
328
- }
406
+ return callApi (params, req, runtime);
329
407
}
330
408
331
409
/**
@@ -417,11 +495,7 @@ async function oAuth2TokenEndpointWithOptions(request: OAuth2TokenEndpointReques
417
495
reqBodyType = ' formData' ,
418
496
bodyType = ' json' ,
419
497
};
420
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
421
- return callApi (params, req, runtime);
422
- } else {
423
- return execute (params, req, runtime);
424
- }
498
+ return callApi (params, req, runtime);
425
499
}
426
500
427
501
/**
@@ -510,11 +584,7 @@ async function pushDeviceNotificationWithOptions(tmpReq: PushDeviceNotificationR
510
584
reqBodyType = ' formData' ,
511
585
bodyType = ' json' ,
512
586
};
513
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
514
- return callApi (params, req, runtime);
515
- } else {
516
- return execute (params, req, runtime);
517
- }
587
+ return callApi (params, req, runtime);
518
588
}
519
589
520
590
/**
@@ -577,11 +647,7 @@ async function queryDeviceListWithOptions(headers: map[string]string, runtime: U
577
647
reqBodyType = ' json' ,
578
648
bodyType = ' json' ,
579
649
};
580
- if (Util .isUnset (@signatureVersion) || ! Util .equalString (@signatureVersion, ' v4' )) {
581
- return callApi (params, req, runtime);
582
- } else {
583
- return execute (params, req, runtime);
584
- }
650
+ return callApi (params, req, runtime);
585
651
}
586
652
587
653
/**
0 commit comments