@alicloud/apig20240327 4.3.2 → 4.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.
Files changed (45) hide show
  1. package/dist/client.d.ts +54 -0
  2. package/dist/client.js +180 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAndAttachPolicyRequest.d.ts +58 -0
  5. package/dist/models/CreateAndAttachPolicyRequest.js +75 -0
  6. package/dist/models/CreateAndAttachPolicyRequest.js.map +1 -0
  7. package/dist/models/CreateAndAttachPolicyResponse.d.ts +19 -0
  8. package/dist/models/CreateAndAttachPolicyResponse.js +69 -0
  9. package/dist/models/CreateAndAttachPolicyResponse.js.map +1 -0
  10. package/dist/models/CreateAndAttachPolicyResponseBody.d.ts +48 -0
  11. package/dist/models/CreateAndAttachPolicyResponseBody.js +92 -0
  12. package/dist/models/CreateAndAttachPolicyResponseBody.js.map +1 -0
  13. package/dist/models/ListPoliciesRequest.d.ts +39 -0
  14. package/dist/models/ListPoliciesRequest.js +68 -0
  15. package/dist/models/ListPoliciesRequest.js.map +1 -0
  16. package/dist/models/ListPoliciesResponse.d.ts +19 -0
  17. package/dist/models/ListPoliciesResponse.js +69 -0
  18. package/dist/models/ListPoliciesResponse.js.map +1 -0
  19. package/dist/models/ListPoliciesResponseBody.d.ts +58 -0
  20. package/dist/models/ListPoliciesResponseBody.js +96 -0
  21. package/dist/models/ListPoliciesResponseBody.js.map +1 -0
  22. package/dist/models/UpdateAndAttachPolicyRequest.d.ts +50 -0
  23. package/dist/models/UpdateAndAttachPolicyRequest.js +73 -0
  24. package/dist/models/UpdateAndAttachPolicyRequest.js.map +1 -0
  25. package/dist/models/UpdateAndAttachPolicyResponse.d.ts +19 -0
  26. package/dist/models/UpdateAndAttachPolicyResponse.js +69 -0
  27. package/dist/models/UpdateAndAttachPolicyResponse.js.map +1 -0
  28. package/dist/models/UpdateAndAttachPolicyResponseBody.d.ts +28 -0
  29. package/dist/models/UpdateAndAttachPolicyResponseBody.js +62 -0
  30. package/dist/models/UpdateAndAttachPolicyResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +11 -0
  32. package/dist/models/model.js +30 -8
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +207 -0
  36. package/src/models/CreateAndAttachPolicyRequest.ts +88 -0
  37. package/src/models/CreateAndAttachPolicyResponse.ts +40 -0
  38. package/src/models/CreateAndAttachPolicyResponseBody.ts +85 -0
  39. package/src/models/ListPoliciesRequest.ts +62 -0
  40. package/src/models/ListPoliciesResponse.ts +40 -0
  41. package/src/models/ListPoliciesResponseBody.ts +99 -0
  42. package/src/models/UpdateAndAttachPolicyRequest.ts +78 -0
  43. package/src/models/UpdateAndAttachPolicyResponse.ts +40 -0
  44. package/src/models/UpdateAndAttachPolicyResponseBody.ts +45 -0
  45. package/src/models/model.ts +11 -0
@@ -0,0 +1,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateAndAttachPolicyRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ attachResourceIds?: string[];
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * HttpApi
17
+ */
18
+ attachResourceType?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * {\\"enable\\":false}
25
+ */
26
+ config?: string;
27
+ description?: string;
28
+ /**
29
+ * @example
30
+ * env-cq2avtllhtgja4dk5djg
31
+ */
32
+ environmentId?: string;
33
+ /**
34
+ * @example
35
+ * gw-cq2avtllhtgja4dk5djg
36
+ */
37
+ gatewayId?: string;
38
+ /**
39
+ * @example
40
+ * test
41
+ */
42
+ name?: string;
43
+ static names(): { [key: string]: string } {
44
+ return {
45
+ attachResourceIds: 'attachResourceIds',
46
+ attachResourceType: 'attachResourceType',
47
+ config: 'config',
48
+ description: 'description',
49
+ environmentId: 'environmentId',
50
+ gatewayId: 'gatewayId',
51
+ name: 'name',
52
+ };
53
+ }
54
+
55
+ static types(): { [key: string]: any } {
56
+ return {
57
+ attachResourceIds: { 'type': 'array', 'itemType': 'string' },
58
+ attachResourceType: 'string',
59
+ config: 'string',
60
+ description: 'string',
61
+ environmentId: 'string',
62
+ gatewayId: 'string',
63
+ name: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(Array.isArray(this.attachResourceIds)) {
69
+ $dara.Model.validateArray(this.attachResourceIds);
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateAndAttachPolicyResponseBody } from "./UpdateAndAttachPolicyResponseBody";
4
+
5
+
6
+ export class UpdateAndAttachPolicyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateAndAttachPolicyResponseBody;
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: UpdateAndAttachPolicyResponseBody,
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,45 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateAndAttachPolicyResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * Ok
9
+ */
10
+ code?: string;
11
+ /**
12
+ * @example
13
+ * success
14
+ */
15
+ message?: string;
16
+ /**
17
+ * @example
18
+ * 585657D2-1C20-5B8A-AF17-D727C6490BE4
19
+ */
20
+ requestId?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ code: 'code',
24
+ message: 'message',
25
+ requestId: 'requestId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ code: 'string',
32
+ message: 'string',
33
+ requestId: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
@@ -53,6 +53,7 @@ export { JwtIdentityConfigJwtPayloadConfig } from './JwtIdentityConfig';
53
53
  export { JwtIdentityConfigJwtTokenConfig } from './JwtIdentityConfig';
54
54
  export { ServicePorts } from './Service';
55
55
  export { TlsCipherSuitesConfigTlsCipherSuite } from './TlsCipherSuitesConfig';
56
+ export { CreateAndAttachPolicyResponseBodyData } from './CreateAndAttachPolicyResponseBody';
56
57
  export { CreateConsumerResponseBodyData } from './CreateConsumerResponseBody';
57
58
  export { CreateConsumerAuthorizationRuleResponseBodyData } from './CreateConsumerAuthorizationRuleResponseBody';
58
59
  export { CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceIdentifier } from './CreateConsumerAuthorizationRulesRequest';
@@ -140,6 +141,7 @@ export { ListPluginsResponseBodyDataItemsGatewayInfo } from './ListPluginsRespon
140
141
  export { ListPluginsResponseBodyDataItemsPluginClassInfo } from './ListPluginsResponseBody';
141
142
  export { ListPluginsResponseBodyDataItems } from './ListPluginsResponseBody';
142
143
  export { ListPluginsResponseBodyData } from './ListPluginsResponseBody';
144
+ export { ListPoliciesResponseBodyData } from './ListPoliciesResponseBody';
143
145
  export { ListPolicyClassesResponseBodyData } from './ListPolicyClassesResponseBody';
144
146
  export { ListServicesResponseBodyData } from './ListServicesResponseBody';
145
147
  export { ListSslCertsResponseBodyData } from './ListSslCertsResponseBody';
@@ -212,6 +214,9 @@ export { BatchDeleteConsumerAuthorizationRuleResponse } from './BatchDeleteConsu
212
214
  export { ChangeResourceGroupRequest } from './ChangeResourceGroupRequest';
213
215
  export { ChangeResourceGroupResponseBody } from './ChangeResourceGroupResponseBody';
214
216
  export { ChangeResourceGroupResponse } from './ChangeResourceGroupResponse';
217
+ export { CreateAndAttachPolicyRequest } from './CreateAndAttachPolicyRequest';
218
+ export { CreateAndAttachPolicyResponseBody } from './CreateAndAttachPolicyResponseBody';
219
+ export { CreateAndAttachPolicyResponse } from './CreateAndAttachPolicyResponse';
215
220
  export { CreateConsumerRequest } from './CreateConsumerRequest';
216
221
  export { CreateConsumerResponseBody } from './CreateConsumerResponseBody';
217
222
  export { CreateConsumerResponse } from './CreateConsumerResponse';
@@ -350,6 +355,9 @@ export { ListPluginAttachmentsResponse } from './ListPluginAttachmentsResponse';
350
355
  export { ListPluginsRequest } from './ListPluginsRequest';
351
356
  export { ListPluginsResponseBody } from './ListPluginsResponseBody';
352
357
  export { ListPluginsResponse } from './ListPluginsResponse';
358
+ export { ListPoliciesRequest } from './ListPoliciesRequest';
359
+ export { ListPoliciesResponseBody } from './ListPoliciesResponseBody';
360
+ export { ListPoliciesResponse } from './ListPoliciesResponse';
353
361
  export { ListPolicyClassesRequest } from './ListPolicyClassesRequest';
354
362
  export { ListPolicyClassesResponseBody } from './ListPolicyClassesResponseBody';
355
363
  export { ListPolicyClassesResponse } from './ListPolicyClassesResponse';
@@ -371,6 +379,9 @@ export { RestartGatewayResponse } from './RestartGatewayResponse';
371
379
  export { UndeployHttpApiRequest } from './UndeployHttpApiRequest';
372
380
  export { UndeployHttpApiResponseBody } from './UndeployHttpApiResponseBody';
373
381
  export { UndeployHttpApiResponse } from './UndeployHttpApiResponse';
382
+ export { UpdateAndAttachPolicyRequest } from './UpdateAndAttachPolicyRequest';
383
+ export { UpdateAndAttachPolicyResponseBody } from './UpdateAndAttachPolicyResponseBody';
384
+ export { UpdateAndAttachPolicyResponse } from './UpdateAndAttachPolicyResponse';
374
385
  export { UpdateConsumerRequest } from './UpdateConsumerRequest';
375
386
  export { UpdateConsumerResponseBody } from './UpdateConsumerResponseBody';
376
387
  export { UpdateConsumerResponse } from './UpdateConsumerResponse';