@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,323 +1,76 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})).annotate({ identifier: "Member" });
|
|
25
|
-
export const AddMembersRequestMembersList = /*@__PURE__*/ S.Array(Member);
|
|
26
|
-
export const AddMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
27
|
-
resourceId: S.String.pipe(T.Label()),
|
|
28
|
-
members: AddMembersRequestMembersList,
|
|
29
|
-
resourceType: S.String,
|
|
30
|
-
}).pipe(T.Http({
|
|
31
|
-
method: "PATCH",
|
|
32
|
-
uri: "/v2/{resourceId}/members",
|
|
33
|
-
code: 200,
|
|
34
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
35
|
-
}))).annotate({ identifier: "AddMembersRequest" });
|
|
36
|
-
export const MembersResponseMembersList = /*@__PURE__*/ S.Array(Member);
|
|
37
|
-
export const Zookie = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
-
zookie: S.optional(S.String),
|
|
39
|
-
})).annotate({ identifier: "Zookie" });
|
|
40
|
-
export const MembersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
-
members: MembersResponseMembersList,
|
|
42
|
-
resourceId: S.String,
|
|
43
|
-
resourceType: S.String,
|
|
44
|
-
writtenAt: S.optional(Zookie),
|
|
45
|
-
})).annotate({ identifier: "MembersResponse" });
|
|
46
|
-
export const PermissionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
-
name: S.String,
|
|
48
|
-
})).annotate({ identifier: "PermissionRequest" });
|
|
49
|
-
export const AddRoleRequestPermissionsList = /*@__PURE__*/ S.Array(PermissionRequest);
|
|
50
|
-
export const AddRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
-
resourceType: S.String.pipe(T.Label()),
|
|
52
|
-
resourceId: S.String.pipe(T.Label()),
|
|
53
|
-
description: S.String,
|
|
54
|
-
name: S.String,
|
|
55
|
-
permissions: AddRoleRequestPermissionsList,
|
|
56
|
-
}).pipe(T.Http({
|
|
57
|
-
method: "POST",
|
|
58
|
-
uri: "/v2/{resourceType}/{resourceId}/roles",
|
|
59
|
-
code: 200,
|
|
60
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
61
|
-
}))).annotate({ identifier: "AddRoleRequest" });
|
|
62
|
-
export const Permission = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
description: S.String,
|
|
64
|
-
name: S.String,
|
|
65
|
-
})).annotate({ identifier: "Permission" });
|
|
66
|
-
export const RolePermissionsList = /*@__PURE__*/ S.Array(Permission);
|
|
67
|
-
export const Role = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
68
|
-
description: S.String,
|
|
69
|
-
etag: S.optional(S.String),
|
|
70
|
-
id: S.optional(S.String),
|
|
71
|
-
name: S.String,
|
|
72
|
-
permissions: RolePermissionsList,
|
|
73
|
-
})).annotate({ identifier: "Role" });
|
|
74
|
-
export const AddCustomRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
-
resourceId: S.String,
|
|
76
|
-
resourceType: S.String,
|
|
77
|
-
role: Role,
|
|
78
|
-
})).annotate({ identifier: "AddCustomRoleResponse" });
|
|
79
|
-
export const DeleteRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
resourceType: S.String.pipe(T.Label()),
|
|
81
|
-
resourceId: S.String.pipe(T.Label()),
|
|
82
|
-
roleId: S.String.pipe(T.Label()),
|
|
83
|
-
etag: S.optional(S.String.pipe(T.Query())),
|
|
84
|
-
}).pipe(T.Http({
|
|
85
|
-
method: "DELETE",
|
|
86
|
-
uri: "/v2/{resourceType}/{resourceId}/roles/{roleId}",
|
|
87
|
-
code: 200,
|
|
88
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
89
|
-
}))).annotate({ identifier: "DeleteRoleRequest" });
|
|
90
|
-
export const DeleteRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
91
|
-
writtenAt: Zookie,
|
|
92
|
-
})).annotate({ identifier: "DeleteRoleResponse" });
|
|
93
|
-
export const GetRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
-
resourceType: S.String.pipe(T.Label()),
|
|
95
|
-
resourceId: S.String.pipe(T.Label()),
|
|
96
|
-
roleId: S.String.pipe(T.Label()),
|
|
97
|
-
}).pipe(T.Http({
|
|
98
|
-
method: "GET",
|
|
99
|
-
uri: "/v2/{resourceType}/{resourceId}/roles/{roleId}",
|
|
100
|
-
code: 200,
|
|
101
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
102
|
-
}))).annotate({ identifier: "GetRoleRequest" });
|
|
103
|
-
export const GetRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
104
|
-
resourceId: S.String,
|
|
105
|
-
resourceType: S.String,
|
|
106
|
-
role: Role,
|
|
107
|
-
})).annotate({ identifier: "GetRoleResponse" });
|
|
108
|
-
export const ListMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
109
|
-
resourceType: S.String.pipe(T.Label()),
|
|
110
|
-
resourceId: S.String.pipe(T.Label()),
|
|
111
|
-
subject: S.optional(S.String.pipe(T.Query())),
|
|
112
|
-
}).pipe(T.Http({
|
|
113
|
-
method: "GET",
|
|
114
|
-
uri: "/v2/{resourceType}/{resourceId}/members",
|
|
115
|
-
code: 200,
|
|
116
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
117
|
-
}))).annotate({ identifier: "ListMembersRequest" });
|
|
118
|
-
export const ListMembersResponseMembersList = /*@__PURE__*/ S.Array(Member);
|
|
119
|
-
export const ListMembersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
members: ListMembersResponseMembersList,
|
|
121
|
-
resourceId: S.String,
|
|
122
|
-
resourceType: S.String,
|
|
123
|
-
})).annotate({ identifier: "ListMembersResponse" });
|
|
124
|
-
export const ListPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
resourceType: S.optional(S.String.pipe(T.Query())),
|
|
126
|
-
}).pipe(T.Http({
|
|
127
|
-
method: "GET",
|
|
128
|
-
uri: "/v2/permissions",
|
|
129
|
-
code: 200,
|
|
130
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
131
|
-
}))).annotate({ identifier: "ListPermissionsRequest" });
|
|
132
|
-
export const ListPermissionsResponsePermissionsList = /*@__PURE__*/ S.Array(Permission);
|
|
133
|
-
export const ListPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
-
permissions: ListPermissionsResponsePermissionsList,
|
|
135
|
-
})).annotate({ identifier: "ListPermissionsResponse" });
|
|
136
|
-
export const ListRolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
-
resourceType: S.String.pipe(T.Label()),
|
|
138
|
-
resourceId: S.String.pipe(T.Label()),
|
|
139
|
-
}).pipe(T.Http({
|
|
140
|
-
method: "GET",
|
|
141
|
-
uri: "/v2/{resourceType}/{resourceId}/roles",
|
|
142
|
-
code: 200,
|
|
143
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
144
|
-
}))).annotate({ identifier: "ListRolesRequest" });
|
|
145
|
-
export const RolesResponseRolesList = /*@__PURE__*/ S.Array(Role);
|
|
146
|
-
export const RolesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
147
|
-
resourceId: S.String,
|
|
148
|
-
resourceType: S.String,
|
|
149
|
-
roles: RolesResponseRolesList,
|
|
150
|
-
})).annotate({ identifier: "RolesResponse" });
|
|
151
|
-
export const ListUserMembershipsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
-
email: S.String.pipe(T.Label()),
|
|
153
|
-
resourceType: S.optional(S.String.pipe(T.Query())),
|
|
154
|
-
resourceId: S.optional(S.String.pipe(T.Query())),
|
|
155
|
-
parentResourceId: S.optional(S.String.pipe(T.Query())),
|
|
156
|
-
}).pipe(T.Http({
|
|
157
|
-
method: "GET",
|
|
158
|
-
uri: "/v2/users/{email}/memberships",
|
|
159
|
-
code: 200,
|
|
160
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
161
|
-
}))).annotate({
|
|
162
|
-
identifier: "ListUserMembershipsRequest",
|
|
163
|
-
});
|
|
164
|
-
export const UserMembership = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
165
|
-
resourceId: S.String,
|
|
166
|
-
resourceType: S.String,
|
|
167
|
-
role: S.String,
|
|
168
|
-
subject: S.String,
|
|
169
|
-
})).annotate({ identifier: "UserMembership" });
|
|
170
|
-
export const ListUserMembershipsResponseItemsList = /*@__PURE__*/ S.Array(UserMembership);
|
|
171
|
-
export const ListUserMembershipsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
172
|
-
items: ListUserMembershipsResponseItemsList,
|
|
173
|
-
})).annotate({
|
|
174
|
-
identifier: "ListUserMembershipsResponse",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = S.String;
|
|
12
|
+
const __2 = S.Array;
|
|
13
|
+
const __3 = T.Http;
|
|
14
|
+
const __4 = T.Label;
|
|
15
|
+
const __5 = T.Query;
|
|
16
|
+
const __6 = S.optional;
|
|
17
|
+
const __7 = S.Struct;
|
|
18
|
+
const __8 = S.suspend;
|
|
19
|
+
const __9 = S.Boolean;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = S.TaggedError;
|
|
22
|
+
const __12 = T.applyErrorMatchers;
|
|
23
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
24
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __10, __1, __11, __12]]);
|
|
175
25
|
});
|
|
176
|
-
export const
|
|
177
|
-
|
|
178
|
-
email: S.String.pipe(T.Label()),
|
|
179
|
-
resource: S.optional(S.String.pipe(T.Query())),
|
|
180
|
-
resourceType: S.optional(S.String.pipe(T.Query())),
|
|
181
|
-
permissions: S.optional(ListUserPermissionsRequestPermissionsList.pipe(T.Query())),
|
|
182
|
-
}).pipe(T.Http({
|
|
183
|
-
method: "GET",
|
|
184
|
-
uri: "/v2/users/{email}/permissions",
|
|
185
|
-
code: 200,
|
|
186
|
-
baseUrl: "https://authorization.api.stackit.cloud",
|
|
187
|
-
}))).annotate({
|
|
188
|
-
identifier: "ListUserPermissionsRequest",
|
|
26
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __10, __1, __11, __12]]);
|
|
189
28
|
});
|
|
190
|
-
|
|
191
|
-
export const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
export const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
export const
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}).pipe(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
output: MembersResponse,
|
|
239
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
240
|
-
protocol: StackitProtocol,
|
|
241
|
-
retry: Retry.Retry,
|
|
242
|
-
}));
|
|
243
|
-
/** Add a new role Add new, user specified roles to a resource, and bind permissions to them. Permissions are predefined. */
|
|
244
|
-
export const addRole = /*@__PURE__*/ API.make(() => ({
|
|
245
|
-
input: AddRoleRequest,
|
|
246
|
-
output: AddCustomRoleResponse,
|
|
247
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
248
|
-
protocol: StackitProtocol,
|
|
249
|
-
retry: Retry.Retry,
|
|
250
|
-
}));
|
|
251
|
-
/** Delete an existing role Delete a custom role by ID. */
|
|
252
|
-
export const deleteRole = /*@__PURE__*/ API.make(() => ({
|
|
253
|
-
input: DeleteRoleRequest,
|
|
254
|
-
output: DeleteRoleResponse,
|
|
255
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
256
|
-
protocol: StackitProtocol,
|
|
257
|
-
retry: Retry.Retry,
|
|
258
|
-
}));
|
|
259
|
-
/** Get an existing role Get a custom role by ID. */
|
|
260
|
-
export const getRole = /*@__PURE__*/ API.make(() => ({
|
|
261
|
-
input: GetRoleRequest,
|
|
262
|
-
output: GetRoleResponse,
|
|
263
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
264
|
-
protocol: StackitProtocol,
|
|
265
|
-
retry: Retry.Retry,
|
|
266
|
-
}));
|
|
267
|
-
/** Get members to a resource List members of the given resource. */
|
|
268
|
-
export const listMembers = /*@__PURE__*/ API.make(() => ({
|
|
269
|
-
input: ListMembersRequest,
|
|
270
|
-
output: ListMembersResponse,
|
|
271
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
272
|
-
protocol: StackitProtocol,
|
|
273
|
-
retry: Retry.Retry,
|
|
274
|
-
}));
|
|
275
|
-
/** Get available permissions Get available permissions */
|
|
276
|
-
export const listPermissions = /*@__PURE__*/ API.make(() => ({
|
|
277
|
-
input: ListPermissionsRequest,
|
|
278
|
-
output: ListPermissionsResponse,
|
|
279
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
280
|
-
protocol: StackitProtocol,
|
|
281
|
-
retry: Retry.Retry,
|
|
282
|
-
}));
|
|
283
|
-
/** Get roles and permissions of a resource Get roles and permissions of a resource */
|
|
284
|
-
export const listRoles = /*@__PURE__*/ API.make(() => ({
|
|
285
|
-
input: ListRolesRequest,
|
|
286
|
-
output: RolesResponse,
|
|
287
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
288
|
-
protocol: StackitProtocol,
|
|
289
|
-
retry: Retry.Retry,
|
|
290
|
-
}));
|
|
291
|
-
/** List memberships of a user List memberships of a user. An administrative access is needed to list any user's memberships, while the user can do it on his/her own email. You can use filters to scope the request to a project/folder/organization. In this case -if caller is not the subject-, owner permissions are required. Because of hierarchical role bindings, the user might have permissions on more resources. */
|
|
292
|
-
export const listUserMemberships = /*@__PURE__*/ API.make(() => ({
|
|
293
|
-
input: ListUserMembershipsRequest,
|
|
294
|
-
output: ListUserMembershipsResponse,
|
|
295
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
296
|
-
protocol: StackitProtocol,
|
|
297
|
-
retry: Retry.Retry,
|
|
298
|
-
}));
|
|
299
|
-
/** List permissions of a user List permissions of a user. An administrative access is needed to list any user's permissions, while the user can do it on his/her own email. Lists every resource of the given type where the user has any effective permissions. When requested, also lists why the permission is present. */
|
|
300
|
-
export const listUserPermissions = /*@__PURE__*/ API.make(() => ({
|
|
301
|
-
input: ListUserPermissionsRequest,
|
|
302
|
-
output: ListUserPermissionsResponse,
|
|
303
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
304
|
-
protocol: StackitProtocol,
|
|
305
|
-
retry: Retry.Retry,
|
|
306
|
-
}));
|
|
307
|
-
/** Remove members from a resource Remove members from the given resource with specified roles. */
|
|
308
|
-
export const removeMembers = /*@__PURE__*/ API.make(() => ({
|
|
309
|
-
input: RemoveMembersRequest,
|
|
310
|
-
output: MembersResponse,
|
|
311
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
312
|
-
protocol: StackitProtocol,
|
|
313
|
-
retry: Retry.Retry,
|
|
314
|
-
}));
|
|
315
|
-
/** Update an existing role Update a custom role by ID. */
|
|
316
|
-
export const updateRole = /*@__PURE__*/ API.make(() => ({
|
|
317
|
-
input: UpdateRoleRequest,
|
|
318
|
-
output: UpdateRoleResponse,
|
|
319
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
320
|
-
protocol: StackitProtocol,
|
|
321
|
-
retry: Retry.Retry,
|
|
322
|
-
}));
|
|
323
|
-
//# sourceMappingURL=authorization.js.map
|
|
29
|
+
|
|
30
|
+
export const addMembers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"AddMembersRequest";$5({resourceId:$3.pipe($2()),members:#4:1,resourceType:$3}).pipe($1({method:"PATCH",uri:"/v2/{resourceId}/members",code:200,baseUrl:"https://authorization.api.stackit.cloud"}))', [__0, __3, __4, __1, __d2, __7, __8, __d0, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(addMembers, i));
|
|
31
|
+
|
|
32
|
+
export const addRole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"AddRoleRequest";$5({resourceType:$3.pipe($2()),resourceId:$3.pipe($2()),description:$3,name:$3,permissions:#4:1}).pipe($1({method:"POST",uri:"/v2/{resourceType}/{resourceId}/roles",code:200,baseUrl:"https://authorization.api.stackit.cloud"}))', [__0, __3, __4, __1, __d3, __7, __8, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(addRole, i));
|
|
33
|
+
|
|
34
|
+
export const deleteRole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>3)@"DeleteRoleRequest";$7(>4)@"DeleteRoleResponse";$6({resourceType:$3.pipe($2()),resourceId:$3.pipe($2()),roleId:$3.pipe($2()),etag:$5($3.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/{resourceType}/{resourceId}/roles/{roleId}",code:200,baseUrl:"https://authorization.api.stackit.cloud"}));$6({writtenAt:#8:0})', [__0, __3, __4, __1, __5, __6, __7, __8, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteRole, i));
|
|
35
|
+
|
|
36
|
+
export const getRole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetRoleRequest";$4({resourceType:$3.pipe($2()),resourceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/{resourceType}/{resourceId}/roles/{roleId}",code:200,baseUrl:"https://authorization.api.stackit.cloud"}))', [__0, __3, __4, __1, __7, __8, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getRole, i));
|
|
37
|
+
|
|
38
|
+
export const listMembers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>3)@"ListMembersRequest";$7(>4)@"ListMembersResponse";$6({resourceType:$3.pipe($2()),resourceId:$3.pipe($2()),subject:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/{resourceType}/{resourceId}/members",code:200,baseUrl:"https://authorization.api.stackit.cloud"}));$6({members:#8:1,resourceId:$3,resourceType:$3})', [__0, __3, __4, __1, __5, __6, __7, __8, __d2, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listMembers, i));
|
|
39
|
+
|
|
40
|
+
export const listPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>3)@"ListPermissionsRequest";$6(>4)@"ListPermissionsResponse";$5({resourceType:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/v2/permissions",code:200,baseUrl:"https://authorization.api.stackit.cloud"}));$5({permissions:#7:1})', [__0, __3, __5, __1, __6, __7, __8, __d5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listPermissions, i));
|
|
41
|
+
|
|
42
|
+
export const listRoles = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListRolesRequest";$7(#6:0);$5(>5)@"RolesResponse";$4({resourceType:$3.pipe($2()),resourceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/{resourceType}/{resourceId}/roles",code:200,baseUrl:"https://authorization.api.stackit.cloud"}));$4({resourceId:$3,resourceType:$3,roles:#2})', [__0, __3, __4, __1, __7, __8, __d6, __2, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listRoles, i));
|
|
43
|
+
|
|
44
|
+
export const listUserMemberships = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("UserMembership", '{input:#1,output:#4,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>5)@"List%sRequest";$7(>6)@"%";$8(#2);$7(>7)@"List%sResponse";$6({email:$3.pipe($2()),resourceType:$5($3.pipe($4())),resourceId:$5($3.pipe($4())),parentResourceId:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/users/{email}/memberships",code:200,baseUrl:"https://authorization.api.stackit.cloud"}));$6({resourceId:$3,resourceType:$3,role:$3,subject:$3});$6({items:#3})', [__0, __3, __4, __1, __5, __6, __7, __8, __2, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listUserMemberships, i));
|
|
45
|
+
|
|
46
|
+
export const listUserPermissions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("UserPermission", '{input:#2,output:#5,errors:[$10,$11,$12],protocol:$13,retry:$14};$2($1);$8(>6)@"List%sRequest";$8(>7)@"%";$2(#3);$8(>8)@"List%sResponse";$7({email:$1.pipe($4()),resource:$6($1.pipe($5())),resourceType:$6($1.pipe($5())),permissions:$6(#1.pipe($5()))}).pipe($3({method:"GET",uri:"/v2/users/{email}/permissions",code:200,baseUrl:"https://authorization.api.stackit.cloud"}));$7({permissions:#9:1,resourceId:$1,resourceType:$1});$7({items:#4})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __d5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listUserPermissions, i));
|
|
47
|
+
|
|
48
|
+
export const removeMembers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"RemoveMembersRequest";$7({resourceId:$3.pipe($2()),forceRemove:$5($4),members:#6:1,resourceType:$3}).pipe($1({method:"POST",uri:"/v2/{resourceId}/members/remove",code:200,baseUrl:"https://authorization.api.stackit.cloud"}))', [__0, __3, __4, __1, __9, __6, __d2, __7, __8, __d0, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(removeMembers, i));
|
|
49
|
+
|
|
50
|
+
export const updateRole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateRoleRequest";$6({resourceType:$3.pipe($2()),resourceId:$3.pipe($2()),roleId:$3.pipe($2()),description:$3,etag:$4($3),name:$3,permissions:#5:1}).pipe($1({method:"PUT",uri:"/v2/{resourceType}/{resourceId}/roles/{roleId}",code:200,baseUrl:"https://authorization.api.stackit.cloud"}))', [__0, __3, __4, __1, __6, __d3, __7, __8, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateRole, i));
|
|
51
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
52
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// Shared schema data (see `op` in core/api).
|
|
56
|
+
function __d0() {
|
|
57
|
+
return ['$6(>1)@"MembersResponse";$5({members:#1:1,resourceId:$2,resourceType:$2,writtenAt:$4(#3:0)})', [__0, __d2, __1, __d1, __6, __7, __8]];
|
|
58
|
+
}
|
|
59
|
+
function __d1() {
|
|
60
|
+
return ['$4(>1)@"Zookie";$3({zookie:$2($1)})', [__0, __1, __6, __7, __8]];
|
|
61
|
+
}
|
|
62
|
+
function __d2() {
|
|
63
|
+
return ['$3(>2)@"Member";$4(#0);$2({role:$1,subject:$1})', [__0, __1, __7, __8, __2]];
|
|
64
|
+
}
|
|
65
|
+
function __d3() {
|
|
66
|
+
return ['$3(>2)@"PermissionRequest";$4(#0);$2({name:$1})', [__0, __1, __7, __8, __2]];
|
|
67
|
+
}
|
|
68
|
+
function __d4() {
|
|
69
|
+
return ['$4(>1)@"AddCustomRoleResponse";$3({resourceId:$1,resourceType:$1,role:#2:0})', [__0, __1, __d6, __7, __8]];
|
|
70
|
+
}
|
|
71
|
+
function __d5() {
|
|
72
|
+
return ['$3(>2)@"Permission";$4(#0);$2({description:$1,name:$1})', [__0, __1, __7, __8, __2]];
|
|
73
|
+
}
|
|
74
|
+
function __d6() {
|
|
75
|
+
return ['$5(>1)@"Role";$4({description:$1,etag:$2($1),id:$2($1),name:$1,permissions:#3:1})', [__0, __1, __6, __d5, __7, __8]];
|
|
76
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
3
|
import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
4
4
|
export type { StackitOpError, StackitOpContext };
|
|
5
|
-
declare const BadRequest_base: S.
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
6
|
readonly code: any;
|
|
7
7
|
readonly message: any;
|
|
8
|
-
}
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
9
|
"@distilled.cloud/error/categories": {
|
|
10
10
|
BadRequestError: true;
|
|
11
11
|
};
|
|
12
12
|
});
|
|
13
13
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
14
|
}
|
|
15
|
-
declare const Forbidden_base: S.
|
|
15
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
16
16
|
readonly code: any;
|
|
17
17
|
readonly message: any;
|
|
18
|
-
}
|
|
18
|
+
}> & (new (...args: any[]) => {
|
|
19
19
|
"@distilled.cloud/error/categories": {
|
|
20
20
|
AuthError: true;
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
24
24
|
}
|
|
25
|
-
declare const NotFound_base: S.
|
|
25
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
26
26
|
readonly code: any;
|
|
27
27
|
readonly message: any;
|
|
28
|
-
}
|
|
28
|
+
}> & (new (...args: any[]) => {
|
|
29
29
|
"@distilled.cloud/error/categories": {
|
|
30
30
|
BadRequestError: true;
|
|
31
31
|
};
|
|
@@ -35,16 +35,13 @@ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
|
35
35
|
export interface VolumeAutomationInput {
|
|
36
36
|
kind: string;
|
|
37
37
|
}
|
|
38
|
-
export declare const VolumeAutomationInput: S.Schema<VolumeAutomationInput>;
|
|
39
38
|
export interface AutomationScheduleTrigger {
|
|
40
39
|
/** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
|
|
41
40
|
rrule: string;
|
|
42
41
|
}
|
|
43
|
-
export declare const AutomationScheduleTrigger: S.Schema<AutomationScheduleTrigger>;
|
|
44
42
|
export interface AutomationTriggers {
|
|
45
43
|
schedule?: AutomationScheduleTrigger | null;
|
|
46
44
|
}
|
|
47
|
-
export declare const AutomationTriggers: S.Schema<AutomationTriggers>;
|
|
48
45
|
export interface CreateVolumeAutomationRequest {
|
|
49
46
|
/** project Id */
|
|
50
47
|
projectId: string;
|
|
@@ -56,20 +53,15 @@ export interface CreateVolumeAutomationRequest {
|
|
|
56
53
|
templateId: string;
|
|
57
54
|
triggers?: AutomationTriggers | null;
|
|
58
55
|
}
|
|
59
|
-
export declare const CreateVolumeAutomationRequest: S.Schema<CreateVolumeAutomationRequest>;
|
|
60
56
|
export type VolumeOutputStepResult = VolumeAutomationInput;
|
|
61
|
-
export declare const VolumeOutputStepResult: S.Schema<VolumeAutomationInput>;
|
|
62
57
|
export interface VolumeOutputStep {
|
|
63
58
|
name: string;
|
|
64
59
|
result?: VolumeAutomationInput;
|
|
65
60
|
}
|
|
66
|
-
export declare const VolumeOutputStep: S.Schema<VolumeOutputStep>;
|
|
67
61
|
export type VolumeOutputStepsList = Array<VolumeOutputStep>;
|
|
68
|
-
export declare const VolumeOutputStepsList: S.Schema<VolumeOutputStepsList>;
|
|
69
62
|
export interface VolumeOutput {
|
|
70
63
|
steps?: VolumeOutputStepsList;
|
|
71
64
|
}
|
|
72
|
-
export declare const VolumeOutput: S.Schema<VolumeOutput>;
|
|
73
65
|
export interface VolumeAutomation {
|
|
74
66
|
createTime: string;
|
|
75
67
|
description?: string;
|
|
@@ -81,7 +73,6 @@ export interface VolumeAutomation {
|
|
|
81
73
|
triggers?: AutomationTriggers | null;
|
|
82
74
|
updateTime: string;
|
|
83
75
|
}
|
|
84
|
-
export declare const VolumeAutomation: S.Schema<VolumeAutomation>;
|
|
85
76
|
export interface CreateVolumeExecutionRequest {
|
|
86
77
|
/** project Id */
|
|
87
78
|
projectId: string;
|
|
@@ -90,7 +81,6 @@ export interface CreateVolumeExecutionRequest {
|
|
|
90
81
|
/** automation Id */
|
|
91
82
|
automationId: string;
|
|
92
83
|
}
|
|
93
|
-
export declare const CreateVolumeExecutionRequest: S.Schema<CreateVolumeExecutionRequest>;
|
|
94
84
|
export interface VolumeExecutionAutomation {
|
|
95
85
|
createTime: string;
|
|
96
86
|
description?: string;
|
|
@@ -101,29 +91,22 @@ export interface VolumeExecutionAutomation {
|
|
|
101
91
|
triggers?: AutomationTriggers | null;
|
|
102
92
|
updateTime: string;
|
|
103
93
|
}
|
|
104
|
-
export declare const VolumeExecutionAutomation: S.Schema<VolumeExecutionAutomation>;
|
|
105
94
|
export type VolumeExecutionOutputStepStatus = "PENDING" | "RUNNING" | "FAILED" | "SUCCESSFUL";
|
|
106
|
-
export declare const VolumeExecutionOutputStepStatus: any;
|
|
107
95
|
export interface VolumeExecutionOutputStep {
|
|
108
96
|
message?: string;
|
|
109
97
|
name: string;
|
|
110
98
|
result?: VolumeAutomationInput;
|
|
111
99
|
status: VolumeExecutionOutputStepStatus;
|
|
112
100
|
}
|
|
113
|
-
export declare const VolumeExecutionOutputStep: S.Schema<VolumeExecutionOutputStep>;
|
|
114
101
|
export type VolumeExecutionOutputStepsList = Array<VolumeExecutionOutputStep>;
|
|
115
|
-
export declare const VolumeExecutionOutputStepsList: S.Schema<VolumeExecutionOutputStepsList>;
|
|
116
102
|
export interface VolumeExecutionOutput {
|
|
117
103
|
steps?: VolumeExecutionOutputStepsList;
|
|
118
104
|
}
|
|
119
|
-
export declare const VolumeExecutionOutput: S.Schema<VolumeExecutionOutput>;
|
|
120
105
|
export interface VolumeExecutionDetails {
|
|
121
106
|
config: VolumeExecutionAutomation;
|
|
122
107
|
output?: VolumeExecutionOutput;
|
|
123
108
|
}
|
|
124
|
-
export declare const VolumeExecutionDetails: S.Schema<VolumeExecutionDetails>;
|
|
125
109
|
export type VolumeExecutionResponseStatus = "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | "TERMINATED";
|
|
126
|
-
export declare const VolumeExecutionResponseStatus: any;
|
|
127
110
|
export interface VolumeExecutionResponse {
|
|
128
111
|
automation?: VolumeExecutionDetails;
|
|
129
112
|
createTime: string;
|
|
@@ -131,7 +114,6 @@ export interface VolumeExecutionResponse {
|
|
|
131
114
|
id: string;
|
|
132
115
|
status: VolumeExecutionResponseStatus;
|
|
133
116
|
}
|
|
134
|
-
export declare const VolumeExecutionResponse: S.Schema<VolumeExecutionResponse>;
|
|
135
117
|
export interface DeleteVolumeAutomationRequest {
|
|
136
118
|
/** project Id */
|
|
137
119
|
projectId: string;
|
|
@@ -140,10 +122,8 @@ export interface DeleteVolumeAutomationRequest {
|
|
|
140
122
|
/** automation Id */
|
|
141
123
|
automationId: string;
|
|
142
124
|
}
|
|
143
|
-
export declare const DeleteVolumeAutomationRequest: S.Schema<DeleteVolumeAutomationRequest>;
|
|
144
125
|
export interface DeleteVolumeAutomationResponse {
|
|
145
126
|
}
|
|
146
|
-
export declare const DeleteVolumeAutomationResponse: S.Schema<DeleteVolumeAutomationResponse>;
|
|
147
127
|
export interface GetVolumeAutomationRequest {
|
|
148
128
|
/** project Id */
|
|
149
129
|
projectId: string;
|
|
@@ -152,7 +132,6 @@ export interface GetVolumeAutomationRequest {
|
|
|
152
132
|
/** automation Id */
|
|
153
133
|
automationId: string;
|
|
154
134
|
}
|
|
155
|
-
export declare const GetVolumeAutomationRequest: S.Schema<GetVolumeAutomationRequest>;
|
|
156
135
|
export interface GetVolumeExecutionRequest {
|
|
157
136
|
/** project Id */
|
|
158
137
|
projectId: string;
|
|
@@ -163,7 +142,6 @@ export interface GetVolumeExecutionRequest {
|
|
|
163
142
|
/** execution Id */
|
|
164
143
|
executionId: string;
|
|
165
144
|
}
|
|
166
|
-
export declare const GetVolumeExecutionRequest: S.Schema<GetVolumeExecutionRequest>;
|
|
167
145
|
export interface GetVolumeTemplateRequest {
|
|
168
146
|
/** project Id */
|
|
169
147
|
projectId: string;
|
|
@@ -172,13 +150,10 @@ export interface GetVolumeTemplateRequest {
|
|
|
172
150
|
/** templateId Id */
|
|
173
151
|
templateId: string;
|
|
174
152
|
}
|
|
175
|
-
export declare const GetVolumeTemplateRequest: S.Schema<GetVolumeTemplateRequest>;
|
|
176
153
|
export type VolumeTemplateAutomationInputKind = "VolumeRecoveryPointManagement";
|
|
177
|
-
export declare const VolumeTemplateAutomationInputKind: any;
|
|
178
154
|
export interface VolumeTemplateAutomationInput {
|
|
179
155
|
kind: VolumeTemplateAutomationInputKind;
|
|
180
156
|
}
|
|
181
|
-
export declare const VolumeTemplateAutomationInput: S.Schema<VolumeTemplateAutomationInput>;
|
|
182
157
|
export interface GetVolumeTemplateResponse {
|
|
183
158
|
createTime: string;
|
|
184
159
|
description: string;
|
|
@@ -187,7 +162,6 @@ export interface GetVolumeTemplateResponse {
|
|
|
187
162
|
name: string;
|
|
188
163
|
output?: VolumeOutput;
|
|
189
164
|
}
|
|
190
|
-
export declare const GetVolumeTemplateResponse: S.Schema<GetVolumeTemplateResponse>;
|
|
191
165
|
export interface ListVolumeAutomationsRequest {
|
|
192
166
|
/** project Id */
|
|
193
167
|
projectId: string;
|
|
@@ -198,7 +172,6 @@ export interface ListVolumeAutomationsRequest {
|
|
|
198
172
|
/** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
|
|
199
173
|
pageToken?: string;
|
|
200
174
|
}
|
|
201
|
-
export declare const ListVolumeAutomationsRequest: S.Schema<ListVolumeAutomationsRequest>;
|
|
202
175
|
export interface ListAutomationsItem {
|
|
203
176
|
createTime: string;
|
|
204
177
|
description?: string;
|
|
@@ -208,15 +181,12 @@ export interface ListAutomationsItem {
|
|
|
208
181
|
triggers?: AutomationTriggers | null;
|
|
209
182
|
updateTime: string;
|
|
210
183
|
}
|
|
211
|
-
export declare const ListAutomationsItem: S.Schema<ListAutomationsItem>;
|
|
212
184
|
export type ListAutomationsResponseItemsList = Array<ListAutomationsItem>;
|
|
213
|
-
export declare const ListAutomationsResponseItemsList: S.Schema<ListAutomationsResponseItemsList>;
|
|
214
185
|
export interface ListAutomationsResponse {
|
|
215
186
|
items: ListAutomationsResponseItemsList;
|
|
216
187
|
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
217
188
|
nextPageToken?: string;
|
|
218
189
|
}
|
|
219
|
-
export declare const ListAutomationsResponse: S.Schema<ListAutomationsResponse>;
|
|
220
190
|
export interface ListVolumeExecutionsRequest {
|
|
221
191
|
/** project Id */
|
|
222
192
|
projectId: string;
|
|
@@ -229,24 +199,19 @@ export interface ListVolumeExecutionsRequest {
|
|
|
229
199
|
/** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
|
|
230
200
|
pageToken?: string;
|
|
231
201
|
}
|
|
232
|
-
export declare const ListVolumeExecutionsRequest: S.Schema<ListVolumeExecutionsRequest>;
|
|
233
202
|
export type ListExecutionsItemStatus = "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | "TERMINATED";
|
|
234
|
-
export declare const ListExecutionsItemStatus: any;
|
|
235
203
|
export interface ListExecutionsItem {
|
|
236
204
|
createTime: string;
|
|
237
205
|
endTime?: string;
|
|
238
206
|
id: string;
|
|
239
207
|
status: ListExecutionsItemStatus;
|
|
240
208
|
}
|
|
241
|
-
export declare const ListExecutionsItem: S.Schema<ListExecutionsItem>;
|
|
242
209
|
export type ListExecutionsResponseItemsList = Array<ListExecutionsItem>;
|
|
243
|
-
export declare const ListExecutionsResponseItemsList: S.Schema<ListExecutionsResponseItemsList>;
|
|
244
210
|
export interface ListExecutionsResponse {
|
|
245
211
|
items: ListExecutionsResponseItemsList;
|
|
246
212
|
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
247
213
|
nextPageToken?: string;
|
|
248
214
|
}
|
|
249
|
-
export declare const ListExecutionsResponse: S.Schema<ListExecutionsResponse>;
|
|
250
215
|
export interface ListVolumeTemplatesRequest {
|
|
251
216
|
/** project Id */
|
|
252
217
|
projectId: string;
|
|
@@ -257,22 +222,18 @@ export interface ListVolumeTemplatesRequest {
|
|
|
257
222
|
/** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
|
|
258
223
|
pageToken?: string;
|
|
259
224
|
}
|
|
260
|
-
export declare const ListVolumeTemplatesRequest: S.Schema<ListVolumeTemplatesRequest>;
|
|
261
225
|
export interface Template {
|
|
262
226
|
createTime: string;
|
|
263
227
|
description: string;
|
|
264
228
|
id: string;
|
|
265
229
|
name: string;
|
|
266
230
|
}
|
|
267
|
-
export declare const Template: S.Schema<Template>;
|
|
268
231
|
export type ListTemplatesResponseItemsList = Array<Template>;
|
|
269
|
-
export declare const ListTemplatesResponseItemsList: S.Schema<ListTemplatesResponseItemsList>;
|
|
270
232
|
export interface ListTemplatesResponse {
|
|
271
233
|
items: ListTemplatesResponseItemsList;
|
|
272
234
|
/** A token that can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
273
235
|
nextPageToken?: string;
|
|
274
236
|
}
|
|
275
|
-
export declare const ListTemplatesResponse: S.Schema<ListTemplatesResponse>;
|
|
276
237
|
export interface PartialUpdateVolumeAutomationRequest {
|
|
277
238
|
/** project Id */
|
|
278
239
|
projectId: string;
|
|
@@ -287,7 +248,6 @@ export interface PartialUpdateVolumeAutomationRequest {
|
|
|
287
248
|
name?: string | null;
|
|
288
249
|
triggers?: AutomationTriggers | null;
|
|
289
250
|
}
|
|
290
|
-
export declare const PartialUpdateVolumeAutomationRequest: S.Schema<PartialUpdateVolumeAutomationRequest>;
|
|
291
251
|
export type CreateVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
292
252
|
/** Create volume automation Creates a new volume automation */
|
|
293
253
|
export declare const createVolumeAutomation: API.OperationMethod<CreateVolumeAutomationRequest, VolumeAutomation, CreateVolumeAutomationError, StackitOpContext>;
|