@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,473 +1,103 @@
|
|
|
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
|
-
|
|
25
|
-
}).pipe(
|
|
26
|
-
}
|
|
27
|
-
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
-
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
29
|
-
code: S.Number,
|
|
30
|
-
message: S.String,
|
|
31
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
32
|
-
}
|
|
33
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
34
|
-
export const Member = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
role: S.String,
|
|
36
|
-
subject: S.String,
|
|
37
|
-
})).annotate({ identifier: "Member" });
|
|
38
|
-
export const CreateFolderRequestMembersList = /*@__PURE__*/ S.Array(Member);
|
|
39
|
-
export const CreateFolderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
|
-
containerParentId: S.String,
|
|
41
|
-
labels: S.optional(Labels),
|
|
42
|
-
members: S.optional(CreateFolderRequestMembersList),
|
|
43
|
-
name: S.String,
|
|
44
|
-
}).pipe(T.Http({
|
|
45
|
-
method: "POST",
|
|
46
|
-
uri: "/v2/folders",
|
|
47
|
-
code: 200,
|
|
48
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
49
|
-
}))).annotate({ identifier: "CreateFolderRequest" });
|
|
50
|
-
export const ParentType = S.String;
|
|
51
|
-
export const Parent = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
-
containerId: S.String,
|
|
53
|
-
id: S.String,
|
|
54
|
-
type: ParentType,
|
|
55
|
-
})).annotate({ identifier: "Parent" });
|
|
56
|
-
export const FolderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
57
|
-
containerId: S.String,
|
|
58
|
-
creationTime: S.String,
|
|
59
|
-
folderId: S.String,
|
|
60
|
-
labels: S.optional(Labels),
|
|
61
|
-
name: S.String,
|
|
62
|
-
parent: Parent,
|
|
63
|
-
updateTime: S.String,
|
|
64
|
-
})).annotate({ identifier: "FolderResponse" });
|
|
65
|
-
export const CreateProjectLabels = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
66
|
-
export const CreateProjectRequestMembersList = /*@__PURE__*/ S.Array(Member);
|
|
67
|
-
export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
68
|
-
containerParentId: S.String,
|
|
69
|
-
labels: S.optional(CreateProjectLabels),
|
|
70
|
-
members: CreateProjectRequestMembersList,
|
|
71
|
-
name: S.String,
|
|
72
|
-
}).pipe(T.Http({
|
|
73
|
-
method: "POST",
|
|
74
|
-
uri: "/v2/projects",
|
|
75
|
-
code: 200,
|
|
76
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
77
|
-
}))).annotate({ identifier: "CreateProjectRequest" });
|
|
78
|
-
export const LifecycleState = S.String;
|
|
79
|
-
export const Project = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
containerId: S.String,
|
|
81
|
-
creationTime: S.String,
|
|
82
|
-
labels: S.optional(Labels),
|
|
83
|
-
lifecycleState: LifecycleState,
|
|
84
|
-
name: S.String,
|
|
85
|
-
parent: Parent,
|
|
86
|
-
projectId: S.String,
|
|
87
|
-
updateTime: S.String,
|
|
88
|
-
})).annotate({ identifier: "Project" });
|
|
89
|
-
export const DeleteFolderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
90
|
-
containerId: S.String.pipe(T.Label()),
|
|
91
|
-
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
92
|
-
}).pipe(T.Http({
|
|
93
|
-
method: "DELETE",
|
|
94
|
-
uri: "/v2/folders/{containerId}",
|
|
95
|
-
code: 200,
|
|
96
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
97
|
-
}))).annotate({ identifier: "DeleteFolderRequest" });
|
|
98
|
-
export const DeleteFolderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
99
|
-
identifier: "DeleteFolderResponse",
|
|
100
|
-
});
|
|
101
|
-
export const DeleteFolderLabelsRequestKeysList = /*@__PURE__*/ S.Array(S.String);
|
|
102
|
-
export const DeleteFolderLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
containerId: S.String.pipe(T.Label()),
|
|
104
|
-
keys: S.optional(DeleteFolderLabelsRequestKeysList.pipe(T.Query())),
|
|
105
|
-
}).pipe(T.Http({
|
|
106
|
-
method: "DELETE",
|
|
107
|
-
uri: "/v2/folders/{containerId}/labels",
|
|
108
|
-
code: 200,
|
|
109
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
110
|
-
}))).annotate({
|
|
111
|
-
identifier: "DeleteFolderLabelsRequest",
|
|
112
|
-
});
|
|
113
|
-
export const DeleteFolderLabelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
114
|
-
identifier: "DeleteFolderLabelsResponse",
|
|
115
|
-
});
|
|
116
|
-
export const DeleteOrganizationLabelsRequestKeysList = /*@__PURE__*/ S.Array(S.String);
|
|
117
|
-
export const DeleteOrganizationLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
118
|
-
containerId: S.String.pipe(T.Label()),
|
|
119
|
-
keys: S.optional(DeleteOrganizationLabelsRequestKeysList.pipe(T.Query())),
|
|
120
|
-
}).pipe(T.Http({
|
|
121
|
-
method: "DELETE",
|
|
122
|
-
uri: "/v2/organizations/{containerId}/labels",
|
|
123
|
-
code: 200,
|
|
124
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
125
|
-
}))).annotate({
|
|
126
|
-
identifier: "DeleteOrganizationLabelsRequest",
|
|
127
|
-
});
|
|
128
|
-
export const DeleteOrganizationLabelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
129
|
-
identifier: "DeleteOrganizationLabelsResponse",
|
|
130
|
-
});
|
|
131
|
-
export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
132
|
-
id: S.String.pipe(T.Label()),
|
|
133
|
-
}).pipe(T.Http({
|
|
134
|
-
method: "DELETE",
|
|
135
|
-
uri: "/v2/projects/{id}",
|
|
136
|
-
code: 200,
|
|
137
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
138
|
-
}))).annotate({ identifier: "DeleteProjectRequest" });
|
|
139
|
-
export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
140
|
-
identifier: "DeleteProjectResponse",
|
|
141
|
-
});
|
|
142
|
-
export const DeleteProjectLabelsRequestKeysList = /*@__PURE__*/ S.Array(S.String);
|
|
143
|
-
export const DeleteProjectLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
-
containerId: S.String.pipe(T.Label()),
|
|
145
|
-
keys: S.optional(DeleteProjectLabelsRequestKeysList.pipe(T.Query())),
|
|
146
|
-
}).pipe(T.Http({
|
|
147
|
-
method: "DELETE",
|
|
148
|
-
uri: "/v2/projects/{containerId}/labels",
|
|
149
|
-
code: 200,
|
|
150
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
151
|
-
}))).annotate({
|
|
152
|
-
identifier: "DeleteProjectLabelsRequest",
|
|
153
|
-
});
|
|
154
|
-
export const DeleteProjectLabelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
155
|
-
identifier: "DeleteProjectLabelsResponse",
|
|
156
|
-
});
|
|
157
|
-
export const GetFolderDetailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
-
containerId: S.String.pipe(T.Label()),
|
|
159
|
-
includeParents: S.optional(S.Boolean.pipe(T.Query())),
|
|
160
|
-
}).pipe(T.Http({
|
|
161
|
-
method: "GET",
|
|
162
|
-
uri: "/v2/folders/{containerId}",
|
|
163
|
-
code: 200,
|
|
164
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
165
|
-
}))).annotate({ identifier: "GetFolderDetailsRequest" });
|
|
166
|
-
export const ParentListItemType = S.String;
|
|
167
|
-
export const ParentListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
-
containerId: S.String,
|
|
169
|
-
containerParentId: S.optional(S.String),
|
|
170
|
-
id: S.String,
|
|
171
|
-
name: S.String,
|
|
172
|
-
parentId: S.optional(S.String),
|
|
173
|
-
type: ParentListItemType,
|
|
174
|
-
})).annotate({ identifier: "ParentListItem" });
|
|
175
|
-
export const ParentList = /*@__PURE__*/ S.Array(ParentListItem);
|
|
176
|
-
export const GetFolderDetailsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
177
|
-
containerId: S.String,
|
|
178
|
-
creationTime: S.String,
|
|
179
|
-
folderId: S.String,
|
|
180
|
-
labels: S.optional(Labels),
|
|
181
|
-
name: S.String,
|
|
182
|
-
parent: Parent,
|
|
183
|
-
parents: S.optional(ParentList),
|
|
184
|
-
updateTime: S.String,
|
|
185
|
-
})).annotate({ identifier: "GetFolderDetailsResponse" });
|
|
186
|
-
export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
187
|
-
id: S.String.pipe(T.Label()),
|
|
188
|
-
}).pipe(T.Http({
|
|
189
|
-
method: "GET",
|
|
190
|
-
uri: "/v2/organizations/{id}",
|
|
191
|
-
code: 200,
|
|
192
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
193
|
-
}))).annotate({ identifier: "GetOrganizationRequest" });
|
|
194
|
-
export const OrganizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
-
containerId: S.String,
|
|
196
|
-
creationTime: S.String,
|
|
197
|
-
labels: S.optional(Labels),
|
|
198
|
-
lifecycleState: LifecycleState,
|
|
199
|
-
name: S.String,
|
|
200
|
-
organizationId: S.String,
|
|
201
|
-
updateTime: S.String,
|
|
202
|
-
})).annotate({ identifier: "OrganizationResponse" });
|
|
203
|
-
export const GetProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
-
id: S.String.pipe(T.Label()),
|
|
205
|
-
includeParents: S.optional(S.Boolean.pipe(T.Query())),
|
|
206
|
-
}).pipe(T.Http({
|
|
207
|
-
method: "GET",
|
|
208
|
-
uri: "/v2/projects/{id}",
|
|
209
|
-
code: 200,
|
|
210
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
211
|
-
}))).annotate({ identifier: "GetProjectRequest" });
|
|
212
|
-
export const GetProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
-
containerId: S.String,
|
|
214
|
-
creationTime: S.String,
|
|
215
|
-
labels: S.optional(Labels),
|
|
216
|
-
lifecycleState: LifecycleState,
|
|
217
|
-
name: S.String,
|
|
218
|
-
parent: Parent,
|
|
219
|
-
parents: S.optional(ParentList),
|
|
220
|
-
projectId: S.String,
|
|
221
|
-
updateTime: S.String,
|
|
222
|
-
})).annotate({ identifier: "GetProjectResponse" });
|
|
223
|
-
export const ListFoldersRequestContainerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
224
|
-
export const ListFoldersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
-
containerParentId: S.optional(S.String.pipe(T.Query())),
|
|
226
|
-
containerIds: S.optional(ListFoldersRequestContainerIdsList.pipe(T.Query())),
|
|
227
|
-
member: S.optional(S.String.pipe(T.Query())),
|
|
228
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
229
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
230
|
-
creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
|
|
231
|
-
}).pipe(T.Http({
|
|
232
|
-
method: "GET",
|
|
233
|
-
uri: "/v2/folders",
|
|
234
|
-
code: 200,
|
|
235
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
236
|
-
}))).annotate({ identifier: "ListFoldersRequest" });
|
|
237
|
-
export const ListFoldersResponseItemsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
238
|
-
containerId: S.String,
|
|
239
|
-
creationTime: S.String,
|
|
240
|
-
folderId: S.String,
|
|
241
|
-
labels: S.optional(Labels),
|
|
242
|
-
name: S.String,
|
|
243
|
-
parent: Parent,
|
|
244
|
-
updateTime: S.String,
|
|
245
|
-
})).annotate({
|
|
246
|
-
identifier: "ListFoldersResponseItemsItem",
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = T.Query;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = S.Boolean;
|
|
19
|
+
const __9 = S.Array;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = S.NullOr;
|
|
22
|
+
const __12 = S.Record;
|
|
23
|
+
const __13 = S.TaggedError;
|
|
24
|
+
const __14 = T.applyErrorMatchers;
|
|
25
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
26
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __10, __3, __13, __14]]);
|
|
247
27
|
});
|
|
248
|
-
export const
|
|
249
|
-
|
|
250
|
-
items: ListFoldersResponseItemsList,
|
|
251
|
-
limit: S.Number,
|
|
252
|
-
offset: S.Number,
|
|
253
|
-
})).annotate({ identifier: "ListFoldersResponse" });
|
|
254
|
-
export const ListOrganizationsRequestContainerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
255
|
-
export const ListOrganizationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
256
|
-
containerIds: S.optional(ListOrganizationsRequestContainerIdsList.pipe(T.Query())),
|
|
257
|
-
member: S.optional(S.String.pipe(T.Query())),
|
|
258
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
259
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
260
|
-
creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
|
|
261
|
-
}).pipe(T.Http({
|
|
262
|
-
method: "GET",
|
|
263
|
-
uri: "/v2/organizations",
|
|
264
|
-
code: 200,
|
|
265
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
266
|
-
}))).annotate({ identifier: "ListOrganizationsRequest" });
|
|
267
|
-
export const ListOrganizationsResponseItemsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
|
-
containerId: S.String,
|
|
269
|
-
creationTime: S.String,
|
|
270
|
-
labels: S.optional(Labels),
|
|
271
|
-
lifecycleState: LifecycleState,
|
|
272
|
-
name: S.String,
|
|
273
|
-
organizationId: S.String,
|
|
274
|
-
updateTime: S.String,
|
|
275
|
-
})).annotate({
|
|
276
|
-
identifier: "ListOrganizationsResponseItemsItem",
|
|
28
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
29
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __10, __3, __13, __14]]);
|
|
277
30
|
});
|
|
278
|
-
export const
|
|
279
|
-
|
|
280
|
-
items: ListOrganizationsResponseItemsList,
|
|
281
|
-
limit: S.Number,
|
|
282
|
-
offset: S.Number,
|
|
283
|
-
})).annotate({
|
|
284
|
-
identifier: "ListOrganizationsResponse",
|
|
31
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
32
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __10, __3, __13, __14]]);
|
|
285
33
|
});
|
|
286
|
-
export const
|
|
287
|
-
|
|
288
|
-
containerParentId: S.optional(S.String.pipe(T.Query())),
|
|
289
|
-
containerIds: S.optional(ListProjectsRequestContainerIdsList.pipe(T.Query())),
|
|
290
|
-
member: S.optional(S.String.pipe(T.Query())),
|
|
291
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
292
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
293
|
-
creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
|
|
294
|
-
}).pipe(T.Http({
|
|
295
|
-
method: "GET",
|
|
296
|
-
uri: "/v2/projects",
|
|
297
|
-
code: 200,
|
|
298
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
299
|
-
}))).annotate({ identifier: "ListProjectsRequest" });
|
|
300
|
-
export const ListProjectsResponseItemsList = /*@__PURE__*/ S.Array(Project);
|
|
301
|
-
export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
-
items: ListProjectsResponseItemsList,
|
|
303
|
-
limit: S.Number,
|
|
304
|
-
offset: S.Number,
|
|
305
|
-
})).annotate({ identifier: "ListProjectsResponse" });
|
|
306
|
-
export const UpdateLabels = /*@__PURE__*/ S.Record(S.String, S.NullOr(S.String));
|
|
307
|
-
export const PartialUpdateFolderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
308
|
-
containerId: S.String.pipe(T.Label()),
|
|
309
|
-
containerParentId: S.optional(S.String),
|
|
310
|
-
labels: S.optional(UpdateLabels),
|
|
311
|
-
name: S.optional(S.String),
|
|
312
|
-
}).pipe(T.Http({
|
|
313
|
-
method: "PATCH",
|
|
314
|
-
uri: "/v2/folders/{containerId}",
|
|
315
|
-
code: 200,
|
|
316
|
-
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
317
|
-
}))).annotate({
|
|
318
|
-
identifier: "PartialUpdateFolderRequest",
|
|
34
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
35
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __10, __3, __13, __14]]);
|
|
319
36
|
});
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}))).
|
|
330
|
-
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}).pipe(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
})
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
input: DeleteProjectRequest,
|
|
388
|
-
output: DeleteProjectResponse,
|
|
389
|
-
errors: [Conflict, UnknownStackitError],
|
|
390
|
-
protocol: StackitProtocol,
|
|
391
|
-
retry: Retry.Retry,
|
|
392
|
-
}));
|
|
393
|
-
/** Delete Project Labels Deletes project labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to delete its labels). */
|
|
394
|
-
export const deleteProjectLabels = /*@__PURE__*/ API.make(() => ({
|
|
395
|
-
input: DeleteProjectLabelsRequest,
|
|
396
|
-
output: DeleteProjectLabelsResponse,
|
|
397
|
-
errors: [Conflict, UnknownStackitError],
|
|
398
|
-
protocol: StackitProtocol,
|
|
399
|
-
retry: Retry.Retry,
|
|
400
|
-
}));
|
|
401
|
-
/** Get Folder Details Returns metadata for a specific folder. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.get (required primary permission to retrieve folder details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get implicitly to resolve parent hierarchy details. */
|
|
402
|
-
export const getFolderDetails = /*@__PURE__*/ API.make(() => ({
|
|
403
|
-
input: GetFolderDetailsRequest,
|
|
404
|
-
output: GetFolderDetailsResponse,
|
|
405
|
-
errors: [Forbidden, NotFound, UnknownStackitError],
|
|
406
|
-
protocol: StackitProtocol,
|
|
407
|
-
retry: Retry.Retry,
|
|
408
|
-
}));
|
|
409
|
-
/** Get Organization Details Returns metadata for a specific organization. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.get (required permission on the organization to view its details). */
|
|
410
|
-
export const getOrganization = /*@__PURE__*/ API.make(() => ({
|
|
411
|
-
input: GetOrganizationRequest,
|
|
412
|
-
output: OrganizationResponse,
|
|
413
|
-
errors: [NotFound, UnknownStackitError],
|
|
414
|
-
protocol: StackitProtocol,
|
|
415
|
-
retry: Retry.Retry,
|
|
416
|
-
}));
|
|
417
|
-
/** Get Project Details Returns the project and its metadata. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.get (required primary permission to view project details). - Evaluated on Parent Containers: resource-manager.organization.get and resource-manager.folder.get on parent organizations/folders implicitly to resolve and include parent metadata in the response hierarchy. */
|
|
418
|
-
export const getProject = /*@__PURE__*/ API.make(() => ({
|
|
419
|
-
input: GetProjectRequest,
|
|
420
|
-
output: GetProjectResponse,
|
|
421
|
-
errors: [Forbidden, NotFound, UnknownStackitError],
|
|
422
|
-
protocol: StackitProtocol,
|
|
423
|
-
retry: Retry.Retry,
|
|
424
|
-
}));
|
|
425
|
-
/** Get All Folders Returns all folders and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of <br /> Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - When filtering by member: resource-manager.folder.direct.get is evaluated on target folders for the member; if caller differs from target member, system-level resource-manager.folder.get is required. - When filtering by containerParentId: resource-manager.folder.list is evaluated on the parent container. - When filtering by containerIds: resource-manager.folder.get is evaluated on the parent container of requested folders. */
|
|
426
|
-
export const listFolders = /*@__PURE__*/ API.make(() => ({
|
|
427
|
-
input: ListFoldersRequest,
|
|
428
|
-
output: ListFoldersResponse,
|
|
429
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
430
|
-
protocol: StackitProtocol,
|
|
431
|
-
retry: Retry.Retry,
|
|
432
|
-
}));
|
|
433
|
-
/** Get all organizations of member Returns all organizations and their metadata accessible to the caller. - Filterable by containerIds or member. Authorization & Permissions: - Evaluated on Target Organizations: resource-manager.organization.list and/or (depending if containerIDs was used in the request) resource-manager.organization.get to filter and list accessible organizations. */
|
|
434
|
-
export const listOrganizations = /*@__PURE__*/ API.make(() => ({
|
|
435
|
-
input: ListOrganizationsRequest,
|
|
436
|
-
output: ListOrganizationsResponse,
|
|
437
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
438
|
-
protocol: StackitProtocol,
|
|
439
|
-
retry: Retry.Retry,
|
|
440
|
-
}));
|
|
441
|
-
/** Get All Projects of a member. Returns all projects and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent Authorization & Permissions: - Evaluated on Target Projects: resource-manager.project.get, resource-manager.project.list, or resource-manager.project.direct.get to filter and return accessible projects. */
|
|
442
|
-
export const listProjects = /*@__PURE__*/ API.make(() => ({
|
|
443
|
-
input: ListProjectsRequest,
|
|
444
|
-
output: ListProjectsResponse,
|
|
445
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
446
|
-
protocol: StackitProtocol,
|
|
447
|
-
retry: Retry.Retry,
|
|
448
|
-
}));
|
|
449
|
-
/** Update Folder Update the folder and its metadata (name, labels, parent container). Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to modify its details, labels, or parent). */
|
|
450
|
-
export const partialUpdateFolder = /*@__PURE__*/ API.make(() => ({
|
|
451
|
-
input: PartialUpdateFolderRequest,
|
|
452
|
-
output: FolderResponse,
|
|
453
|
-
errors: [Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
454
|
-
protocol: StackitProtocol,
|
|
455
|
-
retry: Retry.Retry,
|
|
456
|
-
}));
|
|
457
|
-
/** Update Organization Updates organization metadata (name, labels). Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to update metadata and labels). */
|
|
458
|
-
export const partialUpdateOrganization = /*@__PURE__*/ API.make(() => ({
|
|
459
|
-
input: PartialUpdateOrganizationRequest,
|
|
460
|
-
output: OrganizationResponse,
|
|
461
|
-
errors: [NotFound, Conflict, UnknownStackitError],
|
|
462
|
-
protocol: StackitProtocol,
|
|
463
|
-
retry: Retry.Retry,
|
|
464
|
-
}));
|
|
465
|
-
/** Update Project Updates project metadata (name, labels, or parent hierarchy). Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.edit (required permission on the project to modify its details, labels, or parent). */
|
|
466
|
-
export const partialUpdateProject = /*@__PURE__*/ API.make(() => ({
|
|
467
|
-
input: PartialUpdateProjectRequest,
|
|
468
|
-
output: Project,
|
|
469
|
-
errors: [Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
470
|
-
protocol: StackitProtocol,
|
|
471
|
-
retry: Retry.Retry,
|
|
472
|
-
}));
|
|
473
|
-
//# sourceMappingURL=resource_manager.js.map
|
|
37
|
+
|
|
38
|
+
export const createFolder = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CreateFolderRequest";$6({containerParentId:$2,labels:$4(#3:0),members:$4(#5:1),name:$2}).pipe($1({method:"POST",uri:"/v2/folders",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __3, __d5, __5, __d4, __6, __7, __d3, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createFolder, i));
|
|
39
|
+
|
|
40
|
+
export const createProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CreateProjectRequest";$6({containerParentId:$2,labels:$4(#3:0),members:#5:1,name:$2}).pipe($1({method:"POST",uri:"/v2/projects",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __3, __d5, __5, __d4, __6, __7, __d7, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createProject, i));
|
|
41
|
+
|
|
42
|
+
export const deleteFolder = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"DeleteFolderRequest";$7({containerId:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/folders/{containerId}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __8, __5, __6, __7, __d8, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteFolder, i));
|
|
43
|
+
|
|
44
|
+
export const deleteFolderLabels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"DeleteFolderLabelsRequest";$7({containerId:$3.pipe($2()),keys:$6(#5:0.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/folders/{containerId}/labels",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __d9, __5, __6, __7, __d8, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteFolderLabels, i));
|
|
45
|
+
|
|
46
|
+
export const deleteOrganizationLabels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"DeleteOrganizationLabelsRequest";$7({containerId:$3.pipe($2()),keys:$6(#5:0.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/organizations/{containerId}/labels",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __d9, __5, __6, __7, __d8, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteOrganizationLabels, i));
|
|
47
|
+
|
|
48
|
+
export const deleteProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteProjectRequest";$4({id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{id}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d8, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteProject, i));
|
|
49
|
+
|
|
50
|
+
export const deleteProjectLabels = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"DeleteProjectLabelsRequest";$7({containerId:$3.pipe($2()),keys:$6(#5:0.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/projects/{containerId}/labels",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __d9, __5, __6, __7, __d8, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteProjectLabels, i));
|
|
51
|
+
|
|
52
|
+
export const getFolderDetails = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$12,$13,$14],protocol:$15,retry:$16};$8(>3)@"GetFolderDetailsRequest";$8(>4)@"GetFolderDetailsResponse";$7({containerId:$3.pipe($2()),includeParents:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/folders/{containerId}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}));$7({containerId:$3,creationTime:$3,folderId:$3,labels:$6(#9:0),name:$3,parent:#10:0,parents:$6(#11:1),updateTime:$3})', [__0, __1, __2, __3, __4, __8, __5, __6, __7, __d5, __d6, __d0, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getFolderDetails, i));
|
|
53
|
+
|
|
54
|
+
export const getOrganization = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetOrganizationRequest";$4({id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/organizations/{id}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d1, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getOrganization, i));
|
|
55
|
+
|
|
56
|
+
export const getProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$12,$13,$14],protocol:$15,retry:$16};$8(>3)@"GetProjectRequest";$8(>4)@"GetProjectResponse";$7({id:$3.pipe($2()),includeParents:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{id}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}));$7({containerId:$3,creationTime:$3,labels:$6(#9:0),lifecycleState:$3,name:$3,parent:#10:0,parents:$6(#11:1),projectId:$3,updateTime:$3})', [__0, __1, __2, __3, __4, __8, __5, __6, __7, __d5, __d6, __d0, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getProject, i));
|
|
57
|
+
|
|
58
|
+
export const listFolders = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>4)@"ListFoldersRequest";$10(#9:0);$8(>5)@"ListFoldersResponse";$7({containerParentId:$4($3.pipe($2())),containerIds:$4(#5:0.pipe($2())),member:$4($3.pipe($2())),limit:$4($6.pipe($2())),offset:$4($6.pipe($2())),creation_time_start:$4($3.pipe($2("creation-time-start")))}).pipe($1({method:"GET",uri:"/v2/folders",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}));$7({items:#2,limit:$6,offset:$6})', [__0, __1, __4, __3, __5, __d9, __10, __6, __7, __d3, __9, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listFolders, i));
|
|
59
|
+
|
|
60
|
+
export const listOrganizations = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13],protocol:$14,retry:$15};$8(>4)@"ListOrganizationsRequest";$10(#9:0);$8(>5)@"ListOrganizationsResponse";$7({containerIds:$4(#3:0.pipe($2())),member:$4($5.pipe($2())),limit:$4($6.pipe($2())),offset:$4($6.pipe($2())),creation_time_start:$4($5.pipe($2("creation-time-start")))}).pipe($1({method:"GET",uri:"/v2/organizations",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}));$7({items:#2,limit:$6,offset:$6})', [__0, __1, __4, __d9, __5, __3, __10, __6, __7, __d1, __9, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listOrganizations, i));
|
|
61
|
+
|
|
62
|
+
export const listProjects = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13],protocol:$14,retry:$15};$8(>4)@"ListProjectsRequest";$10(#9:0);$8(>5)@"ListProjectsResponse";$7({containerParentId:$4($3.pipe($2())),containerIds:$4(#5:0.pipe($2())),member:$4($3.pipe($2())),offset:$4($6.pipe($2())),limit:$4($6.pipe($2())),creation_time_start:$4($3.pipe($2("creation-time-start")))}).pipe($1({method:"GET",uri:"/v2/projects",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}));$7({items:#2,limit:$6,offset:$6})', [__0, __1, __4, __3, __5, __d9, __10, __6, __7, __d7, __9, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listProjects, i));
|
|
63
|
+
|
|
64
|
+
export const partialUpdateFolder = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"PartialUpdateFolderRequest";$6({containerId:$3.pipe($2()),containerParentId:$4($3),labels:$4(#5:0),name:$4($3)}).pipe($1({method:"PATCH",uri:"/v2/folders/{containerId}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __5, __d2, __6, __7, __d3, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateFolder, i));
|
|
65
|
+
|
|
66
|
+
export const partialUpdateOrganization = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"PartialUpdateOrganizationRequest";$6({id:$3.pipe($2()),labels:$5(#4:0),name:$5($3)}).pipe($1({method:"PATCH",uri:"/v2/organizations/{id}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __5, __6, __7, __d1, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateOrganization, i));
|
|
67
|
+
|
|
68
|
+
export const partialUpdateProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"PartialUpdateProjectRequest";$6({id:$3.pipe($2()),containerParentId:$4($3),labels:$4(#5:0),name:$4($3)}).pipe($1({method:"PATCH",uri:"/v2/projects/{id}",code:200,baseUrl:"https://resource-manager.api.stackit.cloud"}))', [__0, __1, __2, __3, __5, __d2, __6, __7, __d7, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateProject, i));
|
|
69
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
70
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
// Shared schema data (see `op` in core/api).
|
|
74
|
+
function __d0() {
|
|
75
|
+
return ['$4(>2)@"ParentListItem";$5(#0);$3({containerId:$1,containerParentId:$2($1),id:$1,name:$1,parentId:$2($1),type:$1})', [__0, __3, __5, __6, __7, __9]];
|
|
76
|
+
}
|
|
77
|
+
function __d1() {
|
|
78
|
+
return ['$5(>1)@"OrganizationResponse";$4({containerId:$1,creationTime:$1,labels:$3(#2:0),lifecycleState:$1,name:$1,organizationId:$1,updateTime:$1})', [__0, __3, __d5, __5, __6, __7]];
|
|
79
|
+
}
|
|
80
|
+
function __d2() {
|
|
81
|
+
return ['$3($1,$2($1))', [__0, __3, __11, __12]];
|
|
82
|
+
}
|
|
83
|
+
function __d3() {
|
|
84
|
+
return ['$6(>1)@"FolderResponse";$5({containerId:$1,creationTime:$1,folderId:$1,labels:$3(#2:0),name:$1,parent:#4:0,updateTime:$1})', [__0, __3, __d5, __5, __d6, __6, __7]];
|
|
85
|
+
}
|
|
86
|
+
function __d4() {
|
|
87
|
+
return ['$3(>2)@"Member";$4(#0);$2({role:$1,subject:$1})', [__0, __3, __6, __7, __9]];
|
|
88
|
+
}
|
|
89
|
+
function __d5() {
|
|
90
|
+
return ['$2($1,$1)', [__0, __3, __12]];
|
|
91
|
+
}
|
|
92
|
+
function __d6() {
|
|
93
|
+
return ['$3(>1)@"Parent";$2({containerId:$1,id:$1,type:$1})', [__0, __3, __6, __7]];
|
|
94
|
+
}
|
|
95
|
+
function __d7() {
|
|
96
|
+
return ['$6(>1)@"Project";$5({containerId:$1,creationTime:$1,labels:$3(#2:0),lifecycleState:$1,name:$1,parent:#4:0,projectId:$1,updateTime:$1})', [__0, __3, __d5, __5, __d6, __6, __7]];
|
|
97
|
+
}
|
|
98
|
+
function __d8() {
|
|
99
|
+
return ['$2(>1)@"DeleteFolderResponse";$1({})', [__0, __6, __7]];
|
|
100
|
+
}
|
|
101
|
+
function __d9() {
|
|
102
|
+
return ['$2($1)', [__0, __3, __9]];
|
|
103
|
+
}
|