@alicloud/tdsr20200101 3.0.2 → 3.0.6

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.
package/src/client.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import Util, * as $Util from '@alicloud/tea-util';
6
6
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
7
+ import OpenApiUtil from '@alicloud/openapi-util';
7
8
  import EndpointUtil from '@alicloud/endpoint-util';
8
9
  import * as $tea from '@alicloud/tea-typescript';
9
10
 
@@ -229,6 +230,78 @@ export class AddRelativePositionResponse extends $tea.Model {
229
230
  }
230
231
  }
231
232
 
233
+ export class AddRoomPlanRequest extends $tea.Model {
234
+ sceneId?: string;
235
+ static names(): { [key: string]: string } {
236
+ return {
237
+ sceneId: 'SceneId',
238
+ };
239
+ }
240
+
241
+ static types(): { [key: string]: any } {
242
+ return {
243
+ sceneId: 'string',
244
+ };
245
+ }
246
+
247
+ constructor(map?: { [key: string]: any }) {
248
+ super(map);
249
+ }
250
+ }
251
+
252
+ export class AddRoomPlanResponseBody extends $tea.Model {
253
+ code?: number;
254
+ data?: AddRoomPlanResponseBodyData;
255
+ message?: string;
256
+ requestId?: string;
257
+ success?: boolean;
258
+ static names(): { [key: string]: string } {
259
+ return {
260
+ code: 'Code',
261
+ data: 'Data',
262
+ message: 'Message',
263
+ requestId: 'RequestId',
264
+ success: 'Success',
265
+ };
266
+ }
267
+
268
+ static types(): { [key: string]: any } {
269
+ return {
270
+ code: 'number',
271
+ data: AddRoomPlanResponseBodyData,
272
+ message: 'string',
273
+ requestId: 'string',
274
+ success: 'boolean',
275
+ };
276
+ }
277
+
278
+ constructor(map?: { [key: string]: any }) {
279
+ super(map);
280
+ }
281
+ }
282
+
283
+ export class AddRoomPlanResponse extends $tea.Model {
284
+ headers: { [key: string]: string };
285
+ body: AddRoomPlanResponseBody;
286
+ static names(): { [key: string]: string } {
287
+ return {
288
+ headers: 'headers',
289
+ body: 'body',
290
+ };
291
+ }
292
+
293
+ static types(): { [key: string]: any } {
294
+ return {
295
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
296
+ body: AddRoomPlanResponseBody,
297
+ };
298
+ }
299
+
300
+ constructor(map?: { [key: string]: any }) {
301
+ super(map);
302
+ }
303
+ }
304
+
232
305
  export class AddSceneRequest extends $tea.Model {
233
306
  name?: string;
234
307
  projectId?: string;
@@ -310,10 +383,12 @@ export class AddSceneResponse extends $tea.Model {
310
383
  export class AddSubSceneRequest extends $tea.Model {
311
384
  name?: string;
312
385
  sceneId?: string;
386
+ uploadType?: string;
313
387
  static names(): { [key: string]: string } {
314
388
  return {
315
389
  name: 'Name',
316
390
  sceneId: 'SceneId',
391
+ uploadType: 'UploadType',
317
392
  };
318
393
  }
319
394
 
@@ -321,6 +396,7 @@ export class AddSubSceneRequest extends $tea.Model {
321
396
  return {
322
397
  name: 'string',
323
398
  sceneId: 'string',
399
+ uploadType: 'string',
324
400
  };
325
401
  }
326
402
 
@@ -1029,12 +1105,16 @@ export class DetailSubSceneResponseBody extends $tea.Model {
1029
1105
  gmtCreate?: number;
1030
1106
  gmtModified?: number;
1031
1107
  id?: string;
1108
+ imageUrl?: string;
1109
+ layoutData?: string;
1032
1110
  message?: string;
1033
1111
  name?: string;
1112
+ originUrl?: string;
1034
1113
  requestId?: string;
1035
1114
  resourceId?: string;
1036
1115
  status?: number;
1037
1116
  success?: boolean;
1117
+ type?: string;
1038
1118
  url?: string;
1039
1119
  static names(): { [key: string]: string } {
1040
1120
  return {
@@ -1044,12 +1124,16 @@ export class DetailSubSceneResponseBody extends $tea.Model {
1044
1124
  gmtCreate: 'GmtCreate',
1045
1125
  gmtModified: 'GmtModified',
1046
1126
  id: 'Id',
1127
+ imageUrl: 'ImageUrl',
1128
+ layoutData: 'LayoutData',
1047
1129
  message: 'Message',
1048
1130
  name: 'Name',
1131
+ originUrl: 'OriginUrl',
1049
1132
  requestId: 'RequestId',
1050
1133
  resourceId: 'ResourceId',
1051
1134
  status: 'Status',
1052
1135
  success: 'Success',
1136
+ type: 'Type',
1053
1137
  url: 'Url',
1054
1138
  };
1055
1139
  }
@@ -1062,12 +1146,16 @@ export class DetailSubSceneResponseBody extends $tea.Model {
1062
1146
  gmtCreate: 'number',
1063
1147
  gmtModified: 'number',
1064
1148
  id: 'string',
1149
+ imageUrl: 'string',
1150
+ layoutData: 'string',
1065
1151
  message: 'string',
1066
1152
  name: 'string',
1153
+ originUrl: 'string',
1067
1154
  requestId: 'string',
1068
1155
  resourceId: 'string',
1069
1156
  status: 'number',
1070
1157
  success: 'boolean',
1158
+ type: 'string',
1071
1159
  url: 'string',
1072
1160
  };
1073
1161
  }
@@ -2092,6 +2180,87 @@ export class GetSceneBuildTaskStatusResponse extends $tea.Model {
2092
2180
  }
2093
2181
  }
2094
2182
 
2183
+ export class GetScenePreviewDataRequest extends $tea.Model {
2184
+ domain?: string;
2185
+ enabled?: boolean;
2186
+ previewToken?: string;
2187
+ showTag?: boolean;
2188
+ static names(): { [key: string]: string } {
2189
+ return {
2190
+ domain: 'Domain',
2191
+ enabled: 'Enabled',
2192
+ previewToken: 'PreviewToken',
2193
+ showTag: 'ShowTag',
2194
+ };
2195
+ }
2196
+
2197
+ static types(): { [key: string]: any } {
2198
+ return {
2199
+ domain: 'string',
2200
+ enabled: 'boolean',
2201
+ previewToken: 'string',
2202
+ showTag: 'boolean',
2203
+ };
2204
+ }
2205
+
2206
+ constructor(map?: { [key: string]: any }) {
2207
+ super(map);
2208
+ }
2209
+ }
2210
+
2211
+ export class GetScenePreviewDataResponseBody extends $tea.Model {
2212
+ code?: number;
2213
+ data?: GetScenePreviewDataResponseBodyData;
2214
+ message?: string;
2215
+ requestId?: string;
2216
+ success?: boolean;
2217
+ static names(): { [key: string]: string } {
2218
+ return {
2219
+ code: 'Code',
2220
+ data: 'Data',
2221
+ message: 'Message',
2222
+ requestId: 'RequestId',
2223
+ success: 'Success',
2224
+ };
2225
+ }
2226
+
2227
+ static types(): { [key: string]: any } {
2228
+ return {
2229
+ code: 'number',
2230
+ data: GetScenePreviewDataResponseBodyData,
2231
+ message: 'string',
2232
+ requestId: 'string',
2233
+ success: 'boolean',
2234
+ };
2235
+ }
2236
+
2237
+ constructor(map?: { [key: string]: any }) {
2238
+ super(map);
2239
+ }
2240
+ }
2241
+
2242
+ export class GetScenePreviewDataResponse extends $tea.Model {
2243
+ headers: { [key: string]: string };
2244
+ body: GetScenePreviewDataResponseBody;
2245
+ static names(): { [key: string]: string } {
2246
+ return {
2247
+ headers: 'headers',
2248
+ body: 'body',
2249
+ };
2250
+ }
2251
+
2252
+ static types(): { [key: string]: any } {
2253
+ return {
2254
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2255
+ body: GetScenePreviewDataResponseBody,
2256
+ };
2257
+ }
2258
+
2259
+ constructor(map?: { [key: string]: any }) {
2260
+ super(map);
2261
+ }
2262
+ }
2263
+
2095
2264
  export class GetScenePreviewInfoRequest extends $tea.Model {
2096
2265
  domain?: string;
2097
2266
  enabled?: boolean;
@@ -3523,12 +3692,14 @@ export class RectVerticalResponseBody extends $tea.Model {
3523
3692
  message?: string;
3524
3693
  requestId?: string;
3525
3694
  success?: boolean;
3695
+ taskId?: string;
3526
3696
  static names(): { [key: string]: string } {
3527
3697
  return {
3528
3698
  code: 'Code',
3529
3699
  message: 'Message',
3530
3700
  requestId: 'RequestId',
3531
3701
  success: 'Success',
3702
+ taskId: 'TaskId',
3532
3703
  };
3533
3704
  }
3534
3705
 
@@ -3538,6 +3709,7 @@ export class RectVerticalResponseBody extends $tea.Model {
3538
3709
  message: 'string',
3539
3710
  requestId: 'string',
3540
3711
  success: 'boolean',
3712
+ taskId: 'string',
3541
3713
  };
3542
3714
  }
3543
3715
 
@@ -4435,6 +4607,43 @@ export class UpdateSubSceneResponse extends $tea.Model {
4435
4607
  }
4436
4608
  }
4437
4609
 
4610
+ export class AddRoomPlanResponseBodyData extends $tea.Model {
4611
+ accessId?: string;
4612
+ callback?: string;
4613
+ dir?: string;
4614
+ expire?: string;
4615
+ host?: string;
4616
+ policy?: string;
4617
+ signature?: string;
4618
+ static names(): { [key: string]: string } {
4619
+ return {
4620
+ accessId: 'AccessId',
4621
+ callback: 'Callback',
4622
+ dir: 'Dir',
4623
+ expire: 'Expire',
4624
+ host: 'Host',
4625
+ policy: 'Policy',
4626
+ signature: 'Signature',
4627
+ };
4628
+ }
4629
+
4630
+ static types(): { [key: string]: any } {
4631
+ return {
4632
+ accessId: 'string',
4633
+ callback: 'string',
4634
+ dir: 'string',
4635
+ expire: 'string',
4636
+ host: 'string',
4637
+ policy: 'string',
4638
+ signature: 'string',
4639
+ };
4640
+ }
4641
+
4642
+ constructor(map?: { [key: string]: any }) {
4643
+ super(map);
4644
+ }
4645
+ }
4646
+
4438
4647
  export class GetConnDataResponseBodyList extends $tea.Model {
4439
4648
  id?: string;
4440
4649
  mapId?: string;
@@ -4488,26 +4697,23 @@ export class GetHotspotSceneDataResponseBodyData extends $tea.Model {
4488
4697
  }
4489
4698
  }
4490
4699
 
4491
- export class GetScenePreviewInfoResponseBodyData extends $tea.Model {
4492
- modelPath?: string;
4493
- panoList?: string;
4494
- textureModelPath?: string;
4495
- texturePanoPath?: string;
4700
+ export class GetScenePreviewDataResponseBodyDataModelPanoListPosition extends $tea.Model {
4701
+ rotation?: number[];
4702
+ spot?: number[];
4703
+ viewpoint?: number[];
4496
4704
  static names(): { [key: string]: string } {
4497
4705
  return {
4498
- modelPath: 'ModelPath',
4499
- panoList: 'PanoList',
4500
- textureModelPath: 'TextureModelPath',
4501
- texturePanoPath: 'TexturePanoPath',
4706
+ rotation: 'Rotation',
4707
+ spot: 'Spot',
4708
+ viewpoint: 'Viewpoint',
4502
4709
  };
4503
4710
  }
4504
4711
 
4505
4712
  static types(): { [key: string]: any } {
4506
4713
  return {
4507
- modelPath: 'string',
4508
- panoList: 'string',
4509
- textureModelPath: 'string',
4510
- texturePanoPath: 'string',
4714
+ rotation: { 'type': 'array', 'itemType': 'number' },
4715
+ spot: { 'type': 'array', 'itemType': 'number' },
4716
+ viewpoint: { 'type': 'array', 'itemType': 'number' },
4511
4717
  };
4512
4718
  }
4513
4719
 
@@ -4516,23 +4722,56 @@ export class GetScenePreviewInfoResponseBodyData extends $tea.Model {
4516
4722
  }
4517
4723
  }
4518
4724
 
4519
- export class GetSingleConnDataResponseBodyList extends $tea.Model {
4725
+ export class GetScenePreviewDataResponseBodyDataModelPanoList extends $tea.Model {
4726
+ curRoomPicList?: string[];
4727
+ enabled?: boolean;
4728
+ floorIdx?: string;
4520
4729
  id?: string;
4521
- mapId?: string;
4522
- type?: string;
4730
+ mainImage?: boolean;
4731
+ neighbours?: string[];
4732
+ position?: GetScenePreviewDataResponseBodyDataModelPanoListPosition;
4733
+ rawName?: string;
4734
+ resource?: string;
4735
+ roomIdx?: string;
4736
+ subSceneId?: string;
4737
+ token?: string;
4738
+ virtualId?: string;
4739
+ virtualName?: string;
4523
4740
  static names(): { [key: string]: string } {
4524
4741
  return {
4742
+ curRoomPicList: 'CurRoomPicList',
4743
+ enabled: 'Enabled',
4744
+ floorIdx: 'FloorIdx',
4525
4745
  id: 'Id',
4526
- mapId: 'MapId',
4527
- type: 'Type',
4746
+ mainImage: 'MainImage',
4747
+ neighbours: 'Neighbours',
4748
+ position: 'Position',
4749
+ rawName: 'RawName',
4750
+ resource: 'Resource',
4751
+ roomIdx: 'RoomIdx',
4752
+ subSceneId: 'SubSceneId',
4753
+ token: 'Token',
4754
+ virtualId: 'VirtualId',
4755
+ virtualName: 'VirtualName',
4528
4756
  };
4529
4757
  }
4530
4758
 
4531
4759
  static types(): { [key: string]: any } {
4532
4760
  return {
4761
+ curRoomPicList: { 'type': 'array', 'itemType': 'string' },
4762
+ enabled: 'boolean',
4763
+ floorIdx: 'string',
4533
4764
  id: 'string',
4534
- mapId: 'string',
4535
- type: 'string',
4765
+ mainImage: 'boolean',
4766
+ neighbours: { 'type': 'array', 'itemType': 'string' },
4767
+ position: GetScenePreviewDataResponseBodyDataModelPanoListPosition,
4768
+ rawName: 'string',
4769
+ resource: 'string',
4770
+ roomIdx: 'string',
4771
+ subSceneId: 'string',
4772
+ token: 'string',
4773
+ virtualId: 'string',
4774
+ virtualName: 'string',
4536
4775
  };
4537
4776
  }
4538
4777
 
@@ -4541,35 +4780,26 @@ export class GetSingleConnDataResponseBodyList extends $tea.Model {
4541
4780
  }
4542
4781
  }
4543
4782
 
4544
- export class GetSubSceneTaskStatusResponseBodyList extends $tea.Model {
4545
- errorCode?: string;
4546
- errorMsg?: string;
4547
- id?: string;
4548
- sceneId?: string;
4549
- status?: string;
4550
- subSceneId?: string;
4551
- type?: string;
4783
+ export class GetScenePreviewDataResponseBodyDataModel extends $tea.Model {
4784
+ modelPath?: string;
4785
+ panoList?: GetScenePreviewDataResponseBodyDataModelPanoList[];
4786
+ textureModelPath?: string;
4787
+ texturePanoPath?: string;
4552
4788
  static names(): { [key: string]: string } {
4553
4789
  return {
4554
- errorCode: 'ErrorCode',
4555
- errorMsg: 'ErrorMsg',
4556
- id: 'Id',
4557
- sceneId: 'SceneId',
4558
- status: 'Status',
4559
- subSceneId: 'SubSceneId',
4560
- type: 'Type',
4790
+ modelPath: 'ModelPath',
4791
+ panoList: 'PanoList',
4792
+ textureModelPath: 'TextureModelPath',
4793
+ texturePanoPath: 'TexturePanoPath',
4561
4794
  };
4562
4795
  }
4563
4796
 
4564
4797
  static types(): { [key: string]: any } {
4565
4798
  return {
4566
- errorCode: 'string',
4567
- errorMsg: 'string',
4568
- id: 'string',
4569
- sceneId: 'string',
4570
- status: 'string',
4571
- subSceneId: 'string',
4572
- type: 'string',
4799
+ modelPath: 'string',
4800
+ panoList: { 'type': 'array', 'itemType': GetScenePreviewDataResponseBodyDataModelPanoList },
4801
+ textureModelPath: 'string',
4802
+ texturePanoPath: 'string',
4573
4803
  };
4574
4804
  }
4575
4805
 
@@ -4578,18 +4808,247 @@ export class GetSubSceneTaskStatusResponseBodyList extends $tea.Model {
4578
4808
  }
4579
4809
  }
4580
4810
 
4581
- export class ListProjectResponseBodyList extends $tea.Model {
4582
- businessId?: number;
4583
- businessName?: string;
4584
- createTime?: number;
4585
- id?: string;
4586
- modifiedTime?: number;
4587
- name?: string;
4588
- token?: string;
4811
+ export class GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig extends $tea.Model {
4812
+ customText?: string;
4813
+ type?: string;
4589
4814
  static names(): { [key: string]: string } {
4590
4815
  return {
4591
- businessId: 'BusinessId',
4592
- businessName: 'BusinessName',
4816
+ customText: 'CustomText',
4817
+ type: 'Type',
4818
+ };
4819
+ }
4820
+
4821
+ static types(): { [key: string]: any } {
4822
+ return {
4823
+ customText: 'string',
4824
+ type: 'string',
4825
+ };
4826
+ }
4827
+
4828
+ constructor(map?: { [key: string]: any }) {
4829
+ super(map);
4830
+ }
4831
+ }
4832
+
4833
+ export class GetScenePreviewDataResponseBodyDataTagsConfig extends $tea.Model {
4834
+ backgroundColor?: string;
4835
+ buttonConfig?: GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig;
4836
+ content?: string;
4837
+ formImgSize?: number[];
4838
+ formJumpType?: boolean;
4839
+ formSelectImgType?: string;
4840
+ images?: string[];
4841
+ isTagVisibleBy3d?: boolean;
4842
+ link?: string;
4843
+ panoId?: string;
4844
+ position?: number[];
4845
+ positionPanoCube?: number[];
4846
+ relatedPanoIds?: string[];
4847
+ sceneId?: number;
4848
+ title?: string;
4849
+ video?: string;
4850
+ static names(): { [key: string]: string } {
4851
+ return {
4852
+ backgroundColor: 'BackgroundColor',
4853
+ buttonConfig: 'ButtonConfig',
4854
+ content: 'Content',
4855
+ formImgSize: 'FormImgSize',
4856
+ formJumpType: 'FormJumpType',
4857
+ formSelectImgType: 'FormSelectImgType',
4858
+ images: 'Images',
4859
+ isTagVisibleBy3d: 'IsTagVisibleBy3d',
4860
+ link: 'Link',
4861
+ panoId: 'PanoId',
4862
+ position: 'Position',
4863
+ positionPanoCube: 'PositionPanoCube',
4864
+ relatedPanoIds: 'RelatedPanoIds',
4865
+ sceneId: 'SceneId',
4866
+ title: 'Title',
4867
+ video: 'Video',
4868
+ };
4869
+ }
4870
+
4871
+ static types(): { [key: string]: any } {
4872
+ return {
4873
+ backgroundColor: 'string',
4874
+ buttonConfig: GetScenePreviewDataResponseBodyDataTagsConfigButtonConfig,
4875
+ content: 'string',
4876
+ formImgSize: { 'type': 'array', 'itemType': 'number' },
4877
+ formJumpType: 'boolean',
4878
+ formSelectImgType: 'string',
4879
+ images: { 'type': 'array', 'itemType': 'string' },
4880
+ isTagVisibleBy3d: 'boolean',
4881
+ link: 'string',
4882
+ panoId: 'string',
4883
+ position: { 'type': 'array', 'itemType': 'number' },
4884
+ positionPanoCube: { 'type': 'array', 'itemType': 'number' },
4885
+ relatedPanoIds: { 'type': 'array', 'itemType': 'string' },
4886
+ sceneId: 'number',
4887
+ title: 'string',
4888
+ video: 'string',
4889
+ };
4890
+ }
4891
+
4892
+ constructor(map?: { [key: string]: any }) {
4893
+ super(map);
4894
+ }
4895
+ }
4896
+
4897
+ export class GetScenePreviewDataResponseBodyDataTags extends $tea.Model {
4898
+ config?: GetScenePreviewDataResponseBodyDataTagsConfig;
4899
+ id?: string;
4900
+ position?: number[];
4901
+ positionPanoCube?: number[];
4902
+ type?: string;
4903
+ static names(): { [key: string]: string } {
4904
+ return {
4905
+ config: 'Config',
4906
+ id: 'Id',
4907
+ position: 'Position',
4908
+ positionPanoCube: 'PositionPanoCube',
4909
+ type: 'Type',
4910
+ };
4911
+ }
4912
+
4913
+ static types(): { [key: string]: any } {
4914
+ return {
4915
+ config: GetScenePreviewDataResponseBodyDataTagsConfig,
4916
+ id: 'string',
4917
+ position: { 'type': 'array', 'itemType': 'number' },
4918
+ positionPanoCube: { 'type': 'array', 'itemType': 'number' },
4919
+ type: 'string',
4920
+ };
4921
+ }
4922
+
4923
+ constructor(map?: { [key: string]: any }) {
4924
+ super(map);
4925
+ }
4926
+ }
4927
+
4928
+ export class GetScenePreviewDataResponseBodyData extends $tea.Model {
4929
+ model?: GetScenePreviewDataResponseBodyDataModel;
4930
+ tags?: GetScenePreviewDataResponseBodyDataTags[];
4931
+ static names(): { [key: string]: string } {
4932
+ return {
4933
+ model: 'Model',
4934
+ tags: 'Tags',
4935
+ };
4936
+ }
4937
+
4938
+ static types(): { [key: string]: any } {
4939
+ return {
4940
+ model: GetScenePreviewDataResponseBodyDataModel,
4941
+ tags: { 'type': 'array', 'itemType': GetScenePreviewDataResponseBodyDataTags },
4942
+ };
4943
+ }
4944
+
4945
+ constructor(map?: { [key: string]: any }) {
4946
+ super(map);
4947
+ }
4948
+ }
4949
+
4950
+ export class GetScenePreviewInfoResponseBodyData extends $tea.Model {
4951
+ modelPath?: string;
4952
+ panoList?: string;
4953
+ textureModelPath?: string;
4954
+ texturePanoPath?: string;
4955
+ static names(): { [key: string]: string } {
4956
+ return {
4957
+ modelPath: 'ModelPath',
4958
+ panoList: 'PanoList',
4959
+ textureModelPath: 'TextureModelPath',
4960
+ texturePanoPath: 'TexturePanoPath',
4961
+ };
4962
+ }
4963
+
4964
+ static types(): { [key: string]: any } {
4965
+ return {
4966
+ modelPath: 'string',
4967
+ panoList: 'string',
4968
+ textureModelPath: 'string',
4969
+ texturePanoPath: 'string',
4970
+ };
4971
+ }
4972
+
4973
+ constructor(map?: { [key: string]: any }) {
4974
+ super(map);
4975
+ }
4976
+ }
4977
+
4978
+ export class GetSingleConnDataResponseBodyList extends $tea.Model {
4979
+ id?: string;
4980
+ mapId?: string;
4981
+ type?: string;
4982
+ static names(): { [key: string]: string } {
4983
+ return {
4984
+ id: 'Id',
4985
+ mapId: 'MapId',
4986
+ type: 'Type',
4987
+ };
4988
+ }
4989
+
4990
+ static types(): { [key: string]: any } {
4991
+ return {
4992
+ id: 'string',
4993
+ mapId: 'string',
4994
+ type: 'string',
4995
+ };
4996
+ }
4997
+
4998
+ constructor(map?: { [key: string]: any }) {
4999
+ super(map);
5000
+ }
5001
+ }
5002
+
5003
+ export class GetSubSceneTaskStatusResponseBodyList extends $tea.Model {
5004
+ errorCode?: string;
5005
+ errorMsg?: string;
5006
+ id?: string;
5007
+ sceneId?: string;
5008
+ status?: string;
5009
+ subSceneId?: string;
5010
+ type?: string;
5011
+ static names(): { [key: string]: string } {
5012
+ return {
5013
+ errorCode: 'ErrorCode',
5014
+ errorMsg: 'ErrorMsg',
5015
+ id: 'Id',
5016
+ sceneId: 'SceneId',
5017
+ status: 'Status',
5018
+ subSceneId: 'SubSceneId',
5019
+ type: 'Type',
5020
+ };
5021
+ }
5022
+
5023
+ static types(): { [key: string]: any } {
5024
+ return {
5025
+ errorCode: 'string',
5026
+ errorMsg: 'string',
5027
+ id: 'string',
5028
+ sceneId: 'string',
5029
+ status: 'string',
5030
+ subSceneId: 'string',
5031
+ type: 'string',
5032
+ };
5033
+ }
5034
+
5035
+ constructor(map?: { [key: string]: any }) {
5036
+ super(map);
5037
+ }
5038
+ }
5039
+
5040
+ export class ListProjectResponseBodyList extends $tea.Model {
5041
+ businessId?: number;
5042
+ businessName?: string;
5043
+ createTime?: number;
5044
+ id?: string;
5045
+ modifiedTime?: number;
5046
+ name?: string;
5047
+ token?: string;
5048
+ static names(): { [key: string]: string } {
5049
+ return {
5050
+ businessId: 'BusinessId',
5051
+ businessName: 'BusinessName',
4593
5052
  createTime: 'CreateTime',
4594
5053
  id: 'Id',
4595
5054
  modifiedTime: 'ModifiedTime',
@@ -4691,6 +5150,7 @@ export class ListSubSceneResponseBodyList extends $tea.Model {
4691
5150
  resourceId?: string;
4692
5151
  resourceName?: string;
4693
5152
  status?: number;
5153
+ type?: string;
4694
5154
  url?: string;
4695
5155
  static names(): { [key: string]: string } {
4696
5156
  return {
@@ -4707,6 +5167,7 @@ export class ListSubSceneResponseBodyList extends $tea.Model {
4707
5167
  resourceId: 'ResourceId',
4708
5168
  resourceName: 'ResourceName',
4709
5169
  status: 'Status',
5170
+ type: 'Type',
4710
5171
  url: 'Url',
4711
5172
  };
4712
5173
  }
@@ -4726,6 +5187,7 @@ export class ListSubSceneResponseBodyList extends $tea.Model {
4726
5187
  resourceId: 'string',
4727
5188
  resourceName: 'string',
4728
5189
  status: 'number',
5190
+ type: 'string',
4729
5191
  url: 'string',
4730
5192
  };
4731
5193
  }
@@ -4763,10 +5225,30 @@ export default class Client extends OpenApi {
4763
5225
 
4764
5226
  async addMosaicsWithOptions(request: AddMosaicsRequest, runtime: $Util.RuntimeOptions): Promise<AddMosaicsResponse> {
4765
5227
  Util.validateModel(request);
5228
+ let query = { };
5229
+ if (!Util.isUnset(request.markPosition)) {
5230
+ query["MarkPosition"] = request.markPosition;
5231
+ }
5232
+
5233
+ if (!Util.isUnset(request.subSceneId)) {
5234
+ query["SubSceneId"] = request.subSceneId;
5235
+ }
5236
+
4766
5237
  let req = new $OpenApi.OpenApiRequest({
4767
- body: Util.toMap(request),
5238
+ query: OpenApiUtil.query(query),
4768
5239
  });
4769
- return $tea.cast<AddMosaicsResponse>(await this.doRPCRequest("AddMosaics", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new AddMosaicsResponse({}));
5240
+ let params = new $OpenApi.Params({
5241
+ action: "AddMosaics",
5242
+ version: "2020-01-01",
5243
+ protocol: "HTTPS",
5244
+ pathname: "/",
5245
+ method: "POST",
5246
+ authType: "AK",
5247
+ style: "RPC",
5248
+ reqBodyType: "formData",
5249
+ bodyType: "json",
5250
+ });
5251
+ return $tea.cast<AddMosaicsResponse>(await this.callApi(params, req, runtime), new AddMosaicsResponse({}));
4770
5252
  }
4771
5253
 
4772
5254
  async addMosaics(request: AddMosaicsRequest): Promise<AddMosaicsResponse> {
@@ -4776,10 +5258,30 @@ export default class Client extends OpenApi {
4776
5258
 
4777
5259
  async addProjectWithOptions(request: AddProjectRequest, runtime: $Util.RuntimeOptions): Promise<AddProjectResponse> {
4778
5260
  Util.validateModel(request);
5261
+ let query = { };
5262
+ if (!Util.isUnset(request.businessId)) {
5263
+ query["BusinessId"] = request.businessId;
5264
+ }
5265
+
5266
+ if (!Util.isUnset(request.name)) {
5267
+ query["Name"] = request.name;
5268
+ }
5269
+
4779
5270
  let req = new $OpenApi.OpenApiRequest({
4780
- body: Util.toMap(request),
5271
+ query: OpenApiUtil.query(query),
5272
+ });
5273
+ let params = new $OpenApi.Params({
5274
+ action: "AddProject",
5275
+ version: "2020-01-01",
5276
+ protocol: "HTTPS",
5277
+ pathname: "/",
5278
+ method: "POST",
5279
+ authType: "AK",
5280
+ style: "RPC",
5281
+ reqBodyType: "formData",
5282
+ bodyType: "json",
4781
5283
  });
4782
- return $tea.cast<AddProjectResponse>(await this.doRPCRequest("AddProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new AddProjectResponse({}));
5284
+ return $tea.cast<AddProjectResponse>(await this.callApi(params, req, runtime), new AddProjectResponse({}));
4783
5285
  }
4784
5286
 
4785
5287
  async addProject(request: AddProjectRequest): Promise<AddProjectResponse> {
@@ -4789,10 +5291,30 @@ export default class Client extends OpenApi {
4789
5291
 
4790
5292
  async addRelativePositionWithOptions(request: AddRelativePositionRequest, runtime: $Util.RuntimeOptions): Promise<AddRelativePositionResponse> {
4791
5293
  Util.validateModel(request);
5294
+ let query = { };
5295
+ if (!Util.isUnset(request.relativePosition)) {
5296
+ query["RelativePosition"] = request.relativePosition;
5297
+ }
5298
+
5299
+ if (!Util.isUnset(request.sceneId)) {
5300
+ query["SceneId"] = request.sceneId;
5301
+ }
5302
+
4792
5303
  let req = new $OpenApi.OpenApiRequest({
4793
- body: Util.toMap(request),
5304
+ query: OpenApiUtil.query(query),
4794
5305
  });
4795
- return $tea.cast<AddRelativePositionResponse>(await this.doRPCRequest("AddRelativePosition", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new AddRelativePositionResponse({}));
5306
+ let params = new $OpenApi.Params({
5307
+ action: "AddRelativePosition",
5308
+ version: "2020-01-01",
5309
+ protocol: "HTTPS",
5310
+ pathname: "/",
5311
+ method: "POST",
5312
+ authType: "AK",
5313
+ style: "RPC",
5314
+ reqBodyType: "formData",
5315
+ bodyType: "json",
5316
+ });
5317
+ return $tea.cast<AddRelativePositionResponse>(await this.callApi(params, req, runtime), new AddRelativePositionResponse({}));
4796
5318
  }
4797
5319
 
4798
5320
  async addRelativePosition(request: AddRelativePositionRequest): Promise<AddRelativePositionResponse> {
@@ -4800,12 +5322,65 @@ export default class Client extends OpenApi {
4800
5322
  return await this.addRelativePositionWithOptions(request, runtime);
4801
5323
  }
4802
5324
 
5325
+ async addRoomPlanWithOptions(request: AddRoomPlanRequest, runtime: $Util.RuntimeOptions): Promise<AddRoomPlanResponse> {
5326
+ Util.validateModel(request);
5327
+ let query = { };
5328
+ if (!Util.isUnset(request.sceneId)) {
5329
+ query["SceneId"] = request.sceneId;
5330
+ }
5331
+
5332
+ let req = new $OpenApi.OpenApiRequest({
5333
+ query: OpenApiUtil.query(query),
5334
+ });
5335
+ let params = new $OpenApi.Params({
5336
+ action: "AddRoomPlan",
5337
+ version: "2020-01-01",
5338
+ protocol: "HTTPS",
5339
+ pathname: "/",
5340
+ method: "POST",
5341
+ authType: "AK",
5342
+ style: "RPC",
5343
+ reqBodyType: "formData",
5344
+ bodyType: "json",
5345
+ });
5346
+ return $tea.cast<AddRoomPlanResponse>(await this.callApi(params, req, runtime), new AddRoomPlanResponse({}));
5347
+ }
5348
+
5349
+ async addRoomPlan(request: AddRoomPlanRequest): Promise<AddRoomPlanResponse> {
5350
+ let runtime = new $Util.RuntimeOptions({ });
5351
+ return await this.addRoomPlanWithOptions(request, runtime);
5352
+ }
5353
+
4803
5354
  async addSceneWithOptions(request: AddSceneRequest, runtime: $Util.RuntimeOptions): Promise<AddSceneResponse> {
4804
5355
  Util.validateModel(request);
5356
+ let query = { };
5357
+ if (!Util.isUnset(request.name)) {
5358
+ query["Name"] = request.name;
5359
+ }
5360
+
5361
+ if (!Util.isUnset(request.projectId)) {
5362
+ query["ProjectId"] = request.projectId;
5363
+ }
5364
+
5365
+ if (!Util.isUnset(request.type)) {
5366
+ query["Type"] = request.type;
5367
+ }
5368
+
4805
5369
  let req = new $OpenApi.OpenApiRequest({
4806
- body: Util.toMap(request),
5370
+ query: OpenApiUtil.query(query),
4807
5371
  });
4808
- return $tea.cast<AddSceneResponse>(await this.doRPCRequest("AddScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new AddSceneResponse({}));
5372
+ let params = new $OpenApi.Params({
5373
+ action: "AddScene",
5374
+ version: "2020-01-01",
5375
+ protocol: "HTTPS",
5376
+ pathname: "/",
5377
+ method: "POST",
5378
+ authType: "AK",
5379
+ style: "RPC",
5380
+ reqBodyType: "formData",
5381
+ bodyType: "json",
5382
+ });
5383
+ return $tea.cast<AddSceneResponse>(await this.callApi(params, req, runtime), new AddSceneResponse({}));
4809
5384
  }
4810
5385
 
4811
5386
  async addScene(request: AddSceneRequest): Promise<AddSceneResponse> {
@@ -4815,10 +5390,34 @@ export default class Client extends OpenApi {
4815
5390
 
4816
5391
  async addSubSceneWithOptions(request: AddSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<AddSubSceneResponse> {
4817
5392
  Util.validateModel(request);
5393
+ let query = { };
5394
+ if (!Util.isUnset(request.name)) {
5395
+ query["Name"] = request.name;
5396
+ }
5397
+
5398
+ if (!Util.isUnset(request.sceneId)) {
5399
+ query["SceneId"] = request.sceneId;
5400
+ }
5401
+
5402
+ if (!Util.isUnset(request.uploadType)) {
5403
+ query["UploadType"] = request.uploadType;
5404
+ }
5405
+
4818
5406
  let req = new $OpenApi.OpenApiRequest({
4819
- body: Util.toMap(request),
5407
+ query: OpenApiUtil.query(query),
5408
+ });
5409
+ let params = new $OpenApi.Params({
5410
+ action: "AddSubScene",
5411
+ version: "2020-01-01",
5412
+ protocol: "HTTPS",
5413
+ pathname: "/",
5414
+ method: "POST",
5415
+ authType: "AK",
5416
+ style: "RPC",
5417
+ reqBodyType: "formData",
5418
+ bodyType: "json",
4820
5419
  });
4821
- return $tea.cast<AddSubSceneResponse>(await this.doRPCRequest("AddSubScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new AddSubSceneResponse({}));
5420
+ return $tea.cast<AddSubSceneResponse>(await this.callApi(params, req, runtime), new AddSubSceneResponse({}));
4822
5421
  }
4823
5422
 
4824
5423
  async addSubScene(request: AddSubSceneRequest): Promise<AddSubSceneResponse> {
@@ -4828,10 +5427,78 @@ export default class Client extends OpenApi {
4828
5427
 
4829
5428
  async checkResourceWithOptions(request: CheckResourceRequest, runtime: $Util.RuntimeOptions): Promise<CheckResourceResponse> {
4830
5429
  Util.validateModel(request);
5430
+ let query = { };
5431
+ if (!Util.isUnset(request.bid)) {
5432
+ query["Bid"] = request.bid;
5433
+ }
5434
+
5435
+ if (!Util.isUnset(request.country)) {
5436
+ query["Country"] = request.country;
5437
+ }
5438
+
5439
+ if (!Util.isUnset(request.gmtWakeup)) {
5440
+ query["GmtWakeup"] = request.gmtWakeup;
5441
+ }
5442
+
5443
+ if (!Util.isUnset(request.hid)) {
5444
+ query["Hid"] = request.hid;
5445
+ }
5446
+
5447
+ if (!Util.isUnset(request.interrupt)) {
5448
+ query["Interrupt"] = request.interrupt;
5449
+ }
5450
+
5451
+ if (!Util.isUnset(request.invoker)) {
5452
+ query["Invoker"] = request.invoker;
5453
+ }
5454
+
5455
+ if (!Util.isUnset(request.level)) {
5456
+ query["Level"] = request.level;
5457
+ }
5458
+
5459
+ if (!Util.isUnset(request.message)) {
5460
+ query["Message"] = request.message;
5461
+ }
5462
+
5463
+ if (!Util.isUnset(request.pk)) {
5464
+ query["Pk"] = request.pk;
5465
+ }
5466
+
5467
+ if (!Util.isUnset(request.prompt)) {
5468
+ query["Prompt"] = request.prompt;
5469
+ }
5470
+
5471
+ if (!Util.isUnset(request.success)) {
5472
+ query["Success"] = request.success;
5473
+ }
5474
+
5475
+ if (!Util.isUnset(request.taskExtraData)) {
5476
+ query["TaskExtraData"] = request.taskExtraData;
5477
+ }
5478
+
5479
+ if (!Util.isUnset(request.taskIdentifier)) {
5480
+ query["TaskIdentifier"] = request.taskIdentifier;
5481
+ }
5482
+
5483
+ if (!Util.isUnset(request.url)) {
5484
+ query["Url"] = request.url;
5485
+ }
5486
+
4831
5487
  let req = new $OpenApi.OpenApiRequest({
4832
- body: Util.toMap(request),
5488
+ query: OpenApiUtil.query(query),
4833
5489
  });
4834
- return $tea.cast<CheckResourceResponse>(await this.doRPCRequest("CheckResource", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new CheckResourceResponse({}));
5490
+ let params = new $OpenApi.Params({
5491
+ action: "CheckResource",
5492
+ version: "2020-01-01",
5493
+ protocol: "HTTPS",
5494
+ pathname: "/",
5495
+ method: "POST",
5496
+ authType: "AK",
5497
+ style: "RPC",
5498
+ reqBodyType: "formData",
5499
+ bodyType: "json",
5500
+ });
5501
+ return $tea.cast<CheckResourceResponse>(await this.callApi(params, req, runtime), new CheckResourceResponse({}));
4835
5502
  }
4836
5503
 
4837
5504
  async checkResource(request: CheckResourceRequest): Promise<CheckResourceResponse> {
@@ -4841,10 +5508,42 @@ export default class Client extends OpenApi {
4841
5508
 
4842
5509
  async createProjectWithOptions(request: CreateProjectRequest, runtime: $Util.RuntimeOptions): Promise<CreateProjectResponse> {
4843
5510
  Util.validateModel(request);
5511
+ let query = { };
5512
+ if (!Util.isUnset(request.builderUserIdList)) {
5513
+ query["BuilderUserIdList"] = request.builderUserIdList;
5514
+ }
5515
+
5516
+ if (!Util.isUnset(request.businessId)) {
5517
+ query["BusinessId"] = request.businessId;
5518
+ }
5519
+
5520
+ if (!Util.isUnset(request.businessUserIdList)) {
5521
+ query["BusinessUserIdList"] = request.businessUserIdList;
5522
+ }
5523
+
5524
+ if (!Util.isUnset(request.gatherUserIdList)) {
5525
+ query["GatherUserIdList"] = request.gatherUserIdList;
5526
+ }
5527
+
5528
+ if (!Util.isUnset(request.name)) {
5529
+ query["Name"] = request.name;
5530
+ }
5531
+
4844
5532
  let req = new $OpenApi.OpenApiRequest({
4845
- body: Util.toMap(request),
5533
+ query: OpenApiUtil.query(query),
5534
+ });
5535
+ let params = new $OpenApi.Params({
5536
+ action: "CreateProject",
5537
+ version: "2020-01-01",
5538
+ protocol: "HTTPS",
5539
+ pathname: "/",
5540
+ method: "POST",
5541
+ authType: "AK",
5542
+ style: "RPC",
5543
+ reqBodyType: "formData",
5544
+ bodyType: "json",
4846
5545
  });
4847
- return $tea.cast<CreateProjectResponse>(await this.doRPCRequest("CreateProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new CreateProjectResponse({}));
5546
+ return $tea.cast<CreateProjectResponse>(await this.callApi(params, req, runtime), new CreateProjectResponse({}));
4848
5547
  }
4849
5548
 
4850
5549
  async createProject(request: CreateProjectRequest): Promise<CreateProjectResponse> {
@@ -4854,10 +5553,30 @@ export default class Client extends OpenApi {
4854
5553
 
4855
5554
  async createSceneWithOptions(request: CreateSceneRequest, runtime: $Util.RuntimeOptions): Promise<CreateSceneResponse> {
4856
5555
  Util.validateModel(request);
5556
+ let query = { };
5557
+ if (!Util.isUnset(request.name)) {
5558
+ query["Name"] = request.name;
5559
+ }
5560
+
5561
+ if (!Util.isUnset(request.projectId)) {
5562
+ query["ProjectId"] = request.projectId;
5563
+ }
5564
+
4857
5565
  let req = new $OpenApi.OpenApiRequest({
4858
- body: Util.toMap(request),
5566
+ query: OpenApiUtil.query(query),
5567
+ });
5568
+ let params = new $OpenApi.Params({
5569
+ action: "CreateScene",
5570
+ version: "2020-01-01",
5571
+ protocol: "HTTPS",
5572
+ pathname: "/",
5573
+ method: "POST",
5574
+ authType: "AK",
5575
+ style: "RPC",
5576
+ reqBodyType: "formData",
5577
+ bodyType: "json",
4859
5578
  });
4860
- return $tea.cast<CreateSceneResponse>(await this.doRPCRequest("CreateScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new CreateSceneResponse({}));
5579
+ return $tea.cast<CreateSceneResponse>(await this.callApi(params, req, runtime), new CreateSceneResponse({}));
4861
5580
  }
4862
5581
 
4863
5582
  async createScene(request: CreateSceneRequest): Promise<CreateSceneResponse> {
@@ -4867,10 +5586,30 @@ export default class Client extends OpenApi {
4867
5586
 
4868
5587
  async deleteFileWithOptions(request: DeleteFileRequest, runtime: $Util.RuntimeOptions): Promise<DeleteFileResponse> {
4869
5588
  Util.validateModel(request);
5589
+ let query = { };
5590
+ if (!Util.isUnset(request.paramFile)) {
5591
+ query["ParamFile"] = request.paramFile;
5592
+ }
5593
+
5594
+ if (!Util.isUnset(request.subSceneUuid)) {
5595
+ query["SubSceneUuid"] = request.subSceneUuid;
5596
+ }
5597
+
4870
5598
  let req = new $OpenApi.OpenApiRequest({
4871
- body: Util.toMap(request),
5599
+ query: OpenApiUtil.query(query),
4872
5600
  });
4873
- return $tea.cast<DeleteFileResponse>(await this.doRPCRequest("DeleteFile", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteFileResponse({}));
5601
+ let params = new $OpenApi.Params({
5602
+ action: "DeleteFile",
5603
+ version: "2020-01-01",
5604
+ protocol: "HTTPS",
5605
+ pathname: "/",
5606
+ method: "POST",
5607
+ authType: "AK",
5608
+ style: "RPC",
5609
+ reqBodyType: "formData",
5610
+ bodyType: "json",
5611
+ });
5612
+ return $tea.cast<DeleteFileResponse>(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
4874
5613
  }
4875
5614
 
4876
5615
  async deleteFile(request: DeleteFileRequest): Promise<DeleteFileResponse> {
@@ -4880,10 +5619,26 @@ export default class Client extends OpenApi {
4880
5619
 
4881
5620
  async deleteProjectWithOptions(request: DeleteProjectRequest, runtime: $Util.RuntimeOptions): Promise<DeleteProjectResponse> {
4882
5621
  Util.validateModel(request);
5622
+ let query = { };
5623
+ if (!Util.isUnset(request.projectId)) {
5624
+ query["ProjectId"] = request.projectId;
5625
+ }
5626
+
4883
5627
  let req = new $OpenApi.OpenApiRequest({
4884
- body: Util.toMap(request),
5628
+ query: OpenApiUtil.query(query),
5629
+ });
5630
+ let params = new $OpenApi.Params({
5631
+ action: "DeleteProject",
5632
+ version: "2020-01-01",
5633
+ protocol: "HTTPS",
5634
+ pathname: "/",
5635
+ method: "POST",
5636
+ authType: "AK",
5637
+ style: "RPC",
5638
+ reqBodyType: "formData",
5639
+ bodyType: "json",
4885
5640
  });
4886
- return $tea.cast<DeleteProjectResponse>(await this.doRPCRequest("DeleteProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteProjectResponse({}));
5641
+ return $tea.cast<DeleteProjectResponse>(await this.callApi(params, req, runtime), new DeleteProjectResponse({}));
4887
5642
  }
4888
5643
 
4889
5644
  async deleteProject(request: DeleteProjectRequest): Promise<DeleteProjectResponse> {
@@ -4893,10 +5648,26 @@ export default class Client extends OpenApi {
4893
5648
 
4894
5649
  async detailProjectWithOptions(request: DetailProjectRequest, runtime: $Util.RuntimeOptions): Promise<DetailProjectResponse> {
4895
5650
  Util.validateModel(request);
5651
+ let query = { };
5652
+ if (!Util.isUnset(request.id)) {
5653
+ query["Id"] = request.id;
5654
+ }
5655
+
4896
5656
  let req = new $OpenApi.OpenApiRequest({
4897
- body: Util.toMap(request),
5657
+ query: OpenApiUtil.query(query),
4898
5658
  });
4899
- return $tea.cast<DetailProjectResponse>(await this.doRPCRequest("DetailProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DetailProjectResponse({}));
5659
+ let params = new $OpenApi.Params({
5660
+ action: "DetailProject",
5661
+ version: "2020-01-01",
5662
+ protocol: "HTTPS",
5663
+ pathname: "/",
5664
+ method: "POST",
5665
+ authType: "AK",
5666
+ style: "RPC",
5667
+ reqBodyType: "formData",
5668
+ bodyType: "json",
5669
+ });
5670
+ return $tea.cast<DetailProjectResponse>(await this.callApi(params, req, runtime), new DetailProjectResponse({}));
4900
5671
  }
4901
5672
 
4902
5673
  async detailProject(request: DetailProjectRequest): Promise<DetailProjectResponse> {
@@ -4906,10 +5677,26 @@ export default class Client extends OpenApi {
4906
5677
 
4907
5678
  async detailSceneWithOptions(request: DetailSceneRequest, runtime: $Util.RuntimeOptions): Promise<DetailSceneResponse> {
4908
5679
  Util.validateModel(request);
5680
+ let query = { };
5681
+ if (!Util.isUnset(request.id)) {
5682
+ query["Id"] = request.id;
5683
+ }
5684
+
4909
5685
  let req = new $OpenApi.OpenApiRequest({
4910
- body: Util.toMap(request),
5686
+ query: OpenApiUtil.query(query),
5687
+ });
5688
+ let params = new $OpenApi.Params({
5689
+ action: "DetailScene",
5690
+ version: "2020-01-01",
5691
+ protocol: "HTTPS",
5692
+ pathname: "/",
5693
+ method: "POST",
5694
+ authType: "AK",
5695
+ style: "RPC",
5696
+ reqBodyType: "formData",
5697
+ bodyType: "json",
4911
5698
  });
4912
- return $tea.cast<DetailSceneResponse>(await this.doRPCRequest("DetailScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DetailSceneResponse({}));
5699
+ return $tea.cast<DetailSceneResponse>(await this.callApi(params, req, runtime), new DetailSceneResponse({}));
4913
5700
  }
4914
5701
 
4915
5702
  async detailScene(request: DetailSceneRequest): Promise<DetailSceneResponse> {
@@ -4919,10 +5706,26 @@ export default class Client extends OpenApi {
4919
5706
 
4920
5707
  async detailSubSceneWithOptions(request: DetailSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<DetailSubSceneResponse> {
4921
5708
  Util.validateModel(request);
5709
+ let query = { };
5710
+ if (!Util.isUnset(request.id)) {
5711
+ query["Id"] = request.id;
5712
+ }
5713
+
4922
5714
  let req = new $OpenApi.OpenApiRequest({
4923
- body: Util.toMap(request),
5715
+ query: OpenApiUtil.query(query),
4924
5716
  });
4925
- return $tea.cast<DetailSubSceneResponse>(await this.doRPCRequest("DetailSubScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DetailSubSceneResponse({}));
5717
+ let params = new $OpenApi.Params({
5718
+ action: "DetailSubScene",
5719
+ version: "2020-01-01",
5720
+ protocol: "HTTPS",
5721
+ pathname: "/",
5722
+ method: "POST",
5723
+ authType: "AK",
5724
+ style: "RPC",
5725
+ reqBodyType: "formData",
5726
+ bodyType: "json",
5727
+ });
5728
+ return $tea.cast<DetailSubSceneResponse>(await this.callApi(params, req, runtime), new DetailSubSceneResponse({}));
4926
5729
  }
4927
5730
 
4928
5731
  async detailSubScene(request: DetailSubSceneRequest): Promise<DetailSubSceneResponse> {
@@ -4932,10 +5735,26 @@ export default class Client extends OpenApi {
4932
5735
 
4933
5736
  async dropProjectWithOptions(request: DropProjectRequest, runtime: $Util.RuntimeOptions): Promise<DropProjectResponse> {
4934
5737
  Util.validateModel(request);
5738
+ let query = { };
5739
+ if (!Util.isUnset(request.projectId)) {
5740
+ query["ProjectId"] = request.projectId;
5741
+ }
5742
+
4935
5743
  let req = new $OpenApi.OpenApiRequest({
4936
- body: Util.toMap(request),
5744
+ query: OpenApiUtil.query(query),
5745
+ });
5746
+ let params = new $OpenApi.Params({
5747
+ action: "DropProject",
5748
+ version: "2020-01-01",
5749
+ protocol: "HTTPS",
5750
+ pathname: "/",
5751
+ method: "POST",
5752
+ authType: "AK",
5753
+ style: "RPC",
5754
+ reqBodyType: "formData",
5755
+ bodyType: "json",
4937
5756
  });
4938
- return $tea.cast<DropProjectResponse>(await this.doRPCRequest("DropProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DropProjectResponse({}));
5757
+ return $tea.cast<DropProjectResponse>(await this.callApi(params, req, runtime), new DropProjectResponse({}));
4939
5758
  }
4940
5759
 
4941
5760
  async dropProject(request: DropProjectRequest): Promise<DropProjectResponse> {
@@ -4945,10 +5764,26 @@ export default class Client extends OpenApi {
4945
5764
 
4946
5765
  async dropSceneWithOptions(request: DropSceneRequest, runtime: $Util.RuntimeOptions): Promise<DropSceneResponse> {
4947
5766
  Util.validateModel(request);
5767
+ let query = { };
5768
+ if (!Util.isUnset(request.id)) {
5769
+ query["Id"] = request.id;
5770
+ }
5771
+
4948
5772
  let req = new $OpenApi.OpenApiRequest({
4949
- body: Util.toMap(request),
5773
+ query: OpenApiUtil.query(query),
4950
5774
  });
4951
- return $tea.cast<DropSceneResponse>(await this.doRPCRequest("DropScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DropSceneResponse({}));
5775
+ let params = new $OpenApi.Params({
5776
+ action: "DropScene",
5777
+ version: "2020-01-01",
5778
+ protocol: "HTTPS",
5779
+ pathname: "/",
5780
+ method: "POST",
5781
+ authType: "AK",
5782
+ style: "RPC",
5783
+ reqBodyType: "formData",
5784
+ bodyType: "json",
5785
+ });
5786
+ return $tea.cast<DropSceneResponse>(await this.callApi(params, req, runtime), new DropSceneResponse({}));
4952
5787
  }
4953
5788
 
4954
5789
  async dropScene(request: DropSceneRequest): Promise<DropSceneResponse> {
@@ -4958,10 +5793,26 @@ export default class Client extends OpenApi {
4958
5793
 
4959
5794
  async dropSubSceneWithOptions(request: DropSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<DropSubSceneResponse> {
4960
5795
  Util.validateModel(request);
5796
+ let query = { };
5797
+ if (!Util.isUnset(request.id)) {
5798
+ query["Id"] = request.id;
5799
+ }
5800
+
4961
5801
  let req = new $OpenApi.OpenApiRequest({
4962
- body: Util.toMap(request),
5802
+ query: OpenApiUtil.query(query),
5803
+ });
5804
+ let params = new $OpenApi.Params({
5805
+ action: "DropSubScene",
5806
+ version: "2020-01-01",
5807
+ protocol: "HTTPS",
5808
+ pathname: "/",
5809
+ method: "POST",
5810
+ authType: "AK",
5811
+ style: "RPC",
5812
+ reqBodyType: "formData",
5813
+ bodyType: "json",
4963
5814
  });
4964
- return $tea.cast<DropSubSceneResponse>(await this.doRPCRequest("DropSubScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new DropSubSceneResponse({}));
5815
+ return $tea.cast<DropSubSceneResponse>(await this.callApi(params, req, runtime), new DropSubSceneResponse({}));
4965
5816
  }
4966
5817
 
4967
5818
  async dropSubScene(request: DropSubSceneRequest): Promise<DropSubSceneResponse> {
@@ -4971,10 +5822,26 @@ export default class Client extends OpenApi {
4971
5822
 
4972
5823
  async getConnDataWithOptions(request: GetConnDataRequest, runtime: $Util.RuntimeOptions): Promise<GetConnDataResponse> {
4973
5824
  Util.validateModel(request);
5825
+ let query = { };
5826
+ if (!Util.isUnset(request.sceneId)) {
5827
+ query["SceneId"] = request.sceneId;
5828
+ }
5829
+
4974
5830
  let req = new $OpenApi.OpenApiRequest({
4975
- body: Util.toMap(request),
5831
+ query: OpenApiUtil.query(query),
4976
5832
  });
4977
- return $tea.cast<GetConnDataResponse>(await this.doRPCRequest("GetConnData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetConnDataResponse({}));
5833
+ let params = new $OpenApi.Params({
5834
+ action: "GetConnData",
5835
+ version: "2020-01-01",
5836
+ protocol: "HTTPS",
5837
+ pathname: "/",
5838
+ method: "POST",
5839
+ authType: "AK",
5840
+ style: "RPC",
5841
+ reqBodyType: "formData",
5842
+ bodyType: "json",
5843
+ });
5844
+ return $tea.cast<GetConnDataResponse>(await this.callApi(params, req, runtime), new GetConnDataResponse({}));
4978
5845
  }
4979
5846
 
4980
5847
  async getConnData(request: GetConnDataRequest): Promise<GetConnDataResponse> {
@@ -4984,10 +5851,38 @@ export default class Client extends OpenApi {
4984
5851
 
4985
5852
  async getHotspotConfigWithOptions(request: GetHotspotConfigRequest, runtime: $Util.RuntimeOptions): Promise<GetHotspotConfigResponse> {
4986
5853
  Util.validateModel(request);
5854
+ let query = { };
5855
+ if (!Util.isUnset(request.domain)) {
5856
+ query["Domain"] = request.domain;
5857
+ }
5858
+
5859
+ if (!Util.isUnset(request.enabled)) {
5860
+ query["Enabled"] = request.enabled;
5861
+ }
5862
+
5863
+ if (!Util.isUnset(request.previewToken)) {
5864
+ query["PreviewToken"] = request.previewToken;
5865
+ }
5866
+
5867
+ if (!Util.isUnset(request.type)) {
5868
+ query["Type"] = request.type;
5869
+ }
5870
+
4987
5871
  let req = new $OpenApi.OpenApiRequest({
4988
- body: Util.toMap(request),
5872
+ query: OpenApiUtil.query(query),
5873
+ });
5874
+ let params = new $OpenApi.Params({
5875
+ action: "GetHotspotConfig",
5876
+ version: "2020-01-01",
5877
+ protocol: "HTTPS",
5878
+ pathname: "/",
5879
+ method: "POST",
5880
+ authType: "AK",
5881
+ style: "RPC",
5882
+ reqBodyType: "formData",
5883
+ bodyType: "json",
4989
5884
  });
4990
- return $tea.cast<GetHotspotConfigResponse>(await this.doRPCRequest("GetHotspotConfig", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetHotspotConfigResponse({}));
5885
+ return $tea.cast<GetHotspotConfigResponse>(await this.callApi(params, req, runtime), new GetHotspotConfigResponse({}));
4991
5886
  }
4992
5887
 
4993
5888
  async getHotspotConfig(request: GetHotspotConfigRequest): Promise<GetHotspotConfigResponse> {
@@ -4997,10 +5892,38 @@ export default class Client extends OpenApi {
4997
5892
 
4998
5893
  async getHotspotSceneDataWithOptions(request: GetHotspotSceneDataRequest, runtime: $Util.RuntimeOptions): Promise<GetHotspotSceneDataResponse> {
4999
5894
  Util.validateModel(request);
5895
+ let query = { };
5896
+ if (!Util.isUnset(request.domain)) {
5897
+ query["Domain"] = request.domain;
5898
+ }
5899
+
5900
+ if (!Util.isUnset(request.enabled)) {
5901
+ query["Enabled"] = request.enabled;
5902
+ }
5903
+
5904
+ if (!Util.isUnset(request.previewToken)) {
5905
+ query["PreviewToken"] = request.previewToken;
5906
+ }
5907
+
5908
+ if (!Util.isUnset(request.type)) {
5909
+ query["Type"] = request.type;
5910
+ }
5911
+
5000
5912
  let req = new $OpenApi.OpenApiRequest({
5001
- body: Util.toMap(request),
5913
+ query: OpenApiUtil.query(query),
5002
5914
  });
5003
- return $tea.cast<GetHotspotSceneDataResponse>(await this.doRPCRequest("GetHotspotSceneData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetHotspotSceneDataResponse({}));
5915
+ let params = new $OpenApi.Params({
5916
+ action: "GetHotspotSceneData",
5917
+ version: "2020-01-01",
5918
+ protocol: "HTTPS",
5919
+ pathname: "/",
5920
+ method: "POST",
5921
+ authType: "AK",
5922
+ style: "RPC",
5923
+ reqBodyType: "formData",
5924
+ bodyType: "json",
5925
+ });
5926
+ return $tea.cast<GetHotspotSceneDataResponse>(await this.callApi(params, req, runtime), new GetHotspotSceneDataResponse({}));
5004
5927
  }
5005
5928
 
5006
5929
  async getHotspotSceneData(request: GetHotspotSceneDataRequest): Promise<GetHotspotSceneDataResponse> {
@@ -5010,10 +5933,42 @@ export default class Client extends OpenApi {
5010
5933
 
5011
5934
  async getHotspotTagWithOptions(request: GetHotspotTagRequest, runtime: $Util.RuntimeOptions): Promise<GetHotspotTagResponse> {
5012
5935
  Util.validateModel(request);
5936
+ let query = { };
5937
+ if (!Util.isUnset(request.domain)) {
5938
+ query["Domain"] = request.domain;
5939
+ }
5940
+
5941
+ if (!Util.isUnset(request.enabled)) {
5942
+ query["Enabled"] = request.enabled;
5943
+ }
5944
+
5945
+ if (!Util.isUnset(request.previewToken)) {
5946
+ query["PreviewToken"] = request.previewToken;
5947
+ }
5948
+
5949
+ if (!Util.isUnset(request.subSceneUuid)) {
5950
+ query["SubSceneUuid"] = request.subSceneUuid;
5951
+ }
5952
+
5953
+ if (!Util.isUnset(request.type)) {
5954
+ query["Type"] = request.type;
5955
+ }
5956
+
5013
5957
  let req = new $OpenApi.OpenApiRequest({
5014
- body: Util.toMap(request),
5958
+ query: OpenApiUtil.query(query),
5959
+ });
5960
+ let params = new $OpenApi.Params({
5961
+ action: "GetHotspotTag",
5962
+ version: "2020-01-01",
5963
+ protocol: "HTTPS",
5964
+ pathname: "/",
5965
+ method: "POST",
5966
+ authType: "AK",
5967
+ style: "RPC",
5968
+ reqBodyType: "formData",
5969
+ bodyType: "json",
5015
5970
  });
5016
- return $tea.cast<GetHotspotTagResponse>(await this.doRPCRequest("GetHotspotTag", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetHotspotTagResponse({}));
5971
+ return $tea.cast<GetHotspotTagResponse>(await this.callApi(params, req, runtime), new GetHotspotTagResponse({}));
5017
5972
  }
5018
5973
 
5019
5974
  async getHotspotTag(request: GetHotspotTagRequest): Promise<GetHotspotTagResponse> {
@@ -5023,10 +5978,26 @@ export default class Client extends OpenApi {
5023
5978
 
5024
5979
  async getLayoutDataWithOptions(request: GetLayoutDataRequest, runtime: $Util.RuntimeOptions): Promise<GetLayoutDataResponse> {
5025
5980
  Util.validateModel(request);
5981
+ let query = { };
5982
+ if (!Util.isUnset(request.subSceneId)) {
5983
+ query["SubSceneId"] = request.subSceneId;
5984
+ }
5985
+
5026
5986
  let req = new $OpenApi.OpenApiRequest({
5027
- body: Util.toMap(request),
5987
+ query: OpenApiUtil.query(query),
5028
5988
  });
5029
- return $tea.cast<GetLayoutDataResponse>(await this.doRPCRequest("GetLayoutData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetLayoutDataResponse({}));
5989
+ let params = new $OpenApi.Params({
5990
+ action: "GetLayoutData",
5991
+ version: "2020-01-01",
5992
+ protocol: "HTTPS",
5993
+ pathname: "/",
5994
+ method: "POST",
5995
+ authType: "AK",
5996
+ style: "RPC",
5997
+ reqBodyType: "formData",
5998
+ bodyType: "json",
5999
+ });
6000
+ return $tea.cast<GetLayoutDataResponse>(await this.callApi(params, req, runtime), new GetLayoutDataResponse({}));
5030
6001
  }
5031
6002
 
5032
6003
  async getLayoutData(request: GetLayoutDataRequest): Promise<GetLayoutDataResponse> {
@@ -5036,10 +6007,26 @@ export default class Client extends OpenApi {
5036
6007
 
5037
6008
  async getOriginLayoutDataWithOptions(request: GetOriginLayoutDataRequest, runtime: $Util.RuntimeOptions): Promise<GetOriginLayoutDataResponse> {
5038
6009
  Util.validateModel(request);
6010
+ let query = { };
6011
+ if (!Util.isUnset(request.subSceneId)) {
6012
+ query["SubSceneId"] = request.subSceneId;
6013
+ }
6014
+
5039
6015
  let req = new $OpenApi.OpenApiRequest({
5040
- body: Util.toMap(request),
6016
+ query: OpenApiUtil.query(query),
6017
+ });
6018
+ let params = new $OpenApi.Params({
6019
+ action: "GetOriginLayoutData",
6020
+ version: "2020-01-01",
6021
+ protocol: "HTTPS",
6022
+ pathname: "/",
6023
+ method: "POST",
6024
+ authType: "AK",
6025
+ style: "RPC",
6026
+ reqBodyType: "formData",
6027
+ bodyType: "json",
5041
6028
  });
5042
- return $tea.cast<GetOriginLayoutDataResponse>(await this.doRPCRequest("GetOriginLayoutData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetOriginLayoutDataResponse({}));
6029
+ return $tea.cast<GetOriginLayoutDataResponse>(await this.callApi(params, req, runtime), new GetOriginLayoutDataResponse({}));
5043
6030
  }
5044
6031
 
5045
6032
  async getOriginLayoutData(request: GetOriginLayoutDataRequest): Promise<GetOriginLayoutDataResponse> {
@@ -5049,10 +6036,26 @@ export default class Client extends OpenApi {
5049
6036
 
5050
6037
  async getOssPolicyWithOptions(request: GetOssPolicyRequest, runtime: $Util.RuntimeOptions): Promise<GetOssPolicyResponse> {
5051
6038
  Util.validateModel(request);
6039
+ let query = { };
6040
+ if (!Util.isUnset(request.subSceneId)) {
6041
+ query["SubSceneId"] = request.subSceneId;
6042
+ }
6043
+
5052
6044
  let req = new $OpenApi.OpenApiRequest({
5053
- body: Util.toMap(request),
6045
+ query: OpenApiUtil.query(query),
5054
6046
  });
5055
- return $tea.cast<GetOssPolicyResponse>(await this.doRPCRequest("GetOssPolicy", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetOssPolicyResponse({}));
6047
+ let params = new $OpenApi.Params({
6048
+ action: "GetOssPolicy",
6049
+ version: "2020-01-01",
6050
+ protocol: "HTTPS",
6051
+ pathname: "/",
6052
+ method: "POST",
6053
+ authType: "AK",
6054
+ style: "RPC",
6055
+ reqBodyType: "formData",
6056
+ bodyType: "json",
6057
+ });
6058
+ return $tea.cast<GetOssPolicyResponse>(await this.callApi(params, req, runtime), new GetOssPolicyResponse({}));
5056
6059
  }
5057
6060
 
5058
6061
  async getOssPolicy(request: GetOssPolicyRequest): Promise<GetOssPolicyResponse> {
@@ -5062,10 +6065,30 @@ export default class Client extends OpenApi {
5062
6065
 
5063
6066
  async getPolicyWithOptions(request: GetPolicyRequest, runtime: $Util.RuntimeOptions): Promise<GetPolicyResponse> {
5064
6067
  Util.validateModel(request);
6068
+ let query = { };
6069
+ if (!Util.isUnset(request.subSceneUuid)) {
6070
+ query["SubSceneUuid"] = request.subSceneUuid;
6071
+ }
6072
+
6073
+ if (!Util.isUnset(request.type)) {
6074
+ query["Type"] = request.type;
6075
+ }
6076
+
5065
6077
  let req = new $OpenApi.OpenApiRequest({
5066
- body: Util.toMap(request),
6078
+ query: OpenApiUtil.query(query),
6079
+ });
6080
+ let params = new $OpenApi.Params({
6081
+ action: "GetPolicy",
6082
+ version: "2020-01-01",
6083
+ protocol: "HTTPS",
6084
+ pathname: "/",
6085
+ method: "POST",
6086
+ authType: "AK",
6087
+ style: "RPC",
6088
+ reqBodyType: "formData",
6089
+ bodyType: "json",
5067
6090
  });
5068
- return $tea.cast<GetPolicyResponse>(await this.doRPCRequest("GetPolicy", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetPolicyResponse({}));
6091
+ return $tea.cast<GetPolicyResponse>(await this.callApi(params, req, runtime), new GetPolicyResponse({}));
5069
6092
  }
5070
6093
 
5071
6094
  async getPolicy(request: GetPolicyRequest): Promise<GetPolicyResponse> {
@@ -5075,10 +6098,26 @@ export default class Client extends OpenApi {
5075
6098
 
5076
6099
  async getRectifyImageWithOptions(request: GetRectifyImageRequest, runtime: $Util.RuntimeOptions): Promise<GetRectifyImageResponse> {
5077
6100
  Util.validateModel(request);
6101
+ let query = { };
6102
+ if (!Util.isUnset(request.subSceneId)) {
6103
+ query["SubSceneId"] = request.subSceneId;
6104
+ }
6105
+
5078
6106
  let req = new $OpenApi.OpenApiRequest({
5079
- body: Util.toMap(request),
6107
+ query: OpenApiUtil.query(query),
5080
6108
  });
5081
- return $tea.cast<GetRectifyImageResponse>(await this.doRPCRequest("GetRectifyImage", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetRectifyImageResponse({}));
6109
+ let params = new $OpenApi.Params({
6110
+ action: "GetRectifyImage",
6111
+ version: "2020-01-01",
6112
+ protocol: "HTTPS",
6113
+ pathname: "/",
6114
+ method: "POST",
6115
+ authType: "AK",
6116
+ style: "RPC",
6117
+ reqBodyType: "formData",
6118
+ bodyType: "json",
6119
+ });
6120
+ return $tea.cast<GetRectifyImageResponse>(await this.callApi(params, req, runtime), new GetRectifyImageResponse({}));
5082
6121
  }
5083
6122
 
5084
6123
  async getRectifyImage(request: GetRectifyImageRequest): Promise<GetRectifyImageResponse> {
@@ -5088,10 +6127,26 @@ export default class Client extends OpenApi {
5088
6127
 
5089
6128
  async getSceneBuildTaskStatusWithOptions(request: GetSceneBuildTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetSceneBuildTaskStatusResponse> {
5090
6129
  Util.validateModel(request);
6130
+ let query = { };
6131
+ if (!Util.isUnset(request.sceneId)) {
6132
+ query["SceneId"] = request.sceneId;
6133
+ }
6134
+
5091
6135
  let req = new $OpenApi.OpenApiRequest({
5092
- body: Util.toMap(request),
6136
+ query: OpenApiUtil.query(query),
6137
+ });
6138
+ let params = new $OpenApi.Params({
6139
+ action: "GetSceneBuildTaskStatus",
6140
+ version: "2020-01-01",
6141
+ protocol: "HTTPS",
6142
+ pathname: "/",
6143
+ method: "POST",
6144
+ authType: "AK",
6145
+ style: "RPC",
6146
+ reqBodyType: "formData",
6147
+ bodyType: "json",
5093
6148
  });
5094
- return $tea.cast<GetSceneBuildTaskStatusResponse>(await this.doRPCRequest("GetSceneBuildTaskStatus", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetSceneBuildTaskStatusResponse({}));
6149
+ return $tea.cast<GetSceneBuildTaskStatusResponse>(await this.callApi(params, req, runtime), new GetSceneBuildTaskStatusResponse({}));
5095
6150
  }
5096
6151
 
5097
6152
  async getSceneBuildTaskStatus(request: GetSceneBuildTaskStatusRequest): Promise<GetSceneBuildTaskStatusResponse> {
@@ -5099,12 +6154,77 @@ export default class Client extends OpenApi {
5099
6154
  return await this.getSceneBuildTaskStatusWithOptions(request, runtime);
5100
6155
  }
5101
6156
 
6157
+ async getScenePreviewDataWithOptions(request: GetScenePreviewDataRequest, runtime: $Util.RuntimeOptions): Promise<GetScenePreviewDataResponse> {
6158
+ Util.validateModel(request);
6159
+ let query = { };
6160
+ if (!Util.isUnset(request.domain)) {
6161
+ query["Domain"] = request.domain;
6162
+ }
6163
+
6164
+ if (!Util.isUnset(request.enabled)) {
6165
+ query["Enabled"] = request.enabled;
6166
+ }
6167
+
6168
+ if (!Util.isUnset(request.previewToken)) {
6169
+ query["PreviewToken"] = request.previewToken;
6170
+ }
6171
+
6172
+ if (!Util.isUnset(request.showTag)) {
6173
+ query["ShowTag"] = request.showTag;
6174
+ }
6175
+
6176
+ let req = new $OpenApi.OpenApiRequest({
6177
+ query: OpenApiUtil.query(query),
6178
+ });
6179
+ let params = new $OpenApi.Params({
6180
+ action: "GetScenePreviewData",
6181
+ version: "2020-01-01",
6182
+ protocol: "HTTPS",
6183
+ pathname: "/",
6184
+ method: "POST",
6185
+ authType: "AK",
6186
+ style: "RPC",
6187
+ reqBodyType: "formData",
6188
+ bodyType: "json",
6189
+ });
6190
+ return $tea.cast<GetScenePreviewDataResponse>(await this.callApi(params, req, runtime), new GetScenePreviewDataResponse({}));
6191
+ }
6192
+
6193
+ async getScenePreviewData(request: GetScenePreviewDataRequest): Promise<GetScenePreviewDataResponse> {
6194
+ let runtime = new $Util.RuntimeOptions({ });
6195
+ return await this.getScenePreviewDataWithOptions(request, runtime);
6196
+ }
6197
+
5102
6198
  async getScenePreviewInfoWithOptions(request: GetScenePreviewInfoRequest, runtime: $Util.RuntimeOptions): Promise<GetScenePreviewInfoResponse> {
5103
6199
  Util.validateModel(request);
6200
+ let query = { };
6201
+ if (!Util.isUnset(request.domain)) {
6202
+ query["Domain"] = request.domain;
6203
+ }
6204
+
6205
+ if (!Util.isUnset(request.enabled)) {
6206
+ query["Enabled"] = request.enabled;
6207
+ }
6208
+
6209
+ if (!Util.isUnset(request.modelToken)) {
6210
+ query["ModelToken"] = request.modelToken;
6211
+ }
6212
+
5104
6213
  let req = new $OpenApi.OpenApiRequest({
5105
- body: Util.toMap(request),
6214
+ query: OpenApiUtil.query(query),
6215
+ });
6216
+ let params = new $OpenApi.Params({
6217
+ action: "GetScenePreviewInfo",
6218
+ version: "2020-01-01",
6219
+ protocol: "HTTPS",
6220
+ pathname: "/",
6221
+ method: "POST",
6222
+ authType: "AK",
6223
+ style: "RPC",
6224
+ reqBodyType: "formData",
6225
+ bodyType: "json",
5106
6226
  });
5107
- return $tea.cast<GetScenePreviewInfoResponse>(await this.doRPCRequest("GetScenePreviewInfo", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetScenePreviewInfoResponse({}));
6227
+ return $tea.cast<GetScenePreviewInfoResponse>(await this.callApi(params, req, runtime), new GetScenePreviewInfoResponse({}));
5108
6228
  }
5109
6229
 
5110
6230
  async getScenePreviewInfo(request: GetScenePreviewInfoRequest): Promise<GetScenePreviewInfoResponse> {
@@ -5114,10 +6234,26 @@ export default class Client extends OpenApi {
5114
6234
 
5115
6235
  async getSingleConnDataWithOptions(request: GetSingleConnDataRequest, runtime: $Util.RuntimeOptions): Promise<GetSingleConnDataResponse> {
5116
6236
  Util.validateModel(request);
6237
+ let query = { };
6238
+ if (!Util.isUnset(request.subSceneId)) {
6239
+ query["SubSceneId"] = request.subSceneId;
6240
+ }
6241
+
5117
6242
  let req = new $OpenApi.OpenApiRequest({
5118
- body: Util.toMap(request),
6243
+ query: OpenApiUtil.query(query),
5119
6244
  });
5120
- return $tea.cast<GetSingleConnDataResponse>(await this.doRPCRequest("GetSingleConnData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetSingleConnDataResponse({}));
6245
+ let params = new $OpenApi.Params({
6246
+ action: "GetSingleConnData",
6247
+ version: "2020-01-01",
6248
+ protocol: "HTTPS",
6249
+ pathname: "/",
6250
+ method: "POST",
6251
+ authType: "AK",
6252
+ style: "RPC",
6253
+ reqBodyType: "formData",
6254
+ bodyType: "json",
6255
+ });
6256
+ return $tea.cast<GetSingleConnDataResponse>(await this.callApi(params, req, runtime), new GetSingleConnDataResponse({}));
5121
6257
  }
5122
6258
 
5123
6259
  async getSingleConnData(request: GetSingleConnDataRequest): Promise<GetSingleConnDataResponse> {
@@ -5127,10 +6263,26 @@ export default class Client extends OpenApi {
5127
6263
 
5128
6264
  async getSubSceneTaskStatusWithOptions(request: GetSubSceneTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetSubSceneTaskStatusResponse> {
5129
6265
  Util.validateModel(request);
6266
+ let query = { };
6267
+ if (!Util.isUnset(request.subSceneId)) {
6268
+ query["SubSceneId"] = request.subSceneId;
6269
+ }
6270
+
5130
6271
  let req = new $OpenApi.OpenApiRequest({
5131
- body: Util.toMap(request),
6272
+ query: OpenApiUtil.query(query),
6273
+ });
6274
+ let params = new $OpenApi.Params({
6275
+ action: "GetSubSceneTaskStatus",
6276
+ version: "2020-01-01",
6277
+ protocol: "HTTPS",
6278
+ pathname: "/",
6279
+ method: "POST",
6280
+ authType: "AK",
6281
+ style: "RPC",
6282
+ reqBodyType: "formData",
6283
+ bodyType: "json",
5132
6284
  });
5133
- return $tea.cast<GetSubSceneTaskStatusResponse>(await this.doRPCRequest("GetSubSceneTaskStatus", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetSubSceneTaskStatusResponse({}));
6285
+ return $tea.cast<GetSubSceneTaskStatusResponse>(await this.callApi(params, req, runtime), new GetSubSceneTaskStatusResponse({}));
5134
6286
  }
5135
6287
 
5136
6288
  async getSubSceneTaskStatus(request: GetSubSceneTaskStatusRequest): Promise<GetSubSceneTaskStatusResponse> {
@@ -5140,10 +6292,26 @@ export default class Client extends OpenApi {
5140
6292
 
5141
6293
  async getTaskStatusWithOptions(request: GetTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetTaskStatusResponse> {
5142
6294
  Util.validateModel(request);
6295
+ let query = { };
6296
+ if (!Util.isUnset(request.taskId)) {
6297
+ query["TaskId"] = request.taskId;
6298
+ }
6299
+
5143
6300
  let req = new $OpenApi.OpenApiRequest({
5144
- body: Util.toMap(request),
6301
+ query: OpenApiUtil.query(query),
5145
6302
  });
5146
- return $tea.cast<GetTaskStatusResponse>(await this.doRPCRequest("GetTaskStatus", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetTaskStatusResponse({}));
6303
+ let params = new $OpenApi.Params({
6304
+ action: "GetTaskStatus",
6305
+ version: "2020-01-01",
6306
+ protocol: "HTTPS",
6307
+ pathname: "/",
6308
+ method: "POST",
6309
+ authType: "AK",
6310
+ style: "RPC",
6311
+ reqBodyType: "formData",
6312
+ bodyType: "json",
6313
+ });
6314
+ return $tea.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
5147
6315
  }
5148
6316
 
5149
6317
  async getTaskStatus(request: GetTaskStatusRequest): Promise<GetTaskStatusResponse> {
@@ -5153,10 +6321,26 @@ export default class Client extends OpenApi {
5153
6321
 
5154
6322
  async getWindowConfigWithOptions(request: GetWindowConfigRequest, runtime: $Util.RuntimeOptions): Promise<GetWindowConfigResponse> {
5155
6323
  Util.validateModel(request);
6324
+ let query = { };
6325
+ if (!Util.isUnset(request.previewToken)) {
6326
+ query["PreviewToken"] = request.previewToken;
6327
+ }
6328
+
5156
6329
  let req = new $OpenApi.OpenApiRequest({
5157
- body: Util.toMap(request),
6330
+ query: OpenApiUtil.query(query),
6331
+ });
6332
+ let params = new $OpenApi.Params({
6333
+ action: "GetWindowConfig",
6334
+ version: "2020-01-01",
6335
+ protocol: "HTTPS",
6336
+ pathname: "/",
6337
+ method: "POST",
6338
+ authType: "AK",
6339
+ style: "RPC",
6340
+ reqBodyType: "formData",
6341
+ bodyType: "json",
5158
6342
  });
5159
- return $tea.cast<GetWindowConfigResponse>(await this.doRPCRequest("GetWindowConfig", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new GetWindowConfigResponse({}));
6343
+ return $tea.cast<GetWindowConfigResponse>(await this.callApi(params, req, runtime), new GetWindowConfigResponse({}));
5160
6344
  }
5161
6345
 
5162
6346
  async getWindowConfig(request: GetWindowConfigRequest): Promise<GetWindowConfigResponse> {
@@ -5166,10 +6350,30 @@ export default class Client extends OpenApi {
5166
6350
 
5167
6351
  async labelBuildWithOptions(request: LabelBuildRequest, runtime: $Util.RuntimeOptions): Promise<LabelBuildResponse> {
5168
6352
  Util.validateModel(request);
6353
+ let query = { };
6354
+ if (!Util.isUnset(request.mode)) {
6355
+ query["Mode"] = request.mode;
6356
+ }
6357
+
6358
+ if (!Util.isUnset(request.sceneId)) {
6359
+ query["SceneId"] = request.sceneId;
6360
+ }
6361
+
5169
6362
  let req = new $OpenApi.OpenApiRequest({
5170
- body: Util.toMap(request),
6363
+ query: OpenApiUtil.query(query),
5171
6364
  });
5172
- return $tea.cast<LabelBuildResponse>(await this.doRPCRequest("LabelBuild", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new LabelBuildResponse({}));
6365
+ let params = new $OpenApi.Params({
6366
+ action: "LabelBuild",
6367
+ version: "2020-01-01",
6368
+ protocol: "HTTPS",
6369
+ pathname: "/",
6370
+ method: "POST",
6371
+ authType: "AK",
6372
+ style: "RPC",
6373
+ reqBodyType: "formData",
6374
+ bodyType: "json",
6375
+ });
6376
+ return $tea.cast<LabelBuildResponse>(await this.callApi(params, req, runtime), new LabelBuildResponse({}));
5173
6377
  }
5174
6378
 
5175
6379
  async labelBuild(request: LabelBuildRequest): Promise<LabelBuildResponse> {
@@ -5179,10 +6383,38 @@ export default class Client extends OpenApi {
5179
6383
 
5180
6384
  async linkImageWithOptions(request: LinkImageRequest, runtime: $Util.RuntimeOptions): Promise<LinkImageResponse> {
5181
6385
  Util.validateModel(request);
6386
+ let query = { };
6387
+ if (!Util.isUnset(request.cameraHeight)) {
6388
+ query["CameraHeight"] = request.cameraHeight;
6389
+ }
6390
+
6391
+ if (!Util.isUnset(request.fileName)) {
6392
+ query["FileName"] = request.fileName;
6393
+ }
6394
+
6395
+ if (!Util.isUnset(request.platform)) {
6396
+ query["Platform"] = request.platform;
6397
+ }
6398
+
6399
+ if (!Util.isUnset(request.subSceneId)) {
6400
+ query["SubSceneId"] = request.subSceneId;
6401
+ }
6402
+
5182
6403
  let req = new $OpenApi.OpenApiRequest({
5183
- body: Util.toMap(request),
6404
+ query: OpenApiUtil.query(query),
5184
6405
  });
5185
- return $tea.cast<LinkImageResponse>(await this.doRPCRequest("LinkImage", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new LinkImageResponse({}));
6406
+ let params = new $OpenApi.Params({
6407
+ action: "LinkImage",
6408
+ version: "2020-01-01",
6409
+ protocol: "HTTPS",
6410
+ pathname: "/",
6411
+ method: "POST",
6412
+ authType: "AK",
6413
+ style: "RPC",
6414
+ reqBodyType: "formData",
6415
+ bodyType: "json",
6416
+ });
6417
+ return $tea.cast<LinkImageResponse>(await this.callApi(params, req, runtime), new LinkImageResponse({}));
5186
6418
  }
5187
6419
 
5188
6420
  async linkImage(request: LinkImageRequest): Promise<LinkImageResponse> {
@@ -5192,10 +6424,34 @@ export default class Client extends OpenApi {
5192
6424
 
5193
6425
  async listProjectWithOptions(request: ListProjectRequest, runtime: $Util.RuntimeOptions): Promise<ListProjectResponse> {
5194
6426
  Util.validateModel(request);
6427
+ let query = { };
6428
+ if (!Util.isUnset(request.name)) {
6429
+ query["Name"] = request.name;
6430
+ }
6431
+
6432
+ if (!Util.isUnset(request.pageNum)) {
6433
+ query["PageNum"] = request.pageNum;
6434
+ }
6435
+
6436
+ if (!Util.isUnset(request.pageSize)) {
6437
+ query["PageSize"] = request.pageSize;
6438
+ }
6439
+
5195
6440
  let req = new $OpenApi.OpenApiRequest({
5196
- body: Util.toMap(request),
6441
+ query: OpenApiUtil.query(query),
6442
+ });
6443
+ let params = new $OpenApi.Params({
6444
+ action: "ListProject",
6445
+ version: "2020-01-01",
6446
+ protocol: "HTTPS",
6447
+ pathname: "/",
6448
+ method: "POST",
6449
+ authType: "AK",
6450
+ style: "RPC",
6451
+ reqBodyType: "formData",
6452
+ bodyType: "json",
5197
6453
  });
5198
- return $tea.cast<ListProjectResponse>(await this.doRPCRequest("ListProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new ListProjectResponse({}));
6454
+ return $tea.cast<ListProjectResponse>(await this.callApi(params, req, runtime), new ListProjectResponse({}));
5199
6455
  }
5200
6456
 
5201
6457
  async listProject(request: ListProjectRequest): Promise<ListProjectResponse> {
@@ -5205,10 +6461,38 @@ export default class Client extends OpenApi {
5205
6461
 
5206
6462
  async listSceneWithOptions(request: ListSceneRequest, runtime: $Util.RuntimeOptions): Promise<ListSceneResponse> {
5207
6463
  Util.validateModel(request);
6464
+ let query = { };
6465
+ if (!Util.isUnset(request.name)) {
6466
+ query["Name"] = request.name;
6467
+ }
6468
+
6469
+ if (!Util.isUnset(request.pageNum)) {
6470
+ query["PageNum"] = request.pageNum;
6471
+ }
6472
+
6473
+ if (!Util.isUnset(request.pageSize)) {
6474
+ query["PageSize"] = request.pageSize;
6475
+ }
6476
+
6477
+ if (!Util.isUnset(request.projectId)) {
6478
+ query["ProjectId"] = request.projectId;
6479
+ }
6480
+
5208
6481
  let req = new $OpenApi.OpenApiRequest({
5209
- body: Util.toMap(request),
6482
+ query: OpenApiUtil.query(query),
5210
6483
  });
5211
- return $tea.cast<ListSceneResponse>(await this.doRPCRequest("ListScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new ListSceneResponse({}));
6484
+ let params = new $OpenApi.Params({
6485
+ action: "ListScene",
6486
+ version: "2020-01-01",
6487
+ protocol: "HTTPS",
6488
+ pathname: "/",
6489
+ method: "POST",
6490
+ authType: "AK",
6491
+ style: "RPC",
6492
+ reqBodyType: "formData",
6493
+ bodyType: "json",
6494
+ });
6495
+ return $tea.cast<ListSceneResponse>(await this.callApi(params, req, runtime), new ListSceneResponse({}));
5212
6496
  }
5213
6497
 
5214
6498
  async listScene(request: ListSceneRequest): Promise<ListSceneResponse> {
@@ -5218,10 +6502,30 @@ export default class Client extends OpenApi {
5218
6502
 
5219
6503
  async listScenesWithOptions(request: ListScenesRequest, runtime: $Util.RuntimeOptions): Promise<ListScenesResponse> {
5220
6504
  Util.validateModel(request);
6505
+ let query = { };
6506
+ if (!Util.isUnset(request.isPublishQuery)) {
6507
+ query["IsPublishQuery"] = request.isPublishQuery;
6508
+ }
6509
+
6510
+ if (!Util.isUnset(request.projectId)) {
6511
+ query["ProjectId"] = request.projectId;
6512
+ }
6513
+
5221
6514
  let req = new $OpenApi.OpenApiRequest({
5222
- body: Util.toMap(request),
6515
+ query: OpenApiUtil.query(query),
6516
+ });
6517
+ let params = new $OpenApi.Params({
6518
+ action: "ListScenes",
6519
+ version: "2020-01-01",
6520
+ protocol: "HTTPS",
6521
+ pathname: "/",
6522
+ method: "POST",
6523
+ authType: "AK",
6524
+ style: "RPC",
6525
+ reqBodyType: "formData",
6526
+ bodyType: "json",
5223
6527
  });
5224
- return $tea.cast<ListScenesResponse>(await this.doRPCRequest("ListScenes", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new ListScenesResponse({}));
6528
+ return $tea.cast<ListScenesResponse>(await this.callApi(params, req, runtime), new ListScenesResponse({}));
5225
6529
  }
5226
6530
 
5227
6531
  async listScenes(request: ListScenesRequest): Promise<ListScenesResponse> {
@@ -5231,10 +6535,38 @@ export default class Client extends OpenApi {
5231
6535
 
5232
6536
  async listSubSceneWithOptions(request: ListSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<ListSubSceneResponse> {
5233
6537
  Util.validateModel(request);
6538
+ let query = { };
6539
+ if (!Util.isUnset(request.pageNum)) {
6540
+ query["PageNum"] = request.pageNum;
6541
+ }
6542
+
6543
+ if (!Util.isUnset(request.pageSize)) {
6544
+ query["PageSize"] = request.pageSize;
6545
+ }
6546
+
6547
+ if (!Util.isUnset(request.sceneId)) {
6548
+ query["SceneId"] = request.sceneId;
6549
+ }
6550
+
6551
+ if (!Util.isUnset(request.showLayoutData)) {
6552
+ query["ShowLayoutData"] = request.showLayoutData;
6553
+ }
6554
+
5234
6555
  let req = new $OpenApi.OpenApiRequest({
5235
- body: Util.toMap(request),
6556
+ query: OpenApiUtil.query(query),
5236
6557
  });
5237
- return $tea.cast<ListSubSceneResponse>(await this.doRPCRequest("ListSubScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new ListSubSceneResponse({}));
6558
+ let params = new $OpenApi.Params({
6559
+ action: "ListSubScene",
6560
+ version: "2020-01-01",
6561
+ protocol: "HTTPS",
6562
+ pathname: "/",
6563
+ method: "POST",
6564
+ authType: "AK",
6565
+ style: "RPC",
6566
+ reqBodyType: "formData",
6567
+ bodyType: "json",
6568
+ });
6569
+ return $tea.cast<ListSubSceneResponse>(await this.callApi(params, req, runtime), new ListSubSceneResponse({}));
5238
6570
  }
5239
6571
 
5240
6572
  async listSubScene(request: ListSubSceneRequest): Promise<ListSubSceneResponse> {
@@ -5244,10 +6576,26 @@ export default class Client extends OpenApi {
5244
6576
 
5245
6577
  async optimizeRightAngleWithOptions(request: OptimizeRightAngleRequest, runtime: $Util.RuntimeOptions): Promise<OptimizeRightAngleResponse> {
5246
6578
  Util.validateModel(request);
6579
+ let query = { };
6580
+ if (!Util.isUnset(request.subSceneId)) {
6581
+ query["SubSceneId"] = request.subSceneId;
6582
+ }
6583
+
5247
6584
  let req = new $OpenApi.OpenApiRequest({
5248
- body: Util.toMap(request),
6585
+ query: OpenApiUtil.query(query),
6586
+ });
6587
+ let params = new $OpenApi.Params({
6588
+ action: "OptimizeRightAngle",
6589
+ version: "2020-01-01",
6590
+ protocol: "HTTPS",
6591
+ pathname: "/",
6592
+ method: "POST",
6593
+ authType: "AK",
6594
+ style: "RPC",
6595
+ reqBodyType: "formData",
6596
+ bodyType: "json",
5249
6597
  });
5250
- return $tea.cast<OptimizeRightAngleResponse>(await this.doRPCRequest("OptimizeRightAngle", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new OptimizeRightAngleResponse({}));
6598
+ return $tea.cast<OptimizeRightAngleResponse>(await this.callApi(params, req, runtime), new OptimizeRightAngleResponse({}));
5251
6599
  }
5252
6600
 
5253
6601
  async optimizeRightAngle(request: OptimizeRightAngleRequest): Promise<OptimizeRightAngleResponse> {
@@ -5257,10 +6605,38 @@ export default class Client extends OpenApi {
5257
6605
 
5258
6606
  async predImageWithOptions(request: PredImageRequest, runtime: $Util.RuntimeOptions): Promise<PredImageResponse> {
5259
6607
  Util.validateModel(request);
6608
+ let query = { };
6609
+ if (!Util.isUnset(request.correctVertical)) {
6610
+ query["CorrectVertical"] = request.correctVertical;
6611
+ }
6612
+
6613
+ if (!Util.isUnset(request.countDetectDoor)) {
6614
+ query["CountDetectDoor"] = request.countDetectDoor;
6615
+ }
6616
+
6617
+ if (!Util.isUnset(request.detectDoor)) {
6618
+ query["DetectDoor"] = request.detectDoor;
6619
+ }
6620
+
6621
+ if (!Util.isUnset(request.subSceneId)) {
6622
+ query["SubSceneId"] = request.subSceneId;
6623
+ }
6624
+
5260
6625
  let req = new $OpenApi.OpenApiRequest({
5261
- body: Util.toMap(request),
6626
+ query: OpenApiUtil.query(query),
5262
6627
  });
5263
- return $tea.cast<PredImageResponse>(await this.doRPCRequest("PredImage", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new PredImageResponse({}));
6628
+ let params = new $OpenApi.Params({
6629
+ action: "PredImage",
6630
+ version: "2020-01-01",
6631
+ protocol: "HTTPS",
6632
+ pathname: "/",
6633
+ method: "POST",
6634
+ authType: "AK",
6635
+ style: "RPC",
6636
+ reqBodyType: "formData",
6637
+ bodyType: "json",
6638
+ });
6639
+ return $tea.cast<PredImageResponse>(await this.callApi(params, req, runtime), new PredImageResponse({}));
5264
6640
  }
5265
6641
 
5266
6642
  async predImage(request: PredImageRequest): Promise<PredImageResponse> {
@@ -5270,10 +6646,30 @@ export default class Client extends OpenApi {
5270
6646
 
5271
6647
  async predictionWallLineWithOptions(request: PredictionWallLineRequest, runtime: $Util.RuntimeOptions): Promise<PredictionWallLineResponse> {
5272
6648
  Util.validateModel(request);
6649
+ let query = { };
6650
+ if (!Util.isUnset(request.cameraHeight)) {
6651
+ query["CameraHeight"] = request.cameraHeight;
6652
+ }
6653
+
6654
+ if (!Util.isUnset(request.url)) {
6655
+ query["Url"] = request.url;
6656
+ }
6657
+
5273
6658
  let req = new $OpenApi.OpenApiRequest({
5274
- body: Util.toMap(request),
6659
+ query: OpenApiUtil.query(query),
6660
+ });
6661
+ let params = new $OpenApi.Params({
6662
+ action: "PredictionWallLine",
6663
+ version: "2020-01-01",
6664
+ protocol: "HTTPS",
6665
+ pathname: "/",
6666
+ method: "POST",
6667
+ authType: "AK",
6668
+ style: "RPC",
6669
+ reqBodyType: "formData",
6670
+ bodyType: "json",
5275
6671
  });
5276
- return $tea.cast<PredictionWallLineResponse>(await this.doRPCRequest("PredictionWallLine", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new PredictionWallLineResponse({}));
6672
+ return $tea.cast<PredictionWallLineResponse>(await this.callApi(params, req, runtime), new PredictionWallLineResponse({}));
5277
6673
  }
5278
6674
 
5279
6675
  async predictionWallLine(request: PredictionWallLineRequest): Promise<PredictionWallLineResponse> {
@@ -5283,10 +6679,30 @@ export default class Client extends OpenApi {
5283
6679
 
5284
6680
  async publishHotspotWithOptions(request: PublishHotspotRequest, runtime: $Util.RuntimeOptions): Promise<PublishHotspotResponse> {
5285
6681
  Util.validateModel(request);
6682
+ let query = { };
6683
+ if (!Util.isUnset(request.paramTag)) {
6684
+ query["ParamTag"] = request.paramTag;
6685
+ }
6686
+
6687
+ if (!Util.isUnset(request.subSceneUuid)) {
6688
+ query["SubSceneUuid"] = request.subSceneUuid;
6689
+ }
6690
+
5286
6691
  let req = new $OpenApi.OpenApiRequest({
5287
- body: Util.toMap(request),
6692
+ query: OpenApiUtil.query(query),
5288
6693
  });
5289
- return $tea.cast<PublishHotspotResponse>(await this.doRPCRequest("PublishHotspot", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new PublishHotspotResponse({}));
6694
+ let params = new $OpenApi.Params({
6695
+ action: "PublishHotspot",
6696
+ version: "2020-01-01",
6697
+ protocol: "HTTPS",
6698
+ pathname: "/",
6699
+ method: "POST",
6700
+ authType: "AK",
6701
+ style: "RPC",
6702
+ reqBodyType: "formData",
6703
+ bodyType: "json",
6704
+ });
6705
+ return $tea.cast<PublishHotspotResponse>(await this.callApi(params, req, runtime), new PublishHotspotResponse({}));
5290
6706
  }
5291
6707
 
5292
6708
  async publishHotspot(request: PublishHotspotRequest): Promise<PublishHotspotResponse> {
@@ -5296,10 +6712,26 @@ export default class Client extends OpenApi {
5296
6712
 
5297
6713
  async publishSceneWithOptions(request: PublishSceneRequest, runtime: $Util.RuntimeOptions): Promise<PublishSceneResponse> {
5298
6714
  Util.validateModel(request);
6715
+ let query = { };
6716
+ if (!Util.isUnset(request.sceneId)) {
6717
+ query["SceneId"] = request.sceneId;
6718
+ }
6719
+
5299
6720
  let req = new $OpenApi.OpenApiRequest({
5300
- body: Util.toMap(request),
6721
+ query: OpenApiUtil.query(query),
6722
+ });
6723
+ let params = new $OpenApi.Params({
6724
+ action: "PublishScene",
6725
+ version: "2020-01-01",
6726
+ protocol: "HTTPS",
6727
+ pathname: "/",
6728
+ method: "POST",
6729
+ authType: "AK",
6730
+ style: "RPC",
6731
+ reqBodyType: "formData",
6732
+ bodyType: "json",
5301
6733
  });
5302
- return $tea.cast<PublishSceneResponse>(await this.doRPCRequest("PublishScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new PublishSceneResponse({}));
6734
+ return $tea.cast<PublishSceneResponse>(await this.callApi(params, req, runtime), new PublishSceneResponse({}));
5303
6735
  }
5304
6736
 
5305
6737
  async publishScene(request: PublishSceneRequest): Promise<PublishSceneResponse> {
@@ -5309,10 +6741,26 @@ export default class Client extends OpenApi {
5309
6741
 
5310
6742
  async publishStatusWithOptions(request: PublishStatusRequest, runtime: $Util.RuntimeOptions): Promise<PublishStatusResponse> {
5311
6743
  Util.validateModel(request);
6744
+ let query = { };
6745
+ if (!Util.isUnset(request.sceneId)) {
6746
+ query["SceneId"] = request.sceneId;
6747
+ }
6748
+
5312
6749
  let req = new $OpenApi.OpenApiRequest({
5313
- body: Util.toMap(request),
6750
+ query: OpenApiUtil.query(query),
5314
6751
  });
5315
- return $tea.cast<PublishStatusResponse>(await this.doRPCRequest("PublishStatus", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new PublishStatusResponse({}));
6752
+ let params = new $OpenApi.Params({
6753
+ action: "PublishStatus",
6754
+ version: "2020-01-01",
6755
+ protocol: "HTTPS",
6756
+ pathname: "/",
6757
+ method: "POST",
6758
+ authType: "AK",
6759
+ style: "RPC",
6760
+ reqBodyType: "formData",
6761
+ bodyType: "json",
6762
+ });
6763
+ return $tea.cast<PublishStatusResponse>(await this.callApi(params, req, runtime), new PublishStatusResponse({}));
5316
6764
  }
5317
6765
 
5318
6766
  async publishStatus(request: PublishStatusRequest): Promise<PublishStatusResponse> {
@@ -5322,10 +6770,26 @@ export default class Client extends OpenApi {
5322
6770
 
5323
6771
  async recoveryOriginImageWithOptions(request: RecoveryOriginImageRequest, runtime: $Util.RuntimeOptions): Promise<RecoveryOriginImageResponse> {
5324
6772
  Util.validateModel(request);
6773
+ let query = { };
6774
+ if (!Util.isUnset(request.subSceneId)) {
6775
+ query["SubSceneId"] = request.subSceneId;
6776
+ }
6777
+
5325
6778
  let req = new $OpenApi.OpenApiRequest({
5326
- body: Util.toMap(request),
6779
+ query: OpenApiUtil.query(query),
6780
+ });
6781
+ let params = new $OpenApi.Params({
6782
+ action: "RecoveryOriginImage",
6783
+ version: "2020-01-01",
6784
+ protocol: "HTTPS",
6785
+ pathname: "/",
6786
+ method: "POST",
6787
+ authType: "AK",
6788
+ style: "RPC",
6789
+ reqBodyType: "formData",
6790
+ bodyType: "json",
5327
6791
  });
5328
- return $tea.cast<RecoveryOriginImageResponse>(await this.doRPCRequest("RecoveryOriginImage", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new RecoveryOriginImageResponse({}));
6792
+ return $tea.cast<RecoveryOriginImageResponse>(await this.callApi(params, req, runtime), new RecoveryOriginImageResponse({}));
5329
6793
  }
5330
6794
 
5331
6795
  async recoveryOriginImage(request: RecoveryOriginImageRequest): Promise<RecoveryOriginImageResponse> {
@@ -5335,10 +6799,38 @@ export default class Client extends OpenApi {
5335
6799
 
5336
6800
  async rectVerticalWithOptions(request: RectVerticalRequest, runtime: $Util.RuntimeOptions): Promise<RectVerticalResponse> {
5337
6801
  Util.validateModel(request);
6802
+ let query = { };
6803
+ if (!Util.isUnset(request.countDetectDoor)) {
6804
+ query["CountDetectDoor"] = request.countDetectDoor;
6805
+ }
6806
+
6807
+ if (!Util.isUnset(request.detectDoor)) {
6808
+ query["DetectDoor"] = request.detectDoor;
6809
+ }
6810
+
6811
+ if (!Util.isUnset(request.subSceneId)) {
6812
+ query["SubSceneId"] = request.subSceneId;
6813
+ }
6814
+
6815
+ if (!Util.isUnset(request.verticalRect)) {
6816
+ query["VerticalRect"] = request.verticalRect;
6817
+ }
6818
+
5338
6819
  let req = new $OpenApi.OpenApiRequest({
5339
- body: Util.toMap(request),
6820
+ query: OpenApiUtil.query(query),
5340
6821
  });
5341
- return $tea.cast<RectVerticalResponse>(await this.doRPCRequest("RectVertical", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new RectVerticalResponse({}));
6822
+ let params = new $OpenApi.Params({
6823
+ action: "RectVertical",
6824
+ version: "2020-01-01",
6825
+ protocol: "HTTPS",
6826
+ pathname: "/",
6827
+ method: "POST",
6828
+ authType: "AK",
6829
+ style: "RPC",
6830
+ reqBodyType: "formData",
6831
+ bodyType: "json",
6832
+ });
6833
+ return $tea.cast<RectVerticalResponse>(await this.callApi(params, req, runtime), new RectVerticalResponse({}));
5342
6834
  }
5343
6835
 
5344
6836
  async rectVertical(request: RectVerticalRequest): Promise<RectVerticalResponse> {
@@ -5348,10 +6840,30 @@ export default class Client extends OpenApi {
5348
6840
 
5349
6841
  async rectifyImageWithOptions(request: RectifyImageRequest, runtime: $Util.RuntimeOptions): Promise<RectifyImageResponse> {
5350
6842
  Util.validateModel(request);
6843
+ let query = { };
6844
+ if (!Util.isUnset(request.cameraHeight)) {
6845
+ query["CameraHeight"] = request.cameraHeight;
6846
+ }
6847
+
6848
+ if (!Util.isUnset(request.url)) {
6849
+ query["Url"] = request.url;
6850
+ }
6851
+
5351
6852
  let req = new $OpenApi.OpenApiRequest({
5352
- body: Util.toMap(request),
6853
+ query: OpenApiUtil.query(query),
6854
+ });
6855
+ let params = new $OpenApi.Params({
6856
+ action: "RectifyImage",
6857
+ version: "2020-01-01",
6858
+ protocol: "HTTPS",
6859
+ pathname: "/",
6860
+ method: "POST",
6861
+ authType: "AK",
6862
+ style: "RPC",
6863
+ reqBodyType: "formData",
6864
+ bodyType: "json",
5353
6865
  });
5354
- return $tea.cast<RectifyImageResponse>(await this.doRPCRequest("RectifyImage", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new RectifyImageResponse({}));
6866
+ return $tea.cast<RectifyImageResponse>(await this.callApi(params, req, runtime), new RectifyImageResponse({}));
5355
6867
  }
5356
6868
 
5357
6869
  async rectifyImage(request: RectifyImageRequest): Promise<RectifyImageResponse> {
@@ -5361,10 +6873,26 @@ export default class Client extends OpenApi {
5361
6873
 
5362
6874
  async rollbackSubSceneWithOptions(request: RollbackSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<RollbackSubSceneResponse> {
5363
6875
  Util.validateModel(request);
6876
+ let query = { };
6877
+ if (!Util.isUnset(request.id)) {
6878
+ query["Id"] = request.id;
6879
+ }
6880
+
5364
6881
  let req = new $OpenApi.OpenApiRequest({
5365
- body: Util.toMap(request),
6882
+ query: OpenApiUtil.query(query),
5366
6883
  });
5367
- return $tea.cast<RollbackSubSceneResponse>(await this.doRPCRequest("RollbackSubScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new RollbackSubSceneResponse({}));
6884
+ let params = new $OpenApi.Params({
6885
+ action: "RollbackSubScene",
6886
+ version: "2020-01-01",
6887
+ protocol: "HTTPS",
6888
+ pathname: "/",
6889
+ method: "POST",
6890
+ authType: "AK",
6891
+ style: "RPC",
6892
+ reqBodyType: "formData",
6893
+ bodyType: "json",
6894
+ });
6895
+ return $tea.cast<RollbackSubSceneResponse>(await this.callApi(params, req, runtime), new RollbackSubSceneResponse({}));
5368
6896
  }
5369
6897
 
5370
6898
  async rollbackSubScene(request: RollbackSubSceneRequest): Promise<RollbackSubSceneResponse> {
@@ -5374,10 +6902,30 @@ export default class Client extends OpenApi {
5374
6902
 
5375
6903
  async saveHotspotConfigWithOptions(request: SaveHotspotConfigRequest, runtime: $Util.RuntimeOptions): Promise<SaveHotspotConfigResponse> {
5376
6904
  Util.validateModel(request);
6905
+ let query = { };
6906
+ if (!Util.isUnset(request.paramTag)) {
6907
+ query["ParamTag"] = request.paramTag;
6908
+ }
6909
+
6910
+ if (!Util.isUnset(request.previewToken)) {
6911
+ query["PreviewToken"] = request.previewToken;
6912
+ }
6913
+
5377
6914
  let req = new $OpenApi.OpenApiRequest({
5378
- body: Util.toMap(request),
6915
+ query: OpenApiUtil.query(query),
6916
+ });
6917
+ let params = new $OpenApi.Params({
6918
+ action: "SaveHotspotConfig",
6919
+ version: "2020-01-01",
6920
+ protocol: "HTTPS",
6921
+ pathname: "/",
6922
+ method: "POST",
6923
+ authType: "AK",
6924
+ style: "RPC",
6925
+ reqBodyType: "formData",
6926
+ bodyType: "json",
5379
6927
  });
5380
- return $tea.cast<SaveHotspotConfigResponse>(await this.doRPCRequest("SaveHotspotConfig", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new SaveHotspotConfigResponse({}));
6928
+ return $tea.cast<SaveHotspotConfigResponse>(await this.callApi(params, req, runtime), new SaveHotspotConfigResponse({}));
5381
6929
  }
5382
6930
 
5383
6931
  async saveHotspotConfig(request: SaveHotspotConfigRequest): Promise<SaveHotspotConfigResponse> {
@@ -5387,10 +6935,30 @@ export default class Client extends OpenApi {
5387
6935
 
5388
6936
  async saveHotspotTagWithOptions(request: SaveHotspotTagRequest, runtime: $Util.RuntimeOptions): Promise<SaveHotspotTagResponse> {
5389
6937
  Util.validateModel(request);
6938
+ let query = { };
6939
+ if (!Util.isUnset(request.paramTag)) {
6940
+ query["ParamTag"] = request.paramTag;
6941
+ }
6942
+
6943
+ if (!Util.isUnset(request.subSceneUuid)) {
6944
+ query["SubSceneUuid"] = request.subSceneUuid;
6945
+ }
6946
+
5390
6947
  let req = new $OpenApi.OpenApiRequest({
5391
- body: Util.toMap(request),
6948
+ query: OpenApiUtil.query(query),
5392
6949
  });
5393
- return $tea.cast<SaveHotspotTagResponse>(await this.doRPCRequest("SaveHotspotTag", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new SaveHotspotTagResponse({}));
6950
+ let params = new $OpenApi.Params({
6951
+ action: "SaveHotspotTag",
6952
+ version: "2020-01-01",
6953
+ protocol: "HTTPS",
6954
+ pathname: "/",
6955
+ method: "POST",
6956
+ authType: "AK",
6957
+ style: "RPC",
6958
+ reqBodyType: "formData",
6959
+ bodyType: "json",
6960
+ });
6961
+ return $tea.cast<SaveHotspotTagResponse>(await this.callApi(params, req, runtime), new SaveHotspotTagResponse({}));
5394
6962
  }
5395
6963
 
5396
6964
  async saveHotspotTag(request: SaveHotspotTagRequest): Promise<SaveHotspotTagResponse> {
@@ -5400,10 +6968,26 @@ export default class Client extends OpenApi {
5400
6968
 
5401
6969
  async scenePublishWithOptions(request: ScenePublishRequest, runtime: $Util.RuntimeOptions): Promise<ScenePublishResponse> {
5402
6970
  Util.validateModel(request);
6971
+ let query = { };
6972
+ if (!Util.isUnset(request.sceneId)) {
6973
+ query["SceneId"] = request.sceneId;
6974
+ }
6975
+
5403
6976
  let req = new $OpenApi.OpenApiRequest({
5404
- body: Util.toMap(request),
6977
+ query: OpenApiUtil.query(query),
6978
+ });
6979
+ let params = new $OpenApi.Params({
6980
+ action: "ScenePublish",
6981
+ version: "2020-01-01",
6982
+ protocol: "HTTPS",
6983
+ pathname: "/",
6984
+ method: "POST",
6985
+ authType: "AK",
6986
+ style: "RPC",
6987
+ reqBodyType: "formData",
6988
+ bodyType: "json",
5405
6989
  });
5406
- return $tea.cast<ScenePublishResponse>(await this.doRPCRequest("ScenePublish", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new ScenePublishResponse({}));
6990
+ return $tea.cast<ScenePublishResponse>(await this.callApi(params, req, runtime), new ScenePublishResponse({}));
5407
6991
  }
5408
6992
 
5409
6993
  async scenePublish(request: ScenePublishRequest): Promise<ScenePublishResponse> {
@@ -5413,10 +6997,26 @@ export default class Client extends OpenApi {
5413
6997
 
5414
6998
  async tempPreviewWithOptions(request: TempPreviewRequest, runtime: $Util.RuntimeOptions): Promise<TempPreviewResponse> {
5415
6999
  Util.validateModel(request);
7000
+ let query = { };
7001
+ if (!Util.isUnset(request.sceneId)) {
7002
+ query["SceneId"] = request.sceneId;
7003
+ }
7004
+
5416
7005
  let req = new $OpenApi.OpenApiRequest({
5417
- body: Util.toMap(request),
7006
+ query: OpenApiUtil.query(query),
5418
7007
  });
5419
- return $tea.cast<TempPreviewResponse>(await this.doRPCRequest("TempPreview", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new TempPreviewResponse({}));
7008
+ let params = new $OpenApi.Params({
7009
+ action: "TempPreview",
7010
+ version: "2020-01-01",
7011
+ protocol: "HTTPS",
7012
+ pathname: "/",
7013
+ method: "POST",
7014
+ authType: "AK",
7015
+ style: "RPC",
7016
+ reqBodyType: "formData",
7017
+ bodyType: "json",
7018
+ });
7019
+ return $tea.cast<TempPreviewResponse>(await this.callApi(params, req, runtime), new TempPreviewResponse({}));
5420
7020
  }
5421
7021
 
5422
7022
  async tempPreview(request: TempPreviewRequest): Promise<TempPreviewResponse> {
@@ -5426,10 +7026,26 @@ export default class Client extends OpenApi {
5426
7026
 
5427
7027
  async tempPreviewStatusWithOptions(request: TempPreviewStatusRequest, runtime: $Util.RuntimeOptions): Promise<TempPreviewStatusResponse> {
5428
7028
  Util.validateModel(request);
7029
+ let query = { };
7030
+ if (!Util.isUnset(request.sceneId)) {
7031
+ query["SceneId"] = request.sceneId;
7032
+ }
7033
+
5429
7034
  let req = new $OpenApi.OpenApiRequest({
5430
- body: Util.toMap(request),
7035
+ query: OpenApiUtil.query(query),
7036
+ });
7037
+ let params = new $OpenApi.Params({
7038
+ action: "TempPreviewStatus",
7039
+ version: "2020-01-01",
7040
+ protocol: "HTTPS",
7041
+ pathname: "/",
7042
+ method: "POST",
7043
+ authType: "AK",
7044
+ style: "RPC",
7045
+ reqBodyType: "formData",
7046
+ bodyType: "json",
5431
7047
  });
5432
- return $tea.cast<TempPreviewStatusResponse>(await this.doRPCRequest("TempPreviewStatus", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new TempPreviewStatusResponse({}));
7048
+ return $tea.cast<TempPreviewStatusResponse>(await this.callApi(params, req, runtime), new TempPreviewStatusResponse({}));
5433
7049
  }
5434
7050
 
5435
7051
  async tempPreviewStatus(request: TempPreviewStatusRequest): Promise<TempPreviewStatusResponse> {
@@ -5439,10 +7055,30 @@ export default class Client extends OpenApi {
5439
7055
 
5440
7056
  async updateConnDataWithOptions(request: UpdateConnDataRequest, runtime: $Util.RuntimeOptions): Promise<UpdateConnDataResponse> {
5441
7057
  Util.validateModel(request);
7058
+ let query = { };
7059
+ if (!Util.isUnset(request.connData)) {
7060
+ query["ConnData"] = request.connData;
7061
+ }
7062
+
7063
+ if (!Util.isUnset(request.sceneId)) {
7064
+ query["SceneId"] = request.sceneId;
7065
+ }
7066
+
5442
7067
  let req = new $OpenApi.OpenApiRequest({
5443
- body: Util.toMap(request),
7068
+ query: OpenApiUtil.query(query),
5444
7069
  });
5445
- return $tea.cast<UpdateConnDataResponse>(await this.doRPCRequest("UpdateConnData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new UpdateConnDataResponse({}));
7070
+ let params = new $OpenApi.Params({
7071
+ action: "UpdateConnData",
7072
+ version: "2020-01-01",
7073
+ protocol: "HTTPS",
7074
+ pathname: "/",
7075
+ method: "POST",
7076
+ authType: "AK",
7077
+ style: "RPC",
7078
+ reqBodyType: "formData",
7079
+ bodyType: "json",
7080
+ });
7081
+ return $tea.cast<UpdateConnDataResponse>(await this.callApi(params, req, runtime), new UpdateConnDataResponse({}));
5446
7082
  }
5447
7083
 
5448
7084
  async updateConnData(request: UpdateConnDataRequest): Promise<UpdateConnDataResponse> {
@@ -5452,10 +7088,30 @@ export default class Client extends OpenApi {
5452
7088
 
5453
7089
  async updateLayoutDataWithOptions(request: UpdateLayoutDataRequest, runtime: $Util.RuntimeOptions): Promise<UpdateLayoutDataResponse> {
5454
7090
  Util.validateModel(request);
7091
+ let query = { };
7092
+ if (!Util.isUnset(request.layoutData)) {
7093
+ query["LayoutData"] = request.layoutData;
7094
+ }
7095
+
7096
+ if (!Util.isUnset(request.subSceneId)) {
7097
+ query["SubSceneId"] = request.subSceneId;
7098
+ }
7099
+
5455
7100
  let req = new $OpenApi.OpenApiRequest({
5456
- body: Util.toMap(request),
7101
+ query: OpenApiUtil.query(query),
7102
+ });
7103
+ let params = new $OpenApi.Params({
7104
+ action: "UpdateLayoutData",
7105
+ version: "2020-01-01",
7106
+ protocol: "HTTPS",
7107
+ pathname: "/",
7108
+ method: "POST",
7109
+ authType: "AK",
7110
+ style: "RPC",
7111
+ reqBodyType: "formData",
7112
+ bodyType: "json",
5457
7113
  });
5458
- return $tea.cast<UpdateLayoutDataResponse>(await this.doRPCRequest("UpdateLayoutData", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new UpdateLayoutDataResponse({}));
7114
+ return $tea.cast<UpdateLayoutDataResponse>(await this.callApi(params, req, runtime), new UpdateLayoutDataResponse({}));
5459
7115
  }
5460
7116
 
5461
7117
  async updateLayoutData(request: UpdateLayoutDataRequest): Promise<UpdateLayoutDataResponse> {
@@ -5465,10 +7121,34 @@ export default class Client extends OpenApi {
5465
7121
 
5466
7122
  async updateProjectWithOptions(request: UpdateProjectRequest, runtime: $Util.RuntimeOptions): Promise<UpdateProjectResponse> {
5467
7123
  Util.validateModel(request);
7124
+ let query = { };
7125
+ if (!Util.isUnset(request.businessId)) {
7126
+ query["BusinessId"] = request.businessId;
7127
+ }
7128
+
7129
+ if (!Util.isUnset(request.id)) {
7130
+ query["Id"] = request.id;
7131
+ }
7132
+
7133
+ if (!Util.isUnset(request.name)) {
7134
+ query["Name"] = request.name;
7135
+ }
7136
+
5468
7137
  let req = new $OpenApi.OpenApiRequest({
5469
- body: Util.toMap(request),
7138
+ query: OpenApiUtil.query(query),
5470
7139
  });
5471
- return $tea.cast<UpdateProjectResponse>(await this.doRPCRequest("UpdateProject", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new UpdateProjectResponse({}));
7140
+ let params = new $OpenApi.Params({
7141
+ action: "UpdateProject",
7142
+ version: "2020-01-01",
7143
+ protocol: "HTTPS",
7144
+ pathname: "/",
7145
+ method: "POST",
7146
+ authType: "AK",
7147
+ style: "RPC",
7148
+ reqBodyType: "formData",
7149
+ bodyType: "json",
7150
+ });
7151
+ return $tea.cast<UpdateProjectResponse>(await this.callApi(params, req, runtime), new UpdateProjectResponse({}));
5472
7152
  }
5473
7153
 
5474
7154
  async updateProject(request: UpdateProjectRequest): Promise<UpdateProjectResponse> {
@@ -5478,10 +7158,30 @@ export default class Client extends OpenApi {
5478
7158
 
5479
7159
  async updateSceneWithOptions(request: UpdateSceneRequest, runtime: $Util.RuntimeOptions): Promise<UpdateSceneResponse> {
5480
7160
  Util.validateModel(request);
7161
+ let query = { };
7162
+ if (!Util.isUnset(request.id)) {
7163
+ query["Id"] = request.id;
7164
+ }
7165
+
7166
+ if (!Util.isUnset(request.name)) {
7167
+ query["Name"] = request.name;
7168
+ }
7169
+
5481
7170
  let req = new $OpenApi.OpenApiRequest({
5482
- body: Util.toMap(request),
7171
+ query: OpenApiUtil.query(query),
7172
+ });
7173
+ let params = new $OpenApi.Params({
7174
+ action: "UpdateScene",
7175
+ version: "2020-01-01",
7176
+ protocol: "HTTPS",
7177
+ pathname: "/",
7178
+ method: "POST",
7179
+ authType: "AK",
7180
+ style: "RPC",
7181
+ reqBodyType: "formData",
7182
+ bodyType: "json",
5483
7183
  });
5484
- return $tea.cast<UpdateSceneResponse>(await this.doRPCRequest("UpdateScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new UpdateSceneResponse({}));
7184
+ return $tea.cast<UpdateSceneResponse>(await this.callApi(params, req, runtime), new UpdateSceneResponse({}));
5485
7185
  }
5486
7186
 
5487
7187
  async updateScene(request: UpdateSceneRequest): Promise<UpdateSceneResponse> {
@@ -5491,10 +7191,30 @@ export default class Client extends OpenApi {
5491
7191
 
5492
7192
  async updateSubSceneWithOptions(request: UpdateSubSceneRequest, runtime: $Util.RuntimeOptions): Promise<UpdateSubSceneResponse> {
5493
7193
  Util.validateModel(request);
7194
+ let query = { };
7195
+ if (!Util.isUnset(request.id)) {
7196
+ query["Id"] = request.id;
7197
+ }
7198
+
7199
+ if (!Util.isUnset(request.name)) {
7200
+ query["Name"] = request.name;
7201
+ }
7202
+
5494
7203
  let req = new $OpenApi.OpenApiRequest({
5495
- body: Util.toMap(request),
7204
+ query: OpenApiUtil.query(query),
7205
+ });
7206
+ let params = new $OpenApi.Params({
7207
+ action: "UpdateSubScene",
7208
+ version: "2020-01-01",
7209
+ protocol: "HTTPS",
7210
+ pathname: "/",
7211
+ method: "POST",
7212
+ authType: "AK",
7213
+ style: "RPC",
7214
+ reqBodyType: "formData",
7215
+ bodyType: "json",
5496
7216
  });
5497
- return $tea.cast<UpdateSubSceneResponse>(await this.doRPCRequest("UpdateSubScene", "2020-01-01", "HTTPS", "POST", "AK", "json", req, runtime), new UpdateSubSceneResponse({}));
7217
+ return $tea.cast<UpdateSubSceneResponse>(await this.callApi(params, req, runtime), new UpdateSubSceneResponse({}));
5498
7218
  }
5499
7219
 
5500
7220
  async updateSubScene(request: UpdateSubSceneRequest): Promise<UpdateSubSceneResponse> {