@distilled.cloud/stackit 0.0.0-placeholder → 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 +34 -0
- 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 +78 -7
- 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,659 @@
|
|
|
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 Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.js";
|
|
7
|
+
import { StackitProtocol, } from "../protocol.js";
|
|
8
|
+
import { UnknownStackitError } from "../errors.js";
|
|
9
|
+
import * as Retry from "../retry.js";
|
|
10
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
11
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
12
|
+
code: S.Number,
|
|
13
|
+
message: S.String,
|
|
14
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
15
|
+
}
|
|
16
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
21
|
+
}
|
|
22
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
27
|
+
}
|
|
28
|
+
export const CreateACLRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
|
+
projectId: S.String.pipe(T.Label()),
|
|
30
|
+
instanceId: S.String.pipe(T.Label()),
|
|
31
|
+
cidr: S.String,
|
|
32
|
+
}).pipe(T.Http({
|
|
33
|
+
method: "POST",
|
|
34
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
35
|
+
code: 200,
|
|
36
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
37
|
+
}))).annotate({
|
|
38
|
+
identifier: "CreateACLRequest",
|
|
39
|
+
});
|
|
40
|
+
export const ACL = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
+
cidr: S.String,
|
|
42
|
+
id: S.String,
|
|
43
|
+
})).annotate({ identifier: "ACL" });
|
|
44
|
+
export const CreateApproleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
projectId: S.String.pipe(T.Label()),
|
|
46
|
+
instanceId: S.String.pipe(T.Label()),
|
|
47
|
+
description: S.optional(S.String),
|
|
48
|
+
secret_id_num_uses: S.optional(S.Number),
|
|
49
|
+
secret_id_ttl: S.optional(S.String),
|
|
50
|
+
write: S.optional(S.Boolean),
|
|
51
|
+
}).pipe(T.Http({
|
|
52
|
+
method: "POST",
|
|
53
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles",
|
|
54
|
+
code: 200,
|
|
55
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
56
|
+
}))).annotate({
|
|
57
|
+
identifier: "CreateApproleRequest",
|
|
58
|
+
});
|
|
59
|
+
export const Approle = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
+
description: S.String,
|
|
61
|
+
role_id: S.String,
|
|
62
|
+
secret_id_num_uses: S.Number,
|
|
63
|
+
secret_id_ttl: S.String,
|
|
64
|
+
write: S.Boolean,
|
|
65
|
+
})).annotate({ identifier: "Approle" });
|
|
66
|
+
export const CreateApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
+
projectId: S.String.pipe(T.Label()),
|
|
68
|
+
instanceId: S.String.pipe(T.Label()),
|
|
69
|
+
roleId: S.String.pipe(T.Label()),
|
|
70
|
+
description: S.optional(S.String),
|
|
71
|
+
}).pipe(T.Http({
|
|
72
|
+
method: "POST",
|
|
73
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",
|
|
74
|
+
code: 200,
|
|
75
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
76
|
+
}))).annotate({
|
|
77
|
+
identifier: "CreateApproleSecretIdRequest",
|
|
78
|
+
});
|
|
79
|
+
export const ApproleSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
+
description: S.String,
|
|
81
|
+
num_uses: S.Number,
|
|
82
|
+
secret_id: S.optional(S.String),
|
|
83
|
+
ttl: S.String,
|
|
84
|
+
version: S.Number,
|
|
85
|
+
})).annotate({ identifier: "ApproleSecret" });
|
|
86
|
+
export const KmsKeyPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
+
keyId: S.String,
|
|
88
|
+
keyRingId: S.String,
|
|
89
|
+
keyVersion: S.Number,
|
|
90
|
+
serviceAccountEmail: S.String,
|
|
91
|
+
})).annotate({ identifier: "KmsKeyPayload" });
|
|
92
|
+
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
|
+
projectId: S.String.pipe(T.Label()),
|
|
94
|
+
kmsKey: S.optional(KmsKeyPayload),
|
|
95
|
+
name: S.String,
|
|
96
|
+
}).pipe(T.Http({
|
|
97
|
+
method: "POST",
|
|
98
|
+
uri: "/v1/projects/{projectId}/instances",
|
|
99
|
+
code: 200,
|
|
100
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
101
|
+
}))).annotate({
|
|
102
|
+
identifier: "CreateInstanceRequest",
|
|
103
|
+
});
|
|
104
|
+
export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
+
apiUrl: S.String,
|
|
106
|
+
creationFinishedDate: S.optional(S.String),
|
|
107
|
+
creationStartDate: S.String,
|
|
108
|
+
id: S.String,
|
|
109
|
+
kmsKey: S.optional(KmsKeyPayload),
|
|
110
|
+
name: S.String,
|
|
111
|
+
secretCount: S.Number,
|
|
112
|
+
secretsEngine: S.String,
|
|
113
|
+
state: S.String,
|
|
114
|
+
updateFinishedDate: S.optional(S.String),
|
|
115
|
+
updateStartDate: S.optional(S.String),
|
|
116
|
+
})).annotate({ identifier: "Instance" });
|
|
117
|
+
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
118
|
+
projectId: S.String.pipe(T.Label()),
|
|
119
|
+
instanceId: S.String.pipe(T.Label()),
|
|
120
|
+
description: S.String,
|
|
121
|
+
write: S.Boolean,
|
|
122
|
+
}).pipe(T.Http({
|
|
123
|
+
method: "POST",
|
|
124
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users",
|
|
125
|
+
code: 200,
|
|
126
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
127
|
+
}))).annotate({
|
|
128
|
+
identifier: "CreateUserRequest",
|
|
129
|
+
});
|
|
130
|
+
export const User = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
131
|
+
description: S.String,
|
|
132
|
+
id: S.String,
|
|
133
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
134
|
+
username: S.String,
|
|
135
|
+
write: S.Boolean,
|
|
136
|
+
})).annotate({ identifier: "User" });
|
|
137
|
+
export const DeleteACLRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
+
projectId: S.String.pipe(T.Label()),
|
|
139
|
+
instanceId: S.String.pipe(T.Label()),
|
|
140
|
+
aclId: S.String.pipe(T.Label()),
|
|
141
|
+
}).pipe(T.Http({
|
|
142
|
+
method: "DELETE",
|
|
143
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
144
|
+
code: 200,
|
|
145
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
146
|
+
}))).annotate({
|
|
147
|
+
identifier: "DeleteACLRequest",
|
|
148
|
+
});
|
|
149
|
+
export const DeleteACLResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
150
|
+
identifier: "DeleteACLResponse",
|
|
151
|
+
});
|
|
152
|
+
export const DeleteApproleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
153
|
+
projectId: S.String.pipe(T.Label()),
|
|
154
|
+
instanceId: S.String.pipe(T.Label()),
|
|
155
|
+
roleId: S.String.pipe(T.Label()),
|
|
156
|
+
}).pipe(T.Http({
|
|
157
|
+
method: "DELETE",
|
|
158
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
159
|
+
code: 200,
|
|
160
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
161
|
+
}))).annotate({
|
|
162
|
+
identifier: "DeleteApproleRequest",
|
|
163
|
+
});
|
|
164
|
+
export const DeleteApproleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
165
|
+
identifier: "DeleteApproleResponse",
|
|
166
|
+
});
|
|
167
|
+
export const DeleteApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
+
projectId: S.String.pipe(T.Label()),
|
|
169
|
+
instanceId: S.String.pipe(T.Label()),
|
|
170
|
+
roleId: S.String.pipe(T.Label()),
|
|
171
|
+
secretIdVersion: S.Number.pipe(T.Label()),
|
|
172
|
+
}).pipe(T.Http({
|
|
173
|
+
method: "DELETE",
|
|
174
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
175
|
+
code: 200,
|
|
176
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
177
|
+
}))).annotate({
|
|
178
|
+
identifier: "DeleteApproleSecretIdRequest",
|
|
179
|
+
});
|
|
180
|
+
export const DeleteApproleSecretIdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
181
|
+
identifier: "DeleteApproleSecretIdResponse",
|
|
182
|
+
});
|
|
183
|
+
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
+
projectId: S.String.pipe(T.Label()),
|
|
185
|
+
instanceId: S.String.pipe(T.Label()),
|
|
186
|
+
}).pipe(T.Http({
|
|
187
|
+
method: "DELETE",
|
|
188
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
189
|
+
code: 200,
|
|
190
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
191
|
+
}))).annotate({
|
|
192
|
+
identifier: "DeleteInstanceRequest",
|
|
193
|
+
});
|
|
194
|
+
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
195
|
+
identifier: "DeleteInstanceResponse",
|
|
196
|
+
});
|
|
197
|
+
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
+
projectId: S.String.pipe(T.Label()),
|
|
199
|
+
instanceId: S.String.pipe(T.Label()),
|
|
200
|
+
userId: S.String.pipe(T.Label()),
|
|
201
|
+
}).pipe(T.Http({
|
|
202
|
+
method: "DELETE",
|
|
203
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
204
|
+
code: 200,
|
|
205
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
206
|
+
}))).annotate({
|
|
207
|
+
identifier: "DeleteUserRequest",
|
|
208
|
+
});
|
|
209
|
+
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
210
|
+
identifier: "DeleteUserResponse",
|
|
211
|
+
});
|
|
212
|
+
export const GetACLRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
+
projectId: S.String.pipe(T.Label()),
|
|
214
|
+
instanceId: S.String.pipe(T.Label()),
|
|
215
|
+
aclId: S.String.pipe(T.Label()),
|
|
216
|
+
}).pipe(T.Http({
|
|
217
|
+
method: "GET",
|
|
218
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
219
|
+
code: 200,
|
|
220
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
221
|
+
}))).annotate({ identifier: "GetACLRequest" });
|
|
222
|
+
export const GetApproleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
223
|
+
projectId: S.String.pipe(T.Label()),
|
|
224
|
+
instanceId: S.String.pipe(T.Label()),
|
|
225
|
+
roleId: S.String.pipe(T.Label()),
|
|
226
|
+
}).pipe(T.Http({
|
|
227
|
+
method: "GET",
|
|
228
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
229
|
+
code: 200,
|
|
230
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
231
|
+
}))).annotate({
|
|
232
|
+
identifier: "GetApproleRequest",
|
|
233
|
+
});
|
|
234
|
+
export const GetApprolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
+
projectId: S.String.pipe(T.Label()),
|
|
236
|
+
instanceId: S.String.pipe(T.Label()),
|
|
237
|
+
}).pipe(T.Http({
|
|
238
|
+
method: "GET",
|
|
239
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles",
|
|
240
|
+
code: 200,
|
|
241
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
242
|
+
}))).annotate({
|
|
243
|
+
identifier: "GetApprolesRequest",
|
|
244
|
+
});
|
|
245
|
+
export const ApproleListApprolesList = /*@__PURE__*/ S.Array(Approle);
|
|
246
|
+
export const ApproleList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
247
|
+
approles: ApproleListApprolesList,
|
|
248
|
+
})).annotate({ identifier: "ApproleList" });
|
|
249
|
+
export const GetApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
250
|
+
projectId: S.String.pipe(T.Label()),
|
|
251
|
+
instanceId: S.String.pipe(T.Label()),
|
|
252
|
+
roleId: S.String.pipe(T.Label()),
|
|
253
|
+
secretIdVersion: S.Number.pipe(T.Label()),
|
|
254
|
+
}).pipe(T.Http({
|
|
255
|
+
method: "GET",
|
|
256
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
257
|
+
code: 200,
|
|
258
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
259
|
+
}))).annotate({
|
|
260
|
+
identifier: "GetApproleSecretIdRequest",
|
|
261
|
+
});
|
|
262
|
+
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
263
|
+
projectId: S.String.pipe(T.Label()),
|
|
264
|
+
instanceId: S.String.pipe(T.Label()),
|
|
265
|
+
}).pipe(T.Http({
|
|
266
|
+
method: "GET",
|
|
267
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
268
|
+
code: 200,
|
|
269
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
270
|
+
}))).annotate({
|
|
271
|
+
identifier: "GetInstanceRequest",
|
|
272
|
+
});
|
|
273
|
+
export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
274
|
+
projectId: S.String.pipe(T.Label()),
|
|
275
|
+
instanceId: S.String.pipe(T.Label()),
|
|
276
|
+
userId: S.String.pipe(T.Label()),
|
|
277
|
+
}).pipe(T.Http({
|
|
278
|
+
method: "GET",
|
|
279
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
280
|
+
code: 200,
|
|
281
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
282
|
+
}))).annotate({ identifier: "GetUserRequest" });
|
|
283
|
+
export const ListACLsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
284
|
+
projectId: S.String.pipe(T.Label()),
|
|
285
|
+
instanceId: S.String.pipe(T.Label()),
|
|
286
|
+
}).pipe(T.Http({
|
|
287
|
+
method: "GET",
|
|
288
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
289
|
+
code: 200,
|
|
290
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
291
|
+
}))).annotate({
|
|
292
|
+
identifier: "ListACLsRequest",
|
|
293
|
+
});
|
|
294
|
+
export const ListACLsResponseAclsList = /*@__PURE__*/ S.Array(ACL);
|
|
295
|
+
export const ListACLsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
296
|
+
acls: ListACLsResponseAclsList,
|
|
297
|
+
})).annotate({
|
|
298
|
+
identifier: "ListACLsResponse",
|
|
299
|
+
});
|
|
300
|
+
export const ListApproleSecretIdsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
301
|
+
projectId: S.String.pipe(T.Label()),
|
|
302
|
+
instanceId: S.String.pipe(T.Label()),
|
|
303
|
+
roleId: S.String.pipe(T.Label()),
|
|
304
|
+
}).pipe(T.Http({
|
|
305
|
+
method: "GET",
|
|
306
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",
|
|
307
|
+
code: 200,
|
|
308
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
309
|
+
}))).annotate({
|
|
310
|
+
identifier: "ListApproleSecretIdsRequest",
|
|
311
|
+
});
|
|
312
|
+
export const ApproleSecretListSecretIdsList = /*@__PURE__*/ S.Array(ApproleSecret);
|
|
313
|
+
export const ApproleSecretList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
+
secretIds: ApproleSecretListSecretIdsList,
|
|
315
|
+
})).annotate({
|
|
316
|
+
identifier: "ApproleSecretList",
|
|
317
|
+
});
|
|
318
|
+
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
319
|
+
projectId: S.String.pipe(T.Label()),
|
|
320
|
+
}).pipe(T.Http({
|
|
321
|
+
method: "GET",
|
|
322
|
+
uri: "/v1/projects/{projectId}/instances",
|
|
323
|
+
code: 200,
|
|
324
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
325
|
+
}))).annotate({
|
|
326
|
+
identifier: "ListInstancesRequest",
|
|
327
|
+
});
|
|
328
|
+
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(Instance);
|
|
329
|
+
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
330
|
+
instances: ListInstancesResponseInstancesList,
|
|
331
|
+
})).annotate({
|
|
332
|
+
identifier: "ListInstancesResponse",
|
|
333
|
+
});
|
|
334
|
+
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
+
projectId: S.String.pipe(T.Label()),
|
|
336
|
+
instanceId: S.String.pipe(T.Label()),
|
|
337
|
+
}).pipe(T.Http({
|
|
338
|
+
method: "GET",
|
|
339
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users",
|
|
340
|
+
code: 200,
|
|
341
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
342
|
+
}))).annotate({
|
|
343
|
+
identifier: "ListUsersRequest",
|
|
344
|
+
});
|
|
345
|
+
export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(User);
|
|
346
|
+
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
347
|
+
users: ListUsersResponseUsersList,
|
|
348
|
+
})).annotate({
|
|
349
|
+
identifier: "ListUsersResponse",
|
|
350
|
+
});
|
|
351
|
+
export const UpdateACLRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
352
|
+
projectId: S.String.pipe(T.Label()),
|
|
353
|
+
instanceId: S.String.pipe(T.Label()),
|
|
354
|
+
aclId: S.String.pipe(T.Label()),
|
|
355
|
+
cidr: S.String,
|
|
356
|
+
}).pipe(T.Http({
|
|
357
|
+
method: "PUT",
|
|
358
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
359
|
+
code: 200,
|
|
360
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
361
|
+
}))).annotate({
|
|
362
|
+
identifier: "UpdateACLRequest",
|
|
363
|
+
});
|
|
364
|
+
export const UpdateACLResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
365
|
+
identifier: "UpdateACLResponse",
|
|
366
|
+
});
|
|
367
|
+
export const UpdateACLPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
+
cidr: S.String,
|
|
369
|
+
})).annotate({
|
|
370
|
+
identifier: "UpdateACLPayload",
|
|
371
|
+
});
|
|
372
|
+
export const UpdateACLsRequestCidrsList = /*@__PURE__*/ S.Array(UpdateACLPayload);
|
|
373
|
+
export const UpdateACLsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
374
|
+
projectId: S.String.pipe(T.Label()),
|
|
375
|
+
instanceId: S.String.pipe(T.Label()),
|
|
376
|
+
cidrs: S.optional(UpdateACLsRequestCidrsList),
|
|
377
|
+
}).pipe(T.Http({
|
|
378
|
+
method: "PUT",
|
|
379
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
380
|
+
code: 200,
|
|
381
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
382
|
+
}))).annotate({
|
|
383
|
+
identifier: "UpdateACLsRequest",
|
|
384
|
+
});
|
|
385
|
+
export const UpdateACLsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
386
|
+
identifier: "UpdateACLsResponse",
|
|
387
|
+
});
|
|
388
|
+
export const UpdateApproleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
389
|
+
projectId: S.String.pipe(T.Label()),
|
|
390
|
+
instanceId: S.String.pipe(T.Label()),
|
|
391
|
+
roleId: S.String.pipe(T.Label()),
|
|
392
|
+
description: S.optional(S.String),
|
|
393
|
+
secret_id_num_uses: S.optional(S.Number),
|
|
394
|
+
secret_id_ttl: S.optional(S.String),
|
|
395
|
+
write: S.optional(S.Boolean),
|
|
396
|
+
}).pipe(T.Http({
|
|
397
|
+
method: "PUT",
|
|
398
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
399
|
+
code: 200,
|
|
400
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
401
|
+
}))).annotate({
|
|
402
|
+
identifier: "UpdateApproleRequest",
|
|
403
|
+
});
|
|
404
|
+
export const UpdateApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
405
|
+
projectId: S.String.pipe(T.Label()),
|
|
406
|
+
instanceId: S.String.pipe(T.Label()),
|
|
407
|
+
roleId: S.String.pipe(T.Label()),
|
|
408
|
+
secretIdVersion: S.Number.pipe(T.Label()),
|
|
409
|
+
description: S.optional(S.String),
|
|
410
|
+
}).pipe(T.Http({
|
|
411
|
+
method: "PUT",
|
|
412
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
413
|
+
code: 200,
|
|
414
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
415
|
+
}))).annotate({
|
|
416
|
+
identifier: "UpdateApproleSecretIdRequest",
|
|
417
|
+
});
|
|
418
|
+
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
419
|
+
projectId: S.String.pipe(T.Label()),
|
|
420
|
+
instanceId: S.String.pipe(T.Label()),
|
|
421
|
+
kmsKey: S.optional(KmsKeyPayload),
|
|
422
|
+
name: S.String,
|
|
423
|
+
}).pipe(T.Http({
|
|
424
|
+
method: "PUT",
|
|
425
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
426
|
+
code: 200,
|
|
427
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
428
|
+
}))).annotate({
|
|
429
|
+
identifier: "UpdateInstanceRequest",
|
|
430
|
+
});
|
|
431
|
+
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
432
|
+
identifier: "UpdateInstanceResponse",
|
|
433
|
+
});
|
|
434
|
+
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
435
|
+
projectId: S.String.pipe(T.Label()),
|
|
436
|
+
instanceId: S.String.pipe(T.Label()),
|
|
437
|
+
userId: S.String.pipe(T.Label()),
|
|
438
|
+
description: S.optional(S.String),
|
|
439
|
+
write: S.optional(S.Boolean),
|
|
440
|
+
}).pipe(T.Http({
|
|
441
|
+
method: "PUT",
|
|
442
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
443
|
+
code: 200,
|
|
444
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
445
|
+
}))).annotate({
|
|
446
|
+
identifier: "UpdateUserRequest",
|
|
447
|
+
});
|
|
448
|
+
export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
449
|
+
identifier: "UpdateUserResponse",
|
|
450
|
+
});
|
|
451
|
+
/** Creates a new Secrets Manager acl within the project. */
|
|
452
|
+
export const createACL = /*@__PURE__*/ API.make(() => ({
|
|
453
|
+
input: CreateACLRequest,
|
|
454
|
+
output: ACL,
|
|
455
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
456
|
+
protocol: StackitProtocol,
|
|
457
|
+
retry: Retry.Retry,
|
|
458
|
+
}));
|
|
459
|
+
/** Creates a new approle for the given Secrets Manager instance. */
|
|
460
|
+
export const createApprole = /*@__PURE__*/ API.make(() => ({
|
|
461
|
+
input: CreateApproleRequest,
|
|
462
|
+
output: Approle,
|
|
463
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
464
|
+
protocol: StackitProtocol,
|
|
465
|
+
retry: Retry.Retry,
|
|
466
|
+
}));
|
|
467
|
+
/** Generate new secret id for the given approle. */
|
|
468
|
+
export const createApproleSecretId = /*@__PURE__*/ API.make(() => ({
|
|
469
|
+
input: CreateApproleSecretIdRequest,
|
|
470
|
+
output: ApproleSecret,
|
|
471
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
472
|
+
protocol: StackitProtocol,
|
|
473
|
+
retry: Retry.Retry,
|
|
474
|
+
}));
|
|
475
|
+
/** Creates a new Secrets Manager instance within the project. */
|
|
476
|
+
export const createInstance = /*@__PURE__*/ API.make(() => ({
|
|
477
|
+
input: CreateInstanceRequest,
|
|
478
|
+
output: Instance,
|
|
479
|
+
errors: [BadRequest, UnknownStackitError],
|
|
480
|
+
protocol: StackitProtocol,
|
|
481
|
+
retry: Retry.Retry,
|
|
482
|
+
}));
|
|
483
|
+
/** Creates a new user for the given Secrets Manager instance. */
|
|
484
|
+
export const createUser = /*@__PURE__*/ API.make(() => ({
|
|
485
|
+
input: CreateUserRequest,
|
|
486
|
+
output: User,
|
|
487
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
488
|
+
protocol: StackitProtocol,
|
|
489
|
+
retry: Retry.Retry,
|
|
490
|
+
}));
|
|
491
|
+
/** Deletes the given acl. */
|
|
492
|
+
export const deleteACL = /*@__PURE__*/ API.make(() => ({
|
|
493
|
+
input: DeleteACLRequest,
|
|
494
|
+
output: DeleteACLResponse,
|
|
495
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
496
|
+
protocol: StackitProtocol,
|
|
497
|
+
retry: Retry.Retry,
|
|
498
|
+
}));
|
|
499
|
+
/** Deletes the given approle. */
|
|
500
|
+
export const deleteApprole = /*@__PURE__*/ API.make(() => ({
|
|
501
|
+
input: DeleteApproleRequest,
|
|
502
|
+
output: DeleteApproleResponse,
|
|
503
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
504
|
+
protocol: StackitProtocol,
|
|
505
|
+
retry: Retry.Retry,
|
|
506
|
+
}));
|
|
507
|
+
/** Deletes the secret id by its given version. */
|
|
508
|
+
export const deleteApproleSecretId = /*@__PURE__*/ API.make(() => ({
|
|
509
|
+
input: DeleteApproleSecretIdRequest,
|
|
510
|
+
output: DeleteApproleSecretIdResponse,
|
|
511
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
512
|
+
protocol: StackitProtocol,
|
|
513
|
+
retry: Retry.Retry,
|
|
514
|
+
}));
|
|
515
|
+
/** Deletes the given Secrets Manager instance. */
|
|
516
|
+
export const deleteInstance = /*@__PURE__*/ API.make(() => ({
|
|
517
|
+
input: DeleteInstanceRequest,
|
|
518
|
+
output: DeleteInstanceResponse,
|
|
519
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
520
|
+
protocol: StackitProtocol,
|
|
521
|
+
retry: Retry.Retry,
|
|
522
|
+
}));
|
|
523
|
+
/** Deletes the given user. */
|
|
524
|
+
export const deleteUser = /*@__PURE__*/ API.make(() => ({
|
|
525
|
+
input: DeleteUserRequest,
|
|
526
|
+
output: DeleteUserResponse,
|
|
527
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
528
|
+
protocol: StackitProtocol,
|
|
529
|
+
retry: Retry.Retry,
|
|
530
|
+
}));
|
|
531
|
+
/** Returns the details for the given acl. */
|
|
532
|
+
export const getACL = /*@__PURE__*/ API.make(() => ({
|
|
533
|
+
input: GetACLRequest,
|
|
534
|
+
output: ACL,
|
|
535
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
536
|
+
protocol: StackitProtocol,
|
|
537
|
+
retry: Retry.Retry,
|
|
538
|
+
}));
|
|
539
|
+
/** Returns the details for the given approle. */
|
|
540
|
+
export const getApprole = /*@__PURE__*/ API.make(() => ({
|
|
541
|
+
input: GetApproleRequest,
|
|
542
|
+
output: Approle,
|
|
543
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
544
|
+
protocol: StackitProtocol,
|
|
545
|
+
retry: Retry.Retry,
|
|
546
|
+
}));
|
|
547
|
+
/** Returns the approles for the given Secrets Manager instance. */
|
|
548
|
+
export const getApproles = /*@__PURE__*/ API.make(() => ({
|
|
549
|
+
input: GetApprolesRequest,
|
|
550
|
+
output: ApproleList,
|
|
551
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
552
|
+
protocol: StackitProtocol,
|
|
553
|
+
retry: Retry.Retry,
|
|
554
|
+
}));
|
|
555
|
+
/** Read the properties of a given secret id by its given version. */
|
|
556
|
+
export const getApproleSecretId = /*@__PURE__*/ API.make(() => ({
|
|
557
|
+
input: GetApproleSecretIdRequest,
|
|
558
|
+
output: ApproleSecret,
|
|
559
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
560
|
+
protocol: StackitProtocol,
|
|
561
|
+
retry: Retry.Retry,
|
|
562
|
+
}));
|
|
563
|
+
/** Returns the details for the given Secrets Manager instance. */
|
|
564
|
+
export const getInstance = /*@__PURE__*/ API.make(() => ({
|
|
565
|
+
input: GetInstanceRequest,
|
|
566
|
+
output: Instance,
|
|
567
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
568
|
+
protocol: StackitProtocol,
|
|
569
|
+
retry: Retry.Retry,
|
|
570
|
+
}));
|
|
571
|
+
/** Returns the details for the given user. */
|
|
572
|
+
export const getUser = /*@__PURE__*/ API.make(() => ({
|
|
573
|
+
input: GetUserRequest,
|
|
574
|
+
output: User,
|
|
575
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
576
|
+
protocol: StackitProtocol,
|
|
577
|
+
retry: Retry.Retry,
|
|
578
|
+
}));
|
|
579
|
+
/** Returns the acls for the given Secrets Manager instance. */
|
|
580
|
+
export const listACLs = /*@__PURE__*/ API.make(() => ({
|
|
581
|
+
input: ListACLsRequest,
|
|
582
|
+
output: ListACLsResponse,
|
|
583
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
584
|
+
protocol: StackitProtocol,
|
|
585
|
+
retry: Retry.Retry,
|
|
586
|
+
}));
|
|
587
|
+
/** Returns the secret id list for the given Secrets Manager instance and approle. */
|
|
588
|
+
export const listApproleSecretIds = /*@__PURE__*/ API.make(() => ({
|
|
589
|
+
input: ListApproleSecretIdsRequest,
|
|
590
|
+
output: ApproleSecretList,
|
|
591
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
592
|
+
protocol: StackitProtocol,
|
|
593
|
+
retry: Retry.Retry,
|
|
594
|
+
}));
|
|
595
|
+
/** Returns a list of all Secrets Manager instances within the project. */
|
|
596
|
+
export const listInstances = /*@__PURE__*/ API.make(() => ({
|
|
597
|
+
input: ListInstancesRequest,
|
|
598
|
+
output: ListInstancesResponse,
|
|
599
|
+
errors: [BadRequest, UnknownStackitError],
|
|
600
|
+
protocol: StackitProtocol,
|
|
601
|
+
retry: Retry.Retry,
|
|
602
|
+
}));
|
|
603
|
+
/** Returns the users for the given Secrets Manager instance. */
|
|
604
|
+
export const listUsers = /*@__PURE__*/ API.make(() => ({
|
|
605
|
+
input: ListUsersRequest,
|
|
606
|
+
output: ListUsersResponse,
|
|
607
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
608
|
+
protocol: StackitProtocol,
|
|
609
|
+
retry: Retry.Retry,
|
|
610
|
+
}));
|
|
611
|
+
/** Updates the ip ranges for the acl. */
|
|
612
|
+
export const updateACL = /*@__PURE__*/ API.make(() => ({
|
|
613
|
+
input: UpdateACLRequest,
|
|
614
|
+
output: UpdateACLResponse,
|
|
615
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
616
|
+
protocol: StackitProtocol,
|
|
617
|
+
retry: Retry.Retry,
|
|
618
|
+
}));
|
|
619
|
+
/** Changes a list of ACLs within the project. */
|
|
620
|
+
export const updateACLs = /*@__PURE__*/ API.make(() => ({
|
|
621
|
+
input: UpdateACLsRequest,
|
|
622
|
+
output: UpdateACLsResponse,
|
|
623
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
624
|
+
protocol: StackitProtocol,
|
|
625
|
+
retry: Retry.Retry,
|
|
626
|
+
}));
|
|
627
|
+
/** Updates the details for the given approle. */
|
|
628
|
+
export const updateApprole = /*@__PURE__*/ API.make(() => ({
|
|
629
|
+
input: UpdateApproleRequest,
|
|
630
|
+
output: Approle,
|
|
631
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
632
|
+
protocol: StackitProtocol,
|
|
633
|
+
retry: Retry.Retry,
|
|
634
|
+
}));
|
|
635
|
+
/** Update the description of a secret id by its given version. */
|
|
636
|
+
export const updateApproleSecretId = /*@__PURE__*/ API.make(() => ({
|
|
637
|
+
input: UpdateApproleSecretIdRequest,
|
|
638
|
+
output: ApproleSecret,
|
|
639
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
640
|
+
protocol: StackitProtocol,
|
|
641
|
+
retry: Retry.Retry,
|
|
642
|
+
}));
|
|
643
|
+
/** Updates the given Secrets Manager instance. */
|
|
644
|
+
export const updateInstance = /*@__PURE__*/ API.make(() => ({
|
|
645
|
+
input: UpdateInstanceRequest,
|
|
646
|
+
output: UpdateInstanceResponse,
|
|
647
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
648
|
+
protocol: StackitProtocol,
|
|
649
|
+
retry: Retry.Retry,
|
|
650
|
+
}));
|
|
651
|
+
/** Updates the details for the given user. */
|
|
652
|
+
export const updateUser = /*@__PURE__*/ API.make(() => ({
|
|
653
|
+
input: UpdateUserRequest,
|
|
654
|
+
output: UpdateUserResponse,
|
|
655
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
656
|
+
protocol: StackitProtocol,
|
|
657
|
+
retry: Retry.Retry,
|
|
658
|
+
}));
|
|
659
|
+
//# sourceMappingURL=secrets_manager.js.map
|