@alicloud/ebs20210730 2.2.0 → 2.3.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/ebs20210730",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2236,6 +2236,93 @@ export class DescribeEventsResponse extends $tea.Model {
2236
2236
  }
2237
2237
  }
2238
2238
 
2239
+ export class DescribeLensMonitorDisksRequest extends $tea.Model {
2240
+ diskCategory?: string;
2241
+ diskIds?: string[];
2242
+ lensTags?: string[];
2243
+ maxResults?: number;
2244
+ nextToken?: string;
2245
+ regionId?: string;
2246
+ static names(): { [key: string]: string } {
2247
+ return {
2248
+ diskCategory: 'DiskCategory',
2249
+ diskIds: 'DiskIds',
2250
+ lensTags: 'LensTags',
2251
+ maxResults: 'MaxResults',
2252
+ nextToken: 'NextToken',
2253
+ regionId: 'RegionId',
2254
+ };
2255
+ }
2256
+
2257
+ static types(): { [key: string]: any } {
2258
+ return {
2259
+ diskCategory: 'string',
2260
+ diskIds: { 'type': 'array', 'itemType': 'string' },
2261
+ lensTags: { 'type': 'array', 'itemType': 'string' },
2262
+ maxResults: 'number',
2263
+ nextToken: 'string',
2264
+ regionId: 'string',
2265
+ };
2266
+ }
2267
+
2268
+ constructor(map?: { [key: string]: any }) {
2269
+ super(map);
2270
+ }
2271
+ }
2272
+
2273
+ export class DescribeLensMonitorDisksResponseBody extends $tea.Model {
2274
+ diskInfos?: DescribeLensMonitorDisksResponseBodyDiskInfos[];
2275
+ nextToken?: string;
2276
+ requestId?: string;
2277
+ totalCount?: number;
2278
+ static names(): { [key: string]: string } {
2279
+ return {
2280
+ diskInfos: 'DiskInfos',
2281
+ nextToken: 'NextToken',
2282
+ requestId: 'RequestId',
2283
+ totalCount: 'TotalCount',
2284
+ };
2285
+ }
2286
+
2287
+ static types(): { [key: string]: any } {
2288
+ return {
2289
+ diskInfos: { 'type': 'array', 'itemType': DescribeLensMonitorDisksResponseBodyDiskInfos },
2290
+ nextToken: 'string',
2291
+ requestId: 'string',
2292
+ totalCount: 'number',
2293
+ };
2294
+ }
2295
+
2296
+ constructor(map?: { [key: string]: any }) {
2297
+ super(map);
2298
+ }
2299
+ }
2300
+
2301
+ export class DescribeLensMonitorDisksResponse extends $tea.Model {
2302
+ headers?: { [key: string]: string };
2303
+ statusCode?: number;
2304
+ body?: DescribeLensMonitorDisksResponseBody;
2305
+ static names(): { [key: string]: string } {
2306
+ return {
2307
+ headers: 'headers',
2308
+ statusCode: 'statusCode',
2309
+ body: 'body',
2310
+ };
2311
+ }
2312
+
2313
+ static types(): { [key: string]: any } {
2314
+ return {
2315
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2316
+ statusCode: 'number',
2317
+ body: DescribeLensMonitorDisksResponseBody,
2318
+ };
2319
+ }
2320
+
2321
+ constructor(map?: { [key: string]: any }) {
2322
+ super(map);
2323
+ }
2324
+ }
2325
+
2239
2326
  export class DescribeLensServiceStatusResponseBody extends $tea.Model {
2240
2327
  requestId?: string;
2241
2328
  status?: string;
@@ -6062,6 +6149,89 @@ export class DescribeEventsResponseBodyResourceEvents extends $tea.Model {
6062
6149
  }
6063
6150
  }
6064
6151
 
6152
+ export class DescribeLensMonitorDisksResponseBodyDiskInfosTags extends $tea.Model {
6153
+ tagKey?: string;
6154
+ tagValue?: string;
6155
+ static names(): { [key: string]: string } {
6156
+ return {
6157
+ tagKey: 'TagKey',
6158
+ tagValue: 'TagValue',
6159
+ };
6160
+ }
6161
+
6162
+ static types(): { [key: string]: any } {
6163
+ return {
6164
+ tagKey: 'string',
6165
+ tagValue: 'string',
6166
+ };
6167
+ }
6168
+
6169
+ constructor(map?: { [key: string]: any }) {
6170
+ super(map);
6171
+ }
6172
+ }
6173
+
6174
+ export class DescribeLensMonitorDisksResponseBodyDiskInfos extends $tea.Model {
6175
+ bps?: number;
6176
+ burstingEnabled?: boolean;
6177
+ diskCategory?: string;
6178
+ diskId?: string;
6179
+ diskName?: string;
6180
+ diskStatus?: string;
6181
+ diskType?: string;
6182
+ iops?: number;
6183
+ lensTags?: string[];
6184
+ performanceLevel?: string;
6185
+ provisionedIops?: number;
6186
+ regionId?: string;
6187
+ size?: number;
6188
+ tags?: DescribeLensMonitorDisksResponseBodyDiskInfosTags[];
6189
+ zoneId?: string;
6190
+ static names(): { [key: string]: string } {
6191
+ return {
6192
+ bps: 'Bps',
6193
+ burstingEnabled: 'BurstingEnabled',
6194
+ diskCategory: 'DiskCategory',
6195
+ diskId: 'DiskId',
6196
+ diskName: 'DiskName',
6197
+ diskStatus: 'DiskStatus',
6198
+ diskType: 'DiskType',
6199
+ iops: 'Iops',
6200
+ lensTags: 'LensTags',
6201
+ performanceLevel: 'PerformanceLevel',
6202
+ provisionedIops: 'ProvisionedIops',
6203
+ regionId: 'RegionId',
6204
+ size: 'Size',
6205
+ tags: 'Tags',
6206
+ zoneId: 'ZoneId',
6207
+ };
6208
+ }
6209
+
6210
+ static types(): { [key: string]: any } {
6211
+ return {
6212
+ bps: 'number',
6213
+ burstingEnabled: 'boolean',
6214
+ diskCategory: 'string',
6215
+ diskId: 'string',
6216
+ diskName: 'string',
6217
+ diskStatus: 'string',
6218
+ diskType: 'string',
6219
+ iops: 'number',
6220
+ lensTags: { 'type': 'array', 'itemType': 'string' },
6221
+ performanceLevel: 'string',
6222
+ provisionedIops: 'number',
6223
+ regionId: 'string',
6224
+ size: 'number',
6225
+ tags: { 'type': 'array', 'itemType': DescribeLensMonitorDisksResponseBodyDiskInfosTags },
6226
+ zoneId: 'string',
6227
+ };
6228
+ }
6229
+
6230
+ constructor(map?: { [key: string]: any }) {
6231
+ super(map);
6232
+ }
6233
+ }
6234
+
6065
6235
  export class DescribeMetricDataResponseBodyDataList extends $tea.Model {
6066
6236
  datapoints?: any;
6067
6237
  labels?: any;
@@ -8397,6 +8567,55 @@ export default class Client extends OpenApi {
8397
8567
  return await this.describeEventsWithOptions(request, runtime);
8398
8568
  }
8399
8569
 
8570
+ async describeLensMonitorDisksWithOptions(request: DescribeLensMonitorDisksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLensMonitorDisksResponse> {
8571
+ Util.validateModel(request);
8572
+ let query = { };
8573
+ if (!Util.isUnset(request.diskCategory)) {
8574
+ query["DiskCategory"] = request.diskCategory;
8575
+ }
8576
+
8577
+ if (!Util.isUnset(request.diskIds)) {
8578
+ query["DiskIds"] = request.diskIds;
8579
+ }
8580
+
8581
+ if (!Util.isUnset(request.lensTags)) {
8582
+ query["LensTags"] = request.lensTags;
8583
+ }
8584
+
8585
+ if (!Util.isUnset(request.maxResults)) {
8586
+ query["MaxResults"] = request.maxResults;
8587
+ }
8588
+
8589
+ if (!Util.isUnset(request.nextToken)) {
8590
+ query["NextToken"] = request.nextToken;
8591
+ }
8592
+
8593
+ if (!Util.isUnset(request.regionId)) {
8594
+ query["RegionId"] = request.regionId;
8595
+ }
8596
+
8597
+ let req = new $OpenApi.OpenApiRequest({
8598
+ query: OpenApiUtil.query(query),
8599
+ });
8600
+ let params = new $OpenApi.Params({
8601
+ action: "DescribeLensMonitorDisks",
8602
+ version: "2021-07-30",
8603
+ protocol: "HTTPS",
8604
+ pathname: "/",
8605
+ method: "POST",
8606
+ authType: "AK",
8607
+ style: "RPC",
8608
+ reqBodyType: "formData",
8609
+ bodyType: "json",
8610
+ });
8611
+ return $tea.cast<DescribeLensMonitorDisksResponse>(await this.callApi(params, req, runtime), new DescribeLensMonitorDisksResponse({}));
8612
+ }
8613
+
8614
+ async describeLensMonitorDisks(request: DescribeLensMonitorDisksRequest): Promise<DescribeLensMonitorDisksResponse> {
8615
+ let runtime = new $Util.RuntimeOptions({ });
8616
+ return await this.describeLensMonitorDisksWithOptions(request, runtime);
8617
+ }
8618
+
8400
8619
  /**
8401
8620
  * ## Usage notes
8402
8621
  * CloudLens for EBS is in invitational preview in the China (Hangzhou), China (Shanghai), China (Zhangjiakou), China (Shenzhen), and China (Hong Kong) regions. To use the feature, [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).