@alicloud/oos20190601 3.3.0 → 3.4.0

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
@@ -438,6 +438,7 @@ export class CreateApplicationRequest extends $tea.Model {
438
438
  * The configurations of application alerts.
439
439
  */
440
440
  alarmConfig?: CreateApplicationRequestAlarmConfig;
441
+ applicationSource?: string;
441
442
  /**
442
443
  * @remarks
443
444
  * The client token that is used to ensure the idempotence of the request.
@@ -499,6 +500,7 @@ export class CreateApplicationRequest extends $tea.Model {
499
500
  static names(): { [key: string]: string } {
500
501
  return {
501
502
  alarmConfig: 'AlarmConfig',
503
+ applicationSource: 'ApplicationSource',
502
504
  clientToken: 'ClientToken',
503
505
  description: 'Description',
504
506
  name: 'Name',
@@ -512,6 +514,7 @@ export class CreateApplicationRequest extends $tea.Model {
512
514
  static types(): { [key: string]: any } {
513
515
  return {
514
516
  alarmConfig: CreateApplicationRequestAlarmConfig,
517
+ applicationSource: 'string',
515
518
  clientToken: 'string',
516
519
  description: 'string',
517
520
  name: 'string',
@@ -533,6 +536,7 @@ export class CreateApplicationShrinkRequest extends $tea.Model {
533
536
  * The configurations of application alerts.
534
537
  */
535
538
  alarmConfigShrink?: string;
539
+ applicationSource?: string;
536
540
  /**
537
541
  * @remarks
538
542
  * The client token that is used to ensure the idempotence of the request.
@@ -594,6 +598,7 @@ export class CreateApplicationShrinkRequest extends $tea.Model {
594
598
  static names(): { [key: string]: string } {
595
599
  return {
596
600
  alarmConfigShrink: 'AlarmConfig',
601
+ applicationSource: 'ApplicationSource',
597
602
  clientToken: 'ClientToken',
598
603
  description: 'Description',
599
604
  name: 'Name',
@@ -607,6 +612,7 @@ export class CreateApplicationShrinkRequest extends $tea.Model {
607
612
  static types(): { [key: string]: any } {
608
613
  return {
609
614
  alarmConfigShrink: 'string',
615
+ applicationSource: 'string',
610
616
  clientToken: 'string',
611
617
  description: 'string',
612
618
  name: 'string',
@@ -4498,7 +4504,7 @@ export class GetApplicationGroupRequest extends $tea.Model {
4498
4504
  export class GetApplicationGroupResponseBody extends $tea.Model {
4499
4505
  /**
4500
4506
  * @remarks
4501
- * The details of the application group.
4507
+ * The information about the application group.
4502
4508
  */
4503
4509
  applicationGroup?: GetApplicationGroupResponseBodyApplicationGroup;
4504
4510
  /**
@@ -5989,6 +5995,165 @@ export class GetTemplateResponse extends $tea.Model {
5989
5995
  }
5990
5996
  }
5991
5997
 
5998
+ export class GetTemplateParameterConstraintsRequest extends $tea.Model {
5999
+ /**
6000
+ * @example
6001
+ * {\\"endDate\\": \\"2022-04-13T03:31:20Z\\", \\"Status\\": \\"Stopped\\"}
6002
+ */
6003
+ parameters?: string;
6004
+ /**
6005
+ * @example
6006
+ * cn-hangzhou
6007
+ */
6008
+ regionId?: string;
6009
+ /**
6010
+ * @example
6011
+ * {
6012
+ * "Description": "Example template, describe instances in some status",
6013
+ * "FormatVersion": "OOS-2019-06-01",
6014
+ * "Parameters": {},
6015
+ * "Tasks": [{
6016
+ * "Name": "describeInstances",
6017
+ * "Action": "ACS::ExecuteAPI",
6018
+ * "Description": "desc-en",
6019
+ * "Properties": {
6020
+ * "Service": "ECS",
6021
+ * "API": "DescribeInstances",
6022
+ * "Parameters": {
6023
+ * "Status": "Running"
6024
+ * }
6025
+ * }
6026
+ * }]
6027
+ * }
6028
+ */
6029
+ templateContent?: string;
6030
+ /**
6031
+ * @example
6032
+ * MyTemplate
6033
+ */
6034
+ templateName?: string;
6035
+ /**
6036
+ * @example
6037
+ * http://oos-template.cn-hangzhou.oss.aliyun-inc.com/oos-test-template.json
6038
+ */
6039
+ templateURL?: string;
6040
+ /**
6041
+ * @example
6042
+ * v1
6043
+ */
6044
+ templateVersion?: string;
6045
+ static names(): { [key: string]: string } {
6046
+ return {
6047
+ parameters: 'Parameters',
6048
+ regionId: 'RegionId',
6049
+ templateContent: 'TemplateContent',
6050
+ templateName: 'TemplateName',
6051
+ templateURL: 'TemplateURL',
6052
+ templateVersion: 'TemplateVersion',
6053
+ };
6054
+ }
6055
+
6056
+ static types(): { [key: string]: any } {
6057
+ return {
6058
+ parameters: 'string',
6059
+ regionId: 'string',
6060
+ templateContent: 'string',
6061
+ templateName: 'string',
6062
+ templateURL: 'string',
6063
+ templateVersion: 'string',
6064
+ };
6065
+ }
6066
+
6067
+ constructor(map?: { [key: string]: any }) {
6068
+ super(map);
6069
+ }
6070
+ }
6071
+
6072
+ export class GetTemplateParameterConstraintsResponseBody extends $tea.Model {
6073
+ /**
6074
+ * @example
6075
+ * [
6076
+ * {
6077
+ * "Type": "String",
6078
+ * "AllowedValues": [
6079
+ * "ecs.n1.tiny",
6080
+ * "ecs.r8a.4xlarge",
6081
+ * "ecs.n2.xlarge",
6082
+ * "ecs.c7.2xlarge",
6083
+ * "ecs.c8i.4xlarge",
6084
+ * "ecs.g8i.48xlarge",
6085
+ * "ecs.c8a.4xlarge",
6086
+ * "ecs.i2.4xlarge",
6087
+ * "ecs.r8y.2xlarge"
6088
+ * ],
6089
+ * "AssociationParameterNames": [
6090
+ * "RegionId",
6091
+ * "zoneId"
6092
+ * ],
6093
+ * "ParameterKey": "instanceType"
6094
+ * },
6095
+ * {
6096
+ * "Type": "String",
6097
+ * "AllowedValues": [],
6098
+ * "AssociationParameterNames": [
6099
+ * "RegionId",
6100
+ * "zoneId",
6101
+ * "InstanceType"
6102
+ * ],
6103
+ * "ParameterKey": "systemDiskCategory"
6104
+ * }
6105
+ * ]
6106
+ */
6107
+ parameterConstraints?: { [key: string]: any };
6108
+ /**
6109
+ * @example
6110
+ * CBEC8072-BEC2-478E-8EAE-E723BA79CF19
6111
+ */
6112
+ requestId?: string;
6113
+ static names(): { [key: string]: string } {
6114
+ return {
6115
+ parameterConstraints: 'ParameterConstraints',
6116
+ requestId: 'RequestId',
6117
+ };
6118
+ }
6119
+
6120
+ static types(): { [key: string]: any } {
6121
+ return {
6122
+ parameterConstraints: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
6123
+ requestId: 'string',
6124
+ };
6125
+ }
6126
+
6127
+ constructor(map?: { [key: string]: any }) {
6128
+ super(map);
6129
+ }
6130
+ }
6131
+
6132
+ export class GetTemplateParameterConstraintsResponse extends $tea.Model {
6133
+ headers?: { [key: string]: string };
6134
+ statusCode?: number;
6135
+ body?: GetTemplateParameterConstraintsResponseBody;
6136
+ static names(): { [key: string]: string } {
6137
+ return {
6138
+ headers: 'headers',
6139
+ statusCode: 'statusCode',
6140
+ body: 'body',
6141
+ };
6142
+ }
6143
+
6144
+ static types(): { [key: string]: any } {
6145
+ return {
6146
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6147
+ statusCode: 'number',
6148
+ body: GetTemplateParameterConstraintsResponseBody,
6149
+ };
6150
+ }
6151
+
6152
+ constructor(map?: { [key: string]: any }) {
6153
+ super(map);
6154
+ }
6155
+ }
6156
+
5992
6157
  export class ListActionsRequest extends $tea.Model {
5993
6158
  /**
5994
6159
  * @remarks
@@ -7696,6 +7861,8 @@ export class ListGitRepositoryContentsResponse extends $tea.Model {
7696
7861
  export class ListInstancePackageStatesRequest extends $tea.Model {
7697
7862
  /**
7698
7863
  * @remarks
7864
+ * ECS instance ID
7865
+ *
7699
7866
  * This parameter is required.
7700
7867
  *
7701
7868
  * @example
@@ -7703,21 +7870,33 @@ export class ListInstancePackageStatesRequest extends $tea.Model {
7703
7870
  */
7704
7871
  instanceId?: string;
7705
7872
  /**
7873
+ * @remarks
7874
+ * Page size.
7875
+ *
7706
7876
  * @example
7707
7877
  * 50
7708
7878
  */
7709
7879
  maxResults?: number;
7710
7880
  /**
7881
+ * @remarks
7882
+ * Pagination token.
7883
+ *
7711
7884
  * @example
7712
7885
  * MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctzxxxxxxx
7713
7886
  */
7714
7887
  nextToken?: string;
7715
7888
  /**
7889
+ * @remarks
7890
+ * Region ID.
7891
+ *
7716
7892
  * @example
7717
7893
  * cn-hangzhou
7718
7894
  */
7719
7895
  regionId?: string;
7720
7896
  /**
7897
+ * @remarks
7898
+ * List of extension names
7899
+ *
7721
7900
  * @example
7722
7901
  * ["template1","template2"]
7723
7902
  */
@@ -7749,19 +7928,29 @@ export class ListInstancePackageStatesRequest extends $tea.Model {
7749
7928
 
7750
7929
  export class ListInstancePackageStatesResponseBody extends $tea.Model {
7751
7930
  /**
7931
+ * @remarks
7932
+ * Page size.
7933
+ *
7752
7934
  * @example
7753
7935
  * 50
7754
7936
  */
7755
7937
  maxResults?: string;
7756
7938
  /**
7939
+ * @remarks
7940
+ * Token string for pagination.
7941
+ *
7757
7942
  * @example
7758
7943
  * MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctzxxxxxxx
7759
7944
  */
7760
7945
  nextToken?: string;
7946
+ /**
7947
+ * @remarks
7948
+ * List of extensions
7949
+ */
7761
7950
  packageStates?: ListInstancePackageStatesResponseBodyPackageStates[];
7762
7951
  /**
7763
7952
  * @remarks
7764
- * Id of the request
7953
+ * ID of the request
7765
7954
  *
7766
7955
  * @example
7767
7956
  * 1306108F-610C-40FD-AAD5-XXXXXX
@@ -11358,7 +11547,7 @@ export class ListTemplatesRequest extends $tea.Model {
11358
11547
  hasTrigger?: boolean;
11359
11548
  /**
11360
11549
  * @remarks
11361
- * Specifies whether the template is an example template
11550
+ * Specifies whether the template is an example template.
11362
11551
  *
11363
11552
  * @example
11364
11553
  * false
@@ -11580,7 +11769,7 @@ export class ListTemplatesShrinkRequest extends $tea.Model {
11580
11769
  hasTrigger?: boolean;
11581
11770
  /**
11582
11771
  * @remarks
11583
- * Specifies whether the template is an example template
11772
+ * Specifies whether the template is an example template.
11584
11773
  *
11585
11774
  * @example
11586
11775
  * false
@@ -13567,7 +13756,21 @@ export class UpdateApplicationGroupRequest extends $tea.Model {
13567
13756
  * UpdateMyApplicationGroup
13568
13757
  */
13569
13758
  newName?: string;
13759
+ /**
13760
+ * @remarks
13761
+ * The name of the configuration update operation.
13762
+ *
13763
+ * @example
13764
+ * /business/v1/product/spus/{spu_id}
13765
+ */
13570
13766
  operationName?: string;
13767
+ /**
13768
+ * @remarks
13769
+ * The JSON string that consists of a set of parameters. Default value: {}.
13770
+ *
13771
+ * @example
13772
+ * {"username": "xx"}
13773
+ */
13571
13774
  parameters?: { [key: string]: any };
13572
13775
  /**
13573
13776
  * @remarks
@@ -13633,7 +13836,21 @@ export class UpdateApplicationGroupShrinkRequest extends $tea.Model {
13633
13836
  * UpdateMyApplicationGroup
13634
13837
  */
13635
13838
  newName?: string;
13839
+ /**
13840
+ * @remarks
13841
+ * The name of the configuration update operation.
13842
+ *
13843
+ * @example
13844
+ * /business/v1/product/spus/{spu_id}
13845
+ */
13636
13846
  operationName?: string;
13847
+ /**
13848
+ * @remarks
13849
+ * The JSON string that consists of a set of parameters. Default value: {}.
13850
+ *
13851
+ * @example
13852
+ * {"username": "xx"}
13853
+ */
13637
13854
  parametersShrink?: string;
13638
13855
  /**
13639
13856
  * @remarks
@@ -13870,6 +14087,13 @@ export class UpdateExecutionResponse extends $tea.Model {
13870
14087
  export class UpdateInstancePackageStateRequest extends $tea.Model {
13871
14088
  /**
13872
14089
  * @remarks
14090
+ * The operation type.
14091
+ *
14092
+ * Valid values:
14093
+ *
14094
+ * * uninstall
14095
+ * * install
14096
+ *
13873
14097
  * This parameter is required.
13874
14098
  *
13875
14099
  * @example
@@ -13878,6 +14102,8 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13878
14102
  configureAction?: string;
13879
14103
  /**
13880
14104
  * @remarks
14105
+ * The ID of the Elastic Compute Service (ECS) instance.
14106
+ *
13881
14107
  * This parameter is required.
13882
14108
  *
13883
14109
  * @example
@@ -13885,17 +14111,25 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13885
14111
  */
13886
14112
  instanceId?: string;
13887
14113
  /**
14114
+ * @remarks
14115
+ * The parameters for installing or uninstalling the extensions.
14116
+ *
13888
14117
  * @example
13889
14118
  * {"username": "xx"}
13890
14119
  */
13891
14120
  parameters?: { [key: string]: any };
13892
14121
  /**
14122
+ * @remarks
14123
+ * The region ID.
14124
+ *
13893
14125
  * @example
13894
14126
  * cn-hangzhou
13895
14127
  */
13896
14128
  regionId?: string;
13897
14129
  /**
13898
14130
  * @remarks
14131
+ * The name of the template.
14132
+ *
13899
14133
  * This parameter is required.
13900
14134
  *
13901
14135
  * @example
@@ -13903,6 +14137,9 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13903
14137
  */
13904
14138
  templateName?: string;
13905
14139
  /**
14140
+ * @remarks
14141
+ * The version of the template.
14142
+ *
13906
14143
  * @example
13907
14144
  * v1
13908
14145
  */
@@ -13937,6 +14174,13 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13937
14174
  export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13938
14175
  /**
13939
14176
  * @remarks
14177
+ * The operation type.
14178
+ *
14179
+ * Valid values:
14180
+ *
14181
+ * * uninstall
14182
+ * * install
14183
+ *
13940
14184
  * This parameter is required.
13941
14185
  *
13942
14186
  * @example
@@ -13945,6 +14189,8 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13945
14189
  configureAction?: string;
13946
14190
  /**
13947
14191
  * @remarks
14192
+ * The ID of the Elastic Compute Service (ECS) instance.
14193
+ *
13948
14194
  * This parameter is required.
13949
14195
  *
13950
14196
  * @example
@@ -13952,17 +14198,25 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13952
14198
  */
13953
14199
  instanceId?: string;
13954
14200
  /**
14201
+ * @remarks
14202
+ * The parameters for installing or uninstalling the extensions.
14203
+ *
13955
14204
  * @example
13956
14205
  * {"username": "xx"}
13957
14206
  */
13958
14207
  parametersShrink?: string;
13959
14208
  /**
14209
+ * @remarks
14210
+ * The region ID.
14211
+ *
13960
14212
  * @example
13961
14213
  * cn-hangzhou
13962
14214
  */
13963
14215
  regionId?: string;
13964
14216
  /**
13965
14217
  * @remarks
14218
+ * The name of the template.
14219
+ *
13966
14220
  * This parameter is required.
13967
14221
  *
13968
14222
  * @example
@@ -13970,6 +14224,9 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13970
14224
  */
13971
14225
  templateName?: string;
13972
14226
  /**
14227
+ * @remarks
14228
+ * The version of the template.
14229
+ *
13973
14230
  * @example
13974
14231
  * v1
13975
14232
  */
@@ -14004,7 +14261,7 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
14004
14261
  export class UpdateInstancePackageStateResponseBody extends $tea.Model {
14005
14262
  /**
14006
14263
  * @remarks
14007
- * Id of the request
14264
+ * The request ID.
14008
14265
  *
14009
14266
  * @example
14010
14267
  * 2597E94B-5346-42D1-BB58-XXXXXXXXXXX
@@ -17422,6 +17679,7 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17422
17679
  * MyApplication
17423
17680
  */
17424
17681
  applicationName?: string;
17682
+ applicationSource?: string;
17425
17683
  /**
17426
17684
  * @remarks
17427
17685
  * The ID of the application group in CloudMonitor.
@@ -17494,6 +17752,13 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17494
17752
  * MyApplicationGroup
17495
17753
  */
17496
17754
  name?: string;
17755
+ /**
17756
+ * @remarks
17757
+ * The operation metadata.
17758
+ *
17759
+ * @example
17760
+ * {\\"PrometheusConfigMap\\":{\\"模板1\\":{\\"EnablePrometheus\\":false}}}
17761
+ */
17497
17762
  operationMetadata?: string;
17498
17763
  /**
17499
17764
  * @remarks
@@ -17530,6 +17795,7 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17530
17795
  static names(): { [key: string]: string } {
17531
17796
  return {
17532
17797
  applicationName: 'ApplicationName',
17798
+ applicationSource: 'ApplicationSource',
17533
17799
  cmsGroupId: 'CmsGroupId',
17534
17800
  createDate: 'CreateDate',
17535
17801
  deployOutputs: 'DeployOutputs',
@@ -17550,6 +17816,7 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17550
17816
  static types(): { [key: string]: any } {
17551
17817
  return {
17552
17818
  applicationName: 'string',
17819
+ applicationSource: 'string',
17553
17820
  cmsGroupId: 'string',
17554
17821
  createDate: 'string',
17555
17822
  deployOutputs: 'string',
@@ -19979,6 +20246,13 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19979
20246
  * Automatic
19980
20247
  */
19981
20248
  mode?: string;
20249
+ /**
20250
+ * @remarks
20251
+ * The next schedule time for timer trigger execution.
20252
+ *
20253
+ * @example
20254
+ * 2019-05-16T10:26:14Z
20255
+ */
19982
20256
  nextScheduleTime?: string;
19983
20257
  /**
19984
20258
  * @remarks
@@ -20268,46 +20542,73 @@ export class ListGitRepositoryContentsResponseBodyContents extends $tea.Model {
20268
20542
 
20269
20543
  export class ListInstancePackageStatesResponseBodyPackageStates extends $tea.Model {
20270
20544
  /**
20545
+ * @remarks
20546
+ * Description
20547
+ *
20271
20548
  * @example
20272
20549
  * template description
20273
20550
  */
20274
20551
  description?: string;
20275
20552
  /**
20553
+ * @remarks
20554
+ * Parameters
20555
+ *
20276
20556
  * @example
20277
20557
  * {}
20278
20558
  */
20279
20559
  parameters?: string;
20280
20560
  /**
20561
+ * @remarks
20562
+ * Publisher
20563
+ *
20281
20564
  * @example
20282
20565
  * Alibaba Cloud
20283
20566
  */
20284
20567
  publisher?: string;
20285
20568
  /**
20569
+ * @remarks
20570
+ * Template type
20571
+ *
20286
20572
  * @example
20287
20573
  * Package
20288
20574
  */
20289
20575
  templateCategory?: string;
20290
20576
  /**
20577
+ * @remarks
20578
+ * Template ID
20579
+ *
20291
20580
  * @example
20292
20581
  * 087b1e11072a40259f6fxxxxxxxxx
20293
20582
  */
20294
20583
  templateId?: string;
20295
20584
  /**
20585
+ * @remarks
20586
+ * Template name.
20587
+ *
20296
20588
  * @example
20297
20589
  * ACS-ECS-Docker
20298
20590
  */
20299
20591
  templateName?: string;
20300
20592
  /**
20593
+ * @remarks
20594
+ * Template version number
20595
+ *
20301
20596
  * @example
20302
20597
  * v3
20303
20598
  */
20304
20599
  templateVersion?: string;
20305
20600
  /**
20601
+ * @remarks
20602
+ * Template version name
20603
+ *
20306
20604
  * @example
20307
20605
  * fix bug
20308
20606
  */
20309
20607
  templateVersionName?: string;
20310
20608
  /**
20609
+ * @remarks
20610
+ * Update time.
20611
+ *
20311
20612
  * @example
20312
20613
  * 2024-05-04T11:17:28
20313
20614
  */
@@ -22211,6 +22512,13 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
22211
22512
  * 2019-05-16T10:26:14Z
22212
22513
  */
22213
22514
  updatedDate?: string;
22515
+ /**
22516
+ * @remarks
22517
+ * The version name.
22518
+ *
22519
+ * @example
22520
+ * v2.1
22521
+ */
22214
22522
  versionName?: string;
22215
22523
  static names(): { [key: string]: string } {
22216
22524
  return {
@@ -24416,6 +24724,10 @@ export default class Client extends OpenApi {
24416
24724
  query["AlarmConfig"] = request.alarmConfigShrink;
24417
24725
  }
24418
24726
 
24727
+ if (!Util.isUnset(request.applicationSource)) {
24728
+ query["ApplicationSource"] = request.applicationSource;
24729
+ }
24730
+
24419
24731
  if (!Util.isUnset(request.clientToken)) {
24420
24732
  query["ClientToken"] = request.clientToken;
24421
24733
  }
@@ -26456,6 +26768,68 @@ export default class Client extends OpenApi {
26456
26768
  return await this.getTemplateWithOptions(request, runtime);
26457
26769
  }
26458
26770
 
26771
+ /**
26772
+ * 获取参数可用值
26773
+ *
26774
+ * @param request - GetTemplateParameterConstraintsRequest
26775
+ * @param runtime - runtime options for this request RuntimeOptions
26776
+ * @returns GetTemplateParameterConstraintsResponse
26777
+ */
26778
+ async getTemplateParameterConstraintsWithOptions(request: GetTemplateParameterConstraintsRequest, runtime: $Util.RuntimeOptions): Promise<GetTemplateParameterConstraintsResponse> {
26779
+ Util.validateModel(request);
26780
+ let query = { };
26781
+ if (!Util.isUnset(request.parameters)) {
26782
+ query["Parameters"] = request.parameters;
26783
+ }
26784
+
26785
+ if (!Util.isUnset(request.regionId)) {
26786
+ query["RegionId"] = request.regionId;
26787
+ }
26788
+
26789
+ if (!Util.isUnset(request.templateContent)) {
26790
+ query["TemplateContent"] = request.templateContent;
26791
+ }
26792
+
26793
+ if (!Util.isUnset(request.templateName)) {
26794
+ query["TemplateName"] = request.templateName;
26795
+ }
26796
+
26797
+ if (!Util.isUnset(request.templateURL)) {
26798
+ query["TemplateURL"] = request.templateURL;
26799
+ }
26800
+
26801
+ if (!Util.isUnset(request.templateVersion)) {
26802
+ query["TemplateVersion"] = request.templateVersion;
26803
+ }
26804
+
26805
+ let req = new $OpenApi.OpenApiRequest({
26806
+ query: OpenApiUtil.query(query),
26807
+ });
26808
+ let params = new $OpenApi.Params({
26809
+ action: "GetTemplateParameterConstraints",
26810
+ version: "2019-06-01",
26811
+ protocol: "HTTPS",
26812
+ pathname: "/",
26813
+ method: "POST",
26814
+ authType: "AK",
26815
+ style: "RPC",
26816
+ reqBodyType: "formData",
26817
+ bodyType: "json",
26818
+ });
26819
+ return $tea.cast<GetTemplateParameterConstraintsResponse>(await this.callApi(params, req, runtime), new GetTemplateParameterConstraintsResponse({}));
26820
+ }
26821
+
26822
+ /**
26823
+ * 获取参数可用值
26824
+ *
26825
+ * @param request - GetTemplateParameterConstraintsRequest
26826
+ * @returns GetTemplateParameterConstraintsResponse
26827
+ */
26828
+ async getTemplateParameterConstraints(request: GetTemplateParameterConstraintsRequest): Promise<GetTemplateParameterConstraintsResponse> {
26829
+ let runtime = new $Util.RuntimeOptions({ });
26830
+ return await this.getTemplateParameterConstraintsWithOptions(request, runtime);
26831
+ }
26832
+
26459
26833
  /**
26460
26834
  * Queries the available actions, including atomic actions and cloud product actions.
26461
26835
  *
@@ -27059,7 +27433,7 @@ export default class Client extends OpenApi {
27059
27433
  }
27060
27434
 
27061
27435
  /**
27062
- * 列出实例软件包状态
27436
+ * List Instance Package States
27063
27437
  *
27064
27438
  * @param request - ListInstancePackageStatesRequest
27065
27439
  * @param runtime - runtime options for this request RuntimeOptions
@@ -27106,7 +27480,7 @@ export default class Client extends OpenApi {
27106
27480
  }
27107
27481
 
27108
27482
  /**
27109
- * 列出实例软件包状态
27483
+ * List Instance Package States
27110
27484
  *
27111
27485
  * @param request - ListInstancePackageStatesRequest
27112
27486
  * @returns ListInstancePackageStatesResponse
@@ -29103,7 +29477,7 @@ export default class Client extends OpenApi {
29103
29477
  }
29104
29478
 
29105
29479
  /**
29106
- * 更新实例软件包状态
29480
+ * Updates the installed extensions of an instance.
29107
29481
  *
29108
29482
  * @param tmpReq - UpdateInstancePackageStateRequest
29109
29483
  * @param runtime - runtime options for this request RuntimeOptions
@@ -29160,7 +29534,7 @@ export default class Client extends OpenApi {
29160
29534
  }
29161
29535
 
29162
29536
  /**
29163
- * 更新实例软件包状态
29537
+ * Updates the installed extensions of an instance.
29164
29538
  *
29165
29539
  * @param request - UpdateInstancePackageStateRequest
29166
29540
  * @returns UpdateInstancePackageStateResponse