@alicloud/oos20190601 2.0.1 → 3.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/oos20190601",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.4",
24
+ "@alicloud/openapi-client": "^0.4.7",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -1294,11 +1294,13 @@ export class DeleteApplicationRequest extends $tea.Model {
1294
1294
  force?: boolean;
1295
1295
  name?: string;
1296
1296
  regionId?: string;
1297
+ retainResource?: boolean;
1297
1298
  static names(): { [key: string]: string } {
1298
1299
  return {
1299
1300
  force: 'Force',
1300
1301
  name: 'Name',
1301
1302
  regionId: 'RegionId',
1303
+ retainResource: 'RetainResource',
1302
1304
  };
1303
1305
  }
1304
1306
 
@@ -1307,6 +1309,7 @@ export class DeleteApplicationRequest extends $tea.Model {
1307
1309
  force: 'boolean',
1308
1310
  name: 'string',
1309
1311
  regionId: 'string',
1312
+ retainResource: 'boolean',
1310
1313
  };
1311
1314
  }
1312
1315
 
@@ -1363,11 +1366,13 @@ export class DeleteApplicationGroupRequest extends $tea.Model {
1363
1366
  applicationName?: string;
1364
1367
  name?: string;
1365
1368
  regionId?: string;
1369
+ retainResource?: boolean;
1366
1370
  static names(): { [key: string]: string } {
1367
1371
  return {
1368
1372
  applicationName: 'ApplicationName',
1369
1373
  name: 'Name',
1370
1374
  regionId: 'RegionId',
1375
+ retainResource: 'RetainResource',
1371
1376
  };
1372
1377
  }
1373
1378
 
@@ -1376,6 +1381,7 @@ export class DeleteApplicationGroupRequest extends $tea.Model {
1376
1381
  applicationName: 'string',
1377
1382
  name: 'string',
1378
1383
  regionId: 'string',
1384
+ retainResource: 'boolean',
1379
1385
  };
1380
1386
  }
1381
1387
 
@@ -1971,6 +1977,96 @@ export class DeployApplicationGroupResponse extends $tea.Model {
1971
1977
  }
1972
1978
  }
1973
1979
 
1980
+ export class DescribeApplicationGroupBillRequest extends $tea.Model {
1981
+ applicationName?: string;
1982
+ billingCycle?: string;
1983
+ maxResults?: number;
1984
+ name?: string;
1985
+ nextToken?: string;
1986
+ regionId?: string;
1987
+ resourceType?: string;
1988
+ static names(): { [key: string]: string } {
1989
+ return {
1990
+ applicationName: 'ApplicationName',
1991
+ billingCycle: 'BillingCycle',
1992
+ maxResults: 'MaxResults',
1993
+ name: 'Name',
1994
+ nextToken: 'NextToken',
1995
+ regionId: 'RegionId',
1996
+ resourceType: 'ResourceType',
1997
+ };
1998
+ }
1999
+
2000
+ static types(): { [key: string]: any } {
2001
+ return {
2002
+ applicationName: 'string',
2003
+ billingCycle: 'string',
2004
+ maxResults: 'number',
2005
+ name: 'string',
2006
+ nextToken: 'string',
2007
+ regionId: 'string',
2008
+ resourceType: 'string',
2009
+ };
2010
+ }
2011
+
2012
+ constructor(map?: { [key: string]: any }) {
2013
+ super(map);
2014
+ }
2015
+ }
2016
+
2017
+ export class DescribeApplicationGroupBillResponseBody extends $tea.Model {
2018
+ applicationGroupConsume?: DescribeApplicationGroupBillResponseBodyApplicationGroupConsume[];
2019
+ maxResults?: number;
2020
+ nextToken?: string;
2021
+ requestId?: string;
2022
+ static names(): { [key: string]: string } {
2023
+ return {
2024
+ applicationGroupConsume: 'ApplicationGroupConsume',
2025
+ maxResults: 'MaxResults',
2026
+ nextToken: 'NextToken',
2027
+ requestId: 'RequestId',
2028
+ };
2029
+ }
2030
+
2031
+ static types(): { [key: string]: any } {
2032
+ return {
2033
+ applicationGroupConsume: { 'type': 'array', 'itemType': DescribeApplicationGroupBillResponseBodyApplicationGroupConsume },
2034
+ maxResults: 'number',
2035
+ nextToken: 'string',
2036
+ requestId: 'string',
2037
+ };
2038
+ }
2039
+
2040
+ constructor(map?: { [key: string]: any }) {
2041
+ super(map);
2042
+ }
2043
+ }
2044
+
2045
+ export class DescribeApplicationGroupBillResponse extends $tea.Model {
2046
+ headers: { [key: string]: string };
2047
+ statusCode: number;
2048
+ body: DescribeApplicationGroupBillResponseBody;
2049
+ static names(): { [key: string]: string } {
2050
+ return {
2051
+ headers: 'headers',
2052
+ statusCode: 'statusCode',
2053
+ body: 'body',
2054
+ };
2055
+ }
2056
+
2057
+ static types(): { [key: string]: any } {
2058
+ return {
2059
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2060
+ statusCode: 'number',
2061
+ body: DescribeApplicationGroupBillResponseBody,
2062
+ };
2063
+ }
2064
+
2065
+ constructor(map?: { [key: string]: any }) {
2066
+ super(map);
2067
+ }
2068
+ }
2069
+
1974
2070
  export class DescribeRegionsRequest extends $tea.Model {
1975
2071
  acceptLanguage?: string;
1976
2072
  regionId?: string;
@@ -2043,12 +2139,14 @@ export class DescribeRegionsResponse extends $tea.Model {
2043
2139
  export class GenerateExecutionPolicyRequest extends $tea.Model {
2044
2140
  ramRole?: string;
2045
2141
  regionId?: string;
2142
+ templateContent?: string;
2046
2143
  templateName?: string;
2047
2144
  templateVersion?: string;
2048
2145
  static names(): { [key: string]: string } {
2049
2146
  return {
2050
2147
  ramRole: 'RamRole',
2051
2148
  regionId: 'RegionId',
2149
+ templateContent: 'TemplateContent',
2052
2150
  templateName: 'TemplateName',
2053
2151
  templateVersion: 'TemplateVersion',
2054
2152
  };
@@ -2058,6 +2156,7 @@ export class GenerateExecutionPolicyRequest extends $tea.Model {
2058
2156
  return {
2059
2157
  ramRole: 'string',
2060
2158
  regionId: 'string',
2159
+ templateContent: 'string',
2061
2160
  templateName: 'string',
2062
2161
  templateVersion: 'string',
2063
2162
  };
@@ -5615,6 +5714,7 @@ export class ListTemplatesRequest extends $tea.Model {
5615
5714
  createdDateAfter?: string;
5616
5715
  createdDateBefore?: string;
5617
5716
  hasTrigger?: boolean;
5717
+ isFavorite?: boolean;
5618
5718
  maxResults?: number;
5619
5719
  nextToken?: string;
5620
5720
  regionId?: string;
@@ -5633,6 +5733,7 @@ export class ListTemplatesRequest extends $tea.Model {
5633
5733
  createdDateAfter: 'CreatedDateAfter',
5634
5734
  createdDateBefore: 'CreatedDateBefore',
5635
5735
  hasTrigger: 'HasTrigger',
5736
+ isFavorite: 'IsFavorite',
5636
5737
  maxResults: 'MaxResults',
5637
5738
  nextToken: 'NextToken',
5638
5739
  regionId: 'RegionId',
@@ -5654,6 +5755,7 @@ export class ListTemplatesRequest extends $tea.Model {
5654
5755
  createdDateAfter: 'string',
5655
5756
  createdDateBefore: 'string',
5656
5757
  hasTrigger: 'boolean',
5758
+ isFavorite: 'boolean',
5657
5759
  maxResults: 'number',
5658
5760
  nextToken: 'string',
5659
5761
  regionId: 'string',
@@ -5679,6 +5781,7 @@ export class ListTemplatesShrinkRequest extends $tea.Model {
5679
5781
  createdDateAfter?: string;
5680
5782
  createdDateBefore?: string;
5681
5783
  hasTrigger?: boolean;
5784
+ isFavorite?: boolean;
5682
5785
  maxResults?: number;
5683
5786
  nextToken?: string;
5684
5787
  regionId?: string;
@@ -5697,6 +5800,7 @@ export class ListTemplatesShrinkRequest extends $tea.Model {
5697
5800
  createdDateAfter: 'CreatedDateAfter',
5698
5801
  createdDateBefore: 'CreatedDateBefore',
5699
5802
  hasTrigger: 'HasTrigger',
5803
+ isFavorite: 'IsFavorite',
5700
5804
  maxResults: 'MaxResults',
5701
5805
  nextToken: 'NextToken',
5702
5806
  regionId: 'RegionId',
@@ -5718,6 +5822,7 @@ export class ListTemplatesShrinkRequest extends $tea.Model {
5718
5822
  createdDateAfter: 'string',
5719
5823
  createdDateBefore: 'string',
5720
5824
  hasTrigger: 'boolean',
5825
+ isFavorite: 'boolean',
5721
5826
  maxResults: 'number',
5722
5827
  nextToken: 'string',
5723
5828
  regionId: 'string',
@@ -8192,6 +8297,52 @@ export class CreateTemplateResponseBodyTemplate extends $tea.Model {
8192
8297
  }
8193
8298
  }
8194
8299
 
8300
+ export class DescribeApplicationGroupBillResponseBodyApplicationGroupConsume extends $tea.Model {
8301
+ amount?: number;
8302
+ creationTime?: string;
8303
+ currency?: string;
8304
+ instanceId?: string;
8305
+ instanceName?: string;
8306
+ instanceType?: string;
8307
+ optimization?: string;
8308
+ peakType?: string;
8309
+ performance?: string;
8310
+ status?: string;
8311
+ static names(): { [key: string]: string } {
8312
+ return {
8313
+ amount: 'Amount',
8314
+ creationTime: 'CreationTime',
8315
+ currency: 'Currency',
8316
+ instanceId: 'InstanceId',
8317
+ instanceName: 'InstanceName',
8318
+ instanceType: 'InstanceType',
8319
+ optimization: 'Optimization',
8320
+ peakType: 'PeakType',
8321
+ performance: 'Performance',
8322
+ status: 'Status',
8323
+ };
8324
+ }
8325
+
8326
+ static types(): { [key: string]: any } {
8327
+ return {
8328
+ amount: 'number',
8329
+ creationTime: 'string',
8330
+ currency: 'string',
8331
+ instanceId: 'string',
8332
+ instanceName: 'string',
8333
+ instanceType: 'string',
8334
+ optimization: 'string',
8335
+ peakType: 'string',
8336
+ performance: 'string',
8337
+ status: 'string',
8338
+ };
8339
+ }
8340
+
8341
+ constructor(map?: { [key: string]: any }) {
8342
+ super(map);
8343
+ }
8344
+ }
8345
+
8195
8346
  export class DescribeRegionsResponseBodyRegions extends $tea.Model {
8196
8347
  localName?: string;
8197
8348
  regionEndpoint?: string;
@@ -8447,7 +8598,6 @@ export class GetOpsItemResponseBodyOpsItem extends $tea.Model {
8447
8598
  category?: string;
8448
8599
  createBy?: string;
8449
8600
  createDate?: string;
8450
- dedupString?: string;
8451
8601
  description?: string;
8452
8602
  lastModifiedBy?: string;
8453
8603
  opsItemId?: string;
@@ -8467,7 +8617,6 @@ export class GetOpsItemResponseBodyOpsItem extends $tea.Model {
8467
8617
  category: 'Category',
8468
8618
  createBy: 'CreateBy',
8469
8619
  createDate: 'CreateDate',
8470
- dedupString: 'DedupString',
8471
8620
  description: 'Description',
8472
8621
  lastModifiedBy: 'LastModifiedBy',
8473
8622
  opsItemId: 'OpsItemId',
@@ -8490,7 +8639,6 @@ export class GetOpsItemResponseBodyOpsItem extends $tea.Model {
8490
8639
  category: 'string',
8491
8640
  createBy: 'string',
8492
8641
  createDate: 'string',
8493
- dedupString: 'string',
8494
8642
  description: 'string',
8495
8643
  lastModifiedBy: 'string',
8496
8644
  opsItemId: 'string',
@@ -10098,12 +10246,15 @@ export class ListTemplateVersionsResponseBodyTemplateVersions extends $tea.Model
10098
10246
 
10099
10247
  export class ListTemplatesResponseBodyTemplates extends $tea.Model {
10100
10248
  category?: string;
10249
+ constraints?: string;
10101
10250
  createdBy?: string;
10102
10251
  createdDate?: string;
10103
10252
  description?: string;
10104
10253
  hasTrigger?: boolean;
10105
10254
  hash?: string;
10255
+ isFavorite?: boolean;
10106
10256
  popularity?: number;
10257
+ publisher?: string;
10107
10258
  resourceGroupId?: string;
10108
10259
  shareType?: string;
10109
10260
  tags?: { [key: string]: any };
@@ -10118,12 +10269,15 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
10118
10269
  static names(): { [key: string]: string } {
10119
10270
  return {
10120
10271
  category: 'Category',
10272
+ constraints: 'Constraints',
10121
10273
  createdBy: 'CreatedBy',
10122
10274
  createdDate: 'CreatedDate',
10123
10275
  description: 'Description',
10124
10276
  hasTrigger: 'HasTrigger',
10125
10277
  hash: 'Hash',
10278
+ isFavorite: 'IsFavorite',
10126
10279
  popularity: 'Popularity',
10280
+ publisher: 'Publisher',
10127
10281
  resourceGroupId: 'ResourceGroupId',
10128
10282
  shareType: 'ShareType',
10129
10283
  tags: 'Tags',
@@ -10141,12 +10295,15 @@ export class ListTemplatesResponseBodyTemplates extends $tea.Model {
10141
10295
  static types(): { [key: string]: any } {
10142
10296
  return {
10143
10297
  category: 'string',
10298
+ constraints: 'string',
10144
10299
  createdBy: 'string',
10145
10300
  createdDate: 'string',
10146
10301
  description: 'string',
10147
10302
  hasTrigger: 'boolean',
10148
10303
  hash: 'string',
10304
+ isFavorite: 'boolean',
10149
10305
  popularity: 'number',
10306
+ publisher: 'string',
10150
10307
  resourceGroupId: 'string',
10151
10308
  shareType: 'string',
10152
10309
  tags: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
@@ -11655,6 +11812,10 @@ export default class Client extends OpenApi {
11655
11812
  query["RegionId"] = request.regionId;
11656
11813
  }
11657
11814
 
11815
+ if (!Util.isUnset(request.retainResource)) {
11816
+ query["RetainResource"] = request.retainResource;
11817
+ }
11818
+
11658
11819
  let req = new $OpenApi.OpenApiRequest({
11659
11820
  query: OpenApiUtil.query(query),
11660
11821
  });
@@ -11692,6 +11853,10 @@ export default class Client extends OpenApi {
11692
11853
  query["RegionId"] = request.regionId;
11693
11854
  }
11694
11855
 
11856
+ if (!Util.isUnset(request.retainResource)) {
11857
+ query["RetainResource"] = request.retainResource;
11858
+ }
11859
+
11695
11860
  let req = new $OpenApi.OpenApiRequest({
11696
11861
  query: OpenApiUtil.query(query),
11697
11862
  });
@@ -11998,6 +12163,59 @@ export default class Client extends OpenApi {
11998
12163
  return await this.deployApplicationGroupWithOptions(request, runtime);
11999
12164
  }
12000
12165
 
12166
+ async describeApplicationGroupBillWithOptions(request: DescribeApplicationGroupBillRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApplicationGroupBillResponse> {
12167
+ Util.validateModel(request);
12168
+ let query = { };
12169
+ if (!Util.isUnset(request.applicationName)) {
12170
+ query["ApplicationName"] = request.applicationName;
12171
+ }
12172
+
12173
+ if (!Util.isUnset(request.billingCycle)) {
12174
+ query["BillingCycle"] = request.billingCycle;
12175
+ }
12176
+
12177
+ if (!Util.isUnset(request.maxResults)) {
12178
+ query["MaxResults"] = request.maxResults;
12179
+ }
12180
+
12181
+ if (!Util.isUnset(request.name)) {
12182
+ query["Name"] = request.name;
12183
+ }
12184
+
12185
+ if (!Util.isUnset(request.nextToken)) {
12186
+ query["NextToken"] = request.nextToken;
12187
+ }
12188
+
12189
+ if (!Util.isUnset(request.regionId)) {
12190
+ query["RegionId"] = request.regionId;
12191
+ }
12192
+
12193
+ if (!Util.isUnset(request.resourceType)) {
12194
+ query["ResourceType"] = request.resourceType;
12195
+ }
12196
+
12197
+ let req = new $OpenApi.OpenApiRequest({
12198
+ query: OpenApiUtil.query(query),
12199
+ });
12200
+ let params = new $OpenApi.Params({
12201
+ action: "DescribeApplicationGroupBill",
12202
+ version: "2019-06-01",
12203
+ protocol: "HTTPS",
12204
+ pathname: "/",
12205
+ method: "POST",
12206
+ authType: "AK",
12207
+ style: "RPC",
12208
+ reqBodyType: "formData",
12209
+ bodyType: "json",
12210
+ });
12211
+ return $tea.cast<DescribeApplicationGroupBillResponse>(await this.callApi(params, req, runtime), new DescribeApplicationGroupBillResponse({}));
12212
+ }
12213
+
12214
+ async describeApplicationGroupBill(request: DescribeApplicationGroupBillRequest): Promise<DescribeApplicationGroupBillResponse> {
12215
+ let runtime = new $Util.RuntimeOptions({ });
12216
+ return await this.describeApplicationGroupBillWithOptions(request, runtime);
12217
+ }
12218
+
12001
12219
  async describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse> {
12002
12220
  Util.validateModel(request);
12003
12221
  let query = { };
@@ -12042,6 +12260,10 @@ export default class Client extends OpenApi {
12042
12260
  query["RegionId"] = request.regionId;
12043
12261
  }
12044
12262
 
12263
+ if (!Util.isUnset(request.templateContent)) {
12264
+ query["TemplateContent"] = request.templateContent;
12265
+ }
12266
+
12045
12267
  if (!Util.isUnset(request.templateName)) {
12046
12268
  query["TemplateName"] = request.templateName;
12047
12269
  }
@@ -13923,6 +14145,10 @@ export default class Client extends OpenApi {
13923
14145
  query["HasTrigger"] = request.hasTrigger;
13924
14146
  }
13925
14147
 
14148
+ if (!Util.isUnset(request.isFavorite)) {
14149
+ query["IsFavorite"] = request.isFavorite;
14150
+ }
14151
+
13926
14152
  if (!Util.isUnset(request.maxResults)) {
13927
14153
  query["MaxResults"] = request.maxResults;
13928
14154
  }