@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13
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/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +83 -3
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,1155 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
StackitProtocol,
|
|
8
|
+
type StackitOpError,
|
|
9
|
+
type StackitOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { StackitOpError, StackitOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Conflict
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withConflictError),
|
|
31
|
+
[{ status: 409 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class Forbidden
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withAuthError),
|
|
40
|
+
[{ status: 403 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class NotFound
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
46
|
+
code: S.Number,
|
|
47
|
+
message: S.String,
|
|
48
|
+
}).pipe(C.withBadRequestError),
|
|
49
|
+
[{ status: 404 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
/** Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.* */
|
|
53
|
+
export type Labels = { [key: string]: string | undefined };
|
|
54
|
+
export const Labels = /*@__PURE__*/ S.Record(
|
|
55
|
+
S.String,
|
|
56
|
+
S.String,
|
|
57
|
+
) as any as S.Schema<Labels>;
|
|
58
|
+
|
|
59
|
+
export interface Member {
|
|
60
|
+
/** A valid role defined for the resource. */
|
|
61
|
+
role: string;
|
|
62
|
+
/** Unique identifier of the user, service account or client. */
|
|
63
|
+
subject: string;
|
|
64
|
+
}
|
|
65
|
+
export const Member = /*@__PURE__*/ S.suspend(() =>
|
|
66
|
+
S.Struct({
|
|
67
|
+
role: S.String,
|
|
68
|
+
subject: S.String,
|
|
69
|
+
}),
|
|
70
|
+
).annotate({ identifier: "Member" }) as any as S.Schema<Member>;
|
|
71
|
+
|
|
72
|
+
/** The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. */
|
|
73
|
+
export type CreateFolderRequestMembersList = Array<Member>;
|
|
74
|
+
export const CreateFolderRequestMembersList = /*@__PURE__*/ S.Array(
|
|
75
|
+
Member,
|
|
76
|
+
) as any as S.Schema<CreateFolderRequestMembersList>;
|
|
77
|
+
|
|
78
|
+
export interface CreateFolderRequest {
|
|
79
|
+
/** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
|
|
80
|
+
containerParentId: string;
|
|
81
|
+
labels?: Labels;
|
|
82
|
+
/** The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. */
|
|
83
|
+
members?: CreateFolderRequestMembersList;
|
|
84
|
+
/** The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
|
|
85
|
+
name: string;
|
|
86
|
+
}
|
|
87
|
+
export const CreateFolderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
88
|
+
S.Struct({
|
|
89
|
+
containerParentId: S.String,
|
|
90
|
+
labels: S.optional(Labels),
|
|
91
|
+
members: S.optional(CreateFolderRequestMembersList),
|
|
92
|
+
name: S.String,
|
|
93
|
+
}).pipe(
|
|
94
|
+
T.Http({
|
|
95
|
+
method: "POST",
|
|
96
|
+
uri: "/v2/folders",
|
|
97
|
+
code: 200,
|
|
98
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
99
|
+
}),
|
|
100
|
+
),
|
|
101
|
+
).annotate({
|
|
102
|
+
identifier: "CreateFolderRequest",
|
|
103
|
+
}) as any as S.Schema<CreateFolderRequest>;
|
|
104
|
+
|
|
105
|
+
/** Container type of parent container. */
|
|
106
|
+
export type ParentType = "ORGANIZATION" | "FOLDER";
|
|
107
|
+
export const ParentType = /*@__PURE__*/ S.String;
|
|
108
|
+
|
|
109
|
+
/** Parent container. */
|
|
110
|
+
export interface Parent {
|
|
111
|
+
/** User-friendly identifier of either organization or folder (will replace id). */
|
|
112
|
+
containerId: string;
|
|
113
|
+
/** Identifier of either organization or folder. */
|
|
114
|
+
id: string;
|
|
115
|
+
/** Container type of parent container. */
|
|
116
|
+
type: ParentType;
|
|
117
|
+
}
|
|
118
|
+
export const Parent = /*@__PURE__*/ S.suspend(() =>
|
|
119
|
+
S.Struct({
|
|
120
|
+
containerId: S.String,
|
|
121
|
+
id: S.String,
|
|
122
|
+
type: ParentType,
|
|
123
|
+
}),
|
|
124
|
+
).annotate({ identifier: "Parent" }) as any as S.Schema<Parent>;
|
|
125
|
+
|
|
126
|
+
export interface FolderResponse {
|
|
127
|
+
/** Globally unique, user-friendly identifier. */
|
|
128
|
+
containerId: string;
|
|
129
|
+
/** Timestamp at which the folder was created. */
|
|
130
|
+
creationTime: string;
|
|
131
|
+
/** Globally unique folder identifier. */
|
|
132
|
+
folderId: string;
|
|
133
|
+
labels?: Labels;
|
|
134
|
+
/** Folder name. */
|
|
135
|
+
name: string;
|
|
136
|
+
parent: Parent;
|
|
137
|
+
/** Timestamp at which the folder was last modified. */
|
|
138
|
+
updateTime: string;
|
|
139
|
+
}
|
|
140
|
+
export const FolderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
141
|
+
S.Struct({
|
|
142
|
+
containerId: S.String,
|
|
143
|
+
creationTime: S.String,
|
|
144
|
+
folderId: S.String,
|
|
145
|
+
labels: S.optional(Labels),
|
|
146
|
+
name: S.String,
|
|
147
|
+
parent: Parent,
|
|
148
|
+
updateTime: S.String,
|
|
149
|
+
}),
|
|
150
|
+
).annotate({ identifier: "FolderResponse" }) as any as S.Schema<FolderResponse>;
|
|
151
|
+
|
|
152
|
+
/** Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * Either a `"scope": "PUBLIC"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `"networkArea": "<networkAreaID>"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. */
|
|
153
|
+
export type CreateProjectLabels = { [key: string]: string | undefined };
|
|
154
|
+
export const CreateProjectLabels = /*@__PURE__*/ S.Record(
|
|
155
|
+
S.String,
|
|
156
|
+
S.String,
|
|
157
|
+
) as any as S.Schema<CreateProjectLabels>;
|
|
158
|
+
|
|
159
|
+
/** The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. */
|
|
160
|
+
export type CreateProjectRequestMembersList = Array<Member>;
|
|
161
|
+
export const CreateProjectRequestMembersList = /*@__PURE__*/ S.Array(
|
|
162
|
+
Member,
|
|
163
|
+
) as any as S.Schema<CreateProjectRequestMembersList>;
|
|
164
|
+
|
|
165
|
+
export interface CreateProjectRequest {
|
|
166
|
+
/** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
|
|
167
|
+
containerParentId: string;
|
|
168
|
+
labels?: CreateProjectLabels;
|
|
169
|
+
/** The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. */
|
|
170
|
+
members: CreateProjectRequestMembersList;
|
|
171
|
+
/** Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
|
|
172
|
+
name: string;
|
|
173
|
+
}
|
|
174
|
+
export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() =>
|
|
175
|
+
S.Struct({
|
|
176
|
+
containerParentId: S.String,
|
|
177
|
+
labels: S.optional(CreateProjectLabels),
|
|
178
|
+
members: CreateProjectRequestMembersList,
|
|
179
|
+
name: S.String,
|
|
180
|
+
}).pipe(
|
|
181
|
+
T.Http({
|
|
182
|
+
method: "POST",
|
|
183
|
+
uri: "/v2/projects",
|
|
184
|
+
code: 200,
|
|
185
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
186
|
+
}),
|
|
187
|
+
),
|
|
188
|
+
).annotate({
|
|
189
|
+
identifier: "CreateProjectRequest",
|
|
190
|
+
}) as any as S.Schema<CreateProjectRequest>;
|
|
191
|
+
|
|
192
|
+
/** Lifecycle state of the resource container. | LIFECYCLE STATE | DESCRIPTION | |----------|--------------------| | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. | | ACTIVE | Resource container can be fully used. | | INACTIVE | Resource container usage has been disabled. | | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. | */
|
|
193
|
+
export type LifecycleState = "CREATING" | "ACTIVE" | "DELETING" | "INACTIVE";
|
|
194
|
+
export const LifecycleState = /*@__PURE__*/ S.String;
|
|
195
|
+
|
|
196
|
+
export interface Project {
|
|
197
|
+
/** Globally unique, user-friendly identifier. */
|
|
198
|
+
containerId: string;
|
|
199
|
+
/** Timestamp at which the project was created. */
|
|
200
|
+
creationTime: string;
|
|
201
|
+
labels?: Labels;
|
|
202
|
+
lifecycleState: LifecycleState;
|
|
203
|
+
/** Project name. */
|
|
204
|
+
name: string;
|
|
205
|
+
parent: Parent;
|
|
206
|
+
/** Globally unique, project identifier. */
|
|
207
|
+
projectId: string;
|
|
208
|
+
/** Timestamp at which the project was last modified. */
|
|
209
|
+
updateTime: string;
|
|
210
|
+
}
|
|
211
|
+
export const Project = /*@__PURE__*/ S.suspend(() =>
|
|
212
|
+
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
|
+
projectId: S.String,
|
|
220
|
+
updateTime: S.String,
|
|
221
|
+
}),
|
|
222
|
+
).annotate({ identifier: "Project" }) as any as S.Schema<Project>;
|
|
223
|
+
|
|
224
|
+
export interface DeleteFolderRequest {
|
|
225
|
+
/** Folder identifier - containerId as well as UUID identifier is supported. */
|
|
226
|
+
containerId: string;
|
|
227
|
+
/** If true, all nested, empty folders are deleted recursively - if no project is attached! */
|
|
228
|
+
force?: boolean;
|
|
229
|
+
}
|
|
230
|
+
export const DeleteFolderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
231
|
+
S.Struct({
|
|
232
|
+
containerId: S.String.pipe(T.Label()),
|
|
233
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
234
|
+
}).pipe(
|
|
235
|
+
T.Http({
|
|
236
|
+
method: "DELETE",
|
|
237
|
+
uri: "/v2/folders/{containerId}",
|
|
238
|
+
code: 200,
|
|
239
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
240
|
+
}),
|
|
241
|
+
),
|
|
242
|
+
).annotate({
|
|
243
|
+
identifier: "DeleteFolderRequest",
|
|
244
|
+
}) as any as S.Schema<DeleteFolderRequest>;
|
|
245
|
+
|
|
246
|
+
export interface DeleteFolderResponse {}
|
|
247
|
+
export const DeleteFolderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
248
|
+
S.Struct({}),
|
|
249
|
+
).annotate({
|
|
250
|
+
identifier: "DeleteFolderResponse",
|
|
251
|
+
}) as any as S.Schema<DeleteFolderResponse>;
|
|
252
|
+
|
|
253
|
+
export type DeleteFolderLabelsRequestKeysList = Array<string>;
|
|
254
|
+
export const DeleteFolderLabelsRequestKeysList = /*@__PURE__*/ S.Array(
|
|
255
|
+
S.String,
|
|
256
|
+
) as any as S.Schema<DeleteFolderLabelsRequestKeysList>;
|
|
257
|
+
|
|
258
|
+
export interface DeleteFolderLabelsRequest {
|
|
259
|
+
/** Folder identifier - containerId as well as UUID identifier is supported. */
|
|
260
|
+
containerId: string;
|
|
261
|
+
/** Label name. */
|
|
262
|
+
keys?: DeleteFolderLabelsRequestKeysList;
|
|
263
|
+
}
|
|
264
|
+
export const DeleteFolderLabelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
265
|
+
S.Struct({
|
|
266
|
+
containerId: S.String.pipe(T.Label()),
|
|
267
|
+
keys: S.optional(DeleteFolderLabelsRequestKeysList.pipe(T.Query())),
|
|
268
|
+
}).pipe(
|
|
269
|
+
T.Http({
|
|
270
|
+
method: "DELETE",
|
|
271
|
+
uri: "/v2/folders/{containerId}/labels",
|
|
272
|
+
code: 200,
|
|
273
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
274
|
+
}),
|
|
275
|
+
),
|
|
276
|
+
).annotate({
|
|
277
|
+
identifier: "DeleteFolderLabelsRequest",
|
|
278
|
+
}) as any as S.Schema<DeleteFolderLabelsRequest>;
|
|
279
|
+
|
|
280
|
+
export interface DeleteFolderLabelsResponse {}
|
|
281
|
+
export const DeleteFolderLabelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
282
|
+
S.Struct({}),
|
|
283
|
+
).annotate({
|
|
284
|
+
identifier: "DeleteFolderLabelsResponse",
|
|
285
|
+
}) as any as S.Schema<DeleteFolderLabelsResponse>;
|
|
286
|
+
|
|
287
|
+
export type DeleteOrganizationLabelsRequestKeysList = Array<string>;
|
|
288
|
+
export const DeleteOrganizationLabelsRequestKeysList = /*@__PURE__*/ S.Array(
|
|
289
|
+
S.String,
|
|
290
|
+
) as any as S.Schema<DeleteOrganizationLabelsRequestKeysList>;
|
|
291
|
+
|
|
292
|
+
export interface DeleteOrganizationLabelsRequest {
|
|
293
|
+
/** Organization identifier - containerId as well as UUID identifier is supported. */
|
|
294
|
+
containerId: string;
|
|
295
|
+
/** Label name. */
|
|
296
|
+
keys?: DeleteOrganizationLabelsRequestKeysList;
|
|
297
|
+
}
|
|
298
|
+
export const DeleteOrganizationLabelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
299
|
+
S.Struct({
|
|
300
|
+
containerId: S.String.pipe(T.Label()),
|
|
301
|
+
keys: S.optional(DeleteOrganizationLabelsRequestKeysList.pipe(T.Query())),
|
|
302
|
+
}).pipe(
|
|
303
|
+
T.Http({
|
|
304
|
+
method: "DELETE",
|
|
305
|
+
uri: "/v2/organizations/{containerId}/labels",
|
|
306
|
+
code: 200,
|
|
307
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
308
|
+
}),
|
|
309
|
+
),
|
|
310
|
+
).annotate({
|
|
311
|
+
identifier: "DeleteOrganizationLabelsRequest",
|
|
312
|
+
}) as any as S.Schema<DeleteOrganizationLabelsRequest>;
|
|
313
|
+
|
|
314
|
+
export interface DeleteOrganizationLabelsResponse {}
|
|
315
|
+
export const DeleteOrganizationLabelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
316
|
+
S.Struct({}),
|
|
317
|
+
).annotate({
|
|
318
|
+
identifier: "DeleteOrganizationLabelsResponse",
|
|
319
|
+
}) as any as S.Schema<DeleteOrganizationLabelsResponse>;
|
|
320
|
+
|
|
321
|
+
export interface DeleteProjectRequest {
|
|
322
|
+
/** Project identifier - containerId as well as UUID identifier is supported. */
|
|
323
|
+
id: string;
|
|
324
|
+
}
|
|
325
|
+
export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() =>
|
|
326
|
+
S.Struct({
|
|
327
|
+
id: S.String.pipe(T.Label()),
|
|
328
|
+
}).pipe(
|
|
329
|
+
T.Http({
|
|
330
|
+
method: "DELETE",
|
|
331
|
+
uri: "/v2/projects/{id}",
|
|
332
|
+
code: 200,
|
|
333
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
334
|
+
}),
|
|
335
|
+
),
|
|
336
|
+
).annotate({
|
|
337
|
+
identifier: "DeleteProjectRequest",
|
|
338
|
+
}) as any as S.Schema<DeleteProjectRequest>;
|
|
339
|
+
|
|
340
|
+
export interface DeleteProjectResponse {}
|
|
341
|
+
export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() =>
|
|
342
|
+
S.Struct({}),
|
|
343
|
+
).annotate({
|
|
344
|
+
identifier: "DeleteProjectResponse",
|
|
345
|
+
}) as any as S.Schema<DeleteProjectResponse>;
|
|
346
|
+
|
|
347
|
+
export type DeleteProjectLabelsRequestKeysList = Array<string>;
|
|
348
|
+
export const DeleteProjectLabelsRequestKeysList = /*@__PURE__*/ S.Array(
|
|
349
|
+
S.String,
|
|
350
|
+
) as any as S.Schema<DeleteProjectLabelsRequestKeysList>;
|
|
351
|
+
|
|
352
|
+
export interface DeleteProjectLabelsRequest {
|
|
353
|
+
/** Project identifier - containerId as well as UUID identifier is supported. */
|
|
354
|
+
containerId: string;
|
|
355
|
+
/** Label name. */
|
|
356
|
+
keys?: DeleteProjectLabelsRequestKeysList;
|
|
357
|
+
}
|
|
358
|
+
export const DeleteProjectLabelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
359
|
+
S.Struct({
|
|
360
|
+
containerId: S.String.pipe(T.Label()),
|
|
361
|
+
keys: S.optional(DeleteProjectLabelsRequestKeysList.pipe(T.Query())),
|
|
362
|
+
}).pipe(
|
|
363
|
+
T.Http({
|
|
364
|
+
method: "DELETE",
|
|
365
|
+
uri: "/v2/projects/{containerId}/labels",
|
|
366
|
+
code: 200,
|
|
367
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
368
|
+
}),
|
|
369
|
+
),
|
|
370
|
+
).annotate({
|
|
371
|
+
identifier: "DeleteProjectLabelsRequest",
|
|
372
|
+
}) as any as S.Schema<DeleteProjectLabelsRequest>;
|
|
373
|
+
|
|
374
|
+
export interface DeleteProjectLabelsResponse {}
|
|
375
|
+
export const DeleteProjectLabelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
376
|
+
S.Struct({}),
|
|
377
|
+
).annotate({
|
|
378
|
+
identifier: "DeleteProjectLabelsResponse",
|
|
379
|
+
}) as any as S.Schema<DeleteProjectLabelsResponse>;
|
|
380
|
+
|
|
381
|
+
export interface GetFolderDetailsRequest {
|
|
382
|
+
/** Folder identifier - containerId as well as UUID identifier is supported. */
|
|
383
|
+
containerId: string;
|
|
384
|
+
includeParents?: boolean;
|
|
385
|
+
}
|
|
386
|
+
export const GetFolderDetailsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
387
|
+
S.Struct({
|
|
388
|
+
containerId: S.String.pipe(T.Label()),
|
|
389
|
+
includeParents: S.optional(S.Boolean.pipe(T.Query())),
|
|
390
|
+
}).pipe(
|
|
391
|
+
T.Http({
|
|
392
|
+
method: "GET",
|
|
393
|
+
uri: "/v2/folders/{containerId}",
|
|
394
|
+
code: 200,
|
|
395
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
396
|
+
}),
|
|
397
|
+
),
|
|
398
|
+
).annotate({
|
|
399
|
+
identifier: "GetFolderDetailsRequest",
|
|
400
|
+
}) as any as S.Schema<GetFolderDetailsRequest>;
|
|
401
|
+
|
|
402
|
+
/** Parent container type. */
|
|
403
|
+
export type ParentListItemType = "FOLDER" | "ORGANIZATION";
|
|
404
|
+
export const ParentListItemType = /*@__PURE__*/ S.String;
|
|
405
|
+
|
|
406
|
+
export interface ParentListItem {
|
|
407
|
+
/** User-friendly identifier of either organization or folder (will replace id). */
|
|
408
|
+
containerId: string;
|
|
409
|
+
/** User-friendly parent identifier of either organization or folder (will replace parentId). */
|
|
410
|
+
containerParentId?: string;
|
|
411
|
+
/** Identifier. */
|
|
412
|
+
id: string;
|
|
413
|
+
/** Parent container name. */
|
|
414
|
+
name: string;
|
|
415
|
+
/** Identifier of the parent resource container. */
|
|
416
|
+
parentId?: string;
|
|
417
|
+
/** Parent container type. */
|
|
418
|
+
type: ParentListItemType;
|
|
419
|
+
}
|
|
420
|
+
export const ParentListItem = /*@__PURE__*/ S.suspend(() =>
|
|
421
|
+
S.Struct({
|
|
422
|
+
containerId: S.String,
|
|
423
|
+
containerParentId: S.optional(S.String),
|
|
424
|
+
id: S.String,
|
|
425
|
+
name: S.String,
|
|
426
|
+
parentId: S.optional(S.String),
|
|
427
|
+
type: ParentListItemType,
|
|
428
|
+
}),
|
|
429
|
+
).annotate({ identifier: "ParentListItem" }) as any as S.Schema<ParentListItem>;
|
|
430
|
+
|
|
431
|
+
export type ParentList = Array<ParentListItem>;
|
|
432
|
+
export const ParentList = /*@__PURE__*/ S.Array(
|
|
433
|
+
ParentListItem,
|
|
434
|
+
) as any as S.Schema<ParentList>;
|
|
435
|
+
|
|
436
|
+
export interface GetFolderDetailsResponse {
|
|
437
|
+
/** Globally unique user-friendly identifier. */
|
|
438
|
+
containerId: string;
|
|
439
|
+
/** Timestamp at which the folder was created. */
|
|
440
|
+
creationTime: string;
|
|
441
|
+
/** Globally unique folder identifier. */
|
|
442
|
+
folderId: string;
|
|
443
|
+
labels?: Labels;
|
|
444
|
+
/** Folder name. */
|
|
445
|
+
name: string;
|
|
446
|
+
parent: Parent;
|
|
447
|
+
parents?: ParentList;
|
|
448
|
+
/** Timestamp at which the folder was last modified. */
|
|
449
|
+
updateTime: string;
|
|
450
|
+
}
|
|
451
|
+
export const GetFolderDetailsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
452
|
+
S.Struct({
|
|
453
|
+
containerId: S.String,
|
|
454
|
+
creationTime: S.String,
|
|
455
|
+
folderId: S.String,
|
|
456
|
+
labels: S.optional(Labels),
|
|
457
|
+
name: S.String,
|
|
458
|
+
parent: Parent,
|
|
459
|
+
parents: S.optional(ParentList),
|
|
460
|
+
updateTime: S.String,
|
|
461
|
+
}),
|
|
462
|
+
).annotate({
|
|
463
|
+
identifier: "GetFolderDetailsResponse",
|
|
464
|
+
}) as any as S.Schema<GetFolderDetailsResponse>;
|
|
465
|
+
|
|
466
|
+
export interface GetOrganizationRequest {
|
|
467
|
+
/** Organization identifier - containerId as well as UUID identifier is supported. */
|
|
468
|
+
id: string;
|
|
469
|
+
}
|
|
470
|
+
export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
471
|
+
S.Struct({
|
|
472
|
+
id: S.String.pipe(T.Label()),
|
|
473
|
+
}).pipe(
|
|
474
|
+
T.Http({
|
|
475
|
+
method: "GET",
|
|
476
|
+
uri: "/v2/organizations/{id}",
|
|
477
|
+
code: 200,
|
|
478
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
479
|
+
}),
|
|
480
|
+
),
|
|
481
|
+
).annotate({
|
|
482
|
+
identifier: "GetOrganizationRequest",
|
|
483
|
+
}) as any as S.Schema<GetOrganizationRequest>;
|
|
484
|
+
|
|
485
|
+
export interface OrganizationResponse {
|
|
486
|
+
/** Globally unique, user-friendly identifier. */
|
|
487
|
+
containerId: string;
|
|
488
|
+
/** Timestamp at which the organization was created. */
|
|
489
|
+
creationTime: string;
|
|
490
|
+
labels?: Labels;
|
|
491
|
+
lifecycleState: LifecycleState;
|
|
492
|
+
/** Organization name. */
|
|
493
|
+
name: string;
|
|
494
|
+
/** Globally unique, organization identifier. */
|
|
495
|
+
organizationId: string;
|
|
496
|
+
/** Timestamp at which the organization was last modified. */
|
|
497
|
+
updateTime: string;
|
|
498
|
+
}
|
|
499
|
+
export const OrganizationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
500
|
+
S.Struct({
|
|
501
|
+
containerId: S.String,
|
|
502
|
+
creationTime: S.String,
|
|
503
|
+
labels: S.optional(Labels),
|
|
504
|
+
lifecycleState: LifecycleState,
|
|
505
|
+
name: S.String,
|
|
506
|
+
organizationId: S.String,
|
|
507
|
+
updateTime: S.String,
|
|
508
|
+
}),
|
|
509
|
+
).annotate({
|
|
510
|
+
identifier: "OrganizationResponse",
|
|
511
|
+
}) as any as S.Schema<OrganizationResponse>;
|
|
512
|
+
|
|
513
|
+
export interface GetProjectRequest {
|
|
514
|
+
/** Project identifier - containerId as well as UUID identifier is supported. */
|
|
515
|
+
id: string;
|
|
516
|
+
includeParents?: boolean;
|
|
517
|
+
}
|
|
518
|
+
export const GetProjectRequest = /*@__PURE__*/ S.suspend(() =>
|
|
519
|
+
S.Struct({
|
|
520
|
+
id: S.String.pipe(T.Label()),
|
|
521
|
+
includeParents: S.optional(S.Boolean.pipe(T.Query())),
|
|
522
|
+
}).pipe(
|
|
523
|
+
T.Http({
|
|
524
|
+
method: "GET",
|
|
525
|
+
uri: "/v2/projects/{id}",
|
|
526
|
+
code: 200,
|
|
527
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
528
|
+
}),
|
|
529
|
+
),
|
|
530
|
+
).annotate({
|
|
531
|
+
identifier: "GetProjectRequest",
|
|
532
|
+
}) as any as S.Schema<GetProjectRequest>;
|
|
533
|
+
|
|
534
|
+
export interface GetProjectResponse {
|
|
535
|
+
/** Globally unique identifier. */
|
|
536
|
+
containerId: string;
|
|
537
|
+
/** Timestamp at which the project was created. */
|
|
538
|
+
creationTime: string;
|
|
539
|
+
labels?: Labels;
|
|
540
|
+
lifecycleState: LifecycleState;
|
|
541
|
+
/** Project name. */
|
|
542
|
+
name: string;
|
|
543
|
+
parent: Parent;
|
|
544
|
+
parents?: ParentList;
|
|
545
|
+
/** Globally unique identifier. */
|
|
546
|
+
projectId: string;
|
|
547
|
+
/** Timestamp at which the project was last modified. */
|
|
548
|
+
updateTime: string;
|
|
549
|
+
}
|
|
550
|
+
export const GetProjectResponse = /*@__PURE__*/ S.suspend(() =>
|
|
551
|
+
S.Struct({
|
|
552
|
+
containerId: S.String,
|
|
553
|
+
creationTime: S.String,
|
|
554
|
+
labels: S.optional(Labels),
|
|
555
|
+
lifecycleState: LifecycleState,
|
|
556
|
+
name: S.String,
|
|
557
|
+
parent: Parent,
|
|
558
|
+
parents: S.optional(ParentList),
|
|
559
|
+
projectId: S.String,
|
|
560
|
+
updateTime: S.String,
|
|
561
|
+
}),
|
|
562
|
+
).annotate({
|
|
563
|
+
identifier: "GetProjectResponse",
|
|
564
|
+
}) as any as S.Schema<GetProjectResponse>;
|
|
565
|
+
|
|
566
|
+
export type ListFoldersRequestContainerIdsList = Array<string>;
|
|
567
|
+
export const ListFoldersRequestContainerIdsList = /*@__PURE__*/ S.Array(
|
|
568
|
+
S.String,
|
|
569
|
+
) as any as S.Schema<ListFoldersRequestContainerIdsList>;
|
|
570
|
+
|
|
571
|
+
export interface ListFoldersRequest {
|
|
572
|
+
/** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
|
|
573
|
+
containerParentId?: string;
|
|
574
|
+
/** List of container identifiers - containerId as well as UUID identifier is supported. */
|
|
575
|
+
containerIds?: ListFoldersRequestContainerIdsList;
|
|
576
|
+
/** E-Mail address of the user for whom the visible resource containers should be filtered. */
|
|
577
|
+
member?: string;
|
|
578
|
+
/** The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used. */
|
|
579
|
+
limit?: number;
|
|
580
|
+
/** The offset of the first item in the collection to return. */
|
|
581
|
+
offset?: number;
|
|
582
|
+
/** A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time. */
|
|
583
|
+
creation_time_start?: string;
|
|
584
|
+
}
|
|
585
|
+
export const ListFoldersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
586
|
+
S.Struct({
|
|
587
|
+
containerParentId: S.optional(S.String.pipe(T.Query())),
|
|
588
|
+
containerIds: S.optional(
|
|
589
|
+
ListFoldersRequestContainerIdsList.pipe(T.Query()),
|
|
590
|
+
),
|
|
591
|
+
member: S.optional(S.String.pipe(T.Query())),
|
|
592
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
593
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
594
|
+
creation_time_start: S.optional(
|
|
595
|
+
S.String.pipe(T.Query("creation-time-start")),
|
|
596
|
+
),
|
|
597
|
+
}).pipe(
|
|
598
|
+
T.Http({
|
|
599
|
+
method: "GET",
|
|
600
|
+
uri: "/v2/folders",
|
|
601
|
+
code: 200,
|
|
602
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
603
|
+
}),
|
|
604
|
+
),
|
|
605
|
+
).annotate({
|
|
606
|
+
identifier: "ListFoldersRequest",
|
|
607
|
+
}) as any as S.Schema<ListFoldersRequest>;
|
|
608
|
+
|
|
609
|
+
export interface ListFoldersResponseItemsItem {
|
|
610
|
+
/** Globally unique folder identifier. */
|
|
611
|
+
containerId: string;
|
|
612
|
+
/** Timestamp at which the folder was created. */
|
|
613
|
+
creationTime: string;
|
|
614
|
+
/** Globally unique folder identifier. */
|
|
615
|
+
folderId: string;
|
|
616
|
+
labels?: Labels;
|
|
617
|
+
/** Name of the folder. */
|
|
618
|
+
name: string;
|
|
619
|
+
parent: Parent;
|
|
620
|
+
/** Timestamp at which the folder was created. */
|
|
621
|
+
updateTime: string;
|
|
622
|
+
}
|
|
623
|
+
export const ListFoldersResponseItemsItem = /*@__PURE__*/ S.suspend(() =>
|
|
624
|
+
S.Struct({
|
|
625
|
+
containerId: S.String,
|
|
626
|
+
creationTime: S.String,
|
|
627
|
+
folderId: S.String,
|
|
628
|
+
labels: S.optional(Labels),
|
|
629
|
+
name: S.String,
|
|
630
|
+
parent: Parent,
|
|
631
|
+
updateTime: S.String,
|
|
632
|
+
}),
|
|
633
|
+
).annotate({
|
|
634
|
+
identifier: "ListFoldersResponseItemsItem",
|
|
635
|
+
}) as any as S.Schema<ListFoldersResponseItemsItem>;
|
|
636
|
+
|
|
637
|
+
export type ListFoldersResponseItemsList = Array<ListFoldersResponseItemsItem>;
|
|
638
|
+
export const ListFoldersResponseItemsList = /*@__PURE__*/ S.Array(
|
|
639
|
+
ListFoldersResponseItemsItem,
|
|
640
|
+
) as any as S.Schema<ListFoldersResponseItemsList>;
|
|
641
|
+
|
|
642
|
+
export interface ListFoldersResponse {
|
|
643
|
+
items: ListFoldersResponseItemsList;
|
|
644
|
+
limit: number;
|
|
645
|
+
offset: number;
|
|
646
|
+
}
|
|
647
|
+
export const ListFoldersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
648
|
+
S.Struct({
|
|
649
|
+
items: ListFoldersResponseItemsList,
|
|
650
|
+
limit: S.Number,
|
|
651
|
+
offset: S.Number,
|
|
652
|
+
}),
|
|
653
|
+
).annotate({
|
|
654
|
+
identifier: "ListFoldersResponse",
|
|
655
|
+
}) as any as S.Schema<ListFoldersResponse>;
|
|
656
|
+
|
|
657
|
+
export type ListOrganizationsRequestContainerIdsList = Array<string>;
|
|
658
|
+
export const ListOrganizationsRequestContainerIdsList = /*@__PURE__*/ S.Array(
|
|
659
|
+
S.String,
|
|
660
|
+
) as any as S.Schema<ListOrganizationsRequestContainerIdsList>;
|
|
661
|
+
|
|
662
|
+
export interface ListOrganizationsRequest {
|
|
663
|
+
/** Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed. */
|
|
664
|
+
containerIds?: ListOrganizationsRequestContainerIdsList;
|
|
665
|
+
/** E-Mail address of the user for whom the visible resource containers should be filtered. */
|
|
666
|
+
member?: string;
|
|
667
|
+
/** The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used. */
|
|
668
|
+
limit?: number;
|
|
669
|
+
/** The offset of the first item in the collection to return. */
|
|
670
|
+
offset?: number;
|
|
671
|
+
/** A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time. */
|
|
672
|
+
creation_time_start?: string;
|
|
673
|
+
}
|
|
674
|
+
export const ListOrganizationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
675
|
+
S.Struct({
|
|
676
|
+
containerIds: S.optional(
|
|
677
|
+
ListOrganizationsRequestContainerIdsList.pipe(T.Query()),
|
|
678
|
+
),
|
|
679
|
+
member: S.optional(S.String.pipe(T.Query())),
|
|
680
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
681
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
682
|
+
creation_time_start: S.optional(
|
|
683
|
+
S.String.pipe(T.Query("creation-time-start")),
|
|
684
|
+
),
|
|
685
|
+
}).pipe(
|
|
686
|
+
T.Http({
|
|
687
|
+
method: "GET",
|
|
688
|
+
uri: "/v2/organizations",
|
|
689
|
+
code: 200,
|
|
690
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
691
|
+
}),
|
|
692
|
+
),
|
|
693
|
+
).annotate({
|
|
694
|
+
identifier: "ListOrganizationsRequest",
|
|
695
|
+
}) as any as S.Schema<ListOrganizationsRequest>;
|
|
696
|
+
|
|
697
|
+
export interface ListOrganizationsResponseItemsItem {
|
|
698
|
+
/** Globally unique, user-friendly identifier. */
|
|
699
|
+
containerId: string;
|
|
700
|
+
/** Timestamp at which the organization was created. */
|
|
701
|
+
creationTime: string;
|
|
702
|
+
labels?: Labels;
|
|
703
|
+
lifecycleState: LifecycleState;
|
|
704
|
+
/** Name of the organization. */
|
|
705
|
+
name: string;
|
|
706
|
+
/** Globally unique, organization identifier. */
|
|
707
|
+
organizationId: string;
|
|
708
|
+
/** Timestamp at which the organization was last modified. */
|
|
709
|
+
updateTime: string;
|
|
710
|
+
}
|
|
711
|
+
export const ListOrganizationsResponseItemsItem = /*@__PURE__*/ S.suspend(() =>
|
|
712
|
+
S.Struct({
|
|
713
|
+
containerId: S.String,
|
|
714
|
+
creationTime: S.String,
|
|
715
|
+
labels: S.optional(Labels),
|
|
716
|
+
lifecycleState: LifecycleState,
|
|
717
|
+
name: S.String,
|
|
718
|
+
organizationId: S.String,
|
|
719
|
+
updateTime: S.String,
|
|
720
|
+
}),
|
|
721
|
+
).annotate({
|
|
722
|
+
identifier: "ListOrganizationsResponseItemsItem",
|
|
723
|
+
}) as any as S.Schema<ListOrganizationsResponseItemsItem>;
|
|
724
|
+
|
|
725
|
+
export type ListOrganizationsResponseItemsList =
|
|
726
|
+
Array<ListOrganizationsResponseItemsItem>;
|
|
727
|
+
export const ListOrganizationsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
728
|
+
ListOrganizationsResponseItemsItem,
|
|
729
|
+
) as any as S.Schema<ListOrganizationsResponseItemsList>;
|
|
730
|
+
|
|
731
|
+
export interface ListOrganizationsResponse {
|
|
732
|
+
items: ListOrganizationsResponseItemsList;
|
|
733
|
+
limit: number;
|
|
734
|
+
offset: number;
|
|
735
|
+
}
|
|
736
|
+
export const ListOrganizationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
737
|
+
S.Struct({
|
|
738
|
+
items: ListOrganizationsResponseItemsList,
|
|
739
|
+
limit: S.Number,
|
|
740
|
+
offset: S.Number,
|
|
741
|
+
}),
|
|
742
|
+
).annotate({
|
|
743
|
+
identifier: "ListOrganizationsResponse",
|
|
744
|
+
}) as any as S.Schema<ListOrganizationsResponse>;
|
|
745
|
+
|
|
746
|
+
export type ListProjectsRequestContainerIdsList = Array<string>;
|
|
747
|
+
export const ListProjectsRequestContainerIdsList = /*@__PURE__*/ S.Array(
|
|
748
|
+
S.String,
|
|
749
|
+
) as any as S.Schema<ListProjectsRequestContainerIdsList>;
|
|
750
|
+
|
|
751
|
+
export interface ListProjectsRequest {
|
|
752
|
+
/** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
|
|
753
|
+
containerParentId?: string;
|
|
754
|
+
/** List of container identifiers - containerId as well as UUID identifier is supported. */
|
|
755
|
+
containerIds?: ListProjectsRequestContainerIdsList;
|
|
756
|
+
/** E-Mail address of the user for whom the visible resource containers should be filtered. */
|
|
757
|
+
member?: string;
|
|
758
|
+
/** The offset of the first item in the collection to return. */
|
|
759
|
+
offset?: number;
|
|
760
|
+
/** The maximum number of projects to return in the response. If not present, an appropriate default will be used. If maximum is exceeded, maximum is used. */
|
|
761
|
+
limit?: number;
|
|
762
|
+
/** A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time. */
|
|
763
|
+
creation_time_start?: string;
|
|
764
|
+
}
|
|
765
|
+
export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
766
|
+
S.Struct({
|
|
767
|
+
containerParentId: S.optional(S.String.pipe(T.Query())),
|
|
768
|
+
containerIds: S.optional(
|
|
769
|
+
ListProjectsRequestContainerIdsList.pipe(T.Query()),
|
|
770
|
+
),
|
|
771
|
+
member: S.optional(S.String.pipe(T.Query())),
|
|
772
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
773
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
774
|
+
creation_time_start: S.optional(
|
|
775
|
+
S.String.pipe(T.Query("creation-time-start")),
|
|
776
|
+
),
|
|
777
|
+
}).pipe(
|
|
778
|
+
T.Http({
|
|
779
|
+
method: "GET",
|
|
780
|
+
uri: "/v2/projects",
|
|
781
|
+
code: 200,
|
|
782
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
783
|
+
}),
|
|
784
|
+
),
|
|
785
|
+
).annotate({
|
|
786
|
+
identifier: "ListProjectsRequest",
|
|
787
|
+
}) as any as S.Schema<ListProjectsRequest>;
|
|
788
|
+
|
|
789
|
+
export type ListProjectsResponseItemsList = Array<Project>;
|
|
790
|
+
export const ListProjectsResponseItemsList = /*@__PURE__*/ S.Array(
|
|
791
|
+
Project,
|
|
792
|
+
) as any as S.Schema<ListProjectsResponseItemsList>;
|
|
793
|
+
|
|
794
|
+
export interface ListProjectsResponse {
|
|
795
|
+
items: ListProjectsResponseItemsList;
|
|
796
|
+
limit: number;
|
|
797
|
+
offset: number;
|
|
798
|
+
}
|
|
799
|
+
export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
800
|
+
S.Struct({
|
|
801
|
+
items: ListProjectsResponseItemsList,
|
|
802
|
+
limit: S.Number,
|
|
803
|
+
offset: S.Number,
|
|
804
|
+
}),
|
|
805
|
+
).annotate({
|
|
806
|
+
identifier: "ListProjectsResponse",
|
|
807
|
+
}) as any as S.Schema<ListProjectsResponse>;
|
|
808
|
+
|
|
809
|
+
/** Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.* */
|
|
810
|
+
export type UpdateLabels = { [key: string]: string | undefined };
|
|
811
|
+
export const UpdateLabels = /*@__PURE__*/ S.Record(
|
|
812
|
+
S.String,
|
|
813
|
+
S.String,
|
|
814
|
+
) as any as S.Schema<UpdateLabels>;
|
|
815
|
+
|
|
816
|
+
export interface PartialUpdateFolderRequest {
|
|
817
|
+
/** Folder identifier - containerId as well as UUID identifier is supported. */
|
|
818
|
+
containerId: string;
|
|
819
|
+
/** New parent identifier for the resource container - containerId as well as UUID identifier is supported. */
|
|
820
|
+
containerParentId?: string;
|
|
821
|
+
labels?: UpdateLabels;
|
|
822
|
+
/** New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
|
|
823
|
+
name?: string;
|
|
824
|
+
}
|
|
825
|
+
export const PartialUpdateFolderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
826
|
+
S.Struct({
|
|
827
|
+
containerId: S.String.pipe(T.Label()),
|
|
828
|
+
containerParentId: S.optional(S.String),
|
|
829
|
+
labels: S.optional(UpdateLabels),
|
|
830
|
+
name: S.optional(S.String),
|
|
831
|
+
}).pipe(
|
|
832
|
+
T.Http({
|
|
833
|
+
method: "PATCH",
|
|
834
|
+
uri: "/v2/folders/{containerId}",
|
|
835
|
+
code: 200,
|
|
836
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
837
|
+
}),
|
|
838
|
+
),
|
|
839
|
+
).annotate({
|
|
840
|
+
identifier: "PartialUpdateFolderRequest",
|
|
841
|
+
}) as any as S.Schema<PartialUpdateFolderRequest>;
|
|
842
|
+
|
|
843
|
+
export interface PartialUpdateOrganizationRequest {
|
|
844
|
+
/** Organization identifier - containerId as well as UUID identifier is supported. */
|
|
845
|
+
id: string;
|
|
846
|
+
labels?: UpdateLabels;
|
|
847
|
+
/** The new name of the organization matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
|
|
848
|
+
name?: string;
|
|
849
|
+
}
|
|
850
|
+
export const PartialUpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
851
|
+
S.Struct({
|
|
852
|
+
id: S.String.pipe(T.Label()),
|
|
853
|
+
labels: S.optional(UpdateLabels),
|
|
854
|
+
name: S.optional(S.String),
|
|
855
|
+
}).pipe(
|
|
856
|
+
T.Http({
|
|
857
|
+
method: "PATCH",
|
|
858
|
+
uri: "/v2/organizations/{id}",
|
|
859
|
+
code: 200,
|
|
860
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
861
|
+
}),
|
|
862
|
+
),
|
|
863
|
+
).annotate({
|
|
864
|
+
identifier: "PartialUpdateOrganizationRequest",
|
|
865
|
+
}) as any as S.Schema<PartialUpdateOrganizationRequest>;
|
|
866
|
+
|
|
867
|
+
export interface PartialUpdateProjectRequest {
|
|
868
|
+
/** Project identifier - containerId as well as UUID identifier is supported. */
|
|
869
|
+
id: string;
|
|
870
|
+
/** New parent identifier for the resource container - containerId as well as UUID identifier is supported. */
|
|
871
|
+
containerParentId?: string;
|
|
872
|
+
labels?: UpdateLabels;
|
|
873
|
+
/** New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
|
|
874
|
+
name?: string;
|
|
875
|
+
}
|
|
876
|
+
export const PartialUpdateProjectRequest = /*@__PURE__*/ S.suspend(() =>
|
|
877
|
+
S.Struct({
|
|
878
|
+
id: S.String.pipe(T.Label()),
|
|
879
|
+
containerParentId: S.optional(S.String),
|
|
880
|
+
labels: S.optional(UpdateLabels),
|
|
881
|
+
name: S.optional(S.String),
|
|
882
|
+
}).pipe(
|
|
883
|
+
T.Http({
|
|
884
|
+
method: "PATCH",
|
|
885
|
+
uri: "/v2/projects/{id}",
|
|
886
|
+
code: 200,
|
|
887
|
+
baseUrl: "https://resource-manager.api.stackit.cloud",
|
|
888
|
+
}),
|
|
889
|
+
),
|
|
890
|
+
).annotate({
|
|
891
|
+
identifier: "PartialUpdateProjectRequest",
|
|
892
|
+
}) as any as S.Schema<PartialUpdateProjectRequest>;
|
|
893
|
+
|
|
894
|
+
export type CreateFolderError =
|
|
895
|
+
| BadRequest
|
|
896
|
+
| Forbidden
|
|
897
|
+
| Conflict
|
|
898
|
+
| StackitOpError;
|
|
899
|
+
/** Create Folder Creates a new folder within a parent organization or folder. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.folder.create (required permission on the target parent organization or folder to create a folder). */
|
|
900
|
+
export const createFolder: API.OperationMethod<
|
|
901
|
+
CreateFolderRequest,
|
|
902
|
+
FolderResponse,
|
|
903
|
+
CreateFolderError,
|
|
904
|
+
StackitOpContext
|
|
905
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
906
|
+
input: CreateFolderRequest,
|
|
907
|
+
output: FolderResponse,
|
|
908
|
+
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
909
|
+
protocol: StackitProtocol,
|
|
910
|
+
retry: Retry.Retry,
|
|
911
|
+
}));
|
|
912
|
+
|
|
913
|
+
export type CreateProjectError =
|
|
914
|
+
| BadRequest
|
|
915
|
+
| Forbidden
|
|
916
|
+
| Conflict
|
|
917
|
+
| StackitOpError;
|
|
918
|
+
/** Create Project Creates a new project within a parent container. - Creation request returns synchronously, while underlying resource provisioning runs asynchronously. - Initial lifecycle state is CREATING until provisioning completes. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.project.create (required permission on the target parent organization or folder to create a project). */
|
|
919
|
+
export const createProject: API.OperationMethod<
|
|
920
|
+
CreateProjectRequest,
|
|
921
|
+
Project,
|
|
922
|
+
CreateProjectError,
|
|
923
|
+
StackitOpContext
|
|
924
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
925
|
+
input: CreateProjectRequest,
|
|
926
|
+
output: Project,
|
|
927
|
+
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
928
|
+
protocol: StackitProtocol,
|
|
929
|
+
retry: Retry.Retry,
|
|
930
|
+
}));
|
|
931
|
+
|
|
932
|
+
export type DeleteFolderError = NotFound | Conflict | StackitOpError;
|
|
933
|
+
/** Delete Folder Delete a folder and its metadata. - Folder must not contain active child containers unless force deletion is enabled without attached projects. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.delete (required permission on the target folder to delete it). */
|
|
934
|
+
export const deleteFolder: API.OperationMethod<
|
|
935
|
+
DeleteFolderRequest,
|
|
936
|
+
DeleteFolderResponse,
|
|
937
|
+
DeleteFolderError,
|
|
938
|
+
StackitOpContext
|
|
939
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
940
|
+
input: DeleteFolderRequest,
|
|
941
|
+
output: DeleteFolderResponse,
|
|
942
|
+
errors: [NotFound, Conflict, UnknownStackitError],
|
|
943
|
+
protocol: StackitProtocol,
|
|
944
|
+
retry: Retry.Retry,
|
|
945
|
+
}));
|
|
946
|
+
|
|
947
|
+
export type DeleteFolderLabelsError = Conflict | StackitOpError;
|
|
948
|
+
/** Delete Folder Labels Deletes folder labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Folder: resource-manager.folder.edit (required permission on the target folder to delete its labels). */
|
|
949
|
+
export const deleteFolderLabels: API.OperationMethod<
|
|
950
|
+
DeleteFolderLabelsRequest,
|
|
951
|
+
DeleteFolderLabelsResponse,
|
|
952
|
+
DeleteFolderLabelsError,
|
|
953
|
+
StackitOpContext
|
|
954
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
955
|
+
input: DeleteFolderLabelsRequest,
|
|
956
|
+
output: DeleteFolderLabelsResponse,
|
|
957
|
+
errors: [Conflict, UnknownStackitError],
|
|
958
|
+
protocol: StackitProtocol,
|
|
959
|
+
retry: Retry.Retry,
|
|
960
|
+
}));
|
|
961
|
+
|
|
962
|
+
export type DeleteOrganizationLabelsError = Conflict | StackitOpError;
|
|
963
|
+
/** Delete Organization Labels Deletes organization labels by specified keys, or removes all labels if no key is provided. Authorization & Permissions: - Evaluated on Target Organization: resource-manager.organization.edit (required permission on the organization to delete labels). */
|
|
964
|
+
export const deleteOrganizationLabels: API.OperationMethod<
|
|
965
|
+
DeleteOrganizationLabelsRequest,
|
|
966
|
+
DeleteOrganizationLabelsResponse,
|
|
967
|
+
DeleteOrganizationLabelsError,
|
|
968
|
+
StackitOpContext
|
|
969
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
970
|
+
input: DeleteOrganizationLabelsRequest,
|
|
971
|
+
output: DeleteOrganizationLabelsResponse,
|
|
972
|
+
errors: [Conflict, UnknownStackitError],
|
|
973
|
+
protocol: StackitProtocol,
|
|
974
|
+
retry: Retry.Retry,
|
|
975
|
+
}));
|
|
976
|
+
|
|
977
|
+
export type DeleteProjectError = Conflict | StackitOpError;
|
|
978
|
+
/** Delete Project Triggers the deletion of a project. - Request returns synchronously, while deletion process runs asynchronously. - Initial lifecycle state is DELETING until workflow completes. Authorization & Permissions: - Evaluated on Target Project: resource-manager.project.delete (required permission on the project to delete it). */
|
|
979
|
+
export const deleteProject: API.OperationMethod<
|
|
980
|
+
DeleteProjectRequest,
|
|
981
|
+
DeleteProjectResponse,
|
|
982
|
+
DeleteProjectError,
|
|
983
|
+
StackitOpContext
|
|
984
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
985
|
+
input: DeleteProjectRequest,
|
|
986
|
+
output: DeleteProjectResponse,
|
|
987
|
+
errors: [Conflict, UnknownStackitError],
|
|
988
|
+
protocol: StackitProtocol,
|
|
989
|
+
retry: Retry.Retry,
|
|
990
|
+
}));
|
|
991
|
+
|
|
992
|
+
export type DeleteProjectLabelsError = Conflict | StackitOpError;
|
|
993
|
+
/** 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). */
|
|
994
|
+
export const deleteProjectLabels: API.OperationMethod<
|
|
995
|
+
DeleteProjectLabelsRequest,
|
|
996
|
+
DeleteProjectLabelsResponse,
|
|
997
|
+
DeleteProjectLabelsError,
|
|
998
|
+
StackitOpContext
|
|
999
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1000
|
+
input: DeleteProjectLabelsRequest,
|
|
1001
|
+
output: DeleteProjectLabelsResponse,
|
|
1002
|
+
errors: [Conflict, UnknownStackitError],
|
|
1003
|
+
protocol: StackitProtocol,
|
|
1004
|
+
retry: Retry.Retry,
|
|
1005
|
+
}));
|
|
1006
|
+
|
|
1007
|
+
export type GetFolderDetailsError = Forbidden | NotFound | StackitOpError;
|
|
1008
|
+
/** 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. */
|
|
1009
|
+
export const getFolderDetails: API.OperationMethod<
|
|
1010
|
+
GetFolderDetailsRequest,
|
|
1011
|
+
GetFolderDetailsResponse,
|
|
1012
|
+
GetFolderDetailsError,
|
|
1013
|
+
StackitOpContext
|
|
1014
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1015
|
+
input: GetFolderDetailsRequest,
|
|
1016
|
+
output: GetFolderDetailsResponse,
|
|
1017
|
+
errors: [Forbidden, NotFound, UnknownStackitError],
|
|
1018
|
+
protocol: StackitProtocol,
|
|
1019
|
+
retry: Retry.Retry,
|
|
1020
|
+
}));
|
|
1021
|
+
|
|
1022
|
+
export type GetOrganizationError = NotFound | StackitOpError;
|
|
1023
|
+
/** 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). */
|
|
1024
|
+
export const getOrganization: API.OperationMethod<
|
|
1025
|
+
GetOrganizationRequest,
|
|
1026
|
+
OrganizationResponse,
|
|
1027
|
+
GetOrganizationError,
|
|
1028
|
+
StackitOpContext
|
|
1029
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1030
|
+
input: GetOrganizationRequest,
|
|
1031
|
+
output: OrganizationResponse,
|
|
1032
|
+
errors: [NotFound, UnknownStackitError],
|
|
1033
|
+
protocol: StackitProtocol,
|
|
1034
|
+
retry: Retry.Retry,
|
|
1035
|
+
}));
|
|
1036
|
+
|
|
1037
|
+
export type GetProjectError = Forbidden | NotFound | StackitOpError;
|
|
1038
|
+
/** 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. */
|
|
1039
|
+
export const getProject: API.OperationMethod<
|
|
1040
|
+
GetProjectRequest,
|
|
1041
|
+
GetProjectResponse,
|
|
1042
|
+
GetProjectError,
|
|
1043
|
+
StackitOpContext
|
|
1044
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1045
|
+
input: GetProjectRequest,
|
|
1046
|
+
output: GetProjectResponse,
|
|
1047
|
+
errors: [Forbidden, NotFound, UnknownStackitError],
|
|
1048
|
+
protocol: StackitProtocol,
|
|
1049
|
+
retry: Retry.Retry,
|
|
1050
|
+
}));
|
|
1051
|
+
|
|
1052
|
+
export type ListFoldersError =
|
|
1053
|
+
| BadRequest
|
|
1054
|
+
| Forbidden
|
|
1055
|
+
| Conflict
|
|
1056
|
+
| StackitOpError;
|
|
1057
|
+
/** 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. */
|
|
1058
|
+
export const listFolders: API.OperationMethod<
|
|
1059
|
+
ListFoldersRequest,
|
|
1060
|
+
ListFoldersResponse,
|
|
1061
|
+
ListFoldersError,
|
|
1062
|
+
StackitOpContext
|
|
1063
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1064
|
+
input: ListFoldersRequest,
|
|
1065
|
+
output: ListFoldersResponse,
|
|
1066
|
+
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
1067
|
+
protocol: StackitProtocol,
|
|
1068
|
+
retry: Retry.Retry,
|
|
1069
|
+
}));
|
|
1070
|
+
|
|
1071
|
+
export type ListOrganizationsError = BadRequest | Forbidden | StackitOpError;
|
|
1072
|
+
/** 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. */
|
|
1073
|
+
export const listOrganizations: API.OperationMethod<
|
|
1074
|
+
ListOrganizationsRequest,
|
|
1075
|
+
ListOrganizationsResponse,
|
|
1076
|
+
ListOrganizationsError,
|
|
1077
|
+
StackitOpContext
|
|
1078
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1079
|
+
input: ListOrganizationsRequest,
|
|
1080
|
+
output: ListOrganizationsResponse,
|
|
1081
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1082
|
+
protocol: StackitProtocol,
|
|
1083
|
+
retry: Retry.Retry,
|
|
1084
|
+
}));
|
|
1085
|
+
|
|
1086
|
+
export type ListProjectsError = BadRequest | Forbidden | StackitOpError;
|
|
1087
|
+
/** 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. */
|
|
1088
|
+
export const listProjects: API.OperationMethod<
|
|
1089
|
+
ListProjectsRequest,
|
|
1090
|
+
ListProjectsResponse,
|
|
1091
|
+
ListProjectsError,
|
|
1092
|
+
StackitOpContext
|
|
1093
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1094
|
+
input: ListProjectsRequest,
|
|
1095
|
+
output: ListProjectsResponse,
|
|
1096
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1097
|
+
protocol: StackitProtocol,
|
|
1098
|
+
retry: Retry.Retry,
|
|
1099
|
+
}));
|
|
1100
|
+
|
|
1101
|
+
export type PartialUpdateFolderError =
|
|
1102
|
+
| Forbidden
|
|
1103
|
+
| NotFound
|
|
1104
|
+
| Conflict
|
|
1105
|
+
| StackitOpError;
|
|
1106
|
+
/** 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). */
|
|
1107
|
+
export const partialUpdateFolder: API.OperationMethod<
|
|
1108
|
+
PartialUpdateFolderRequest,
|
|
1109
|
+
FolderResponse,
|
|
1110
|
+
PartialUpdateFolderError,
|
|
1111
|
+
StackitOpContext
|
|
1112
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1113
|
+
input: PartialUpdateFolderRequest,
|
|
1114
|
+
output: FolderResponse,
|
|
1115
|
+
errors: [Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1116
|
+
protocol: StackitProtocol,
|
|
1117
|
+
retry: Retry.Retry,
|
|
1118
|
+
}));
|
|
1119
|
+
|
|
1120
|
+
export type PartialUpdateOrganizationError =
|
|
1121
|
+
| NotFound
|
|
1122
|
+
| Conflict
|
|
1123
|
+
| StackitOpError;
|
|
1124
|
+
/** 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). */
|
|
1125
|
+
export const partialUpdateOrganization: API.OperationMethod<
|
|
1126
|
+
PartialUpdateOrganizationRequest,
|
|
1127
|
+
OrganizationResponse,
|
|
1128
|
+
PartialUpdateOrganizationError,
|
|
1129
|
+
StackitOpContext
|
|
1130
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1131
|
+
input: PartialUpdateOrganizationRequest,
|
|
1132
|
+
output: OrganizationResponse,
|
|
1133
|
+
errors: [NotFound, Conflict, UnknownStackitError],
|
|
1134
|
+
protocol: StackitProtocol,
|
|
1135
|
+
retry: Retry.Retry,
|
|
1136
|
+
}));
|
|
1137
|
+
|
|
1138
|
+
export type PartialUpdateProjectError =
|
|
1139
|
+
| Forbidden
|
|
1140
|
+
| NotFound
|
|
1141
|
+
| Conflict
|
|
1142
|
+
| StackitOpError;
|
|
1143
|
+
/** 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). */
|
|
1144
|
+
export const partialUpdateProject: API.OperationMethod<
|
|
1145
|
+
PartialUpdateProjectRequest,
|
|
1146
|
+
Project,
|
|
1147
|
+
PartialUpdateProjectError,
|
|
1148
|
+
StackitOpContext
|
|
1149
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1150
|
+
input: PartialUpdateProjectRequest,
|
|
1151
|
+
output: Project,
|
|
1152
|
+
errors: [Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1153
|
+
protocol: StackitProtocol,
|
|
1154
|
+
retry: Retry.Retry,
|
|
1155
|
+
}));
|