@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,853 +1,126 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import { UnknownStackitError } from "../errors.js";
|
|
7
7
|
import { StackitProtocol } from "../protocol.js";
|
|
8
8
|
import * as Retry from "../retry.js";
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = S.Number;
|
|
17
|
+
const __7 = S.optional;
|
|
18
|
+
const __8 = S.Boolean;
|
|
19
|
+
const __9 = S.NullOr;
|
|
20
|
+
const __10 = T.Query;
|
|
21
|
+
const __11 = S.Array;
|
|
22
|
+
const __12 = T.SensitiveValue;
|
|
23
|
+
const __13 = S.Record;
|
|
24
|
+
const __14 = S.TaggedError;
|
|
25
|
+
const __15 = T.applyErrorMatchers;
|
|
26
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __6, __3, __14, __15]]);
|
|
28
|
+
});
|
|
29
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __6, __3, __14, __15]]);
|
|
31
|
+
});
|
|
32
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
33
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __6, __3, __14, __15]]);
|
|
34
|
+
});
|
|
35
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
36
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __6, __3, __14, __15]]);
|
|
37
|
+
});
|
|
38
|
+
export const UnprocessableEntity = /*@__PURE__*/ API.error(function UnprocessableEntity(i) {
|
|
39
|
+
return API.newError(i, new.target, ['$5($4()("UnprocessableEntity",{code:$2,message:$3}).pipe($1),[{status:422}])', [__0, C.withBadRequestError, __6, __3, __14, __15]]);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export const cloneInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#8:0,errors:[$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16};$5(>3)@"CloneInstanceOverrides";$5(>4)@"CloneInstanceRequest";$4({class:$1,name:$2($1),size:$3});$4({projectId:$1.pipe($7()),region:$1.pipe($7()),instanceId:$1.pipe($7()),instanceOverrides:#1,pointInTime:$1}).pipe($6({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __3, __7, __6, __4, __5, __1, __2, __d4, BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(cloneInstance, i));
|
|
43
|
+
|
|
44
|
+
export const createDatabase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10,$11,$12,$13],protocol:$14,retry:$15};$6(>3)@"CreateDatabaseRequest";$6(>4)@"CreateDatabaseResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),name:$3,owner:$4($3)}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$5({id:$7})', [__0, __1, __2, __3, __7, __4, __5, __6, BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createDatabase, i));
|
|
45
|
+
|
|
46
|
+
export const createInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#3,output:#12:0,errors:[$13,$14,$15,$16,$17],protocol:$18,retry:$19};$5(>4)@"InstanceNetworkCreate";$5(>5)@"StorageCreate";$5(>6)@"CreateInstanceRequest";$4({accessScope:$2($1),acl:#3:0});$4({class:$1,size:$6});$4({projectId:$1.pipe($8()),region:$1.pipe($8()),backupSchedule:$1,encryption:$2(#9:0),flavorId:$1,labels:$2(#10:0),name:$1,network:#1,retentionDays:$11($6),storage:#2,version:$1}).pipe($7({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __3, __7, __d7, __4, __5, __6, __1, __2, __d5, __d6, __9, __d4, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createInstance, i));
|
|
47
|
+
|
|
48
|
+
export const createUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11,$12,$13,$14,$15],protocol:$16,retry:$17};$7(>3)@"CreateUserRequest";$7(>4)@"CreateUserResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),name:$3,roles:$5(#4:0)}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$6({id:$8,name:$3,password:$3.pipe($9({})),state:$3})', [__0, __1, __2, __3, __d7, __7, __4, __5, __6, __12, BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUser, i));
|
|
49
|
+
|
|
50
|
+
export const deleteDatabase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"DeleteDatabaseRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseId:$4.pipe($2())}).pipe($1({method:"DELETE",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteDatabase, i));
|
|
51
|
+
|
|
52
|
+
export const deleteInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteInstanceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstance, i));
|
|
53
|
+
|
|
54
|
+
export const deleteUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>2)@"DeleteUserRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2())}).pipe($1({method:"DELETE",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __4, __5, __d8, BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteUser, i));
|
|
55
|
+
|
|
56
|
+
export const getBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"GetBackupRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),backupId:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getBackup, i));
|
|
57
|
+
|
|
58
|
+
export const getDatabase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"GetDatabaseRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseId:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getDatabase, i));
|
|
59
|
+
|
|
60
|
+
export const getInstance = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("InstanceConnectionInfo", '{input:#1,output:#6,errors:[$13,$14,$15,$16],protocol:$17,retry:$18};$5(>7)@"GetInstanceRequest";$5(>8)@"%Write";$5(>9)@"%";$5(>10)@"InstanceNetwork";$5(>11)@"Storage";$5(>12)@"GetInstanceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$4({host:$3,port:$6});$4({write:#2});$4({accessScope:$7($3),acl:#8:0,instanceAddress:$7($3),routerAddress:$7($3)});$4({class:$7($3),size:$7($6)});$4({backupSchedule:$3,connectionInfo:#3,encryption:$7(#9:0),flavorId:$3,id:$3,isDeletable:$10,labels:$7(#11:0),name:$3,network:#4,retentionDays:$12($6),state:$3,storage:#5,version:$3})', [__0, __1, __2, __3, __4, __5, __6, __7, __d7, __d5, __8, __d6, __9, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(getInstance, i));
|
|
61
|
+
|
|
62
|
+
export const getUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>3)@"GetUserRequest";$6(>4)@"GetUserResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$5({id:$4,name:$3,roles:#7:0,state:$3})', [__0, __1, __2, __3, __6, __4, __5, __d7, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUser, i));
|
|
63
|
+
|
|
64
|
+
export const listBackups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>4)@"ListBackupsRequest";$10(#9:0);$8(>5)@"ListBackupsResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$7({backups:#2,pagination:#4:0})', [__0, __1, __2, __3, __d2, __10, __7, __4, __5, __d0, __11, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listBackups, i));
|
|
65
|
+
|
|
66
|
+
export const listCollations = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"ListCollationsRequest";$5(>4)@"ListCollationsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$4({collations:#6:0})', [__0, __1, __2, __3, __4, __5, __d7, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCollations, i));
|
|
67
|
+
|
|
68
|
+
export const listDatabases = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>4)@"ListDatabasesRequest";$10(#9:0);$8(>5)@"ListDatabasesResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$7({databases:#2,pagination:#4:0})', [__0, __1, __2, __3, __d2, __10, __7, __4, __5, __d1, __11, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listDatabases, i));
|
|
69
|
+
|
|
70
|
+
export const listFlavors2 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListFlavors", '{input:#1,output:#6,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>7)@"%Request";$8(>8)@"FlavorStorageClassesStorageClass";$10(#2);$8(>9)@"%";$10(#4);$8(>10)@"%Response";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/flavors",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$7({class:$3,maxIoPerSec:$9,maxThroughInMb:$9});$7({cpu:$9,description:$3,id:$3,maxGB:$9,memory:$9,minGB:$9,nodeType:$3,storageClasses:#3});$7({flavors:#5,pagination:#4:0})', [__0, __1, __2, __3, __d2, __10, __7, __4, __5, __6, __11, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listFlavors2, i));
|
|
71
|
+
|
|
72
|
+
export const listInstances = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListInstance", '{input:#1,output:#4,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>5)@"%sRequest";$8(>6)@"%";$10(#2);$8(>7)@"%sResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$7({id:$3,isDeletable:$9,name:$3,state:$3});$7({instances:#3,pagination:#4:0})', [__0, __1, __2, __3, __d2, __10, __7, __4, __5, __8, __11, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listInstances, i));
|
|
73
|
+
|
|
74
|
+
export const listRoles = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"ListRolesRequest";$5(>4)@"ListRolesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$4({roles:#6:0})', [__0, __1, __2, __3, __4, __5, __d7, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listRoles, i));
|
|
75
|
+
|
|
76
|
+
export const listUsers = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListUser", '{input:#1,output:#4,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>5)@"%sRequest";$8(>6)@"%";$10(#2);$8(>7)@"%sResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),page:~4:1,size:~4:1,sort:$6($3.pipe($5()))}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$7({id:$9,name:$3,state:$3});$7({pagination:#4:0,users:#3})', [__0, __1, __2, __3, __d2, __10, __7, __4, __5, __6, __11, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listUsers, i));
|
|
77
|
+
|
|
78
|
+
export const listVersions = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("Version", '{input:#1,output:#4,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"List%sRequest";$5(>6)@"%";$7(#2);$5(>7)@"List%sResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v3/projects/{projectId}/regions/{region}/versions",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$4({beta:$6,deprecated:$3,recommend:$6,version:$3});$4({versions:#3})', [__0, __1, __2, __3, __4, __5, __8, __11, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listVersions, i));
|
|
79
|
+
|
|
80
|
+
export const partialUpdateDatabase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12,$13],protocol:$14,retry:$15};$7(>2)@"PartialUpdateDatabaseRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseId:$4.pipe($2()),name:$5($3),owner:$5($3)}).pipe($1({method:"PATCH",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateDatabase, i));
|
|
81
|
+
|
|
82
|
+
export const partialUpdateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#11:0,errors:[$12,$13,$14,$15,$16],protocol:$17,retry:$18};$4(>3)@"InstanceNetworkOpt";$4(>4)@"PartialUpdateInstanceRequest";$3({acl:$2(#1:0)});$3({projectId:$7.pipe($6()),region:$7.pipe($6()),instanceId:$7.pipe($6()),backupSchedule:$2($7),flavorId:$2($7),labels:$2(#8:0),name:$2($7),network:$2(#1),retentionDays:$2($9),storage:$2(#10:0),version:$2($7)}).pipe($5({method:"PATCH",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __d7, __7, __4, __5, __1, __2, __3, __d6, __6, __d3, __d8, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateInstance, i));
|
|
83
|
+
|
|
84
|
+
export const partialUpdateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$8(>2)@"PartialUpdateUserRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2()),name:$5($3),roles:$5(#6:0)}).pipe($1({method:"PATCH",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d7, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateUser, i));
|
|
85
|
+
|
|
86
|
+
export const resetUserPassword = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>3)@"ResetUserPasswordRequest";$6(>4)@"ResetUserPasswordResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2())}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$5({name:$3,password:$3.pipe($7({})),state:$3})', [__0, __1, __2, __3, __6, __4, __5, __12, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(resetUserPassword, i));
|
|
87
|
+
|
|
88
|
+
export const updateDatabase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>2)@"UpdateDatabaseRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),databaseId:$4.pipe($2()),name:$3,owner:$3}).pipe($1({method:"PUT",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateDatabase, i));
|
|
89
|
+
|
|
90
|
+
export const updateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#12:0,errors:[$13,$14,$15,$16,$17],protocol:$18,retry:$19};$3(>3)@"InstanceNetworkUpdate";$3(>4)@"UpdateInstanceRequest";$2({acl:#1:0});$2({projectId:$6.pipe($5()),region:$6.pipe($5()),instanceId:$6.pipe($5()),backupSchedule:$6,flavorId:$6,labels:$8(#7:0),name:$6,network:#1,retentionDays:$10($9),storage:#11:0,version:$6}).pipe($4({method:"PUT",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __d7, __4, __5, __1, __2, __3, __d6, __7, __6, __9, __d3, __d8, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateInstance, i));
|
|
91
|
+
|
|
92
|
+
export const updateInstanceProtection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$6(>3)@"UpdateInstanceProtectionRequest";$6(>4)@"UpdateInstanceProtectionResponse";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),isDeletable:$4}).pipe($1({method:"POST",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}));$5({isDeletable:$4})', [__0, __1, __2, __3, __8, __4, __5, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateInstanceProtection, i));
|
|
93
|
+
|
|
94
|
+
export const updateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$8(>2)@"UpdateUserRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$4.pipe($2()),name:$5($3),roles:#6:0}).pipe($1({method:"PUT",uri:"/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://postgres-flex-service.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __d7, __4, __5, __d8, BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateUser, i));
|
|
95
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
96
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
// Shared schema data (see `op` in core/api).
|
|
100
|
+
function __d0() {
|
|
101
|
+
return ['$4(>1)@"BackupData";$3({completionTime:$1,id:$2,name:$1,retainedUntil:$1,size:$2,type:$1})', [__0, __3, __6, __4, __5]];
|
|
15
102
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
code: S.Number,
|
|
19
|
-
message: S.String,
|
|
20
|
-
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
103
|
+
function __d1() {
|
|
104
|
+
return ['$4(>1)@"GetDatabaseResponse";$3({id:$1,name:$2,owner:$2})', [__0, __6, __3, __4, __5]];
|
|
21
105
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
code: S.Number,
|
|
25
|
-
message: S.String,
|
|
26
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
106
|
+
function __d2() {
|
|
107
|
+
return ['$4(>2)@"Pagination";$6($1.pipe($5()));$3({page:$1,size:$1,sort:$2,totalPages:$1,totalRows:$1})', [__0, __6, __3, __4, __5, __10, __7]];
|
|
27
108
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
code: S.Number,
|
|
31
|
-
message: S.String,
|
|
32
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
109
|
+
function __d3() {
|
|
110
|
+
return ['$4(>1)@"StorageUpdate";$3({size:$2($1)})', [__0, __6, __7, __4, __5]];
|
|
33
111
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
112
|
+
function __d4() {
|
|
113
|
+
return ['$3(>1)@"CloneInstanceResponse";$2({id:$1})', [__0, __3, __4, __5]];
|
|
114
|
+
}
|
|
115
|
+
function __d5() {
|
|
116
|
+
return ['$3(>1)@"InstanceEncryption";$2({kekKeyId:$1,kekKeyRingId:$1,kekKeyVersion:$1,serviceAccount:$1})', [__0, __3, __4, __5]];
|
|
117
|
+
}
|
|
118
|
+
function __d6() {
|
|
119
|
+
return ['$3($1,$2($1))', [__0, __3, __9, __13]];
|
|
120
|
+
}
|
|
121
|
+
function __d7() {
|
|
122
|
+
return ['$2($1)', [__0, __3, __11]];
|
|
123
|
+
}
|
|
124
|
+
function __d8() {
|
|
125
|
+
return ['$2(>1)@"DeleteDatabaseResponse";$1({})', [__0, __4, __5]];
|
|
39
126
|
}
|
|
40
|
-
export const CloneInstanceRequestRegion = S.String;
|
|
41
|
-
export const CloneInstanceOverrides = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
-
class: S.String,
|
|
43
|
-
name: S.optional(S.String),
|
|
44
|
-
size: S.Number,
|
|
45
|
-
})).annotate({ identifier: "CloneInstanceOverrides" });
|
|
46
|
-
export const CloneInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
-
projectId: S.String.pipe(T.Label()),
|
|
48
|
-
region: CloneInstanceRequestRegion.pipe(T.Label()),
|
|
49
|
-
instanceId: S.String.pipe(T.Label()),
|
|
50
|
-
instanceOverrides: CloneInstanceOverrides,
|
|
51
|
-
pointInTime: S.String,
|
|
52
|
-
}).pipe(T.Http({
|
|
53
|
-
method: "POST",
|
|
54
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/clone",
|
|
55
|
-
code: 200,
|
|
56
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
57
|
-
}))).annotate({ identifier: "CloneInstanceRequest" });
|
|
58
|
-
export const CloneInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
-
id: S.String,
|
|
60
|
-
})).annotate({ identifier: "CloneInstanceResponse" });
|
|
61
|
-
export const CreateDatabaseRequestRegion = S.String;
|
|
62
|
-
export const CreateDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
-
projectId: S.String.pipe(T.Label()),
|
|
64
|
-
region: CreateDatabaseRequestRegion.pipe(T.Label()),
|
|
65
|
-
instanceId: S.String.pipe(T.Label()),
|
|
66
|
-
name: S.String,
|
|
67
|
-
owner: S.optional(S.String),
|
|
68
|
-
}).pipe(T.Http({
|
|
69
|
-
method: "POST",
|
|
70
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
71
|
-
code: 200,
|
|
72
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
73
|
-
}))).annotate({ identifier: "CreateDatabaseRequest" });
|
|
74
|
-
export const CreateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
-
id: S.Number,
|
|
76
|
-
})).annotate({ identifier: "CreateDatabaseResponse" });
|
|
77
|
-
export const CreateInstanceRequestRegion = S.String;
|
|
78
|
-
export const InstanceEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
|
-
kekKeyId: S.String,
|
|
80
|
-
kekKeyRingId: S.String,
|
|
81
|
-
kekKeyVersion: S.String,
|
|
82
|
-
serviceAccount: S.String,
|
|
83
|
-
})).annotate({ identifier: "InstanceEncryption" });
|
|
84
|
-
export const Labels = /*@__PURE__*/ S.Record(S.String, S.NullOr(S.String));
|
|
85
|
-
export const InstanceNetworkAccessScope = S.String;
|
|
86
|
-
export const Acl = /*@__PURE__*/ S.Array(S.String);
|
|
87
|
-
export const InstanceNetworkCreate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
88
|
-
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
89
|
-
acl: Acl,
|
|
90
|
-
})).annotate({ identifier: "InstanceNetworkCreate" });
|
|
91
|
-
export const StorageCreate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
class: S.String,
|
|
93
|
-
size: S.Number,
|
|
94
|
-
})).annotate({ identifier: "StorageCreate" });
|
|
95
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
96
|
-
projectId: S.String.pipe(T.Label()),
|
|
97
|
-
region: CreateInstanceRequestRegion.pipe(T.Label()),
|
|
98
|
-
backupSchedule: S.String,
|
|
99
|
-
encryption: S.optional(InstanceEncryption),
|
|
100
|
-
flavorId: S.String,
|
|
101
|
-
labels: S.optional(Labels),
|
|
102
|
-
name: S.String,
|
|
103
|
-
network: InstanceNetworkCreate,
|
|
104
|
-
retentionDays: S.NullOr(S.Number),
|
|
105
|
-
storage: StorageCreate,
|
|
106
|
-
version: S.String,
|
|
107
|
-
}).pipe(T.Http({
|
|
108
|
-
method: "POST",
|
|
109
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
110
|
-
code: 200,
|
|
111
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
112
|
-
}))).annotate({ identifier: "CreateInstanceRequest" });
|
|
113
|
-
export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
id: S.String,
|
|
115
|
-
})).annotate({ identifier: "CreateInstanceResponse" });
|
|
116
|
-
export const CreateUserRequestRegion = S.String;
|
|
117
|
-
export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
118
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
projectId: S.String.pipe(T.Label()),
|
|
120
|
-
region: CreateUserRequestRegion.pipe(T.Label()),
|
|
121
|
-
instanceId: S.String.pipe(T.Label()),
|
|
122
|
-
name: S.String,
|
|
123
|
-
roles: S.optional(CreateUserRequestRolesList),
|
|
124
|
-
}).pipe(T.Http({
|
|
125
|
-
method: "POST",
|
|
126
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
127
|
-
code: 200,
|
|
128
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
129
|
-
}))).annotate({ identifier: "CreateUserRequest" });
|
|
130
|
-
export const CreateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
131
|
-
id: S.Number,
|
|
132
|
-
name: S.String,
|
|
133
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
134
|
-
state: S.String,
|
|
135
|
-
})).annotate({ identifier: "CreateUserResponse" });
|
|
136
|
-
export const DeleteDatabaseRequestRegion = S.String;
|
|
137
|
-
export const DeleteDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
-
projectId: S.String.pipe(T.Label()),
|
|
139
|
-
region: DeleteDatabaseRequestRegion.pipe(T.Label()),
|
|
140
|
-
instanceId: S.String.pipe(T.Label()),
|
|
141
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
142
|
-
}).pipe(T.Http({
|
|
143
|
-
method: "DELETE",
|
|
144
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
145
|
-
code: 200,
|
|
146
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
147
|
-
}))).annotate({ identifier: "DeleteDatabaseRequest" });
|
|
148
|
-
export const DeleteDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
149
|
-
identifier: "DeleteDatabaseResponse",
|
|
150
|
-
});
|
|
151
|
-
export const DeleteInstanceRequestRegion = S.String;
|
|
152
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
153
|
-
projectId: S.String.pipe(T.Label()),
|
|
154
|
-
region: DeleteInstanceRequestRegion.pipe(T.Label()),
|
|
155
|
-
instanceId: S.String.pipe(T.Label()),
|
|
156
|
-
}).pipe(T.Http({
|
|
157
|
-
method: "DELETE",
|
|
158
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
159
|
-
code: 200,
|
|
160
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
161
|
-
}))).annotate({ identifier: "DeleteInstanceRequest" });
|
|
162
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
163
|
-
identifier: "DeleteInstanceResponse",
|
|
164
|
-
});
|
|
165
|
-
export const DeleteUserRequestRegion = S.String;
|
|
166
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
-
projectId: S.String.pipe(T.Label()),
|
|
168
|
-
region: DeleteUserRequestRegion.pipe(T.Label()),
|
|
169
|
-
instanceId: S.String.pipe(T.Label()),
|
|
170
|
-
userId: S.Number.pipe(T.Label()),
|
|
171
|
-
}).pipe(T.Http({
|
|
172
|
-
method: "DELETE",
|
|
173
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
174
|
-
code: 200,
|
|
175
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
176
|
-
}))).annotate({ identifier: "DeleteUserRequest" });
|
|
177
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
178
|
-
identifier: "DeleteUserResponse",
|
|
179
|
-
});
|
|
180
|
-
export const GetBackupRequestRegion = S.String;
|
|
181
|
-
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
182
|
-
projectId: S.String.pipe(T.Label()),
|
|
183
|
-
region: GetBackupRequestRegion.pipe(T.Label()),
|
|
184
|
-
instanceId: S.String.pipe(T.Label()),
|
|
185
|
-
backupId: S.Number.pipe(T.Label()),
|
|
186
|
-
}).pipe(T.Http({
|
|
187
|
-
method: "GET",
|
|
188
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
|
|
189
|
-
code: 200,
|
|
190
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
191
|
-
}))).annotate({ identifier: "GetBackupRequest" });
|
|
192
|
-
export const BackupData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
193
|
-
completionTime: S.String,
|
|
194
|
-
id: S.Number,
|
|
195
|
-
name: S.String,
|
|
196
|
-
retainedUntil: S.String,
|
|
197
|
-
size: S.Number,
|
|
198
|
-
type: S.String,
|
|
199
|
-
})).annotate({ identifier: "BackupData" });
|
|
200
|
-
export const GetDatabaseRequestRegion = S.String;
|
|
201
|
-
export const GetDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
202
|
-
projectId: S.String.pipe(T.Label()),
|
|
203
|
-
region: GetDatabaseRequestRegion.pipe(T.Label()),
|
|
204
|
-
instanceId: S.String.pipe(T.Label()),
|
|
205
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
206
|
-
}).pipe(T.Http({
|
|
207
|
-
method: "GET",
|
|
208
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
209
|
-
code: 200,
|
|
210
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
211
|
-
}))).annotate({ identifier: "GetDatabaseRequest" });
|
|
212
|
-
export const GetDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
-
id: S.Number,
|
|
214
|
-
name: S.String,
|
|
215
|
-
owner: S.String,
|
|
216
|
-
})).annotate({ identifier: "GetDatabaseResponse" });
|
|
217
|
-
export const GetInstanceRequestRegion = S.String;
|
|
218
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
219
|
-
projectId: S.String.pipe(T.Label()),
|
|
220
|
-
region: GetInstanceRequestRegion.pipe(T.Label()),
|
|
221
|
-
instanceId: S.String.pipe(T.Label()),
|
|
222
|
-
}).pipe(T.Http({
|
|
223
|
-
method: "GET",
|
|
224
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
225
|
-
code: 200,
|
|
226
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
227
|
-
}))).annotate({ identifier: "GetInstanceRequest" });
|
|
228
|
-
export const InstanceConnectionInfoWrite = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
229
|
-
host: S.String,
|
|
230
|
-
port: S.Number,
|
|
231
|
-
})).annotate({
|
|
232
|
-
identifier: "InstanceConnectionInfoWrite",
|
|
233
|
-
});
|
|
234
|
-
export const InstanceConnectionInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
-
write: InstanceConnectionInfoWrite,
|
|
236
|
-
})).annotate({ identifier: "InstanceConnectionInfo" });
|
|
237
|
-
export const InstanceNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
238
|
-
accessScope: S.optional(InstanceNetworkAccessScope),
|
|
239
|
-
acl: Acl,
|
|
240
|
-
instanceAddress: S.optional(S.String),
|
|
241
|
-
routerAddress: S.optional(S.String),
|
|
242
|
-
})).annotate({ identifier: "InstanceNetwork" });
|
|
243
|
-
export const State = S.String;
|
|
244
|
-
export const Storage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
245
|
-
class: S.optional(S.String),
|
|
246
|
-
size: S.optional(S.Number),
|
|
247
|
-
})).annotate({ identifier: "Storage" });
|
|
248
|
-
export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
-
backupSchedule: S.String,
|
|
250
|
-
connectionInfo: InstanceConnectionInfo,
|
|
251
|
-
encryption: S.optional(InstanceEncryption),
|
|
252
|
-
flavorId: S.String,
|
|
253
|
-
id: S.String,
|
|
254
|
-
isDeletable: S.Boolean,
|
|
255
|
-
labels: S.optional(Labels),
|
|
256
|
-
name: S.String,
|
|
257
|
-
network: InstanceNetwork,
|
|
258
|
-
retentionDays: S.NullOr(S.Number),
|
|
259
|
-
state: State,
|
|
260
|
-
storage: Storage,
|
|
261
|
-
version: S.String,
|
|
262
|
-
})).annotate({ identifier: "GetInstanceResponse" });
|
|
263
|
-
export const GetUserRequestRegion = S.String;
|
|
264
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
265
|
-
projectId: S.String.pipe(T.Label()),
|
|
266
|
-
region: GetUserRequestRegion.pipe(T.Label()),
|
|
267
|
-
instanceId: S.String.pipe(T.Label()),
|
|
268
|
-
userId: S.Number.pipe(T.Label()),
|
|
269
|
-
}).pipe(T.Http({
|
|
270
|
-
method: "GET",
|
|
271
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
272
|
-
code: 200,
|
|
273
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
274
|
-
}))).annotate({ identifier: "GetUserRequest" });
|
|
275
|
-
export const GetUserResponseRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
276
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
277
|
-
id: S.Number,
|
|
278
|
-
name: S.String,
|
|
279
|
-
roles: GetUserResponseRolesList,
|
|
280
|
-
state: S.String,
|
|
281
|
-
})).annotate({ identifier: "GetUserResponse" });
|
|
282
|
-
export const ListBackupsRequestRegion = S.String;
|
|
283
|
-
export const BackupSort = S.String;
|
|
284
|
-
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
285
|
-
projectId: S.String.pipe(T.Label()),
|
|
286
|
-
region: ListBackupsRequestRegion.pipe(T.Label()),
|
|
287
|
-
instanceId: S.String.pipe(T.Label()),
|
|
288
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
289
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
290
|
-
sort: S.optional(BackupSort.pipe(T.Query())),
|
|
291
|
-
}).pipe(T.Http({
|
|
292
|
-
method: "GET",
|
|
293
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
|
|
294
|
-
code: 200,
|
|
295
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
296
|
-
}))).annotate({ identifier: "ListBackupsRequest" });
|
|
297
|
-
export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(BackupData);
|
|
298
|
-
export const Pagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
-
page: S.Number,
|
|
300
|
-
size: S.Number,
|
|
301
|
-
sort: S.String,
|
|
302
|
-
totalPages: S.Number,
|
|
303
|
-
totalRows: S.Number,
|
|
304
|
-
})).annotate({ identifier: "Pagination" });
|
|
305
|
-
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
306
|
-
backups: ListBackupsResponseBackupsList,
|
|
307
|
-
pagination: Pagination,
|
|
308
|
-
})).annotate({ identifier: "ListBackupsResponse" });
|
|
309
|
-
export const ListCollationsRequestRegion = S.String;
|
|
310
|
-
export const ListCollationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
311
|
-
projectId: S.String.pipe(T.Label()),
|
|
312
|
-
region: ListCollationsRequestRegion.pipe(T.Label()),
|
|
313
|
-
instanceId: S.String.pipe(T.Label()),
|
|
314
|
-
}).pipe(T.Http({
|
|
315
|
-
method: "GET",
|
|
316
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",
|
|
317
|
-
code: 200,
|
|
318
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
319
|
-
}))).annotate({ identifier: "ListCollationsRequest" });
|
|
320
|
-
export const ListCollationsResponseCollationsList = /*@__PURE__*/ S.Array(S.String);
|
|
321
|
-
export const ListCollationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
322
|
-
collations: ListCollationsResponseCollationsList,
|
|
323
|
-
})).annotate({ identifier: "ListCollationsResponse" });
|
|
324
|
-
export const ListDatabasesRequestRegion = S.String;
|
|
325
|
-
export const DatabaseSort = S.String;
|
|
326
|
-
export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
-
projectId: S.String.pipe(T.Label()),
|
|
328
|
-
region: ListDatabasesRequestRegion.pipe(T.Label()),
|
|
329
|
-
instanceId: S.String.pipe(T.Label()),
|
|
330
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
331
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
332
|
-
sort: S.optional(DatabaseSort.pipe(T.Query())),
|
|
333
|
-
}).pipe(T.Http({
|
|
334
|
-
method: "GET",
|
|
335
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
|
|
336
|
-
code: 200,
|
|
337
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
338
|
-
}))).annotate({ identifier: "ListDatabasesRequest" });
|
|
339
|
-
export const ListDatabase = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
|
-
id: S.Number,
|
|
341
|
-
name: S.String,
|
|
342
|
-
owner: S.String,
|
|
343
|
-
})).annotate({ identifier: "ListDatabase" });
|
|
344
|
-
export const ListDatabasesResponseDatabasesList = /*@__PURE__*/ S.Array(ListDatabase);
|
|
345
|
-
export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
346
|
-
databases: ListDatabasesResponseDatabasesList,
|
|
347
|
-
pagination: Pagination,
|
|
348
|
-
})).annotate({ identifier: "ListDatabasesResponse" });
|
|
349
|
-
export const ListFlavorsRequestRegion = S.String;
|
|
350
|
-
export const FlavorSort = S.String;
|
|
351
|
-
export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
352
|
-
projectId: S.String.pipe(T.Label()),
|
|
353
|
-
region: ListFlavorsRequestRegion.pipe(T.Label()),
|
|
354
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
355
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
356
|
-
sort: S.optional(FlavorSort.pipe(T.Query())),
|
|
357
|
-
}).pipe(T.Http({
|
|
358
|
-
method: "GET",
|
|
359
|
-
uri: "/v3/projects/{projectId}/regions/{region}/flavors",
|
|
360
|
-
code: 200,
|
|
361
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
362
|
-
}))).annotate({ identifier: "ListFlavorsRequest" });
|
|
363
|
-
export const FlavorStorageClassesStorageClass = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
364
|
-
class: S.String,
|
|
365
|
-
maxIoPerSec: S.Number,
|
|
366
|
-
maxThroughInMb: S.Number,
|
|
367
|
-
})).annotate({
|
|
368
|
-
identifier: "FlavorStorageClassesStorageClass",
|
|
369
|
-
});
|
|
370
|
-
export const FlavorStorageClasses = /*@__PURE__*/ S.Array(FlavorStorageClassesStorageClass);
|
|
371
|
-
export const ListFlavors = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
|
-
cpu: S.Number,
|
|
373
|
-
description: S.String,
|
|
374
|
-
id: S.String,
|
|
375
|
-
maxGB: S.Number,
|
|
376
|
-
memory: S.Number,
|
|
377
|
-
minGB: S.Number,
|
|
378
|
-
nodeType: S.String,
|
|
379
|
-
storageClasses: FlavorStorageClasses,
|
|
380
|
-
})).annotate({ identifier: "ListFlavors" });
|
|
381
|
-
export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(ListFlavors);
|
|
382
|
-
export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
-
flavors: ListFlavorsResponseFlavorsList,
|
|
384
|
-
pagination: Pagination,
|
|
385
|
-
})).annotate({ identifier: "ListFlavorsResponse" });
|
|
386
|
-
export const ListInstancesRequestRegion = S.String;
|
|
387
|
-
export const InstanceSort = S.String;
|
|
388
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
389
|
-
projectId: S.String.pipe(T.Label()),
|
|
390
|
-
region: ListInstancesRequestRegion.pipe(T.Label()),
|
|
391
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
392
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
393
|
-
sort: S.optional(InstanceSort.pipe(T.Query())),
|
|
394
|
-
}).pipe(T.Http({
|
|
395
|
-
method: "GET",
|
|
396
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances",
|
|
397
|
-
code: 200,
|
|
398
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
399
|
-
}))).annotate({ identifier: "ListInstancesRequest" });
|
|
400
|
-
export const ListInstance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
-
id: S.String,
|
|
402
|
-
isDeletable: S.Boolean,
|
|
403
|
-
name: S.String,
|
|
404
|
-
state: State,
|
|
405
|
-
})).annotate({ identifier: "ListInstance" });
|
|
406
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(ListInstance);
|
|
407
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
408
|
-
instances: ListInstancesResponseInstancesList,
|
|
409
|
-
pagination: Pagination,
|
|
410
|
-
})).annotate({ identifier: "ListInstancesResponse" });
|
|
411
|
-
export const ListRolesRequestRegion = S.String;
|
|
412
|
-
export const ListRolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
413
|
-
projectId: S.String.pipe(T.Label()),
|
|
414
|
-
region: ListRolesRequestRegion.pipe(T.Label()),
|
|
415
|
-
instanceId: S.String.pipe(T.Label()),
|
|
416
|
-
}).pipe(T.Http({
|
|
417
|
-
method: "GET",
|
|
418
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
|
|
419
|
-
code: 200,
|
|
420
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
421
|
-
}))).annotate({ identifier: "ListRolesRequest" });
|
|
422
|
-
export const ListRolesResponseRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
423
|
-
export const ListRolesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
424
|
-
roles: ListRolesResponseRolesList,
|
|
425
|
-
})).annotate({ identifier: "ListRolesResponse" });
|
|
426
|
-
export const ListUsersRequestRegion = S.String;
|
|
427
|
-
export const UserSort = S.String;
|
|
428
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
429
|
-
projectId: S.String.pipe(T.Label()),
|
|
430
|
-
region: ListUsersRequestRegion.pipe(T.Label()),
|
|
431
|
-
instanceId: S.String.pipe(T.Label()),
|
|
432
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
433
|
-
size: S.optional(S.Number.pipe(T.Query())),
|
|
434
|
-
sort: S.optional(UserSort.pipe(T.Query())),
|
|
435
|
-
}).pipe(T.Http({
|
|
436
|
-
method: "GET",
|
|
437
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
|
|
438
|
-
code: 200,
|
|
439
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
440
|
-
}))).annotate({ identifier: "ListUsersRequest" });
|
|
441
|
-
export const ListUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
442
|
-
id: S.Number,
|
|
443
|
-
name: S.String,
|
|
444
|
-
state: S.String,
|
|
445
|
-
})).annotate({ identifier: "ListUser" });
|
|
446
|
-
export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(ListUser);
|
|
447
|
-
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
448
|
-
pagination: Pagination,
|
|
449
|
-
users: ListUsersResponseUsersList,
|
|
450
|
-
})).annotate({ identifier: "ListUsersResponse" });
|
|
451
|
-
export const ListVersionsRequestRegion = S.String;
|
|
452
|
-
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
453
|
-
projectId: S.String.pipe(T.Label()),
|
|
454
|
-
region: ListVersionsRequestRegion.pipe(T.Label()),
|
|
455
|
-
}).pipe(T.Http({
|
|
456
|
-
method: "GET",
|
|
457
|
-
uri: "/v3/projects/{projectId}/regions/{region}/versions",
|
|
458
|
-
code: 200,
|
|
459
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
460
|
-
}))).annotate({ identifier: "ListVersionsRequest" });
|
|
461
|
-
export const Version = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
462
|
-
beta: S.Boolean,
|
|
463
|
-
deprecated: S.String,
|
|
464
|
-
recommend: S.Boolean,
|
|
465
|
-
version: S.String,
|
|
466
|
-
})).annotate({ identifier: "Version" });
|
|
467
|
-
export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(Version);
|
|
468
|
-
export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
|
-
versions: ListVersionsResponseVersionsList,
|
|
470
|
-
})).annotate({ identifier: "ListVersionsResponse" });
|
|
471
|
-
export const PartialUpdateDatabaseRequestRegion = S.String;
|
|
472
|
-
export const PartialUpdateDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
473
|
-
projectId: S.String.pipe(T.Label()),
|
|
474
|
-
region: PartialUpdateDatabaseRequestRegion.pipe(T.Label()),
|
|
475
|
-
instanceId: S.String.pipe(T.Label()),
|
|
476
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
477
|
-
name: S.optional(S.String),
|
|
478
|
-
owner: S.optional(S.String),
|
|
479
|
-
}).pipe(T.Http({
|
|
480
|
-
method: "PATCH",
|
|
481
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
482
|
-
code: 200,
|
|
483
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
484
|
-
}))).annotate({
|
|
485
|
-
identifier: "PartialUpdateDatabaseRequest",
|
|
486
|
-
});
|
|
487
|
-
export const PartialUpdateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
488
|
-
identifier: "PartialUpdateDatabaseResponse",
|
|
489
|
-
});
|
|
490
|
-
export const PartialUpdateInstanceRequestRegion = S.String;
|
|
491
|
-
export const AclOpt = /*@__PURE__*/ S.Array(S.String);
|
|
492
|
-
export const InstanceNetworkOpt = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
493
|
-
acl: S.optional(AclOpt),
|
|
494
|
-
})).annotate({ identifier: "InstanceNetworkOpt" });
|
|
495
|
-
export const StorageUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
496
|
-
size: S.optional(S.Number),
|
|
497
|
-
})).annotate({ identifier: "StorageUpdate" });
|
|
498
|
-
export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
499
|
-
projectId: S.String.pipe(T.Label()),
|
|
500
|
-
region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
|
|
501
|
-
instanceId: S.String.pipe(T.Label()),
|
|
502
|
-
backupSchedule: S.optional(S.String),
|
|
503
|
-
flavorId: S.optional(S.String),
|
|
504
|
-
labels: S.optional(Labels),
|
|
505
|
-
name: S.optional(S.String),
|
|
506
|
-
network: S.optional(InstanceNetworkOpt),
|
|
507
|
-
retentionDays: S.optional(S.Number),
|
|
508
|
-
storage: S.optional(StorageUpdate),
|
|
509
|
-
version: S.optional(S.String),
|
|
510
|
-
}).pipe(T.Http({
|
|
511
|
-
method: "PATCH",
|
|
512
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
513
|
-
code: 200,
|
|
514
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
515
|
-
}))).annotate({
|
|
516
|
-
identifier: "PartialUpdateInstanceRequest",
|
|
517
|
-
});
|
|
518
|
-
export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
519
|
-
identifier: "PartialUpdateInstanceResponse",
|
|
520
|
-
});
|
|
521
|
-
export const PartialUpdateUserRequestRegion = S.String;
|
|
522
|
-
export const PartialUpdateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
523
|
-
export const PartialUpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
524
|
-
projectId: S.String.pipe(T.Label()),
|
|
525
|
-
region: PartialUpdateUserRequestRegion.pipe(T.Label()),
|
|
526
|
-
instanceId: S.String.pipe(T.Label()),
|
|
527
|
-
userId: S.Number.pipe(T.Label()),
|
|
528
|
-
name: S.optional(S.String),
|
|
529
|
-
roles: S.optional(PartialUpdateUserRequestRolesList),
|
|
530
|
-
}).pipe(T.Http({
|
|
531
|
-
method: "PATCH",
|
|
532
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
533
|
-
code: 200,
|
|
534
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
535
|
-
}))).annotate({ identifier: "PartialUpdateUserRequest" });
|
|
536
|
-
export const PartialUpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
537
|
-
identifier: "PartialUpdateUserResponse",
|
|
538
|
-
});
|
|
539
|
-
export const ResetUserPasswordRequestRegion = S.String;
|
|
540
|
-
export const ResetUserPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
541
|
-
projectId: S.String.pipe(T.Label()),
|
|
542
|
-
region: ResetUserPasswordRequestRegion.pipe(T.Label()),
|
|
543
|
-
instanceId: S.String.pipe(T.Label()),
|
|
544
|
-
userId: S.Number.pipe(T.Label()),
|
|
545
|
-
}).pipe(T.Http({
|
|
546
|
-
method: "POST",
|
|
547
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
|
|
548
|
-
code: 200,
|
|
549
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
550
|
-
}))).annotate({ identifier: "ResetUserPasswordRequest" });
|
|
551
|
-
export const ResetUserPasswordResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
552
|
-
name: S.String,
|
|
553
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
554
|
-
state: S.String,
|
|
555
|
-
})).annotate({
|
|
556
|
-
identifier: "ResetUserPasswordResponse",
|
|
557
|
-
});
|
|
558
|
-
export const UpdateDatabaseRequestRegion = S.String;
|
|
559
|
-
export const UpdateDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
|
-
projectId: S.String.pipe(T.Label()),
|
|
561
|
-
region: UpdateDatabaseRequestRegion.pipe(T.Label()),
|
|
562
|
-
instanceId: S.String.pipe(T.Label()),
|
|
563
|
-
databaseId: S.Number.pipe(T.Label()),
|
|
564
|
-
name: S.String,
|
|
565
|
-
owner: S.String,
|
|
566
|
-
}).pipe(T.Http({
|
|
567
|
-
method: "PUT",
|
|
568
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}",
|
|
569
|
-
code: 200,
|
|
570
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
571
|
-
}))).annotate({ identifier: "UpdateDatabaseRequest" });
|
|
572
|
-
export const UpdateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
573
|
-
identifier: "UpdateDatabaseResponse",
|
|
574
|
-
});
|
|
575
|
-
export const UpdateInstanceRequestRegion = S.String;
|
|
576
|
-
export const InstanceNetworkUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
577
|
-
acl: Acl,
|
|
578
|
-
})).annotate({ identifier: "InstanceNetworkUpdate" });
|
|
579
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
580
|
-
projectId: S.String.pipe(T.Label()),
|
|
581
|
-
region: UpdateInstanceRequestRegion.pipe(T.Label()),
|
|
582
|
-
instanceId: S.String.pipe(T.Label()),
|
|
583
|
-
backupSchedule: S.String,
|
|
584
|
-
flavorId: S.String,
|
|
585
|
-
labels: S.optional(Labels),
|
|
586
|
-
name: S.String,
|
|
587
|
-
network: InstanceNetworkUpdate,
|
|
588
|
-
retentionDays: S.NullOr(S.Number),
|
|
589
|
-
storage: StorageUpdate,
|
|
590
|
-
version: S.String,
|
|
591
|
-
}).pipe(T.Http({
|
|
592
|
-
method: "PUT",
|
|
593
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
|
|
594
|
-
code: 200,
|
|
595
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
596
|
-
}))).annotate({ identifier: "UpdateInstanceRequest" });
|
|
597
|
-
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
598
|
-
identifier: "UpdateInstanceResponse",
|
|
599
|
-
});
|
|
600
|
-
export const UpdateInstanceProtectionRequestRegion = S.String;
|
|
601
|
-
export const UpdateInstanceProtectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
602
|
-
projectId: S.String.pipe(T.Label()),
|
|
603
|
-
region: UpdateInstanceProtectionRequestRegion.pipe(T.Label()),
|
|
604
|
-
instanceId: S.String.pipe(T.Label()),
|
|
605
|
-
isDeletable: S.Boolean,
|
|
606
|
-
}).pipe(T.Http({
|
|
607
|
-
method: "POST",
|
|
608
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",
|
|
609
|
-
code: 200,
|
|
610
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
611
|
-
}))).annotate({
|
|
612
|
-
identifier: "UpdateInstanceProtectionRequest",
|
|
613
|
-
});
|
|
614
|
-
export const UpdateInstanceProtectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
615
|
-
isDeletable: S.Boolean,
|
|
616
|
-
})).annotate({
|
|
617
|
-
identifier: "UpdateInstanceProtectionResponse",
|
|
618
|
-
});
|
|
619
|
-
export const UpdateUserRequestRegion = S.String;
|
|
620
|
-
export const UpdateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
621
|
-
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
622
|
-
projectId: S.String.pipe(T.Label()),
|
|
623
|
-
region: UpdateUserRequestRegion.pipe(T.Label()),
|
|
624
|
-
instanceId: S.String.pipe(T.Label()),
|
|
625
|
-
userId: S.Number.pipe(T.Label()),
|
|
626
|
-
name: S.optional(S.String),
|
|
627
|
-
roles: UpdateUserRequestRolesList,
|
|
628
|
-
}).pipe(T.Http({
|
|
629
|
-
method: "PUT",
|
|
630
|
-
uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
|
|
631
|
-
code: 200,
|
|
632
|
-
baseUrl: "https://postgres-flex-service.api.stackit.cloud",
|
|
633
|
-
}))).annotate({ identifier: "UpdateUserRequest" });
|
|
634
|
-
export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
635
|
-
identifier: "UpdateUserResponse",
|
|
636
|
-
});
|
|
637
|
-
/** Clone Instance Clone Instance */
|
|
638
|
-
export const cloneInstance = /*@__PURE__*/ API.make(() => ({
|
|
639
|
-
input: CloneInstanceRequest,
|
|
640
|
-
output: CloneInstanceResponse,
|
|
641
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
642
|
-
protocol: StackitProtocol,
|
|
643
|
-
retry: Retry.Retry,
|
|
644
|
-
}));
|
|
645
|
-
/** Create Database Create database for a user. Note: The name of a valid user must be provided in the 'options' map field using the key 'owner' */
|
|
646
|
-
export const createDatabase = /*@__PURE__*/ API.make(() => ({
|
|
647
|
-
input: CreateDatabaseRequest,
|
|
648
|
-
output: CreateDatabaseResponse,
|
|
649
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
650
|
-
protocol: StackitProtocol,
|
|
651
|
-
retry: Retry.Retry,
|
|
652
|
-
}));
|
|
653
|
-
/** Create Instance Create a new instance of a postgres database instance. */
|
|
654
|
-
export const createInstance = /*@__PURE__*/ API.make(() => ({
|
|
655
|
-
input: CreateInstanceRequest,
|
|
656
|
-
output: CreateInstanceResponse,
|
|
657
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
658
|
-
protocol: StackitProtocol,
|
|
659
|
-
retry: Retry.Retry,
|
|
660
|
-
}));
|
|
661
|
-
/** Create User Create user for an instance. */
|
|
662
|
-
export const createUser = /*@__PURE__*/ API.make(() => ({
|
|
663
|
-
input: CreateUserRequest,
|
|
664
|
-
output: CreateUserResponse,
|
|
665
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
|
|
666
|
-
protocol: StackitProtocol,
|
|
667
|
-
retry: Retry.Retry,
|
|
668
|
-
}));
|
|
669
|
-
/** Delete Database Delete database for an instance. */
|
|
670
|
-
export const deleteDatabase = /*@__PURE__*/ API.make(() => ({
|
|
671
|
-
input: DeleteDatabaseRequest,
|
|
672
|
-
output: DeleteDatabaseResponse,
|
|
673
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
674
|
-
protocol: StackitProtocol,
|
|
675
|
-
retry: Retry.Retry,
|
|
676
|
-
}));
|
|
677
|
-
/** Delete Instance Delete an available postgres instance. */
|
|
678
|
-
export const deleteInstance = /*@__PURE__*/ API.make(() => ({
|
|
679
|
-
input: DeleteInstanceRequest,
|
|
680
|
-
output: DeleteInstanceResponse,
|
|
681
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
682
|
-
protocol: StackitProtocol,
|
|
683
|
-
retry: Retry.Retry,
|
|
684
|
-
}));
|
|
685
|
-
/** Delete User Delete an user from a specific instance. */
|
|
686
|
-
export const deleteUser = /*@__PURE__*/ API.make(() => ({
|
|
687
|
-
input: DeleteUserRequest,
|
|
688
|
-
output: DeleteUserResponse,
|
|
689
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
690
|
-
protocol: StackitProtocol,
|
|
691
|
-
retry: Retry.Retry,
|
|
692
|
-
}));
|
|
693
|
-
/** Get specific backup Get information about a specific backup for an instance. */
|
|
694
|
-
export const getBackup = /*@__PURE__*/ API.make(() => ({
|
|
695
|
-
input: GetBackupRequest,
|
|
696
|
-
output: BackupData,
|
|
697
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
698
|
-
protocol: StackitProtocol,
|
|
699
|
-
retry: Retry.Retry,
|
|
700
|
-
}));
|
|
701
|
-
/** Get Specific Database Get information about a specific database in an instance. */
|
|
702
|
-
export const getDatabase = /*@__PURE__*/ API.make(() => ({
|
|
703
|
-
input: GetDatabaseRequest,
|
|
704
|
-
output: GetDatabaseResponse,
|
|
705
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
706
|
-
protocol: StackitProtocol,
|
|
707
|
-
retry: Retry.Retry,
|
|
708
|
-
}));
|
|
709
|
-
/** Get Specific Instance Get information about a specific available instance */
|
|
710
|
-
export const getInstance = /*@__PURE__*/ API.make(() => ({
|
|
711
|
-
input: GetInstanceRequest,
|
|
712
|
-
output: GetInstanceResponse,
|
|
713
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
714
|
-
protocol: StackitProtocol,
|
|
715
|
-
retry: Retry.Retry,
|
|
716
|
-
}));
|
|
717
|
-
/** Get User Get a specific available user for an instance. */
|
|
718
|
-
export const getUser = /*@__PURE__*/ API.make(() => ({
|
|
719
|
-
input: GetUserRequest,
|
|
720
|
-
output: GetUserResponse,
|
|
721
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
722
|
-
protocol: StackitProtocol,
|
|
723
|
-
retry: Retry.Retry,
|
|
724
|
-
}));
|
|
725
|
-
/** List backups List all backups which are available for a specific instance. */
|
|
726
|
-
export const listBackups = /*@__PURE__*/ API.make(() => ({
|
|
727
|
-
input: ListBackupsRequest,
|
|
728
|
-
output: ListBackupsResponse,
|
|
729
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
730
|
-
protocol: StackitProtocol,
|
|
731
|
-
retry: Retry.Retry,
|
|
732
|
-
}));
|
|
733
|
-
/** Get Collations for an Instance Get available collations for an instance */
|
|
734
|
-
export const listCollations = /*@__PURE__*/ API.make(() => ({
|
|
735
|
-
input: ListCollationsRequest,
|
|
736
|
-
output: ListCollationsResponse,
|
|
737
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
738
|
-
protocol: StackitProtocol,
|
|
739
|
-
retry: Retry.Retry,
|
|
740
|
-
}));
|
|
741
|
-
/** List Databases List available databases for an instance. */
|
|
742
|
-
export const listDatabases = /*@__PURE__*/ API.make(() => ({
|
|
743
|
-
input: ListDatabasesRequest,
|
|
744
|
-
output: ListDatabasesResponse,
|
|
745
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
746
|
-
protocol: StackitProtocol,
|
|
747
|
-
retry: Retry.Retry,
|
|
748
|
-
}));
|
|
749
|
-
/** Get Flavors Get all available flavors for a project. */
|
|
750
|
-
export const listFlavors2 = /*@__PURE__*/ API.make(() => ({
|
|
751
|
-
input: ListFlavorsRequest,
|
|
752
|
-
output: ListFlavorsResponse,
|
|
753
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
754
|
-
protocol: StackitProtocol,
|
|
755
|
-
retry: Retry.Retry,
|
|
756
|
-
}));
|
|
757
|
-
/** List Instances List all available instances for your project. */
|
|
758
|
-
export const listInstances = /*@__PURE__*/ API.make(() => ({
|
|
759
|
-
input: ListInstancesRequest,
|
|
760
|
-
output: ListInstancesResponse,
|
|
761
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
762
|
-
protocol: StackitProtocol,
|
|
763
|
-
retry: Retry.Retry,
|
|
764
|
-
}));
|
|
765
|
-
/** List Roles List available roles for an instance. */
|
|
766
|
-
export const listRoles = /*@__PURE__*/ API.make(() => ({
|
|
767
|
-
input: ListRolesRequest,
|
|
768
|
-
output: ListRolesResponse,
|
|
769
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
770
|
-
protocol: StackitProtocol,
|
|
771
|
-
retry: Retry.Retry,
|
|
772
|
-
}));
|
|
773
|
-
/** List Users List available users for an instance. */
|
|
774
|
-
export const listUsers = /*@__PURE__*/ API.make(() => ({
|
|
775
|
-
input: ListUsersRequest,
|
|
776
|
-
output: ListUsersResponse,
|
|
777
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
778
|
-
protocol: StackitProtocol,
|
|
779
|
-
retry: Retry.Retry,
|
|
780
|
-
}));
|
|
781
|
-
/** Get Versions Get available postgres versions for the project. */
|
|
782
|
-
export const listVersions = /*@__PURE__*/ API.make(() => ({
|
|
783
|
-
input: ListVersionsRequest,
|
|
784
|
-
output: ListVersionsResponse,
|
|
785
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
786
|
-
protocol: StackitProtocol,
|
|
787
|
-
retry: Retry.Retry,
|
|
788
|
-
}));
|
|
789
|
-
/** Update Database partially Update a database partially in an instance. */
|
|
790
|
-
export const partialUpdateDatabase = /*@__PURE__*/ API.make(() => ({
|
|
791
|
-
input: PartialUpdateDatabaseRequest,
|
|
792
|
-
output: PartialUpdateDatabaseResponse,
|
|
793
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
794
|
-
protocol: StackitProtocol,
|
|
795
|
-
retry: Retry.Retry,
|
|
796
|
-
}));
|
|
797
|
-
/** Update Instance Partially Update an available instance of a postgres database. No fields are required. */
|
|
798
|
-
export const partialUpdateInstance = /*@__PURE__*/ API.make(() => ({
|
|
799
|
-
input: PartialUpdateInstanceRequest,
|
|
800
|
-
output: PartialUpdateInstanceResponse,
|
|
801
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
802
|
-
protocol: StackitProtocol,
|
|
803
|
-
retry: Retry.Retry,
|
|
804
|
-
}));
|
|
805
|
-
/** Update User Partially Update an user partially for an instance. */
|
|
806
|
-
export const partialUpdateUser = /*@__PURE__*/ API.make(() => ({
|
|
807
|
-
input: PartialUpdateUserRequest,
|
|
808
|
-
output: PartialUpdateUserResponse,
|
|
809
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
810
|
-
protocol: StackitProtocol,
|
|
811
|
-
retry: Retry.Retry,
|
|
812
|
-
}));
|
|
813
|
-
/** Reset User Reset an user from an specific instance. */
|
|
814
|
-
export const resetUserPassword = /*@__PURE__*/ API.make(() => ({
|
|
815
|
-
input: ResetUserPasswordRequest,
|
|
816
|
-
output: ResetUserPasswordResponse,
|
|
817
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
818
|
-
protocol: StackitProtocol,
|
|
819
|
-
retry: Retry.Retry,
|
|
820
|
-
}));
|
|
821
|
-
/** Update Database Update a database in an instance. */
|
|
822
|
-
export const updateDatabase = /*@__PURE__*/ API.make(() => ({
|
|
823
|
-
input: UpdateDatabaseRequest,
|
|
824
|
-
output: UpdateDatabaseResponse,
|
|
825
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
826
|
-
protocol: StackitProtocol,
|
|
827
|
-
retry: Retry.Retry,
|
|
828
|
-
}));
|
|
829
|
-
/** Update Instance Updates an available instance of a postgres database */
|
|
830
|
-
export const updateInstance = /*@__PURE__*/ API.make(() => ({
|
|
831
|
-
input: UpdateInstanceRequest,
|
|
832
|
-
output: UpdateInstanceResponse,
|
|
833
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
834
|
-
protocol: StackitProtocol,
|
|
835
|
-
retry: Retry.Retry,
|
|
836
|
-
}));
|
|
837
|
-
/** Toggle Instance Protection Toggle the deletion protection for an instance. */
|
|
838
|
-
export const updateInstanceProtection = /*@__PURE__*/ API.make(() => ({
|
|
839
|
-
input: UpdateInstanceProtectionRequest,
|
|
840
|
-
output: UpdateInstanceProtectionResponse,
|
|
841
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
842
|
-
protocol: StackitProtocol,
|
|
843
|
-
retry: Retry.Retry,
|
|
844
|
-
}));
|
|
845
|
-
/** Update User Update user for an instance. */
|
|
846
|
-
export const updateUser = /*@__PURE__*/ API.make(() => ({
|
|
847
|
-
input: UpdateUserRequest,
|
|
848
|
-
output: UpdateUserResponse,
|
|
849
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
|
|
850
|
-
protocol: StackitProtocol,
|
|
851
|
-
retry: Retry.Retry,
|
|
852
|
-
}));
|
|
853
|
-
//# sourceMappingURL=postgres_flex.js.map
|