@alicloud/ecd20200930 4.7.4 → 4.7.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/dist/client.js CHANGED
@@ -3644,9 +3644,18 @@ class Client extends openapi_core_1.default {
3644
3644
  async createTemplateWithOptions(request, runtime) {
3645
3645
  request.validate();
3646
3646
  let body = {};
3647
+ if (!$dara.isNull(request.autoPay)) {
3648
+ body["AutoPay"] = request.autoPay;
3649
+ }
3650
+ if (!$dara.isNull(request.autoRenew)) {
3651
+ body["AutoRenew"] = request.autoRenew;
3652
+ }
3647
3653
  if (!$dara.isNull(request.bizType)) {
3648
3654
  body["BizType"] = request.bizType;
3649
3655
  }
3656
+ if (!$dara.isNull(request.chargeType)) {
3657
+ body["ChargeType"] = request.chargeType;
3658
+ }
3650
3659
  let bodyFlat = {};
3651
3660
  if (!$dara.isNull(request.dataDiskList)) {
3652
3661
  bodyFlat["DataDiskList"] = request.dataDiskList;
@@ -3660,9 +3669,18 @@ class Client extends openapi_core_1.default {
3660
3669
  if (!$dara.isNull(request.imageId)) {
3661
3670
  body["ImageId"] = request.imageId;
3662
3671
  }
3672
+ if (!$dara.isNull(request.period)) {
3673
+ body["Period"] = request.period;
3674
+ }
3675
+ if (!$dara.isNull(request.periodUnit)) {
3676
+ body["PeriodUnit"] = request.periodUnit;
3677
+ }
3663
3678
  if (!$dara.isNull(request.policyGroupId)) {
3664
3679
  body["PolicyGroupId"] = request.policyGroupId;
3665
3680
  }
3681
+ if (!$dara.isNull(request.postPaidAfterUsedUp)) {
3682
+ body["PostPaidAfterUsedUp"] = request.postPaidAfterUsedUp;
3683
+ }
3666
3684
  if (!$dara.isNull(request.productType)) {
3667
3685
  body["ProductType"] = request.productType;
3668
3686
  }
@@ -3690,6 +3708,9 @@ class Client extends openapi_core_1.default {
3690
3708
  if (!$dara.isNull(request.timerGroupId)) {
3691
3709
  body["TimerGroupId"] = request.timerGroupId;
3692
3710
  }
3711
+ if (!$dara.isNull(request.userDuration)) {
3712
+ body["UserDuration"] = request.userDuration;
3713
+ }
3693
3714
  body = Object.assign(Object.assign({}, body), openapi_core_2.OpenApiUtil.query(bodyFlat));
3694
3715
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3695
3716
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
@@ -12295,11 +12316,16 @@ class Client extends openapi_core_1.default {
12295
12316
  */
12296
12317
  async modifyTemplateWithOptions(request, runtime) {
12297
12318
  request.validate();
12298
- let query = {};
12299
- if (!$dara.isNull(request.siteConfigList)) {
12300
- query["SiteConfigList"] = request.siteConfigList;
12301
- }
12302
12319
  let body = {};
12320
+ if (!$dara.isNull(request.autoPay)) {
12321
+ body["AutoPay"] = request.autoPay;
12322
+ }
12323
+ if (!$dara.isNull(request.autoRenew)) {
12324
+ body["AutoRenew"] = request.autoRenew;
12325
+ }
12326
+ if (!$dara.isNull(request.chargeType)) {
12327
+ body["ChargeType"] = request.chargeType;
12328
+ }
12303
12329
  if (!$dara.isNull(request.defaultLanguage)) {
12304
12330
  body["DefaultLanguage"] = request.defaultLanguage;
12305
12331
  }
@@ -12309,9 +12335,18 @@ class Client extends openapi_core_1.default {
12309
12335
  if (!$dara.isNull(request.imageId)) {
12310
12336
  body["ImageId"] = request.imageId;
12311
12337
  }
12338
+ if (!$dara.isNull(request.period)) {
12339
+ body["Period"] = request.period;
12340
+ }
12341
+ if (!$dara.isNull(request.periodUnit)) {
12342
+ body["PeriodUnit"] = request.periodUnit;
12343
+ }
12312
12344
  if (!$dara.isNull(request.policyGroupId)) {
12313
12345
  body["PolicyGroupId"] = request.policyGroupId;
12314
12346
  }
12347
+ if (!$dara.isNull(request.postPaidAfterUsedUp)) {
12348
+ body["PostPaidAfterUsedUp"] = request.postPaidAfterUsedUp;
12349
+ }
12315
12350
  let bodyFlat = {};
12316
12351
  if (!$dara.isNull(request.regionConfigList)) {
12317
12352
  bodyFlat["RegionConfigList"] = request.regionConfigList;
@@ -12322,6 +12357,9 @@ class Client extends openapi_core_1.default {
12322
12357
  if (!$dara.isNull(request.resourceTagList)) {
12323
12358
  bodyFlat["ResourceTagList"] = request.resourceTagList;
12324
12359
  }
12360
+ if (!$dara.isNull(request.siteConfigList)) {
12361
+ bodyFlat["SiteConfigList"] = request.siteConfigList;
12362
+ }
12325
12363
  if (!$dara.isNull(request.systemDiskPerformanceLevel)) {
12326
12364
  body["SystemDiskPerformanceLevel"] = request.systemDiskPerformanceLevel;
12327
12365
  }
@@ -12337,9 +12375,11 @@ class Client extends openapi_core_1.default {
12337
12375
  if (!$dara.isNull(request.timerGroupId)) {
12338
12376
  body["TimerGroupId"] = request.timerGroupId;
12339
12377
  }
12378
+ if (!$dara.isNull(request.userDuration)) {
12379
+ body["UserDuration"] = request.userDuration;
12380
+ }
12340
12381
  body = Object.assign(Object.assign({}, body), openapi_core_2.OpenApiUtil.query(bodyFlat));
12341
12382
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
12342
- query: openapi_core_2.OpenApiUtil.query(query),
12343
12383
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
12344
12384
  });
12345
12385
  let params = new openapi_core_2.$OpenApiUtil.Params({
@@ -13371,6 +13411,9 @@ class Client extends openapi_core_1.default {
13371
13411
  if (!$dara.isNull(request.commandContent)) {
13372
13412
  query["CommandContent"] = request.commandContent;
13373
13413
  }
13414
+ if (!$dara.isNull(request.commandRole)) {
13415
+ query["CommandRole"] = request.commandRole;
13416
+ }
13374
13417
  if (!$dara.isNull(request.contentEncoding)) {
13375
13418
  query["ContentEncoding"] = request.contentEncoding;
13376
13419
  }