@alicloud/oos20190601 3.2.3 → 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
@@ -7,6 +7,104 @@ import OpenApiUtil from '@alicloud/openapi-util';
7
7
  import EndpointUtil from '@alicloud/endpoint-util';
8
8
  import * as $tea from '@alicloud/tea-typescript';
9
9
 
10
+ export class AnalyzeGitRepositoryRequest extends $tea.Model {
11
+ branch?: string;
12
+ clientToken?: string;
13
+ orgId?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ */
18
+ owner?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ */
23
+ platform?: string;
24
+ regionId?: string;
25
+ repoFullName?: string;
26
+ repoId?: string;
27
+ static names(): { [key: string]: string } {
28
+ return {
29
+ branch: 'Branch',
30
+ clientToken: 'ClientToken',
31
+ orgId: 'OrgId',
32
+ owner: 'Owner',
33
+ platform: 'Platform',
34
+ regionId: 'RegionId',
35
+ repoFullName: 'RepoFullName',
36
+ repoId: 'RepoId',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ branch: 'string',
43
+ clientToken: 'string',
44
+ orgId: 'string',
45
+ owner: 'string',
46
+ platform: 'string',
47
+ regionId: 'string',
48
+ repoFullName: 'string',
49
+ repoId: 'string',
50
+ };
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
58
+ export class AnalyzeGitRepositoryResponseBody extends $tea.Model {
59
+ analysisResults?: AnalyzeGitRepositoryResponseBodyAnalysisResults[];
60
+ count?: number;
61
+ requestId?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ analysisResults: 'AnalysisResults',
65
+ count: 'Count',
66
+ requestId: 'RequestId',
67
+ };
68
+ }
69
+
70
+ static types(): { [key: string]: any } {
71
+ return {
72
+ analysisResults: { 'type': 'array', 'itemType': AnalyzeGitRepositoryResponseBodyAnalysisResults },
73
+ count: 'number',
74
+ requestId: 'string',
75
+ };
76
+ }
77
+
78
+ constructor(map?: { [key: string]: any }) {
79
+ super(map);
80
+ }
81
+ }
82
+
83
+ export class AnalyzeGitRepositoryResponse extends $tea.Model {
84
+ headers?: { [key: string]: string };
85
+ statusCode?: number;
86
+ body?: AnalyzeGitRepositoryResponseBody;
87
+ static names(): { [key: string]: string } {
88
+ return {
89
+ headers: 'headers',
90
+ statusCode: 'statusCode',
91
+ body: 'body',
92
+ };
93
+ }
94
+
95
+ static types(): { [key: string]: any } {
96
+ return {
97
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
98
+ statusCode: 'number',
99
+ body: AnalyzeGitRepositoryResponseBody,
100
+ };
101
+ }
102
+
103
+ constructor(map?: { [key: string]: any }) {
104
+ super(map);
105
+ }
106
+ }
107
+
10
108
  export class CancelExecutionRequest extends $tea.Model {
11
109
  /**
12
110
  * @remarks
@@ -340,6 +438,7 @@ export class CreateApplicationRequest extends $tea.Model {
340
438
  * The configurations of application alerts.
341
439
  */
342
440
  alarmConfig?: CreateApplicationRequestAlarmConfig;
441
+ applicationSource?: string;
343
442
  /**
344
443
  * @remarks
345
444
  * The client token that is used to ensure the idempotence of the request.
@@ -401,6 +500,7 @@ export class CreateApplicationRequest extends $tea.Model {
401
500
  static names(): { [key: string]: string } {
402
501
  return {
403
502
  alarmConfig: 'AlarmConfig',
503
+ applicationSource: 'ApplicationSource',
404
504
  clientToken: 'ClientToken',
405
505
  description: 'Description',
406
506
  name: 'Name',
@@ -414,6 +514,7 @@ export class CreateApplicationRequest extends $tea.Model {
414
514
  static types(): { [key: string]: any } {
415
515
  return {
416
516
  alarmConfig: CreateApplicationRequestAlarmConfig,
517
+ applicationSource: 'string',
417
518
  clientToken: 'string',
418
519
  description: 'string',
419
520
  name: 'string',
@@ -435,6 +536,7 @@ export class CreateApplicationShrinkRequest extends $tea.Model {
435
536
  * The configurations of application alerts.
436
537
  */
437
538
  alarmConfigShrink?: string;
539
+ applicationSource?: string;
438
540
  /**
439
541
  * @remarks
440
542
  * The client token that is used to ensure the idempotence of the request.
@@ -496,6 +598,7 @@ export class CreateApplicationShrinkRequest extends $tea.Model {
496
598
  static names(): { [key: string]: string } {
497
599
  return {
498
600
  alarmConfigShrink: 'AlarmConfig',
601
+ applicationSource: 'ApplicationSource',
499
602
  clientToken: 'ClientToken',
500
603
  description: 'Description',
501
604
  name: 'Name',
@@ -509,6 +612,7 @@ export class CreateApplicationShrinkRequest extends $tea.Model {
509
612
  static types(): { [key: string]: any } {
510
613
  return {
511
614
  alarmConfigShrink: 'string',
615
+ applicationSource: 'string',
512
616
  clientToken: 'string',
513
617
  description: 'string',
514
618
  name: 'string',
@@ -4400,7 +4504,7 @@ export class GetApplicationGroupRequest extends $tea.Model {
4400
4504
  export class GetApplicationGroupResponseBody extends $tea.Model {
4401
4505
  /**
4402
4506
  * @remarks
4403
- * The details of the application group.
4507
+ * The information about the application group.
4404
4508
  */
4405
4509
  applicationGroup?: GetApplicationGroupResponseBodyApplicationGroup;
4406
4510
  /**
@@ -5891,6 +5995,165 @@ export class GetTemplateResponse extends $tea.Model {
5891
5995
  }
5892
5996
  }
5893
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
+
5894
6157
  export class ListActionsRequest extends $tea.Model {
5895
6158
  /**
5896
6159
  * @remarks
@@ -7491,9 +7754,115 @@ export class ListGitRepositoriesResponse extends $tea.Model {
7491
7754
  }
7492
7755
  }
7493
7756
 
7757
+ export class ListGitRepositoryContentsRequest extends $tea.Model {
7758
+ branch?: string;
7759
+ clientToken?: string;
7760
+ contentType?: string;
7761
+ orgId?: string;
7762
+ /**
7763
+ * @remarks
7764
+ * This parameter is required.
7765
+ */
7766
+ owner?: string;
7767
+ path?: string;
7768
+ /**
7769
+ * @remarks
7770
+ * This parameter is required.
7771
+ */
7772
+ platform?: string;
7773
+ regionId?: string;
7774
+ repoFullName?: string;
7775
+ repoId?: number;
7776
+ static names(): { [key: string]: string } {
7777
+ return {
7778
+ branch: 'Branch',
7779
+ clientToken: 'ClientToken',
7780
+ contentType: 'ContentType',
7781
+ orgId: 'OrgId',
7782
+ owner: 'Owner',
7783
+ path: 'Path',
7784
+ platform: 'Platform',
7785
+ regionId: 'RegionId',
7786
+ repoFullName: 'RepoFullName',
7787
+ repoId: 'RepoId',
7788
+ };
7789
+ }
7790
+
7791
+ static types(): { [key: string]: any } {
7792
+ return {
7793
+ branch: 'string',
7794
+ clientToken: 'string',
7795
+ contentType: 'string',
7796
+ orgId: 'string',
7797
+ owner: 'string',
7798
+ path: 'string',
7799
+ platform: 'string',
7800
+ regionId: 'string',
7801
+ repoFullName: 'string',
7802
+ repoId: 'number',
7803
+ };
7804
+ }
7805
+
7806
+ constructor(map?: { [key: string]: any }) {
7807
+ super(map);
7808
+ }
7809
+ }
7810
+
7811
+ export class ListGitRepositoryContentsResponseBody extends $tea.Model {
7812
+ contents?: ListGitRepositoryContentsResponseBodyContents[];
7813
+ count?: number;
7814
+ requestId?: string;
7815
+ static names(): { [key: string]: string } {
7816
+ return {
7817
+ contents: 'Contents',
7818
+ count: 'Count',
7819
+ requestId: 'RequestId',
7820
+ };
7821
+ }
7822
+
7823
+ static types(): { [key: string]: any } {
7824
+ return {
7825
+ contents: { 'type': 'array', 'itemType': ListGitRepositoryContentsResponseBodyContents },
7826
+ count: 'number',
7827
+ requestId: 'string',
7828
+ };
7829
+ }
7830
+
7831
+ constructor(map?: { [key: string]: any }) {
7832
+ super(map);
7833
+ }
7834
+ }
7835
+
7836
+ export class ListGitRepositoryContentsResponse extends $tea.Model {
7837
+ headers?: { [key: string]: string };
7838
+ statusCode?: number;
7839
+ body?: ListGitRepositoryContentsResponseBody;
7840
+ static names(): { [key: string]: string } {
7841
+ return {
7842
+ headers: 'headers',
7843
+ statusCode: 'statusCode',
7844
+ body: 'body',
7845
+ };
7846
+ }
7847
+
7848
+ static types(): { [key: string]: any } {
7849
+ return {
7850
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7851
+ statusCode: 'number',
7852
+ body: ListGitRepositoryContentsResponseBody,
7853
+ };
7854
+ }
7855
+
7856
+ constructor(map?: { [key: string]: any }) {
7857
+ super(map);
7858
+ }
7859
+ }
7860
+
7494
7861
  export class ListInstancePackageStatesRequest extends $tea.Model {
7495
7862
  /**
7496
7863
  * @remarks
7864
+ * ECS instance ID
7865
+ *
7497
7866
  * This parameter is required.
7498
7867
  *
7499
7868
  * @example
@@ -7501,21 +7870,33 @@ export class ListInstancePackageStatesRequest extends $tea.Model {
7501
7870
  */
7502
7871
  instanceId?: string;
7503
7872
  /**
7873
+ * @remarks
7874
+ * Page size.
7875
+ *
7504
7876
  * @example
7505
7877
  * 50
7506
7878
  */
7507
7879
  maxResults?: number;
7508
7880
  /**
7881
+ * @remarks
7882
+ * Pagination token.
7883
+ *
7509
7884
  * @example
7510
7885
  * MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctzxxxxxxx
7511
7886
  */
7512
7887
  nextToken?: string;
7513
7888
  /**
7889
+ * @remarks
7890
+ * Region ID.
7891
+ *
7514
7892
  * @example
7515
7893
  * cn-hangzhou
7516
7894
  */
7517
7895
  regionId?: string;
7518
7896
  /**
7897
+ * @remarks
7898
+ * List of extension names
7899
+ *
7519
7900
  * @example
7520
7901
  * ["template1","template2"]
7521
7902
  */
@@ -7547,19 +7928,29 @@ export class ListInstancePackageStatesRequest extends $tea.Model {
7547
7928
 
7548
7929
  export class ListInstancePackageStatesResponseBody extends $tea.Model {
7549
7930
  /**
7931
+ * @remarks
7932
+ * Page size.
7933
+ *
7550
7934
  * @example
7551
7935
  * 50
7552
7936
  */
7553
7937
  maxResults?: string;
7554
7938
  /**
7939
+ * @remarks
7940
+ * Token string for pagination.
7941
+ *
7555
7942
  * @example
7556
7943
  * MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctzxxxxxxx
7557
7944
  */
7558
7945
  nextToken?: string;
7946
+ /**
7947
+ * @remarks
7948
+ * List of extensions
7949
+ */
7559
7950
  packageStates?: ListInstancePackageStatesResponseBodyPackageStates[];
7560
7951
  /**
7561
7952
  * @remarks
7562
- * Id of the request
7953
+ * ID of the request
7563
7954
  *
7564
7955
  * @example
7565
7956
  * 1306108F-610C-40FD-AAD5-XXXXXX
@@ -11156,7 +11547,7 @@ export class ListTemplatesRequest extends $tea.Model {
11156
11547
  hasTrigger?: boolean;
11157
11548
  /**
11158
11549
  * @remarks
11159
- * Specifies whether the template is an example template
11550
+ * Specifies whether the template is an example template.
11160
11551
  *
11161
11552
  * @example
11162
11553
  * false
@@ -11378,7 +11769,7 @@ export class ListTemplatesShrinkRequest extends $tea.Model {
11378
11769
  hasTrigger?: boolean;
11379
11770
  /**
11380
11771
  * @remarks
11381
- * Specifies whether the template is an example template
11772
+ * Specifies whether the template is an example template.
11382
11773
  *
11383
11774
  * @example
11384
11775
  * false
@@ -13365,7 +13756,21 @@ export class UpdateApplicationGroupRequest extends $tea.Model {
13365
13756
  * UpdateMyApplicationGroup
13366
13757
  */
13367
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
+ */
13368
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
+ */
13369
13774
  parameters?: { [key: string]: any };
13370
13775
  /**
13371
13776
  * @remarks
@@ -13431,7 +13836,21 @@ export class UpdateApplicationGroupShrinkRequest extends $tea.Model {
13431
13836
  * UpdateMyApplicationGroup
13432
13837
  */
13433
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
+ */
13434
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
+ */
13435
13854
  parametersShrink?: string;
13436
13855
  /**
13437
13856
  * @remarks
@@ -13668,6 +14087,13 @@ export class UpdateExecutionResponse extends $tea.Model {
13668
14087
  export class UpdateInstancePackageStateRequest extends $tea.Model {
13669
14088
  /**
13670
14089
  * @remarks
14090
+ * The operation type.
14091
+ *
14092
+ * Valid values:
14093
+ *
14094
+ * * uninstall
14095
+ * * install
14096
+ *
13671
14097
  * This parameter is required.
13672
14098
  *
13673
14099
  * @example
@@ -13676,6 +14102,8 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13676
14102
  configureAction?: string;
13677
14103
  /**
13678
14104
  * @remarks
14105
+ * The ID of the Elastic Compute Service (ECS) instance.
14106
+ *
13679
14107
  * This parameter is required.
13680
14108
  *
13681
14109
  * @example
@@ -13683,17 +14111,25 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13683
14111
  */
13684
14112
  instanceId?: string;
13685
14113
  /**
14114
+ * @remarks
14115
+ * The parameters for installing or uninstalling the extensions.
14116
+ *
13686
14117
  * @example
13687
14118
  * {"username": "xx"}
13688
14119
  */
13689
14120
  parameters?: { [key: string]: any };
13690
14121
  /**
14122
+ * @remarks
14123
+ * The region ID.
14124
+ *
13691
14125
  * @example
13692
14126
  * cn-hangzhou
13693
14127
  */
13694
14128
  regionId?: string;
13695
14129
  /**
13696
14130
  * @remarks
14131
+ * The name of the template.
14132
+ *
13697
14133
  * This parameter is required.
13698
14134
  *
13699
14135
  * @example
@@ -13701,6 +14137,9 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13701
14137
  */
13702
14138
  templateName?: string;
13703
14139
  /**
14140
+ * @remarks
14141
+ * The version of the template.
14142
+ *
13704
14143
  * @example
13705
14144
  * v1
13706
14145
  */
@@ -13735,6 +14174,13 @@ export class UpdateInstancePackageStateRequest extends $tea.Model {
13735
14174
  export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13736
14175
  /**
13737
14176
  * @remarks
14177
+ * The operation type.
14178
+ *
14179
+ * Valid values:
14180
+ *
14181
+ * * uninstall
14182
+ * * install
14183
+ *
13738
14184
  * This parameter is required.
13739
14185
  *
13740
14186
  * @example
@@ -13743,6 +14189,8 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13743
14189
  configureAction?: string;
13744
14190
  /**
13745
14191
  * @remarks
14192
+ * The ID of the Elastic Compute Service (ECS) instance.
14193
+ *
13746
14194
  * This parameter is required.
13747
14195
  *
13748
14196
  * @example
@@ -13750,17 +14198,25 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13750
14198
  */
13751
14199
  instanceId?: string;
13752
14200
  /**
14201
+ * @remarks
14202
+ * The parameters for installing or uninstalling the extensions.
14203
+ *
13753
14204
  * @example
13754
14205
  * {"username": "xx"}
13755
14206
  */
13756
14207
  parametersShrink?: string;
13757
14208
  /**
14209
+ * @remarks
14210
+ * The region ID.
14211
+ *
13758
14212
  * @example
13759
14213
  * cn-hangzhou
13760
14214
  */
13761
14215
  regionId?: string;
13762
14216
  /**
13763
14217
  * @remarks
14218
+ * The name of the template.
14219
+ *
13764
14220
  * This parameter is required.
13765
14221
  *
13766
14222
  * @example
@@ -13768,6 +14224,9 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13768
14224
  */
13769
14225
  templateName?: string;
13770
14226
  /**
14227
+ * @remarks
14228
+ * The version of the template.
14229
+ *
13771
14230
  * @example
13772
14231
  * v1
13773
14232
  */
@@ -13802,7 +14261,7 @@ export class UpdateInstancePackageStateShrinkRequest extends $tea.Model {
13802
14261
  export class UpdateInstancePackageStateResponseBody extends $tea.Model {
13803
14262
  /**
13804
14263
  * @remarks
13805
- * Id of the request
14264
+ * The request ID.
13806
14265
  *
13807
14266
  * @example
13808
14267
  * 2597E94B-5346-42D1-BB58-XXXXXXXXXXX
@@ -15578,6 +16037,50 @@ export class ValidateTemplateContentResponse extends $tea.Model {
15578
16037
  }
15579
16038
  }
15580
16039
 
16040
+ export class AnalyzeGitRepositoryResponseBodyAnalysisResultsBuildFiles extends $tea.Model {
16041
+ fileType?: string;
16042
+ paths?: string[];
16043
+ static names(): { [key: string]: string } {
16044
+ return {
16045
+ fileType: 'FileType',
16046
+ paths: 'Paths',
16047
+ };
16048
+ }
16049
+
16050
+ static types(): { [key: string]: any } {
16051
+ return {
16052
+ fileType: 'string',
16053
+ paths: { 'type': 'array', 'itemType': 'string' },
16054
+ };
16055
+ }
16056
+
16057
+ constructor(map?: { [key: string]: any }) {
16058
+ super(map);
16059
+ }
16060
+ }
16061
+
16062
+ export class AnalyzeGitRepositoryResponseBodyAnalysisResults extends $tea.Model {
16063
+ buildFiles?: AnalyzeGitRepositoryResponseBodyAnalysisResultsBuildFiles[];
16064
+ buildType?: string;
16065
+ static names(): { [key: string]: string } {
16066
+ return {
16067
+ buildFiles: 'BuildFiles',
16068
+ buildType: 'BuildType',
16069
+ };
16070
+ }
16071
+
16072
+ static types(): { [key: string]: any } {
16073
+ return {
16074
+ buildFiles: { 'type': 'array', 'itemType': AnalyzeGitRepositoryResponseBodyAnalysisResultsBuildFiles },
16075
+ buildType: 'string',
16076
+ };
16077
+ }
16078
+
16079
+ constructor(map?: { [key: string]: any }) {
16080
+ super(map);
16081
+ }
16082
+ }
16083
+
15581
16084
  export class CreateApplicationRequestAlarmConfig extends $tea.Model {
15582
16085
  /**
15583
16086
  * @remarks
@@ -17176,6 +17679,7 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17176
17679
  * MyApplication
17177
17680
  */
17178
17681
  applicationName?: string;
17682
+ applicationSource?: string;
17179
17683
  /**
17180
17684
  * @remarks
17181
17685
  * The ID of the application group in CloudMonitor.
@@ -17248,6 +17752,13 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17248
17752
  * MyApplicationGroup
17249
17753
  */
17250
17754
  name?: string;
17755
+ /**
17756
+ * @remarks
17757
+ * The operation metadata.
17758
+ *
17759
+ * @example
17760
+ * {\\"PrometheusConfigMap\\":{\\"模板1\\":{\\"EnablePrometheus\\":false}}}
17761
+ */
17251
17762
  operationMetadata?: string;
17252
17763
  /**
17253
17764
  * @remarks
@@ -17284,6 +17795,7 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17284
17795
  static names(): { [key: string]: string } {
17285
17796
  return {
17286
17797
  applicationName: 'ApplicationName',
17798
+ applicationSource: 'ApplicationSource',
17287
17799
  cmsGroupId: 'CmsGroupId',
17288
17800
  createDate: 'CreateDate',
17289
17801
  deployOutputs: 'DeployOutputs',
@@ -17304,6 +17816,7 @@ export class GetApplicationGroupResponseBodyApplicationGroup extends $tea.Model
17304
17816
  static types(): { [key: string]: any } {
17305
17817
  return {
17306
17818
  applicationName: 'string',
17819
+ applicationSource: 'string',
17307
17820
  cmsGroupId: 'string',
17308
17821
  createDate: 'string',
17309
17822
  deployOutputs: 'string',
@@ -19733,6 +20246,14 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19733
20246
  * Automatic
19734
20247
  */
19735
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
+ */
20256
+ nextScheduleTime?: string;
19736
20257
  /**
19737
20258
  * @remarks
19738
20259
  * The output of the execution.
@@ -19894,6 +20415,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19894
20415
  lastTriggerStatusMessage: 'LastTriggerStatusMessage',
19895
20416
  lastTriggerTime: 'LastTriggerTime',
19896
20417
  mode: 'Mode',
20418
+ nextScheduleTime: 'NextScheduleTime',
19897
20419
  outputs: 'Outputs',
19898
20420
  parameters: 'Parameters',
19899
20421
  parentExecutionId: 'ParentExecutionId',
@@ -19932,6 +20454,7 @@ export class ListExecutionsResponseBodyExecutions extends $tea.Model {
19932
20454
  lastTriggerStatusMessage: 'string',
19933
20455
  lastTriggerTime: 'string',
19934
20456
  mode: 'string',
20457
+ nextScheduleTime: 'string',
19935
20458
  outputs: 'string',
19936
20459
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
19937
20460
  parentExecutionId: 'string',
@@ -19989,48 +20512,103 @@ export class ListGitRepositoriesResponseBodyGitRepos extends $tea.Model {
19989
20512
  }
19990
20513
  }
19991
20514
 
20515
+ export class ListGitRepositoryContentsResponseBodyContents extends $tea.Model {
20516
+ content?: string;
20517
+ name?: string;
20518
+ path?: string;
20519
+ type?: string;
20520
+ static names(): { [key: string]: string } {
20521
+ return {
20522
+ content: 'Content',
20523
+ name: 'Name',
20524
+ path: 'Path',
20525
+ type: 'Type',
20526
+ };
20527
+ }
20528
+
20529
+ static types(): { [key: string]: any } {
20530
+ return {
20531
+ content: 'string',
20532
+ name: 'string',
20533
+ path: 'string',
20534
+ type: 'string',
20535
+ };
20536
+ }
20537
+
20538
+ constructor(map?: { [key: string]: any }) {
20539
+ super(map);
20540
+ }
20541
+ }
20542
+
19992
20543
  export class ListInstancePackageStatesResponseBodyPackageStates extends $tea.Model {
19993
20544
  /**
20545
+ * @remarks
20546
+ * Description
20547
+ *
19994
20548
  * @example
19995
20549
  * template description
19996
20550
  */
19997
20551
  description?: string;
19998
20552
  /**
20553
+ * @remarks
20554
+ * Parameters
20555
+ *
19999
20556
  * @example
20000
20557
  * {}
20001
20558
  */
20002
20559
  parameters?: string;
20003
20560
  /**
20561
+ * @remarks
20562
+ * Publisher
20563
+ *
20004
20564
  * @example
20005
20565
  * Alibaba Cloud
20006
20566
  */
20007
20567
  publisher?: string;
20008
20568
  /**
20569
+ * @remarks
20570
+ * Template type
20571
+ *
20009
20572
  * @example
20010
20573
  * Package
20011
20574
  */
20012
20575
  templateCategory?: string;
20013
20576
  /**
20577
+ * @remarks
20578
+ * Template ID
20579
+ *
20014
20580
  * @example
20015
20581
  * 087b1e11072a40259f6fxxxxxxxxx
20016
20582
  */
20017
20583
  templateId?: string;
20018
20584
  /**
20585
+ * @remarks
20586
+ * Template name.
20587
+ *
20019
20588
  * @example
20020
20589
  * ACS-ECS-Docker
20021
20590
  */
20022
20591
  templateName?: string;
20023
20592
  /**
20593
+ * @remarks
20594
+ * Template version number
20595
+ *
20024
20596
  * @example
20025
20597
  * v3
20026
20598
  */
20027
20599
  templateVersion?: string;
20028
20600
  /**
20601
+ * @remarks
20602
+ * Template version name
20603
+ *
20029
20604
  * @example
20030
20605
  * fix bug
20031
20606
  */
20032
20607
  templateVersionName?: string;
20033
20608
  /**
20609
+ * @remarks
20610
+ * Update time.
20611
+ *
20034
20612
  * @example
20035
20613
  * 2024-05-04T11:17:28
20036
20614
  */
@@ -21934,6 +22512,13 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
21934
22512
  * 2019-05-16T10:26:14Z
21935
22513
  */
21936
22514
  updatedDate?: string;
22515
+ /**
22516
+ * @remarks
22517
+ * The version name.
22518
+ *
22519
+ * @example
22520
+ * v2.1
22521
+ */
21937
22522
  versionName?: string;
21938
22523
  static names(): { [key: string]: string } {
21939
22524
  return {
@@ -23891,6 +24476,76 @@ export default class Client extends OpenApi {
23891
24476
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
23892
24477
  }
23893
24478
 
24479
+ /**
24480
+ * 分析仓库
24481
+ *
24482
+ * @param request - AnalyzeGitRepositoryRequest
24483
+ * @param runtime - runtime options for this request RuntimeOptions
24484
+ * @returns AnalyzeGitRepositoryResponse
24485
+ */
24486
+ async analyzeGitRepositoryWithOptions(request: AnalyzeGitRepositoryRequest, runtime: $Util.RuntimeOptions): Promise<AnalyzeGitRepositoryResponse> {
24487
+ Util.validateModel(request);
24488
+ let query = { };
24489
+ if (!Util.isUnset(request.branch)) {
24490
+ query["Branch"] = request.branch;
24491
+ }
24492
+
24493
+ if (!Util.isUnset(request.clientToken)) {
24494
+ query["ClientToken"] = request.clientToken;
24495
+ }
24496
+
24497
+ if (!Util.isUnset(request.orgId)) {
24498
+ query["OrgId"] = request.orgId;
24499
+ }
24500
+
24501
+ if (!Util.isUnset(request.owner)) {
24502
+ query["Owner"] = request.owner;
24503
+ }
24504
+
24505
+ if (!Util.isUnset(request.platform)) {
24506
+ query["Platform"] = request.platform;
24507
+ }
24508
+
24509
+ if (!Util.isUnset(request.regionId)) {
24510
+ query["RegionId"] = request.regionId;
24511
+ }
24512
+
24513
+ if (!Util.isUnset(request.repoFullName)) {
24514
+ query["RepoFullName"] = request.repoFullName;
24515
+ }
24516
+
24517
+ if (!Util.isUnset(request.repoId)) {
24518
+ query["RepoId"] = request.repoId;
24519
+ }
24520
+
24521
+ let req = new $OpenApi.OpenApiRequest({
24522
+ query: OpenApiUtil.query(query),
24523
+ });
24524
+ let params = new $OpenApi.Params({
24525
+ action: "AnalyzeGitRepository",
24526
+ version: "2019-06-01",
24527
+ protocol: "HTTPS",
24528
+ pathname: "/",
24529
+ method: "POST",
24530
+ authType: "AK",
24531
+ style: "RPC",
24532
+ reqBodyType: "formData",
24533
+ bodyType: "json",
24534
+ });
24535
+ return $tea.cast<AnalyzeGitRepositoryResponse>(await this.callApi(params, req, runtime), new AnalyzeGitRepositoryResponse({}));
24536
+ }
24537
+
24538
+ /**
24539
+ * 分析仓库
24540
+ *
24541
+ * @param request - AnalyzeGitRepositoryRequest
24542
+ * @returns AnalyzeGitRepositoryResponse
24543
+ */
24544
+ async analyzeGitRepository(request: AnalyzeGitRepositoryRequest): Promise<AnalyzeGitRepositoryResponse> {
24545
+ let runtime = new $Util.RuntimeOptions({ });
24546
+ return await this.analyzeGitRepositoryWithOptions(request, runtime);
24547
+ }
24548
+
23894
24549
  /**
23895
24550
  * Cancels an execution.
23896
24551
  *
@@ -24069,6 +24724,10 @@ export default class Client extends OpenApi {
24069
24724
  query["AlarmConfig"] = request.alarmConfigShrink;
24070
24725
  }
24071
24726
 
24727
+ if (!Util.isUnset(request.applicationSource)) {
24728
+ query["ApplicationSource"] = request.applicationSource;
24729
+ }
24730
+
24072
24731
  if (!Util.isUnset(request.clientToken)) {
24073
24732
  query["ClientToken"] = request.clientToken;
24074
24733
  }
@@ -26109,6 +26768,68 @@ export default class Client extends OpenApi {
26109
26768
  return await this.getTemplateWithOptions(request, runtime);
26110
26769
  }
26111
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
+
26112
26833
  /**
26113
26834
  * Queries the available actions, including atomic actions and cloud product actions.
26114
26835
  *
@@ -26634,7 +27355,85 @@ export default class Client extends OpenApi {
26634
27355
  }
26635
27356
 
26636
27357
  /**
26637
- * 列出实例软件包状态
27358
+ * 获取仓库文件与目录信息
27359
+ *
27360
+ * @param request - ListGitRepositoryContentsRequest
27361
+ * @param runtime - runtime options for this request RuntimeOptions
27362
+ * @returns ListGitRepositoryContentsResponse
27363
+ */
27364
+ async listGitRepositoryContentsWithOptions(request: ListGitRepositoryContentsRequest, runtime: $Util.RuntimeOptions): Promise<ListGitRepositoryContentsResponse> {
27365
+ Util.validateModel(request);
27366
+ let query = { };
27367
+ if (!Util.isUnset(request.branch)) {
27368
+ query["Branch"] = request.branch;
27369
+ }
27370
+
27371
+ if (!Util.isUnset(request.clientToken)) {
27372
+ query["ClientToken"] = request.clientToken;
27373
+ }
27374
+
27375
+ if (!Util.isUnset(request.contentType)) {
27376
+ query["ContentType"] = request.contentType;
27377
+ }
27378
+
27379
+ if (!Util.isUnset(request.orgId)) {
27380
+ query["OrgId"] = request.orgId;
27381
+ }
27382
+
27383
+ if (!Util.isUnset(request.owner)) {
27384
+ query["Owner"] = request.owner;
27385
+ }
27386
+
27387
+ if (!Util.isUnset(request.path)) {
27388
+ query["Path"] = request.path;
27389
+ }
27390
+
27391
+ if (!Util.isUnset(request.platform)) {
27392
+ query["Platform"] = request.platform;
27393
+ }
27394
+
27395
+ if (!Util.isUnset(request.regionId)) {
27396
+ query["RegionId"] = request.regionId;
27397
+ }
27398
+
27399
+ if (!Util.isUnset(request.repoFullName)) {
27400
+ query["RepoFullName"] = request.repoFullName;
27401
+ }
27402
+
27403
+ if (!Util.isUnset(request.repoId)) {
27404
+ query["RepoId"] = request.repoId;
27405
+ }
27406
+
27407
+ let req = new $OpenApi.OpenApiRequest({
27408
+ query: OpenApiUtil.query(query),
27409
+ });
27410
+ let params = new $OpenApi.Params({
27411
+ action: "ListGitRepositoryContents",
27412
+ version: "2019-06-01",
27413
+ protocol: "HTTPS",
27414
+ pathname: "/",
27415
+ method: "POST",
27416
+ authType: "AK",
27417
+ style: "RPC",
27418
+ reqBodyType: "formData",
27419
+ bodyType: "json",
27420
+ });
27421
+ return $tea.cast<ListGitRepositoryContentsResponse>(await this.callApi(params, req, runtime), new ListGitRepositoryContentsResponse({}));
27422
+ }
27423
+
27424
+ /**
27425
+ * 获取仓库文件与目录信息
27426
+ *
27427
+ * @param request - ListGitRepositoryContentsRequest
27428
+ * @returns ListGitRepositoryContentsResponse
27429
+ */
27430
+ async listGitRepositoryContents(request: ListGitRepositoryContentsRequest): Promise<ListGitRepositoryContentsResponse> {
27431
+ let runtime = new $Util.RuntimeOptions({ });
27432
+ return await this.listGitRepositoryContentsWithOptions(request, runtime);
27433
+ }
27434
+
27435
+ /**
27436
+ * List Instance Package States
26638
27437
  *
26639
27438
  * @param request - ListInstancePackageStatesRequest
26640
27439
  * @param runtime - runtime options for this request RuntimeOptions
@@ -26681,7 +27480,7 @@ export default class Client extends OpenApi {
26681
27480
  }
26682
27481
 
26683
27482
  /**
26684
- * 列出实例软件包状态
27483
+ * List Instance Package States
26685
27484
  *
26686
27485
  * @param request - ListInstancePackageStatesRequest
26687
27486
  * @returns ListInstancePackageStatesResponse
@@ -28678,7 +29477,7 @@ export default class Client extends OpenApi {
28678
29477
  }
28679
29478
 
28680
29479
  /**
28681
- * 更新实例软件包状态
29480
+ * Updates the installed extensions of an instance.
28682
29481
  *
28683
29482
  * @param tmpReq - UpdateInstancePackageStateRequest
28684
29483
  * @param runtime - runtime options for this request RuntimeOptions
@@ -28735,7 +29534,7 @@ export default class Client extends OpenApi {
28735
29534
  }
28736
29535
 
28737
29536
  /**
28738
- * 更新实例软件包状态
29537
+ * Updates the installed extensions of an instance.
28739
29538
  *
28740
29539
  * @param request - UpdateInstancePackageStateRequest
28741
29540
  * @returns UpdateInstancePackageStateResponse