@alicloud/cms20240330 4.0.0 → 4.1.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/dist/client.d.ts +72 -0
- package/dist/client.js +217 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ChangeResourceGroupRequest.d.ts +28 -0
- package/dist/models/ChangeResourceGroupRequest.js +62 -0
- package/dist/models/ChangeResourceGroupRequest.js.map +1 -0
- package/dist/models/ChangeResourceGroupResponse.d.ts +19 -0
- package/dist/models/ChangeResourceGroupResponse.js +69 -0
- package/dist/models/ChangeResourceGroupResponse.js.map +1 -0
- package/dist/models/ChangeResourceGroupResponseBody.d.ts +18 -0
- package/dist/models/ChangeResourceGroupResponseBody.js +58 -0
- package/dist/models/ChangeResourceGroupResponseBody.js.map +1 -0
- package/dist/models/ListTagResourcesRequest.d.ts +34 -0
- package/dist/models/ListTagResourcesRequest.js +73 -0
- package/dist/models/ListTagResourcesRequest.js.map +1 -0
- package/dist/models/ListTagResourcesResponse.d.ts +19 -0
- package/dist/models/ListTagResourcesResponse.js +69 -0
- package/dist/models/ListTagResourcesResponse.js.map +1 -0
- package/dist/models/ListTagResourcesResponseBody.d.ts +61 -0
- package/dist/models/ListTagResourcesResponseBody.js +92 -0
- package/dist/models/ListTagResourcesResponseBody.js.map +1 -0
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +33 -0
- package/dist/models/ListTagResourcesShrinkRequest.js +66 -0
- package/dist/models/ListTagResourcesShrinkRequest.js.map +1 -0
- package/dist/models/TagResourcesRequest.d.ts +28 -0
- package/dist/models/TagResourcesRequest.js +69 -0
- package/dist/models/TagResourcesRequest.js.map +1 -0
- package/dist/models/TagResourcesResponse.d.ts +19 -0
- package/dist/models/TagResourcesResponse.js +69 -0
- package/dist/models/TagResourcesResponse.js.map +1 -0
- package/dist/models/TagResourcesResponseBody.d.ts +18 -0
- package/dist/models/TagResourcesResponseBody.js +58 -0
- package/dist/models/TagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesRequest.d.ts +32 -0
- package/dist/models/UntagResourcesRequest.js +70 -0
- package/dist/models/UntagResourcesRequest.js.map +1 -0
- package/dist/models/UntagResourcesResponse.d.ts +19 -0
- package/dist/models/UntagResourcesResponse.js +69 -0
- package/dist/models/UntagResourcesResponse.js.map +1 -0
- package/dist/models/UntagResourcesResponseBody.d.ts +18 -0
- package/dist/models/UntagResourcesResponseBody.js +58 -0
- package/dist/models/UntagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesShrinkRequest.d.ts +32 -0
- package/dist/models/UntagResourcesShrinkRequest.js +64 -0
- package/dist/models/UntagResourcesShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +38 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +244 -0
- package/src/models/ChangeResourceGroupRequest.ts +45 -0
- package/src/models/ChangeResourceGroupResponse.ts +40 -0
- package/src/models/ChangeResourceGroupResponseBody.ts +31 -0
- package/src/models/ListTagResourcesRequest.ts +61 -0
- package/src/models/ListTagResourcesResponse.ts +40 -0
- package/src/models/ListTagResourcesResponseBody.ts +99 -0
- package/src/models/ListTagResourcesShrinkRequest.ts +54 -0
- package/src/models/TagResourcesRequest.ts +51 -0
- package/src/models/TagResourcesResponse.ts +40 -0
- package/src/models/TagResourcesResponseBody.ts +31 -0
- package/src/models/UntagResourcesRequest.ts +57 -0
- package/src/models/UntagResourcesResponse.ts +40 -0
- package/src/models/UntagResourcesResponseBody.ts +31 -0
- package/src/models/UntagResourcesShrinkRequest.ts +51 -0
- package/src/models/model.ts +15 -0
package/src/client.ts
CHANGED
|
@@ -29,6 +29,59 @@ export default class Client extends OpenApi {
|
|
|
29
29
|
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 修改资源所属资源组
|
|
34
|
+
*
|
|
35
|
+
* @param request - ChangeResourceGroupRequest
|
|
36
|
+
* @param headers - map
|
|
37
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
38
|
+
* @returns ChangeResourceGroupResponse
|
|
39
|
+
*/
|
|
40
|
+
async changeResourceGroupWithOptions(request: $_model.ChangeResourceGroupRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ChangeResourceGroupResponse> {
|
|
41
|
+
request.validate();
|
|
42
|
+
let body : {[key: string ]: any} = { };
|
|
43
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
44
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
48
|
+
body["resourceId"] = request.resourceId;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
52
|
+
body["resourceType"] = request.resourceType;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
56
|
+
headers: headers,
|
|
57
|
+
body: OpenApiUtil.parseToMap(body),
|
|
58
|
+
});
|
|
59
|
+
let params = new $OpenApiUtil.Params({
|
|
60
|
+
action: "ChangeResourceGroup",
|
|
61
|
+
version: "2024-03-30",
|
|
62
|
+
protocol: "HTTPS",
|
|
63
|
+
pathname: `/resourcegroup`,
|
|
64
|
+
method: "PUT",
|
|
65
|
+
authType: "AK",
|
|
66
|
+
style: "ROA",
|
|
67
|
+
reqBodyType: "json",
|
|
68
|
+
bodyType: "json",
|
|
69
|
+
});
|
|
70
|
+
return $dara.cast<$_model.ChangeResourceGroupResponse>(await this.callApi(params, req, runtime), new $_model.ChangeResourceGroupResponse({}));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 修改资源所属资源组
|
|
75
|
+
*
|
|
76
|
+
* @param request - ChangeResourceGroupRequest
|
|
77
|
+
* @returns ChangeResourceGroupResponse
|
|
78
|
+
*/
|
|
79
|
+
async changeResourceGroup(request: $_model.ChangeResourceGroupRequest): Promise<$_model.ChangeResourceGroupResponse> {
|
|
80
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
81
|
+
let headers : {[key: string ]: string} = { };
|
|
82
|
+
return await this.changeResourceGroupWithOptions(request, headers, runtime);
|
|
83
|
+
}
|
|
84
|
+
|
|
32
85
|
/**
|
|
33
86
|
* Install the access component, representing a single access attempt
|
|
34
87
|
*
|
|
@@ -4017,6 +4070,77 @@ export default class Client extends OpenApi {
|
|
|
4017
4070
|
return await this.listServicesWithOptions(workspace, request, headers, runtime);
|
|
4018
4071
|
}
|
|
4019
4072
|
|
|
4073
|
+
/**
|
|
4074
|
+
* 查标签接口
|
|
4075
|
+
*
|
|
4076
|
+
* @param tmpReq - ListTagResourcesRequest
|
|
4077
|
+
* @param headers - map
|
|
4078
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4079
|
+
* @returns ListTagResourcesResponse
|
|
4080
|
+
*/
|
|
4081
|
+
async listTagResourcesWithOptions(tmpReq: $_model.ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagResourcesResponse> {
|
|
4082
|
+
tmpReq.validate();
|
|
4083
|
+
let request = new $_model.ListTagResourcesShrinkRequest({ });
|
|
4084
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4085
|
+
if (!$dara.isNull(tmpReq.resourceId)) {
|
|
4086
|
+
request.resourceIdShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceId, "resourceId", "json");
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
4090
|
+
request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
let query : {[key: string ]: any} = { };
|
|
4094
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
4095
|
+
query["maxResults"] = request.maxResults;
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4099
|
+
query["nextToken"] = request.nextToken;
|
|
4100
|
+
}
|
|
4101
|
+
|
|
4102
|
+
if (!$dara.isNull(request.resourceIdShrink)) {
|
|
4103
|
+
query["resourceId"] = request.resourceIdShrink;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
4107
|
+
query["resourceType"] = request.resourceType;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
4111
|
+
query["tag"] = request.tagShrink;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4115
|
+
headers: headers,
|
|
4116
|
+
query: OpenApiUtil.query(query),
|
|
4117
|
+
});
|
|
4118
|
+
let params = new $OpenApiUtil.Params({
|
|
4119
|
+
action: "ListTagResources",
|
|
4120
|
+
version: "2024-03-30",
|
|
4121
|
+
protocol: "HTTPS",
|
|
4122
|
+
pathname: `/tags`,
|
|
4123
|
+
method: "GET",
|
|
4124
|
+
authType: "AK",
|
|
4125
|
+
style: "ROA",
|
|
4126
|
+
reqBodyType: "json",
|
|
4127
|
+
bodyType: "json",
|
|
4128
|
+
});
|
|
4129
|
+
return $dara.cast<$_model.ListTagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* 查标签接口
|
|
4134
|
+
*
|
|
4135
|
+
* @param request - ListTagResourcesRequest
|
|
4136
|
+
* @returns ListTagResourcesResponse
|
|
4137
|
+
*/
|
|
4138
|
+
async listTagResources(request: $_model.ListTagResourcesRequest): Promise<$_model.ListTagResourcesResponse> {
|
|
4139
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4140
|
+
let headers : {[key: string ]: string} = { };
|
|
4141
|
+
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
4142
|
+
}
|
|
4143
|
+
|
|
4020
4144
|
/**
|
|
4021
4145
|
* 列出会话
|
|
4022
4146
|
*
|
|
@@ -4204,6 +4328,126 @@ export default class Client extends OpenApi {
|
|
|
4204
4328
|
return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
|
|
4205
4329
|
}
|
|
4206
4330
|
|
|
4331
|
+
/**
|
|
4332
|
+
* 打标签接口
|
|
4333
|
+
*
|
|
4334
|
+
* @param request - TagResourcesRequest
|
|
4335
|
+
* @param headers - map
|
|
4336
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4337
|
+
* @returns TagResourcesResponse
|
|
4338
|
+
*/
|
|
4339
|
+
async tagResourcesWithOptions(request: $_model.TagResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse> {
|
|
4340
|
+
request.validate();
|
|
4341
|
+
let body : {[key: string ]: any} = { };
|
|
4342
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
4343
|
+
body["resourceId"] = request.resourceId;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
4347
|
+
body["resourceType"] = request.resourceType;
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
if (!$dara.isNull(request.tag)) {
|
|
4351
|
+
body["tag"] = request.tag;
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4355
|
+
headers: headers,
|
|
4356
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4357
|
+
});
|
|
4358
|
+
let params = new $OpenApiUtil.Params({
|
|
4359
|
+
action: "TagResources",
|
|
4360
|
+
version: "2024-03-30",
|
|
4361
|
+
protocol: "HTTPS",
|
|
4362
|
+
pathname: `/tags`,
|
|
4363
|
+
method: "POST",
|
|
4364
|
+
authType: "AK",
|
|
4365
|
+
style: "ROA",
|
|
4366
|
+
reqBodyType: "json",
|
|
4367
|
+
bodyType: "json",
|
|
4368
|
+
});
|
|
4369
|
+
return $dara.cast<$_model.TagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* 打标签接口
|
|
4374
|
+
*
|
|
4375
|
+
* @param request - TagResourcesRequest
|
|
4376
|
+
* @returns TagResourcesResponse
|
|
4377
|
+
*/
|
|
4378
|
+
async tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse> {
|
|
4379
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4380
|
+
let headers : {[key: string ]: string} = { };
|
|
4381
|
+
return await this.tagResourcesWithOptions(request, headers, runtime);
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
/**
|
|
4385
|
+
* 删标签接口
|
|
4386
|
+
*
|
|
4387
|
+
* @param tmpReq - UntagResourcesRequest
|
|
4388
|
+
* @param headers - map
|
|
4389
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4390
|
+
* @returns UntagResourcesResponse
|
|
4391
|
+
*/
|
|
4392
|
+
async untagResourcesWithOptions(tmpReq: $_model.UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse> {
|
|
4393
|
+
tmpReq.validate();
|
|
4394
|
+
let request = new $_model.UntagResourcesShrinkRequest({ });
|
|
4395
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4396
|
+
if (!$dara.isNull(tmpReq.resourceId)) {
|
|
4397
|
+
request.resourceIdShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceId, "resourceId", "json");
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
if (!$dara.isNull(tmpReq.tagKey)) {
|
|
4401
|
+
request.tagKeyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagKey, "tagKey", "json");
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
let query : {[key: string ]: any} = { };
|
|
4405
|
+
if (!$dara.isNull(request.all)) {
|
|
4406
|
+
query["all"] = request.all;
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
if (!$dara.isNull(request.resourceIdShrink)) {
|
|
4410
|
+
query["resourceId"] = request.resourceIdShrink;
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
4414
|
+
query["resourceType"] = request.resourceType;
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4417
|
+
if (!$dara.isNull(request.tagKeyShrink)) {
|
|
4418
|
+
query["tagKey"] = request.tagKeyShrink;
|
|
4419
|
+
}
|
|
4420
|
+
|
|
4421
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4422
|
+
headers: headers,
|
|
4423
|
+
query: OpenApiUtil.query(query),
|
|
4424
|
+
});
|
|
4425
|
+
let params = new $OpenApiUtil.Params({
|
|
4426
|
+
action: "UntagResources",
|
|
4427
|
+
version: "2024-03-30",
|
|
4428
|
+
protocol: "HTTPS",
|
|
4429
|
+
pathname: `/tags`,
|
|
4430
|
+
method: "DELETE",
|
|
4431
|
+
authType: "AK",
|
|
4432
|
+
style: "ROA",
|
|
4433
|
+
reqBodyType: "json",
|
|
4434
|
+
bodyType: "json",
|
|
4435
|
+
});
|
|
4436
|
+
return $dara.cast<$_model.UntagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4439
|
+
/**
|
|
4440
|
+
* 删标签接口
|
|
4441
|
+
*
|
|
4442
|
+
* @param request - UntagResourcesRequest
|
|
4443
|
+
* @returns UntagResourcesResponse
|
|
4444
|
+
*/
|
|
4445
|
+
async untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse> {
|
|
4446
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4447
|
+
let headers : {[key: string ]: string} = { };
|
|
4448
|
+
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4207
4451
|
/**
|
|
4208
4452
|
* Upgrade Access Component
|
|
4209
4453
|
*
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ChangeResourceGroupRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* rg-ae******ey
|
|
9
|
+
*/
|
|
10
|
+
resourceGroupId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* test
|
|
14
|
+
*/
|
|
15
|
+
resourceId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* Service
|
|
19
|
+
*/
|
|
20
|
+
resourceType?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
resourceGroupId: 'resourceGroupId',
|
|
24
|
+
resourceId: 'resourceId',
|
|
25
|
+
resourceType: 'resourceType',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
resourceGroupId: 'string',
|
|
32
|
+
resourceId: 'string',
|
|
33
|
+
resourceType: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ChangeResourceGroupResponseBody } from "./ChangeResourceGroupResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ChangeResourceGroupResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ChangeResourceGroupResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ChangeResourceGroupResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ChangeResourceGroupResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 8FDE2569-626B-5176-9844-28877A*****
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'requestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { Tag } from "./Tag";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListTagResourcesRequest extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* 20
|
|
10
|
+
*/
|
|
11
|
+
maxResults?: number;
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* xxxxxxxxxx
|
|
15
|
+
*/
|
|
16
|
+
nextToken?: string;
|
|
17
|
+
resourceId?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* Service
|
|
24
|
+
*/
|
|
25
|
+
resourceType?: string;
|
|
26
|
+
tag?: Tag[];
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
maxResults: 'maxResults',
|
|
30
|
+
nextToken: 'nextToken',
|
|
31
|
+
resourceId: 'resourceId',
|
|
32
|
+
resourceType: 'resourceType',
|
|
33
|
+
tag: 'tag',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static types(): { [key: string]: any } {
|
|
38
|
+
return {
|
|
39
|
+
maxResults: 'number',
|
|
40
|
+
nextToken: 'string',
|
|
41
|
+
resourceId: { 'type': 'array', 'itemType': 'string' },
|
|
42
|
+
resourceType: 'string',
|
|
43
|
+
tag: { 'type': 'array', 'itemType': Tag },
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
validate() {
|
|
48
|
+
if(Array.isArray(this.resourceId)) {
|
|
49
|
+
$dara.Model.validateArray(this.resourceId);
|
|
50
|
+
}
|
|
51
|
+
if(Array.isArray(this.tag)) {
|
|
52
|
+
$dara.Model.validateArray(this.tag);
|
|
53
|
+
}
|
|
54
|
+
super.validate();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
constructor(map?: { [key: string]: any }) {
|
|
58
|
+
super(map);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListTagResourcesResponseBody } from "./ListTagResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListTagResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListTagResourcesResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListTagResourcesResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesResponseBodyTagResources extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* test
|
|
9
|
+
*/
|
|
10
|
+
resourceId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* Service
|
|
14
|
+
*/
|
|
15
|
+
resourceType?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* env
|
|
19
|
+
*/
|
|
20
|
+
tagKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* test
|
|
24
|
+
*/
|
|
25
|
+
tagValue?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
resourceId: 'resourceId',
|
|
29
|
+
resourceType: 'resourceType',
|
|
30
|
+
tagKey: 'tagKey',
|
|
31
|
+
tagValue: 'tagValue',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
resourceId: 'string',
|
|
38
|
+
resourceType: 'string',
|
|
39
|
+
tagKey: 'string',
|
|
40
|
+
tagValue: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class ListTagResourcesResponseBody extends $dara.Model {
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* 20
|
|
57
|
+
*/
|
|
58
|
+
maxResults?: number;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* xxxxxxxxxx
|
|
62
|
+
*/
|
|
63
|
+
nextToken?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* 0CEC5375-C554-562B-A65F-***
|
|
67
|
+
*/
|
|
68
|
+
requestId?: string;
|
|
69
|
+
tagResources?: ListTagResourcesResponseBodyTagResources[];
|
|
70
|
+
static names(): { [key: string]: string } {
|
|
71
|
+
return {
|
|
72
|
+
maxResults: 'maxResults',
|
|
73
|
+
nextToken: 'nextToken',
|
|
74
|
+
requestId: 'requestId',
|
|
75
|
+
tagResources: 'tagResources',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static types(): { [key: string]: any } {
|
|
80
|
+
return {
|
|
81
|
+
maxResults: 'number',
|
|
82
|
+
nextToken: 'string',
|
|
83
|
+
requestId: 'string',
|
|
84
|
+
tagResources: { 'type': 'array', 'itemType': ListTagResourcesResponseBodyTagResources },
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
validate() {
|
|
89
|
+
if(Array.isArray(this.tagResources)) {
|
|
90
|
+
$dara.Model.validateArray(this.tagResources);
|
|
91
|
+
}
|
|
92
|
+
super.validate();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
constructor(map?: { [key: string]: any }) {
|
|
96
|
+
super(map);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 20
|
|
9
|
+
*/
|
|
10
|
+
maxResults?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* xxxxxxxxxx
|
|
14
|
+
*/
|
|
15
|
+
nextToken?: string;
|
|
16
|
+
resourceIdShrink?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* This parameter is required.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Service
|
|
23
|
+
*/
|
|
24
|
+
resourceType?: string;
|
|
25
|
+
tagShrink?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
maxResults: 'maxResults',
|
|
29
|
+
nextToken: 'nextToken',
|
|
30
|
+
resourceIdShrink: 'resourceId',
|
|
31
|
+
resourceType: 'resourceType',
|
|
32
|
+
tagShrink: 'tag',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static types(): { [key: string]: any } {
|
|
37
|
+
return {
|
|
38
|
+
maxResults: 'number',
|
|
39
|
+
nextToken: 'string',
|
|
40
|
+
resourceIdShrink: 'string',
|
|
41
|
+
resourceType: 'string',
|
|
42
|
+
tagShrink: 'string',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { Tag } from "./Tag";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class TagResourcesRequest extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* This parameter is required.
|
|
10
|
+
*/
|
|
11
|
+
resourceId?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* @remarks
|
|
14
|
+
* This parameter is required.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* Service
|
|
18
|
+
*/
|
|
19
|
+
resourceType?: string;
|
|
20
|
+
tag?: Tag[];
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
resourceId: 'resourceId',
|
|
24
|
+
resourceType: 'resourceType',
|
|
25
|
+
tag: 'tag',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
resourceId: { 'type': 'array', 'itemType': 'string' },
|
|
32
|
+
resourceType: 'string',
|
|
33
|
+
tag: { 'type': 'array', 'itemType': Tag },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
if(Array.isArray(this.resourceId)) {
|
|
39
|
+
$dara.Model.validateArray(this.resourceId);
|
|
40
|
+
}
|
|
41
|
+
if(Array.isArray(this.tag)) {
|
|
42
|
+
$dara.Model.validateArray(this.tag);
|
|
43
|
+
}
|
|
44
|
+
super.validate();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
constructor(map?: { [key: string]: any }) {
|
|
48
|
+
super(map);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|