@distilled.cloud/stackit 1.0.0-rc.16 → 1.0.0-rc.17
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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.js +1 -53
- package/lib/errors.js +1 -26
- package/lib/index.js +1 -24
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.js +1 -45
- package/lib/protocol.js +1 -149
- package/lib/retry.js +1 -32
- package/lib/services/alb.js +29 -84
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.js +34 -95
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.js +2 -76
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.js +2 -68
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.js +32 -91
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.js +2 -53
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.js +2 -47
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.js +41 -110
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.js +2 -66
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.js +2 -76
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.js +2 -70
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.js +36 -97
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.js +182 -420
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.js +0 -2
- package/lib/services/intake.js +30 -84
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.js +42 -108
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.js +2 -53
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.js +30 -87
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.js +34 -92
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.js +35 -94
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.js +35 -94
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.js +2 -77
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.js +2 -65
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.js +43 -112
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.js +39 -105
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.js +160 -385
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.js +35 -95
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.js +32 -91
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.js +48 -126
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.js +38 -104
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.js +36 -98
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.js +2 -58
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.js +37 -103
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.js +2 -47
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.js +26 -73
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.js +41 -109
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.js +43 -111
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.js +30 -80
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.js +2 -68
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.js +31 -86
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.js +2 -50
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.js +47 -125
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.js +27 -76
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.js +47 -123
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.js +27 -74
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.js +35 -91
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.js +30 -83
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.js +2 -65
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.js +35 -95
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.js +44 -116
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.js +28 -78
- package/lib/services/workflows.js.map +1 -0
- package/lib/services.lazy/alb.js +4 -0
- package/lib/services.lazy/alb_waf.js +4 -0
- package/lib/services.lazy/authorization.js +1 -0
- package/lib/services.lazy/automation.js +1 -0
- package/lib/services.lazy/cdn.js +4 -0
- package/lib/services.lazy/certificates.js +1 -0
- package/lib/services.lazy/cost.js +1 -0
- package/lib/services.lazy/dns.js +4 -0
- package/lib/services.lazy/dremio.js +1 -0
- package/lib/services.lazy/edge.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/git.js +4 -0
- package/lib/services.lazy/iaas.js +4 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/intake.js +4 -0
- package/lib/services.lazy/kms.js +4 -0
- package/lib/services.lazy/lb_ip_lists.js +1 -0
- package/lib/services.lazy/load_balancer.js +4 -0
- package/lib/services.lazy/logme.js +4 -0
- package/lib/services.lazy/logs.js +4 -0
- package/lib/services.lazy/mariadb.js +4 -0
- package/lib/services.lazy/model_experiments.js +1 -0
- package/lib/services.lazy/model_serving.js +1 -0
- package/lib/services.lazy/mongodb_flex.js +4 -0
- package/lib/services.lazy/object_storage.js +4 -0
- package/lib/services.lazy/observability.js +4 -0
- package/lib/services.lazy/opensearch.js +4 -0
- package/lib/services.lazy/pim.js +4 -0
- package/lib/services.lazy/postgres_flex.js +4 -0
- package/lib/services.lazy/pubsub.js +4 -0
- package/lib/services.lazy/rabbitmq.js +4 -0
- package/lib/services.lazy/registry.js +1 -0
- package/lib/services.lazy/resource_manager.js +4 -0
- package/lib/services.lazy/run_command.js +1 -0
- package/lib/services.lazy/sca.js +4 -0
- package/lib/services.lazy/scf.js +4 -0
- package/lib/services.lazy/secrets_manager.js +4 -0
- package/lib/services.lazy/server_backup.js +4 -0
- package/lib/services.lazy/server_update.js +1 -0
- package/lib/services.lazy/service_account.js +4 -0
- package/lib/services.lazy/service_enablement.js +1 -0
- package/lib/services.lazy/sfs.js +4 -0
- package/lib/services.lazy/ske.js +4 -0
- package/lib/services.lazy/sqlserverflex.js +4 -0
- package/lib/services.lazy/stackit_marketplace.js +4 -0
- package/lib/services.lazy/telemetry_link.js +4 -0
- package/lib/services.lazy/telemetry_router.js +4 -0
- package/lib/services.lazy/ufw.js +1 -0
- package/lib/services.lazy/valkey.js +4 -0
- package/lib/services.lazy/vpn.js +4 -0
- package/lib/services.lazy/workflows.js +4 -0
- package/lib/traits.js +1 -15
- package/package.json +6 -8
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
|
@@ -1,111 +1,43 @@
|
|
|
1
|
-
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export const deleteApprole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteApproleRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteApprole, i));
|
|
46
|
-
|
|
47
|
-
export const deleteApproleSecretId = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"DeleteApproleSecretIdRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),secretIdVersion:$4.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteApproleSecretId, i));
|
|
48
|
-
|
|
49
|
-
export const deleteInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteInstanceRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteInstance, i));
|
|
50
|
-
|
|
51
|
-
export const deleteUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteUserRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteUser, i));
|
|
52
|
-
|
|
53
|
-
export const getACL =
|
|
54
|
-
/*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetACLRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),aclId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getACL, i));
|
|
55
|
-
|
|
56
|
-
export const getApprole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetApproleRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApprole, i));
|
|
57
|
-
|
|
58
|
-
export const getApproles = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"GetApprolesRequest";$7(#6:0);$5(>5)@"ApproleList";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({approles:#2})', [__0, __1, __2, __3, __5, __6, __d1, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApproles, i));
|
|
59
|
-
|
|
60
|
-
export const getApproleSecretId = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"GetApproleSecretIdRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),secretIdVersion:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __6, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApproleSecretId, i));
|
|
61
|
-
|
|
62
|
-
export const getInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetInstanceRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getInstance, i));
|
|
63
|
-
|
|
64
|
-
export const getUser =
|
|
65
|
-
/*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUserRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUser, i));
|
|
66
|
-
|
|
67
|
-
export const listACLs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListACLsRequest";$7(#6:0);$5(>5)@"ListACLsResponse";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({acls:#2})', [__0, __1, __2, __3, __5, __6, __d0, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listACLs, i));
|
|
68
|
-
|
|
69
|
-
export const listApproleSecretIds = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListApproleSecretIdsRequest";$7(#6:0);$5(>5)@"ApproleSecretList";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({secretIds:#2})', [__0, __1, __2, __3, __5, __6, __d2, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listApproleSecretIds, i));
|
|
70
|
-
|
|
71
|
-
export const listInstances = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"ListInstancesRequest";$7(#6:0);$5(>5)@"ListInstancesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({instances:#2})', [__0, __1, __2, __3, __5, __6, __d3, __7, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listInstances, i));
|
|
72
|
-
|
|
73
|
-
export const listUsers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListUsersRequest";$7(#6:0);$5(>5)@"ListUsersResponse";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/users",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({users:#2})', [__0, __1, __2, __3, __5, __6, __d5, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUsers, i));
|
|
74
|
-
|
|
75
|
-
export const updateACL = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"UpdateACLRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),aclId:$3.pipe($2()),cidr:$3}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateACL, i));
|
|
76
|
-
|
|
77
|
-
export const updateACLs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#3,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$3(>4)@"UpdateACLPayload";$4(#1);$3(>5)@"UpdateACLsRequest";$2({cidr:$1});$2({projectId:$1.pipe($6()),instanceId:$1.pipe($6()),cidrs:$7(#2)}).pipe($5({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __3, __5, __6, __7, __1, __2, __8, __d6, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateACLs, i));
|
|
78
|
-
|
|
79
|
-
export const updateApprole = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateApproleRequest";$7({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),description:$4($3),secret_id_num_uses:$4($5),secret_id_ttl:$4($3),write:$4($6)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __8, __4, __9, __5, __6, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateApprole, i));
|
|
80
|
-
|
|
81
|
-
export const updateApproleSecretId = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateApproleSecretIdRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),secretIdVersion:$4.pipe($2()),description:$5($3)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __8, __5, __6, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateApproleSecretId, i));
|
|
82
|
-
|
|
83
|
-
export const updateInstance = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateInstanceRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),kmsKey:$5(#4:0),name:$3}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __d4, __8, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateInstance, i));
|
|
84
|
-
|
|
85
|
-
export const updateUser = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateUserRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2()),description:$4($3),write:$4($5)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __8, __9, __5, __6, __d6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateUser, i));
|
|
86
|
-
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
87
|
-
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
// Shared schema data (see `op` in core/api).
|
|
91
|
-
function __d0() {
|
|
92
|
-
return ['$3(>1)@"ACL";$2({cidr:$1,id:$1})', [__0, __3, __5, __6]];
|
|
93
|
-
}
|
|
94
|
-
function __d1() {
|
|
95
|
-
return ['$5(>1)@"Approle";$4({description:$1,role_id:$1,secret_id_num_uses:$2,secret_id_ttl:$1,write:$3})', [__0, __3, __4, __9, __5, __6]];
|
|
96
|
-
}
|
|
97
|
-
function __d2() {
|
|
98
|
-
return ['$5(>1)@"ApproleSecret";$4({description:$1,num_uses:$2,secret_id:$3($1),ttl:$1,version:$2})', [__0, __3, __4, __8, __5, __6]];
|
|
99
|
-
}
|
|
100
|
-
function __d3() {
|
|
101
|
-
return ['$6(>1)@"Instance";$5({apiUrl:$1,creationFinishedDate:$2($1),creationStartDate:$1,id:$1,kmsKey:$2(#3:0),name:$1,secretCount:$4,secretsEngine:$1,state:$1,updateFinishedDate:$2($1),updateStartDate:$2($1)})', [__0, __3, __8, __d4, __4, __5, __6]];
|
|
102
|
-
}
|
|
103
|
-
function __d4() {
|
|
104
|
-
return ['$4(>1)@"KmsKeyPayload";$3({keyId:$1,keyRingId:$1,keyVersion:$2,serviceAccountEmail:$1})', [__0, __3, __4, __5, __6]];
|
|
105
|
-
}
|
|
106
|
-
function __d5() {
|
|
107
|
-
return ['$5(>1)@"User";$4({description:$1,id:$1,password:$1.pipe($2({})),username:$1,write:$3})', [__0, __3, __10, __9, __5, __6]];
|
|
108
|
-
}
|
|
109
|
-
function __d6() {
|
|
110
|
-
return ['$2(>1)@"DeleteACLResponse";$1({})', [__0, __5, __6]];
|
|
111
|
-
}
|
|
1
|
+
import{S as e,_ as t,c as n,d as r,errors$UnknownStackitError as i,f as a,h as o,i as s,m as c,n as l,o as u,p as d,protocol$StackitProtocol as f,retry$Retry as p,s as m,t as h,traits$Http as g,traits$Label as _,traits$SensitiveValue as v,traits$applyErrorMatchers as y,u as b,v as x,x as S}from"../_bundle/sdk.js";const C=/*@__PURE__*/ o(function BadRequest(e){return t(e,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[b,S,s,u,n,y]])});const w=/*@__PURE__*/ o(function Conflict(r){return t(r,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[b,e,s,u,n,y]])});const T=/*@__PURE__*/ o(function NotFound(e){return t(e,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[b,S,s,u,n,y]])});const E=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"CreateACLRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),cidr:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d0,C,T,w,i,f,p]]:c(E,e));const D=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateApproleRequest";$7({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),description:$4($3),secret_id_num_uses:$4($5),secret_id_ttl:$4($3),write:$4($6)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,r,s,l,m,a,__d1,C,T,w,i,f,p]]:c(D,e));const O=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"CreateApproleSecretIdRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),description:$4($3)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,r,m,a,__d2,C,T,i,f,p]]:c(O,e));const k=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"CreateInstanceRequest";$6({projectId:$3.pipe($2()),kmsKey:$5(#4:0),name:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/instances",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,__d4,r,m,a,__d3,C,i,f,p]]:c(k,e));const A=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"CreateUserRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),description:$3,write:$4}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/instances/{instanceId}/users",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,l,m,a,__d5,C,T,w,i,f,p]]:c(A,e));const j=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteACLRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),aclId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d6,C,T,i,f,p]]:c(j,e));const M=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteApproleRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d6,C,T,i,f,p]]:c(M,e));const N=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"DeleteApproleSecretIdRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),secretIdVersion:$4.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,s,m,a,__d6,C,T,i,f,p]]:c(N,e));const P=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteInstanceRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d6,C,T,i,f,p]]:c(P,e));const F=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteUserRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d6,C,T,i,f,p]]:c(F,e));const I=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetACLRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),aclId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d0,C,T,i,f,p]]:c(I,e));const L=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetApproleRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d1,C,T,i,f,p]]:c(L,e));const R=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"GetApprolesRequest";$7(#6:0);$5(>5)@"ApproleList";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({approles:#2})`,[b,g,_,u,m,a,__d1,h,C,T,i,f,p]]:c(R,e));const z=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"GetApproleSecretIdRequest";$5({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),secretIdVersion:$4.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,s,m,a,__d2,C,T,i,f,p]]:c(z,e));const B=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetInstanceRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d3,C,T,i,f,p]]:c(B,e));const V=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUserRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d5,C,T,i,f,p]]:c(V,e));const H=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListACLsRequest";$7(#6:0);$5(>5)@"ListACLsResponse";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({acls:#2})`,[b,g,_,u,m,a,__d0,h,C,T,i,f,p]]:c(H,e));const U=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListApproleSecretIdsRequest";$7(#6:0);$5(>5)@"ApproleSecretList";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({secretIds:#2})`,[b,g,_,u,m,a,__d2,h,C,T,i,f,p]]:c(U,e));const W=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"ListInstancesRequest";$7(#6:0);$5(>5)@"ListInstancesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({instances:#2})`,[b,g,_,u,m,a,__d3,h,C,i,f,p]]:c(W,e));const G=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListUsersRequest";$7(#6:0);$5(>5)@"ListUsersResponse";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/instances/{instanceId}/users",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}));$4({users:#2})`,[b,g,_,u,m,a,__d5,h,C,T,i,f,p]]:c(G,e));const K=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"UpdateACLRequest";$4({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),aclId:$3.pipe($2()),cidr:$3}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,m,a,__d6,C,T,i,f,p]]:c(K,e));const q=/*@__PURE__*/ x(e=>e===d?[`{input:#3,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$3(>4)@"UpdateACLPayload";$4(#1);$3(>5)@"UpdateACLsRequest";$2({cidr:$1});$2({projectId:$1.pipe($6()),instanceId:$1.pipe($6()),cidrs:$7(#2)}).pipe($5({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/acls",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,u,m,a,h,g,_,r,__d6,C,T,w,i,f,p]]:c(q,e));const J=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateApproleRequest";$7({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),description:$4($3),secret_id_num_uses:$4($5),secret_id_ttl:$4($3),write:$4($6)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,r,s,l,m,a,__d1,C,T,i,f,p]]:c(J,e));const Y=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateApproleSecretIdRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),roleId:$3.pipe($2()),secretIdVersion:$4.pipe($2()),description:$5($3)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,s,r,m,a,__d2,C,T,i,f,p]]:c(Y,e));const X=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateInstanceRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),kmsKey:$5(#4:0),name:$3}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,__d4,r,m,a,__d6,C,T,i,f,p]]:c(X,e));const Z=/*@__PURE__*/ x(e=>e===d?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateUserRequest";$6({projectId:$3.pipe($2()),instanceId:$3.pipe($2()),userId:$3.pipe($2()),description:$4($3),write:$4($5)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",code:200,baseUrl:"https://secrets-manager.api.{region}stackit.cloud"}))`,[b,g,_,u,r,l,m,a,__d6,C,T,i,f,p]]:c(Z,e));function __d0(){return[`$3(>1)@"ACL";$2({cidr:$1,id:$1})`,[b,u,m,a]]}function __d1(){return[`$5(>1)@"Approle";$4({description:$1,role_id:$1,secret_id_num_uses:$2,secret_id_ttl:$1,write:$3})`,[b,u,s,l,m,a]]}function __d2(){return[`$5(>1)@"ApproleSecret";$4({description:$1,num_uses:$2,secret_id:$3($1),ttl:$1,version:$2})`,[b,u,s,r,m,a]]}function __d3(){return[`$6(>1)@"Instance";$5({apiUrl:$1,creationFinishedDate:$2($1),creationStartDate:$1,id:$1,kmsKey:$2(#3:0),name:$1,secretCount:$4,secretsEngine:$1,state:$1,updateFinishedDate:$2($1),updateStartDate:$2($1)})`,[b,u,r,__d4,s,m,a]]}function __d4(){return[`$4(>1)@"KmsKeyPayload";$3({keyId:$1,keyRingId:$1,keyVersion:$2,serviceAccountEmail:$1})`,[b,u,s,m,a]]}function __d5(){return[`$5(>1)@"User";$4({description:$1,id:$1,password:$1.pipe($2({})),username:$1,write:$3})`,[b,u,v,l,m,a]]}function __d6(){return[`$2(>1)@"DeleteACLResponse";$1({})`,[b,m,a]]}export{C as BadRequest,w as Conflict,T as NotFound,E as createACL,D as createApprole,O as createApproleSecretId,k as createInstance,A as createUser,j as deleteACL,M as deleteApprole,N as deleteApproleSecretId,P as deleteInstance,F as deleteUser,I as getACL,L as getApprole,z as getApproleSecretId,R as getApproles,B as getInstance,V as getUser,H as listACLs,U as listApproleSecretIds,W as listInstances,G as listUsers,K as updateACL,q as updateACLs,J as updateApprole,Y as updateApproleSecretId,X as updateInstance,Z as updateUser};
|
|
2
|
+
/*
|
|
3
|
+
23 36
|
|
4
|
+
e:0:S t:0:_ n:0:c r:0:d i:0:errors$UnknownStackitError a:0:f o:0:h s:0:i c:0:m l:0:n u:0:o d:0:p f:0:protocol$StackitProtocol p:0:retry$Retry m:0:s h:0:t g:0:traits$Http _:0:traits$Label v:0:traits$SensitiveValue y:0:traits$applyErrorMatchers b:0:u x:0:v S:0:x
|
|
5
|
+
000000001c0002w0004b0005q000780008l0009y000bd000cq000e3000fg000gt000i8000jn000l0000md000ns000p7000qj000ry000tb000uv000we000xv000zd0010u0011o0012i0013c001490015a0016b0017f0018e0019f001aa
|
|
6
|
+
2 md we E|=;mo va;k,g,h,a,e,5,1g,1d,1f,1e,4,c,d
|
|
7
|
+
2 x4 19l D|=;xf 18b;k,g,h,a,3,7,9,e,5,1h,1d,1f,1e,4,c,d
|
|
8
|
+
2 1ab 1m4 O|=;1am 1l0;k,g,h,a,3,e,5,1i,1d,1f,4,c,d
|
|
9
|
+
2 1mu 1w6 k|=;1n5 1uz;k,g,h,a,1k,3,e,5,1j,1d,4,c,d
|
|
10
|
+
2 1ww 27i A|=;1x7 26c;k,g,h,a,9,e,5,1l,1d,1f,1e,4,c,d
|
|
11
|
+
2 288 2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d
|
|
29
|
+
2 840 8h7 Y|=;84b 8g1;k,g,h,a,7,3,e,5,1i,1d,1f,4,c,d
|
|
30
|
+
2 8hx 8sg X|=;8i8 8r7;k,g,h,a,1k,3,e,5,1m,1d,1f,4,c,d
|
|
31
|
+
2 8t6 94q Z|=;8th 93k;k,g,h,a,3,9,e,5,1m,1d,1f,4,c,d
|
|
32
|
+
3 9f d3 C|=;aq cl;k,m,7,a,2,j
|
|
33
|
+
3 dt hd w|=;f2 gv;k,0,7,a,2,j
|
|
34
|
+
3 i3 ln T|=;jc l5;k,m,7,a,2,j
|
|
35
|
+
1 94s 96p __d0|=;95g 96c;k,a,e,5
|
|
36
|
+
1 96p 9ai __d1|=;97d 9a1;k,a,7,9,e,5
|
|
37
|
+
1 9ai 9e5 __d2|=;9b6 9do;k,a,7,3,e,5
|
|
38
|
+
1 9e5 9l1 __d3|=;9et 9kf;k,a,3,1k,7,e,5
|
|
39
|
+
1 9l1 9oj __d4|=;9lp 9o4;k,a,7,e,5
|
|
40
|
+
1 9oj 9s2 __d5|=;9p7 9rl;k,a,i,9,e,5
|
|
41
|
+
1 9s2 9ty __d6|=;9sq 9tn;k,e,5
|
|
42
|
+
*/
|
|
43
|
+
//# sourceMappingURL=secrets_manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets_manager.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","T.Http","T.Label","S.Struct","S.suspend","Retry.Retry","API.call","S.optional","S.Boolean","S.Array","T.SensitiveValue","withConflictError","newError","TaggedError","optional","UnknownStackitError","suspend","error","Number","call","Boolean","String","D","StackitProtocol","Retry","Struct","Array","Http","Label","SensitiveValue","applyErrorMatchers","at","op","withBadRequestError","BadRequest","i","Conflict","NotFound","createACL","createApprole","createApproleSecretId","createInstance","createUser","deleteACL","deleteApprole","deleteApproleSecretId","deleteInstance","deleteUser","getACL","getApprole","getApproles","getApproleSecretId","getInstance","getUser","listACLs","listApproleSecretIds","listInstances","listUsers","updateACL","updateACLs","updateApprole","updateApproleSecretId","updateInstance","updateUser"],"sources":["../../src/services/secrets_manager.ts"],"mappings":"2TAaA,MAAa0C,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO1C,EAAa2C,EAAG,WAAY,CAAC,sEAAuE,CAAC1C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAED,MAAasC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAO5C,EAAa2C,EAAG,WAAY,CAAC,oEAAqE,CAAC1C,EAAQM,EAAqBJ,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAClM,CAAC,EAED,MAAauC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAO7C,EAAa2C,EAAG,WAAY,CAAC,oEAAqE,CAAC1C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACpM,CAAC,EA6UD,MAAawC,EAKK,gBAAQ,GAAgBH,IAAMnC,EAAQ,CAAC,yTAA0T,CAACP,EAAQQ,EAAQC,EAASN,EAAUO,EAAUC,EAAW,KAAM8B,EAAYG,EAAUD,EAAUrB,EAAqBQ,EAAiBlB,CAAW,CAAC,EAAIC,EAASgC,EAAWH,CAAC,CAAC,EAI9hB,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAMnC,EAAQ,CAAC,2YAA4Y,CAACP,EAAQQ,EAAQC,EAASN,EAAUW,EAAYZ,EAAUa,EAAWL,EAAUC,EAAW,KAAM8B,EAAYG,EAAUD,EAAUrB,EAAqBQ,EAAiBlB,CAAW,CAAC,EAAIC,EAASiC,EAAeJ,CAAC,CAAC,EAIrpB,MAAaK,EAKK,gBAAQ,GAAgBL,IAAMnC,EAAQ,CAAC,yXAA0X,CAACP,EAAQQ,EAAQC,EAASN,EAAUW,EAAYJ,EAAUC,EAAW,KAAM8B,EAAY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API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>3)@"CreateBackupRequest";$8(>4)@"BackupJob";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),name:$3,retentionPeriod:$4,volumeIds:$6(#5:0)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$7({id:$3})', [__0, __1, __2, __3, __7, __d1, __6, __4, __5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createBackup, i));
|
|
34
|
-
|
|
35
|
-
export const createBackupSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"CreateBackupScheduleRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupProperties:$5(#4:0),enabled:$6,name:$3,rrule:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __6, __9, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createBackupSchedule, i));
|
|
36
|
-
|
|
37
|
-
export const deleteBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"DeleteBackupRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __10, __9, __6, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteBackup, i));
|
|
38
|
-
|
|
39
|
-
export const deleteBackupSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteBackupScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupScheduleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteBackupSchedule, i));
|
|
40
|
-
|
|
41
|
-
export const deleteVolumeBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"DeleteVolumeBackupRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),volumeBackupId:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __10, __9, __6, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteVolumeBackup, i));
|
|
42
|
-
|
|
43
|
-
export const disableServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DisableServiceResourceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableServiceResource, i));
|
|
44
|
-
|
|
45
|
-
export const enableServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"EnableServiceResourceRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupPolicyId:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableServiceResource, i));
|
|
46
|
-
|
|
47
|
-
export const getBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetBackupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getBackup, i));
|
|
48
|
-
|
|
49
|
-
export const getBackupSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetBackupScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupScheduleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getBackupSchedule, i));
|
|
50
|
-
|
|
51
|
-
export const getServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetServiceResourceRequest";$5(>4)@"GetBackupServiceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({enabled:$7($6)})', [__0, __1, __2, __3, __4, __5, __9, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getServiceResource, i));
|
|
52
|
-
|
|
53
|
-
export const listBackupPolicies = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("BackupPolicy", '{input:#1,output:#5,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>6)@"ListBackupPoliciesRequest";$5(>7)@"%BackupProperties";$5(>8)@"%";$9(#3);$5(>9)@"GetBackupPoliciesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/backup-policies",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({name:$6($3),retentionPeriod:$6($7)});$4({backupProperties:$6(#2),default:$6($8),description:$6($3),enabled:$6($8),id:$6($3),name:$6($3),rrule:$6($3)});$4({items:$6(#4)})', [__0, __1, __2, __3, __4, __5, __6, __7, __9, __8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listBackupPolicies, i));
|
|
54
|
-
|
|
55
|
-
export const listBackups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListBackupsRequest";$7(#6:2);$5(>5)@"GetBackupsListResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d0, __8, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listBackups, i));
|
|
56
|
-
|
|
57
|
-
export const listBackupSchedules = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListBackupSchedulesRequest";$7(#6:1);$5(>5)@"GetBackupSchedulesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d2, __8, __6, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listBackupSchedules, i));
|
|
58
|
-
|
|
59
|
-
export const restoreBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"RestoreBackupRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),startServerAfterRestore:$4,volumeIds:$6(#5:0)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/restore",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __d1, __6, __4, __5, __d3, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(restoreBackup, i));
|
|
60
|
-
|
|
61
|
-
export const restoreVolumeBackup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"RestoreVolumeBackupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),volumeBackupId:$3.pipe($2()),restoreVolumeId:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}/restore",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(restoreVolumeBackup, i));
|
|
62
|
-
|
|
63
|
-
export const updateBackupSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"UpdateBackupScheduleRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupScheduleId:$3.pipe($2()),backupProperties:$5(#4:0),enabled:$6,name:$3,rrule:$3}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __6, __9, __4, __5, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateBackupSchedule, i));
|
|
64
|
-
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
65
|
-
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// Shared schema data (see `op` in core/api).
|
|
69
|
-
function __d0() {
|
|
70
|
-
return ['$5(>3)@"BackupVolumeBackupsItem";$6(#0);$5(>4)@"Backup";$4({id:$2($1),lastRestoredAt:$2($1),lastRestoredVolumeId:$2($1),size:$2($3),status:$2($1),volumeId:$2($1)});$4({createdAt:$1,expireAt:$1,id:$1,lastRestoredAt:$2($1),name:$1,size:$2($3),status:$1,volumeBackups:$2(#1)})', [__0, __3, __6, __7, __4, __5, __8]];
|
|
71
|
-
}
|
|
72
|
-
function __d1() {
|
|
73
|
-
return ['$2($1)', [__0, __3, __8]];
|
|
74
|
-
}
|
|
75
|
-
function __d2() {
|
|
76
|
-
return ['$6(>2)@"BackupProperties";$6(>3)@"BackupSchedule";$5({name:$1,retentionPeriod:$2,volumeIds:$4(#3:0)});$5({backupProperties:$4(#0),enabled:$7,id:$2,name:$1,rrule:$1})', [__0, __3, __7, __d1, __6, __4, __5, __9]];
|
|
77
|
-
}
|
|
78
|
-
function __d3() {
|
|
79
|
-
return ['$2(>1)@"DeleteBackupResponse";$1({})', [__0, __4, __5]];
|
|
80
|
-
}
|
|
1
|
+
import{S as e,_ as t,c as n,d as r,errors$UnknownStackitError as i,f as a,g as o,h as s,i as c,m as l,n as u,o as d,p as f,protocol$StackitProtocol as p,retry$Retry as m,s as h,t as g,traits$Http as _,traits$Label as v,traits$Query as y,traits$applyErrorMatchers as b,u as x,v as S,x as C}from"../_bundle/sdk.js";const w=/*@__PURE__*/ s(function BadRequest(e){return t(e,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[x,C,c,d,n,b]])});const T=/*@__PURE__*/ s(function Conflict(r){return t(r,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[x,e,c,d,n,b]])});const E=/*@__PURE__*/ s(function NotFound(e){return t(e,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[x,C,c,d,n,b]])});const D=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#2,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>3)@"CreateBackupRequest";$8(>4)@"BackupJob";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),name:$3,retentionPeriod:$4,volumeIds:$6(#5:0)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$7({id:$3})`,[x,_,v,d,c,__d1,r,h,a,w,E,T,i,p,m]]:l(D,e));const O=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#4:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"CreateBackupScheduleRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupProperties:$5(#4:0),enabled:$6,name:$3,rrule:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,__d2,r,u,h,a,w,E,i,p,m]]:l(O,e));const k=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"DeleteBackupRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,y,u,r,h,a,__d3,w,E,i,p,m]]:l(k,e));const A=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteBackupScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupScheduleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,h,a,__d3,w,E,i,p,m]]:l(A,e));const j=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"DeleteVolumeBackupRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),volumeBackupId:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,y,u,r,h,a,__d3,w,E,i,p,m]]:l(j,e));const M=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DisableServiceResourceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,h,a,__d3,w,E,i,p,m]]:l(M,e));const N=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"EnableServiceResourceRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupPolicyId:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,r,h,a,__d3,w,E,i,p,m]]:l(N,e));const P=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#6:2,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetBackupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,h,a,__d0,w,E,i,p,m]]:l(P,e));const F=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#6:1,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetBackupScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupScheduleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,h,a,__d2,w,E,i,p,m]]:l(F,e));const I=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetServiceResourceRequest";$5(>4)@"GetBackupServiceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({enabled:$7($6)})`,[x,_,v,d,h,a,u,r,w,E,i,p,m]]:l(I,e));const L=/*@__PURE__*/ S(e=>e===f?o(`BackupPolicy`,`{input:#1,output:#5,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>6)@"ListBackupPoliciesRequest";$5(>7)@"%BackupProperties";$5(>8)@"%";$9(#3);$5(>9)@"GetBackupPoliciesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/backup-policies",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({name:$6($3),retentionPeriod:$6($7)});$4({backupProperties:$6(#2),default:$6($8),description:$6($3),enabled:$6($8),id:$6($3),name:$6($3),rrule:$6($3)});$4({items:$6(#4)})`,[x,_,v,d,h,a,r,c,u,g,w,E,i,p,m]):l(L,e));const R=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListBackupsRequest";$7(#6:2);$5(>5)@"GetBackupsListResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({items:$8(#2)})`,[x,_,v,d,h,a,__d0,g,r,w,E,i,p,m]]:l(R,e));const z=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListBackupSchedulesRequest";$7(#6:1);$5(>5)@"GetBackupSchedulesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}));$4({items:$8(#2)})`,[x,_,v,d,h,a,__d2,g,r,w,E,i,p,m]]:l(z,e));const B=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"RestoreBackupRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),startServerAfterRestore:$4,volumeIds:$6(#5:0)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/restore",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,u,__d1,r,h,a,__d3,w,E,T,i,p,m]]:l(B,e));const V=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"RestoreVolumeBackupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupId:$3.pipe($2()),volumeBackupId:$3.pipe($2()),restoreVolumeId:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backups/{backupId}/volume-backups/{volumeBackupId}/restore",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,h,a,__d3,w,E,i,p,m]]:l(V,e));const H=/*@__PURE__*/ S(e=>e===f?[`{input:#1,output:#4:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"UpdateBackupScheduleRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupScheduleId:$3.pipe($2()),backupProperties:$5(#4:0),enabled:$6,name:$3,rrule:$3}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/backup-schedules/{backupScheduleId}",code:200,baseUrl:"https://server-backup.api.stackit.cloud"}))`,[x,_,v,d,__d2,r,u,h,a,w,E,i,p,m]]:l(H,e));function __d0(){return[`$5(>3)@"BackupVolumeBackupsItem";$6(#0);$5(>4)@"Backup";$4({id:$2($1),lastRestoredAt:$2($1),lastRestoredVolumeId:$2($1),size:$2($3),status:$2($1),volumeId:$2($1)});$4({createdAt:$1,expireAt:$1,id:$1,lastRestoredAt:$2($1),name:$1,size:$2($3),status:$1,volumeBackups:$2(#1)})`,[x,d,r,c,h,a,g]]}function __d1(){return[`$2($1)`,[x,d,g]]}function __d2(){return[`$6(>2)@"BackupProperties";$6(>3)@"BackupSchedule";$5({name:$1,retentionPeriod:$2,volumeIds:$4(#3:0)});$5({backupProperties:$4(#0),enabled:$7,id:$2,name:$1,rrule:$1})`,[x,d,c,__d1,r,h,a,u]]}function __d3(){return[`$2(>1)@"DeleteBackupResponse";$1({})`,[x,h,a]]}export{w as BadRequest,T as Conflict,E as NotFound,D as createBackup,O as createBackupSchedule,k as deleteBackup,A as deleteBackupSchedule,j as deleteVolumeBackup,M as disableServiceResource,N as enableServiceResource,P as getBackup,F as getBackupSchedule,I as getServiceResource,L as listBackupPolicies,z as listBackupSchedules,R as listBackups,B as restoreBackup,V as restoreVolumeBackup,H as updateBackupSchedule};
|
|
2
|
+
/*
|
|
3
|
+
24 23
|
|
4
|
+
e:0:S t:0:_ n:0:c r:0:d i:0:errors$UnknownStackitError a:0:f o:0:g s:0:h c:0:i l:0:m u:0:n d:0:o f:0:p p:0:protocol$StackitProtocol m:0:retry$Retry h:0:s g:0:t _:0:traits$Http v:0:traits$Label y:0:traits$Query b:0:traits$applyErrorMatchers x:0:u S:0:v C:0:x
|
|
5
|
+
000000001g0002w0004f0005s0007b0008o000a3000bg000ct000e7000g1000hi000iz000km000lz000ng000oa000p4000py000r1000rw000t2000tx
|
|
6
|
+
2 mb z5 D|=;mm xx;l,h,i,b,8,18,3,f,5,14,16,15,4,d,e
|
|
7
|
+
2 zv 1cf O|=;106 1b9;l,h,i,b,19,3,a,f,5,14,16,4,d,e
|
|
8
|
+
2 1d5 1ph k|=;1dg 1o9;l,h,i,b,j,a,3,f,5,1a,14,16,4,d,e
|
|
9
|
+
2 1q7 22j A|=;1qi 21h;l,h,i,b,f,5,1a,14,16,4,d,e
|
|
10
|
+
2 239 2hg j|=;23k 2g8;l,h,i,b,j,a,3,f,5,1a,14,16,4,d,e
|
|
11
|
+
2 2i6 2sx M|=;2ih 2rv;l,h,i,b,f,5,1a,14,16,4,d,e
|
|
12
|
+
2 2tn 350 N|=;2ty 33w;l,h,i,b,3,f,5,1a,14,16,4,d,e
|
|
13
|
+
2 35q 3gz P|=;361 3fx;l,h,i,b,f,5,17,14,16,4,d,e
|
|
14
|
+
2 3hp 3tv F|=;3i0 3st;l,h,i,b,f,5,19,14,16,4,d,e
|
|
15
|
+
2 3ul 46m I|=;3uw 45l;l,h,i,b,f,5,a,3,14,16,4,d,e
|
|
16
|
+
2 47c 4ni L|=BackupPolicy;483 4md;l,h,i,b,f,5,3,8,a,g,14,16,4,d,e
|
|
17
|
+
2 4o8 50d R|=;4oj 4z7;l,h,i,b,f,5,17,g,3,14,16,4,d,e
|
|
18
|
+
2 513 5dt z|=;51e 5cn;l,h,i,b,f,5,19,g,3,14,16,4,d,e
|
|
19
|
+
2 5ej 5rx B|=;5eu 5qk;l,h,i,b,a,18,3,f,5,1a,14,16,15,4,d,e
|
|
20
|
+
2 5sn 66n V|=;5sy 65l;l,h,i,b,f,5,1a,14,16,4,d,e
|
|
21
|
+
2 67d 6la H|=;67o 6k4;l,h,i,b,19,3,a,f,5,14,16,4,d,e
|
|
22
|
+
3 9d d1 w|=;ao cj;l,n,8,b,2,k
|
|
23
|
+
3 dr hb T|=;f0 gt;l,0,8,b,2,k
|
|
24
|
+
3 i1 ll E|=;ja l3;l,n,8,b,2,k
|
|
25
|
+
1 6lc 6u4 __d0|=;6m0 6tl;l,b,3,8,f,5,g
|
|
26
|
+
1 6u4 6v9 __d1|=;6us 6uy;l,b,g
|
|
27
|
+
1 6v9 716 __d2|=;6vx 70i;l,b,8,18,3,f,5,a
|
|
28
|
+
1 716 735 __d3|=;71u 72u;l,f,5
|
|
29
|
+
*/
|
|
30
|
+
//# sourceMappingURL=server_backup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server_backup.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","T.Http","T.Label","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Boolean","T.Query","API.named","S.Array","withConflictError","newError","TaggedError","optional","UnknownStackitError","suspend","named","error","Number","call","Boolean","String","D","StackitProtocol","Retry","Struct","Array","Http","Label","Query","applyErrorMatchers","at","op","withBadRequestError","BadRequest","i","Conflict","NotFound","createBackup","createBackupSchedule","deleteBackup","deleteBackupSchedule","deleteVolumeBackup","disableServiceResource","enableServiceResource","getBackup","getBackupSchedule","getServiceResource","listBackupPolicies","listBackups","listBackupSchedules","restoreBackup","restoreVolumeBackup","updateBackupSchedule"],"sources":["../../src/services/server_backup.ts"],"mappings":"yTAYA,MAAa4C,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAO5C,EAAa6C,EAAG,WAAY,CAAC,sEAAuE,CAAC5C,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAED,MAAawC,EAA8B,gBAAU,SA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ASN,EAAU,KAAMO,EAAYK,EAAWJ,EAAUC,EAAW+B,EAAYG,EAAUvB,EAAqBS,EAAiBnB,CAAW,CAAC,EAAIC,EAASgD,EAAsBlB,CAAC,CAAC,EAMhsB,SAAS,MAAY,CACnB,MAAO,CAAC,oRAAqR,CAAC5C,EAAQG,EAAUO,EAAYR,EAAUS,EAAUC,EAAWM,CAAO,CAAC,CACrW,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAAClB,EAAQG,EAAUe,CAAO,CAAC,CAC/C,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,wKAAyK,CAAClB,EAAQG,EAAUD,EAAU,KAAMQ,EAAYC,EAAUC,EAAWG,CAAS,CAAC,CACjQ,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,uCAAwC,CAACf,EAAQW,EAAUC,CAAS,CAAC,CAC/E"}
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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-lite";
|
|
5
|
-
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
-
import { UnknownStackitError } from "../errors.js";
|
|
7
|
-
import { StackitProtocol } from "../protocol.js";
|
|
8
|
-
import * as Retry from "../retry.js";
|
|
9
|
-
import * as T from "../traits.js";
|
|
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.Boolean;
|
|
17
|
-
const __7 = S.optional;
|
|
18
|
-
const __8 = S.Number;
|
|
19
|
-
const __9 = S.Array;
|
|
20
|
-
const __10 = S.TaggedError;
|
|
21
|
-
const __11 = T.applyErrorMatchers;
|
|
22
|
-
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
23
|
-
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __8, __3, __10, __11]]);
|
|
24
|
-
});
|
|
25
|
-
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
26
|
-
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __8, __3, __10, __11]]);
|
|
27
|
-
});
|
|
28
|
-
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
29
|
-
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __8, __3, __10, __11]]);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export const createUpdate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateUpdateRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupBeforeUpdate:$5($4),maintenanceWindow:$6}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __8, __4, __5, __d0, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUpdate, i));
|
|
33
|
-
|
|
34
|
-
export const createUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateUpdateScheduleRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),enabled:$4,maintenanceWindow:$5,name:$3,rrule:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __8, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUpdateSchedule, i));
|
|
35
|
-
|
|
36
|
-
export const deleteUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteUpdateScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteUpdateSchedule, i));
|
|
37
|
-
|
|
38
|
-
export const disableServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DisableServiceResourceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableServiceResource, i));
|
|
39
|
-
|
|
40
|
-
export const enableServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"EnableServiceResourceRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),updatePolicyId:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableServiceResource, i));
|
|
41
|
-
|
|
42
|
-
export const getServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetServiceResourceRequest";$5(>4)@"GetUpdateServiceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({enabled:$7($6)})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getServiceResource, i));
|
|
43
|
-
|
|
44
|
-
export const getUpdate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUpdateRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),updateId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUpdate, i));
|
|
45
|
-
|
|
46
|
-
export const getUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUpdateScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUpdateSchedule, i));
|
|
47
|
-
|
|
48
|
-
export const listUpdatePolicies = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>5)@"ListUpdatePoliciesRequest";$5(>6)@"UpdatePolicy";$9(#2);$5(>7)@"GetUpdatePoliciesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/update-policies",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({default:$7($6),description:$7($3),enabled:$7($6),id:$7($3),maintenanceWindow:$7($8),name:$7($3),rrule:$7($3)});$4({items:$7(#3)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUpdatePolicies, i));
|
|
49
|
-
|
|
50
|
-
export const listUpdates = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListUpdatesRequest";$7(#6:0);$5(>5)@"GetUpdatesListResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d0, __9, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUpdates, i));
|
|
51
|
-
|
|
52
|
-
export const listUpdateSchedules = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListUpdateSchedulesRequest";$7(#6:0);$5(>5)@"GetUpdateSchedulesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d1, __9, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUpdateSchedules, i));
|
|
53
|
-
|
|
54
|
-
export const updateUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateUpdateScheduleRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2()),enabled:$4,maintenanceWindow:$5,name:$3,rrule:$3}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __8, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateUpdateSchedule, i));
|
|
55
|
-
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
56
|
-
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
// Shared schema data (see `op` in core/api).
|
|
60
|
-
function __d0() {
|
|
61
|
-
return ['$5(>1)@"Update";$4({endDate:$2($1),failReason:$2($1),failedUpdates:$2($3),id:$3,installedUpdates:$2($3),startDate:$1,status:$1})', [__0, __3, __7, __8, __4, __5]];
|
|
62
|
-
}
|
|
63
|
-
function __d1() {
|
|
64
|
-
return ['$5(>1)@"CreateUpdateScheduleResponse";$4({enabled:$1,maintenanceWindow:$2,name:$3,rrule:$3,id:$2})', [__0, __6, __8, __3, __4, __5]];
|
|
65
|
-
}
|
|
66
|
-
function __d2() {
|
|
67
|
-
return ['$2(>1)@"DeleteUpdateScheduleResponse";$1({})', [__0, __4, __5]];
|
|
68
|
-
}
|
|
1
|
+
import{S as e,_ as t,c as n,d as r,errors$UnknownStackitError as i,f as a,h as o,i as s,m as c,n as l,o as u,p as d,protocol$StackitProtocol as f,retry$Retry as p,s as m,t as h,traits$Http as g,traits$Label as _,traits$applyErrorMatchers as v,u as y,v as b,x}from"../_bundle/sdk.js";const S=/*@__PURE__*/ o(function BadRequest(e){return t(e,new.target,[`$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])`,[y,x,s,u,n,v]])});const C=/*@__PURE__*/ o(function Conflict(r){return t(r,new.target,[`$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])`,[y,e,s,u,n,v]])});const w=/*@__PURE__*/ o(function NotFound(e){return t(e,new.target,[`$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])`,[y,x,s,u,n,v]])});const T=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateUpdateRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupBeforeUpdate:$5($4),maintenanceWindow:$6}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,l,r,s,m,a,__d0,S,w,C,i,f,p]]:c(T,e));const E=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateUpdateScheduleRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),enabled:$4,maintenanceWindow:$5,name:$3,rrule:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,l,s,m,a,__d1,S,w,i,f,p]]:c(E,e));const D=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteUpdateScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,m,a,__d2,S,w,i,f,p]]:c(D,e));const O=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DisableServiceResourceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,m,a,__d2,S,w,i,f,p]]:c(O,e));const k=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"EnableServiceResourceRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),updatePolicyId:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,r,m,a,__d2,S,w,i,f,p]]:c(k,e));const A=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetServiceResourceRequest";$5(>4)@"GetUpdateServiceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({enabled:$7($6)})`,[y,g,_,u,m,a,l,r,S,w,i,f,p]]:c(A,e));const j=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUpdateRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),updateId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,m,a,__d0,S,w,i,f,p]]:c(j,e));const M=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUpdateScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,m,a,__d1,S,w,i,f,p]]:c(M,e));const N=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#4,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>5)@"ListUpdatePoliciesRequest";$5(>6)@"UpdatePolicy";$9(#2);$5(>7)@"GetUpdatePoliciesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/update-policies",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({default:$7($6),description:$7($3),enabled:$7($6),id:$7($3),maintenanceWindow:$7($8),name:$7($3),rrule:$7($3)});$4({items:$7(#3)})`,[y,g,_,u,m,a,l,r,s,h,S,w,i,f,p]]:c(N,e));const P=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListUpdatesRequest";$7(#6:0);$5(>5)@"GetUpdatesListResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({items:$8(#2)})`,[y,g,_,u,m,a,__d0,h,r,S,w,i,f,p]]:c(P,e));const F=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListUpdateSchedulesRequest";$7(#6:0);$5(>5)@"GetUpdateSchedulesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({items:$8(#2)})`,[y,g,_,u,m,a,__d1,h,r,S,w,i,f,p]]:c(F,e));const I=/*@__PURE__*/ b(e=>e===d?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateUpdateScheduleRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2()),enabled:$4,maintenanceWindow:$5,name:$3,rrule:$3}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))`,[y,g,_,u,l,s,m,a,__d1,S,w,i,f,p]]:c(I,e));function __d0(){return[`$5(>1)@"Update";$4({endDate:$2($1),failReason:$2($1),failedUpdates:$2($3),id:$3,installedUpdates:$2($3),startDate:$1,status:$1})`,[y,u,r,s,m,a]]}function __d1(){return[`$5(>1)@"CreateUpdateScheduleResponse";$4({enabled:$1,maintenanceWindow:$2,name:$3,rrule:$3,id:$2})`,[y,l,s,u,m,a]]}function __d2(){return[`$2(>1)@"DeleteUpdateScheduleResponse";$1({})`,[y,m,a]]}export{S as BadRequest,C as Conflict,w as NotFound,T as createUpdate,E as createUpdateSchedule,D as deleteUpdateSchedule,O as disableServiceResource,k as enableServiceResource,A as getServiceResource,j as getUpdate,M as getUpdateSchedule,N as listUpdatePolicies,F as listUpdateSchedules,P as listUpdates,I as updateUpdateSchedule};
|
|
2
|
+
//# sourceMappingURL=server_update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server_update.js","names":["API.newError","__L.at","C.withBadRequestError","S.Number","S.String","S.TaggedError","T.applyErrorMatchers","C.withConflictError","API.D","T.Http","T.Label","S.Boolean","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Array","withConflictError","newError","TaggedError","optional","UnknownStackitError","suspend","error","Number","call","Boolean","String","D","StackitProtocol","Retry","Struct","Array","Http","Label","applyErrorMatchers","at","op","BadRequest","i","withBadRequestError","Conflict","NotFound","createUpdate","createUpdateSchedule","deleteUpdateSchedule","disableServiceResource","enableServiceResource","getServiceResource","getUpdate","getUpdateSchedule","listUpdatePolicies","listUpdates","listUpdateSchedules","updateUpdateSchedule"],"sources":["../../src/services/server_update.ts"],"mappings":"2RAYA,MAAauC,EAAgC,gBAAU,SAAS,WAAW,EAAa,CACtF,OAAOvC,EAAawC,EAAG,WAAY,CAAC,sEAAuE,CAACvC,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAED,MAAaoC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAO1C,EAAawC,EAAG,WAAY,CAAC,oEAAqE,CAACvC,EAAQM,EAAqBJ,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CAClM,CAAC,EAED,MAAaqC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAO3C,EAAawC,EAAG,WAAY,CAAC,oEAAqE,CAACvC,EAAQC,EAAuBC,EAAUC,EAAUC,EAAeC,CAAoB,CAAC,CAAC,CACpM,CAAC,EAkMD,MAAasC,EAKK,gBAAQ,GAAgBJ,IAAMhC,EAAQ,CAAC,+XAAgY,CAACP,EAAQQ,EAAQC,EAASN,EAAUO,EAAWC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