@alicloud/gpdb20160503 3.11.1 → 3.12.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.
Files changed (94) hide show
  1. package/dist/client.d.ts +126 -0
  2. package/dist/client.js +316 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CheckSaasServiceVersionRequest.d.ts +31 -0
  5. package/dist/models/CheckSaasServiceVersionRequest.js +60 -0
  6. package/dist/models/CheckSaasServiceVersionRequest.js.map +1 -0
  7. package/dist/models/CheckSaasServiceVersionResponse.d.ts +19 -0
  8. package/dist/models/CheckSaasServiceVersionResponse.js +69 -0
  9. package/dist/models/CheckSaasServiceVersionResponse.js.map +1 -0
  10. package/dist/models/CheckSaasServiceVersionResponseBody.d.ts +45 -0
  11. package/dist/models/CheckSaasServiceVersionResponseBody.js +64 -0
  12. package/dist/models/CheckSaasServiceVersionResponseBody.js.map +1 -0
  13. package/dist/models/GetApiEndpointsRequest.d.ts +37 -0
  14. package/dist/models/GetApiEndpointsRequest.js +62 -0
  15. package/dist/models/GetApiEndpointsRequest.js.map +1 -0
  16. package/dist/models/GetApiEndpointsResponse.d.ts +19 -0
  17. package/dist/models/GetApiEndpointsResponse.js +69 -0
  18. package/dist/models/GetApiEndpointsResponse.js.map +1 -0
  19. package/dist/models/GetApiEndpointsResponseBody.d.ts +89 -0
  20. package/dist/models/GetApiEndpointsResponseBody.js +92 -0
  21. package/dist/models/GetApiEndpointsResponseBody.js.map +1 -0
  22. package/dist/models/GrantApiKeyRequest.d.ts +48 -0
  23. package/dist/models/GrantApiKeyRequest.js +67 -0
  24. package/dist/models/GrantApiKeyRequest.js.map +1 -0
  25. package/dist/models/GrantApiKeyResponse.d.ts +19 -0
  26. package/dist/models/GrantApiKeyResponse.js +69 -0
  27. package/dist/models/GrantApiKeyResponse.js.map +1 -0
  28. package/dist/models/GrantApiKeyResponseBody.d.ts +21 -0
  29. package/dist/models/GrantApiKeyResponseBody.js +58 -0
  30. package/dist/models/GrantApiKeyResponseBody.js.map +1 -0
  31. package/dist/models/GrantApiKeyShrinkRequest.d.ts +48 -0
  32. package/dist/models/GrantApiKeyShrinkRequest.js +64 -0
  33. package/dist/models/GrantApiKeyShrinkRequest.js.map +1 -0
  34. package/dist/models/ListSaasServiceRequest.d.ts +1 -1
  35. package/dist/models/ListSaasServiceResponseBody.d.ts +59 -0
  36. package/dist/models/ListSaasServiceResponseBody.js.map +1 -1
  37. package/dist/models/ModifySaasServiceDeletionProtectionRequest.d.ts +39 -0
  38. package/dist/models/ModifySaasServiceDeletionProtectionRequest.js +62 -0
  39. package/dist/models/ModifySaasServiceDeletionProtectionRequest.js.map +1 -0
  40. package/dist/models/ModifySaasServiceDeletionProtectionResponse.d.ts +19 -0
  41. package/dist/models/ModifySaasServiceDeletionProtectionResponse.js +69 -0
  42. package/dist/models/ModifySaasServiceDeletionProtectionResponse.js.map +1 -0
  43. package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.d.ts +37 -0
  44. package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js +62 -0
  45. package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js.map +1 -0
  46. package/dist/models/RevokeApiKeyRequest.d.ts +48 -0
  47. package/dist/models/RevokeApiKeyRequest.js +67 -0
  48. package/dist/models/RevokeApiKeyRequest.js.map +1 -0
  49. package/dist/models/RevokeApiKeyResponse.d.ts +19 -0
  50. package/dist/models/RevokeApiKeyResponse.js +69 -0
  51. package/dist/models/RevokeApiKeyResponse.js.map +1 -0
  52. package/dist/models/RevokeApiKeyResponseBody.d.ts +21 -0
  53. package/dist/models/RevokeApiKeyResponseBody.js +58 -0
  54. package/dist/models/RevokeApiKeyResponseBody.js.map +1 -0
  55. package/dist/models/RevokeApiKeyShrinkRequest.d.ts +48 -0
  56. package/dist/models/RevokeApiKeyShrinkRequest.js +64 -0
  57. package/dist/models/RevokeApiKeyShrinkRequest.js.map +1 -0
  58. package/dist/models/UpdateSaasServiceVersionRequest.d.ts +31 -0
  59. package/dist/models/UpdateSaasServiceVersionRequest.js +60 -0
  60. package/dist/models/UpdateSaasServiceVersionRequest.js.map +1 -0
  61. package/dist/models/UpdateSaasServiceVersionResponse.d.ts +19 -0
  62. package/dist/models/UpdateSaasServiceVersionResponse.js +69 -0
  63. package/dist/models/UpdateSaasServiceVersionResponse.js.map +1 -0
  64. package/dist/models/UpdateSaasServiceVersionResponseBody.d.ts +37 -0
  65. package/dist/models/UpdateSaasServiceVersionResponseBody.js +62 -0
  66. package/dist/models/UpdateSaasServiceVersionResponseBody.js.map +1 -0
  67. package/dist/models/model.d.ts +21 -0
  68. package/dist/models/model.js +63 -21
  69. package/dist/models/model.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/client.ts +348 -0
  72. package/src/models/CheckSaasServiceVersionRequest.ts +46 -0
  73. package/src/models/CheckSaasServiceVersionResponse.ts +40 -0
  74. package/src/models/CheckSaasServiceVersionResponseBody.ts +64 -0
  75. package/src/models/GetApiEndpointsRequest.ts +54 -0
  76. package/src/models/GetApiEndpointsResponse.ts +40 -0
  77. package/src/models/GetApiEndpointsResponseBody.ts +127 -0
  78. package/src/models/GrantApiKeyRequest.ts +70 -0
  79. package/src/models/GrantApiKeyResponse.ts +40 -0
  80. package/src/models/GrantApiKeyResponseBody.ts +34 -0
  81. package/src/models/GrantApiKeyShrinkRequest.ts +67 -0
  82. package/src/models/ListSaasServiceRequest.ts +1 -1
  83. package/src/models/ListSaasServiceResponseBody.ts +59 -0
  84. package/src/models/ModifySaasServiceDeletionProtectionRequest.ts +56 -0
  85. package/src/models/ModifySaasServiceDeletionProtectionResponse.ts +40 -0
  86. package/src/models/ModifySaasServiceDeletionProtectionResponseBody.ts +54 -0
  87. package/src/models/RevokeApiKeyRequest.ts +70 -0
  88. package/src/models/RevokeApiKeyResponse.ts +40 -0
  89. package/src/models/RevokeApiKeyResponseBody.ts +34 -0
  90. package/src/models/RevokeApiKeyShrinkRequest.ts +67 -0
  91. package/src/models/UpdateSaasServiceVersionRequest.ts +46 -0
  92. package/src/models/UpdateSaasServiceVersionResponse.ts +40 -0
  93. package/src/models/UpdateSaasServiceVersionResponseBody.ts +54 -0
  94. package/src/models/model.ts +21 -0
@@ -0,0 +1,127 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetApiEndpointsResponseBodyItems extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The endpoint.
9
+ *
10
+ * @example
11
+ * https://api-longmemory-cn-beijing.opentrust.net/
12
+ */
13
+ endpoint?: string;
14
+ /**
15
+ * @remarks
16
+ * The region ID.
17
+ *
18
+ * @example
19
+ * cn-hangzhou
20
+ */
21
+ regionId?: string;
22
+ /**
23
+ * @remarks
24
+ * The service type. Valid values:
25
+ *
26
+ * - **memory**
27
+ * - **drama**
28
+ *
29
+ * @example
30
+ * memory
31
+ */
32
+ serviceType?: string;
33
+ static names(): { [key: string]: string } {
34
+ return {
35
+ endpoint: 'Endpoint',
36
+ regionId: 'RegionId',
37
+ serviceType: 'ServiceType',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ endpoint: 'string',
44
+ regionId: 'string',
45
+ serviceType: 'string',
46
+ };
47
+ }
48
+
49
+ validate() {
50
+ super.validate();
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
58
+ export class GetApiEndpointsResponseBody extends $dara.Model {
59
+ /**
60
+ * @remarks
61
+ * The list of parameters.
62
+ */
63
+ items?: GetApiEndpointsResponseBodyItems[];
64
+ /**
65
+ * @remarks
66
+ * The maximum number of records to return in this query.
67
+ *
68
+ * @example
69
+ * 20
70
+ */
71
+ maxResults?: number;
72
+ /**
73
+ * @remarks
74
+ * The token for the next query during paging. Use this token to start the next query.
75
+ *
76
+ * @example
77
+ * caeba0bbb2be03f84eb48b699f0a4883
78
+ */
79
+ nextToken?: string;
80
+ /**
81
+ * @remarks
82
+ * Id of the request
83
+ *
84
+ * @example
85
+ * ABB39CC3-4488-4857-905D-2E4A051D0521
86
+ */
87
+ requestId?: string;
88
+ /**
89
+ * @remarks
90
+ * The total number of records.
91
+ *
92
+ * @example
93
+ * 2
94
+ */
95
+ totalRecordCount?: number;
96
+ static names(): { [key: string]: string } {
97
+ return {
98
+ items: 'Items',
99
+ maxResults: 'MaxResults',
100
+ nextToken: 'NextToken',
101
+ requestId: 'RequestId',
102
+ totalRecordCount: 'TotalRecordCount',
103
+ };
104
+ }
105
+
106
+ static types(): { [key: string]: any } {
107
+ return {
108
+ items: { 'type': 'array', 'itemType': GetApiEndpointsResponseBodyItems },
109
+ maxResults: 'number',
110
+ nextToken: 'string',
111
+ requestId: 'string',
112
+ totalRecordCount: 'number',
113
+ };
114
+ }
115
+
116
+ validate() {
117
+ if(Array.isArray(this.items)) {
118
+ $dara.Model.validateArray(this.items);
119
+ }
120
+ super.validate();
121
+ }
122
+
123
+ constructor(map?: { [key: string]: any }) {
124
+ super(map);
125
+ }
126
+ }
127
+
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GrantApiKeyRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the API key.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * api-xxxxxxx
14
+ */
15
+ keyId?: string;
16
+ /**
17
+ * @remarks
18
+ * The region ID.
19
+ *
20
+ * @example
21
+ * cn-beijing
22
+ */
23
+ regionId?: string;
24
+ /**
25
+ * @remarks
26
+ * The list of service IDs to authorize.
27
+ *
28
+ * This parameter is required.
29
+ */
30
+ serviceIds?: string[];
31
+ /**
32
+ * @remarks
33
+ * The workspace ID.
34
+ *
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * ws-*****
39
+ */
40
+ workspaceId?: string;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ keyId: 'KeyId',
44
+ regionId: 'RegionId',
45
+ serviceIds: 'ServiceIds',
46
+ workspaceId: 'WorkspaceId',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ keyId: 'string',
53
+ regionId: 'string',
54
+ serviceIds: { 'type': 'array', 'itemType': 'string' },
55
+ workspaceId: 'string',
56
+ };
57
+ }
58
+
59
+ validate() {
60
+ if(Array.isArray(this.serviceIds)) {
61
+ $dara.Model.validateArray(this.serviceIds);
62
+ }
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GrantApiKeyResponseBody } from "./GrantApiKeyResponseBody";
4
+
5
+
6
+ export class GrantApiKeyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GrantApiKeyResponseBody;
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: GrantApiKeyResponseBody,
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,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GrantApiKeyResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The request ID.
9
+ *
10
+ * @example
11
+ * B4CAF581-2AC7-41AD-8940-D56DF7AADF5B
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'RequestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -0,0 +1,67 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GrantApiKeyShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the API key.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * api-xxxxxxx
14
+ */
15
+ keyId?: string;
16
+ /**
17
+ * @remarks
18
+ * The region ID.
19
+ *
20
+ * @example
21
+ * cn-beijing
22
+ */
23
+ regionId?: string;
24
+ /**
25
+ * @remarks
26
+ * The list of service IDs to authorize.
27
+ *
28
+ * This parameter is required.
29
+ */
30
+ serviceIdsShrink?: string;
31
+ /**
32
+ * @remarks
33
+ * The workspace ID.
34
+ *
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * ws-*****
39
+ */
40
+ workspaceId?: string;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ keyId: 'KeyId',
44
+ regionId: 'RegionId',
45
+ serviceIdsShrink: 'ServiceIds',
46
+ workspaceId: 'WorkspaceId',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ keyId: 'string',
53
+ regionId: 'string',
54
+ serviceIdsShrink: 'string',
55
+ workspaceId: 'string',
56
+ };
57
+ }
58
+
59
+ validate() {
60
+ super.validate();
61
+ }
62
+
63
+ constructor(map?: { [key: string]: any }) {
64
+ super(map);
65
+ }
66
+ }
67
+
@@ -13,7 +13,7 @@ export class ListSaasServiceRequest extends $dara.Model {
13
13
  maxResults?: number;
14
14
  /**
15
15
  * @remarks
16
- * The token for the next page when performing a paging query. This specifies the starting token for the next page.
16
+ * The paging token for the next query. When you perform a paging query, the next query begins from the specified token.
17
17
  *
18
18
  * @example
19
19
  * caeba0bbb2be03f84eb48b699f0a4883
@@ -3,11 +3,56 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListSaasServiceResponseBodyItemsComponents extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The component ID.
9
+ *
10
+ * @example
11
+ * 0644c5aa-5306-478b-ac39-bb4660cdc9f7
12
+ */
6
13
  componentId?: string;
14
+ /**
15
+ * @remarks
16
+ * The type of the subcomponent.
17
+ *
18
+ * @example
19
+ * gamestudio
20
+ */
7
21
  componentType?: string;
22
+ /**
23
+ * @remarks
24
+ * The creation time.
25
+ *
26
+ * @example
27
+ * 2021-10-09T04:54:08Z
28
+ */
8
29
  createTime?: string;
30
+ /**
31
+ * @remarks
32
+ * The compute resource of the component.
33
+ *
34
+ * @example
35
+ * 2
36
+ */
9
37
  cu?: string;
38
+ /**
39
+ * @remarks
40
+ * The release protection status.
41
+ *
42
+ * @example
43
+ * true
44
+ */
10
45
  deletionProtection?: boolean;
46
+ /**
47
+ * @remarks
48
+ * The service status. Valid values:
49
+ *
50
+ * - active: Running.
51
+ * - creating: Being created.
52
+ *
53
+ * @example
54
+ * active
55
+ */
11
56
  status?: string;
12
57
  static names(): { [key: string]: string } {
13
58
  return {
@@ -41,6 +86,10 @@ export class ListSaasServiceResponseBodyItemsComponents extends $dara.Model {
41
86
  }
42
87
 
43
88
  export class ListSaasServiceResponseBodyItems extends $dara.Model {
89
+ /**
90
+ * @remarks
91
+ * The list of service subcomponents.
92
+ */
44
93
  components?: ListSaasServiceResponseBodyItemsComponents[];
45
94
  /**
46
95
  * @remarks
@@ -58,6 +107,16 @@ export class ListSaasServiceResponseBodyItems extends $dara.Model {
58
107
  * 1
59
108
  */
60
109
  cu?: number;
110
+ /**
111
+ * @remarks
112
+ * Indicates whether the release protection feature is enabled. Valid values:
113
+ *
114
+ * * **true**: Enabled.
115
+ * * **false**: Disabled.
116
+ *
117
+ * @example
118
+ * True
119
+ */
61
120
  deletionProtection?: boolean;
62
121
  /**
63
122
  * @remarks
@@ -0,0 +1,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifySaasServiceDeletionProtectionRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to enable deletion protection.
9
+ *
10
+ * @example
11
+ * true
12
+ */
13
+ deletionProtection?: boolean;
14
+ /**
15
+ * @remarks
16
+ * The region ID.
17
+ *
18
+ * @example
19
+ * cn-hangzhou
20
+ */
21
+ regionId?: string;
22
+ /**
23
+ * @remarks
24
+ * The service ID.
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * agdb-xxxxx
30
+ */
31
+ serviceId?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ deletionProtection: 'DeletionProtection',
35
+ regionId: 'RegionId',
36
+ serviceId: 'ServiceId',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ deletionProtection: 'boolean',
43
+ regionId: 'string',
44
+ serviceId: 'string',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifySaasServiceDeletionProtectionResponseBody } from "./ModifySaasServiceDeletionProtectionResponseBody";
4
+
5
+
6
+ export class ModifySaasServiceDeletionProtectionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifySaasServiceDeletionProtectionResponseBody;
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: ModifySaasServiceDeletionProtectionResponseBody,
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,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifySaasServiceDeletionProtectionResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The response message.
9
+ *
10
+ * @example
11
+ * success
12
+ */
13
+ message?: string;
14
+ /**
15
+ * @remarks
16
+ * The request ID.
17
+ *
18
+ * @example
19
+ * 7565770E-7C45-462D-BA4A-8A5396F2CAD1
20
+ */
21
+ requestId?: string;
22
+ /**
23
+ * @remarks
24
+ * The service ID.
25
+ *
26
+ * @example
27
+ * agdb-xxxxxx
28
+ */
29
+ serviceId?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ message: 'Message',
33
+ requestId: 'RequestId',
34
+ serviceId: 'ServiceId',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ message: 'string',
41
+ requestId: 'string',
42
+ serviceId: '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,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RevokeApiKeyRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * API KEY ID。
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * api-xxxxxx
14
+ */
15
+ keyId?: string;
16
+ /**
17
+ * @remarks
18
+ * The region ID.
19
+ *
20
+ * @example
21
+ * cn-beijing
22
+ */
23
+ regionId?: string;
24
+ /**
25
+ * @remarks
26
+ * The list of service IDs to be authorized.
27
+ *
28
+ * This parameter is required.
29
+ */
30
+ serviceIds?: string[];
31
+ /**
32
+ * @remarks
33
+ * The workspace ID.
34
+ *
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * ws-*****
39
+ */
40
+ workspaceId?: string;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ keyId: 'KeyId',
44
+ regionId: 'RegionId',
45
+ serviceIds: 'ServiceIds',
46
+ workspaceId: 'WorkspaceId',
47
+ };
48
+ }
49
+
50
+ static types(): { [key: string]: any } {
51
+ return {
52
+ keyId: 'string',
53
+ regionId: 'string',
54
+ serviceIds: { 'type': 'array', 'itemType': 'string' },
55
+ workspaceId: 'string',
56
+ };
57
+ }
58
+
59
+ validate() {
60
+ if(Array.isArray(this.serviceIds)) {
61
+ $dara.Model.validateArray(this.serviceIds);
62
+ }
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { RevokeApiKeyResponseBody } from "./RevokeApiKeyResponseBody";
4
+
5
+
6
+ export class RevokeApiKeyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: RevokeApiKeyResponseBody;
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: RevokeApiKeyResponseBody,
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
+