@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,399 +1,70 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
-
import * as
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import { UnknownStackitError } from "../errors.js";
|
|
6
6
|
import { StackitProtocol } from "../protocol.js";
|
|
7
7
|
import * as Retry from "../retry.js";
|
|
8
8
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}))).
|
|
29
|
-
|
|
30
|
-
export const
|
|
31
|
-
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
})).
|
|
43
|
-
|
|
44
|
-
export const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
variables: S.optional(CreateFunctionRevisionRequestVariablesList),
|
|
72
|
-
version: S.optional(S.Number),
|
|
73
|
-
}).pipe(T.Http({
|
|
74
|
-
method: "POST",
|
|
75
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
|
|
76
|
-
code: 200,
|
|
77
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
78
|
-
}))).annotate({
|
|
79
|
-
identifier: "CreateFunctionRevisionRequest",
|
|
80
|
-
});
|
|
81
|
-
export const RevisionLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
82
|
-
export const RevisionState = S.String;
|
|
83
|
-
export const RevisionVariablesList = /*@__PURE__*/ S.Array(RevisionVariable);
|
|
84
|
-
export const Revision = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
-
created_at: S.optional(S.String),
|
|
86
|
-
digest: S.optional(S.String),
|
|
87
|
-
function_id: S.optional(S.String),
|
|
88
|
-
id: S.optional(S.String),
|
|
89
|
-
labels: S.optional(RevisionLabelsMap),
|
|
90
|
-
limits: ResourceLimits,
|
|
91
|
-
message: S.optional(S.String),
|
|
92
|
-
name: S.optional(S.String),
|
|
93
|
-
oci_pull_credential_id: S.optional(S.String),
|
|
94
|
-
oci_reference: S.String,
|
|
95
|
-
state: S.optional(RevisionState),
|
|
96
|
-
state_error: S.optional(S.String),
|
|
97
|
-
updated_at: S.optional(S.String),
|
|
98
|
-
variables: S.optional(RevisionVariablesList),
|
|
99
|
-
version: S.optional(S.Number),
|
|
100
|
-
})).annotate({ identifier: "Revision" });
|
|
101
|
-
export const CreatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
102
|
-
export const CreatePullCredentialRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
projectId: S.String.pipe(T.Label()),
|
|
104
|
-
address: S.String,
|
|
105
|
-
id: S.optional(S.String),
|
|
106
|
-
labels: S.optional(CreatePullCredentialRequestLabelsMap),
|
|
107
|
-
name: S.optional(S.String),
|
|
108
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
109
|
-
username: S.String,
|
|
110
|
-
}).pipe(T.Http({
|
|
111
|
-
method: "POST",
|
|
112
|
-
uri: "/v1alpha/projects/{projectId}/pull-credentials",
|
|
113
|
-
code: 200,
|
|
114
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
115
|
-
}))).annotate({
|
|
116
|
-
identifier: "CreatePullCredentialRequest",
|
|
117
|
-
});
|
|
118
|
-
export const PullCredentialLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
119
|
-
export const PullCredential = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
address: S.String,
|
|
121
|
-
id: S.optional(S.String),
|
|
122
|
-
labels: S.optional(PullCredentialLabelsMap),
|
|
123
|
-
name: S.optional(S.String),
|
|
124
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
125
|
-
username: S.String,
|
|
126
|
-
})).annotate({ identifier: "PullCredential" });
|
|
127
|
-
export const DeleteFunctionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
|
-
projectId: S.String.pipe(T.Label()),
|
|
129
|
-
functionId: S.String.pipe(T.Label()),
|
|
130
|
-
}).pipe(T.Http({
|
|
131
|
-
method: "DELETE",
|
|
132
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
|
|
133
|
-
code: 200,
|
|
134
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
135
|
-
}))).annotate({ identifier: "DeleteFunctionRequest" });
|
|
136
|
-
export const DeleteFunctionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
137
|
-
identifier: "DeleteFunctionResponse",
|
|
138
|
-
});
|
|
139
|
-
export const DeletePullCredentialRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
-
projectId: S.String.pipe(T.Label()),
|
|
141
|
-
pullCredentialId: S.String.pipe(T.Label()),
|
|
142
|
-
}).pipe(T.Http({
|
|
143
|
-
method: "DELETE",
|
|
144
|
-
uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
|
|
145
|
-
code: 200,
|
|
146
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
147
|
-
}))).annotate({
|
|
148
|
-
identifier: "DeletePullCredentialRequest",
|
|
149
|
-
});
|
|
150
|
-
export const DeletePullCredentialResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
151
|
-
identifier: "DeletePullCredentialResponse",
|
|
152
|
-
});
|
|
153
|
-
export const DeleteRevisionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
154
|
-
projectId: S.String.pipe(T.Label()),
|
|
155
|
-
functionId: S.String.pipe(T.Label()),
|
|
156
|
-
revisionId: S.String.pipe(T.Label()),
|
|
157
|
-
}).pipe(T.Http({
|
|
158
|
-
method: "DELETE",
|
|
159
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
|
|
160
|
-
code: 200,
|
|
161
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
162
|
-
}))).annotate({ identifier: "DeleteRevisionRequest" });
|
|
163
|
-
export const DeleteRevisionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
164
|
-
identifier: "DeleteRevisionResponse",
|
|
165
|
-
});
|
|
166
|
-
export const GetFunctionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
-
projectId: S.String.pipe(T.Label()),
|
|
168
|
-
functionId: S.String.pipe(T.Label()),
|
|
169
|
-
}).pipe(T.Http({
|
|
170
|
-
method: "GET",
|
|
171
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
|
|
172
|
-
code: 200,
|
|
173
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
174
|
-
}))).annotate({ identifier: "GetFunctionRequest" });
|
|
175
|
-
export const GetPullCredentialRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
176
|
-
projectId: S.String.pipe(T.Label()),
|
|
177
|
-
pullCredentialId: S.String.pipe(T.Label()),
|
|
178
|
-
}).pipe(T.Http({
|
|
179
|
-
method: "GET",
|
|
180
|
-
uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
|
|
181
|
-
code: 200,
|
|
182
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
183
|
-
}))).annotate({ identifier: "GetPullCredentialRequest" });
|
|
184
|
-
export const GetRevisionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
185
|
-
projectId: S.String.pipe(T.Label()),
|
|
186
|
-
functionId: S.String.pipe(T.Label()),
|
|
187
|
-
revisionId: S.String.pipe(T.Label()),
|
|
188
|
-
}).pipe(T.Http({
|
|
189
|
-
method: "GET",
|
|
190
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
|
|
191
|
-
code: 200,
|
|
192
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
193
|
-
}))).annotate({ identifier: "GetRevisionRequest" });
|
|
194
|
-
export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
-
projectId: S.String.pipe(T.Label()),
|
|
196
|
-
}).pipe(T.Http({
|
|
197
|
-
method: "GET",
|
|
198
|
-
uri: "/v1alpha/projects/{projectId}/functions",
|
|
199
|
-
code: 200,
|
|
200
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
201
|
-
}))).annotate({ identifier: "ListFunctionsRequest" });
|
|
202
|
-
export const ListFunctionsFunctionsList = /*@__PURE__*/ S.Array(Function);
|
|
203
|
-
export const ListFunctions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
-
functions: S.optional(ListFunctionsFunctionsList),
|
|
205
|
-
next_page_token: S.optional(S.String),
|
|
206
|
-
})).annotate({ identifier: "ListFunctions" });
|
|
207
|
-
export const ListPullCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
-
projectId: S.String.pipe(T.Label()),
|
|
209
|
-
}).pipe(T.Http({
|
|
210
|
-
method: "GET",
|
|
211
|
-
uri: "/v1alpha/projects/{projectId}/pull-credentials",
|
|
212
|
-
code: 200,
|
|
213
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
214
|
-
}))).annotate({
|
|
215
|
-
identifier: "ListPullCredentialsRequest",
|
|
216
|
-
});
|
|
217
|
-
export const ListPullCredentialsPullCredentialsList = /*@__PURE__*/ S.Array(PullCredential);
|
|
218
|
-
export const ListPullCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
219
|
-
next_page_token: S.optional(S.String),
|
|
220
|
-
pull_credentials: S.optional(ListPullCredentialsPullCredentialsList),
|
|
221
|
-
})).annotate({ identifier: "ListPullCredentials" });
|
|
222
|
-
export const ListRevisionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
223
|
-
projectId: S.String.pipe(T.Label()),
|
|
224
|
-
functionId: S.String.pipe(T.Label()),
|
|
225
|
-
}).pipe(T.Http({
|
|
226
|
-
method: "GET",
|
|
227
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
|
|
228
|
-
code: 200,
|
|
229
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
230
|
-
}))).annotate({ identifier: "ListRevisionsRequest" });
|
|
231
|
-
export const ListRevisionsRevisionListList = /*@__PURE__*/ S.Array(Revision);
|
|
232
|
-
export const ListRevisions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
233
|
-
maxItems: S.optional(S.Number),
|
|
234
|
-
next_page_token: S.optional(S.String),
|
|
235
|
-
revisionList: S.optional(ListRevisionsRevisionListList),
|
|
236
|
-
})).annotate({ identifier: "ListRevisions" });
|
|
237
|
-
export const UpdateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
238
|
-
export const UpdateFunctionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
239
|
-
projectId: S.String.pipe(T.Label()),
|
|
240
|
-
functionId: S.String.pipe(T.Label()),
|
|
241
|
-
labels: S.optional(UpdateFunctionRequestLabelsMap),
|
|
242
|
-
name: S.optional(S.String),
|
|
243
|
-
}).pipe(T.Http({
|
|
244
|
-
method: "PATCH",
|
|
245
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}",
|
|
246
|
-
code: 200,
|
|
247
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
248
|
-
}))).annotate({ identifier: "UpdateFunctionRequest" });
|
|
249
|
-
export const UpdatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
250
|
-
export const UpdatePullCredentialRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
251
|
-
projectId: S.String.pipe(T.Label()),
|
|
252
|
-
pullCredentialId: S.String.pipe(T.Label()),
|
|
253
|
-
address: S.optional(S.String),
|
|
254
|
-
labels: S.optional(UpdatePullCredentialRequestLabelsMap),
|
|
255
|
-
name: S.optional(S.String),
|
|
256
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
257
|
-
username: S.optional(S.String),
|
|
258
|
-
}).pipe(T.Http({
|
|
259
|
-
method: "PATCH",
|
|
260
|
-
uri: "/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",
|
|
261
|
-
code: 200,
|
|
262
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
263
|
-
}))).annotate({
|
|
264
|
-
identifier: "UpdatePullCredentialRequest",
|
|
265
|
-
});
|
|
266
|
-
export const UpdateRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
267
|
-
export const UpdateRevisionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
|
-
projectId: S.String.pipe(T.Label()),
|
|
269
|
-
functionId: S.String.pipe(T.Label()),
|
|
270
|
-
revisionId: S.String.pipe(T.Label()),
|
|
271
|
-
labels: S.optional(UpdateRevisionRequestLabelsMap),
|
|
272
|
-
name: S.optional(S.String),
|
|
273
|
-
}).pipe(T.Http({
|
|
274
|
-
method: "PATCH",
|
|
275
|
-
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",
|
|
276
|
-
code: 200,
|
|
277
|
-
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
278
|
-
}))).annotate({ identifier: "UpdateRevisionRequest" });
|
|
279
|
-
/** Creates a new function. */
|
|
280
|
-
export const createFunction = /*@__PURE__*/ API.make(() => ({
|
|
281
|
-
input: CreateFunctionRequest,
|
|
282
|
-
output: Function,
|
|
283
|
-
errors: [UnknownStackitError],
|
|
284
|
-
protocol: StackitProtocol,
|
|
285
|
-
retry: Retry.Retry,
|
|
286
|
-
}));
|
|
287
|
-
/** Create a new function revision */
|
|
288
|
-
export const createFunctionRevision = /*@__PURE__*/ API.make(() => ({
|
|
289
|
-
input: CreateFunctionRevisionRequest,
|
|
290
|
-
output: Revision,
|
|
291
|
-
errors: [UnknownStackitError],
|
|
292
|
-
protocol: StackitProtocol,
|
|
293
|
-
retry: Retry.Retry,
|
|
294
|
-
}));
|
|
295
|
-
/** Create OCI image registry pull credential definition Create a new OCI image registry pull credential configuration. */
|
|
296
|
-
export const createPullCredential = /*@__PURE__*/ API.make(() => ({
|
|
297
|
-
input: CreatePullCredentialRequest,
|
|
298
|
-
output: PullCredential,
|
|
299
|
-
errors: [UnknownStackitError],
|
|
300
|
-
protocol: StackitProtocol,
|
|
301
|
-
retry: Retry.Retry,
|
|
302
|
-
}));
|
|
303
|
-
/** Deletes a specific function. */
|
|
304
|
-
export const deleteFunction = /*@__PURE__*/ API.make(() => ({
|
|
305
|
-
input: DeleteFunctionRequest,
|
|
306
|
-
output: DeleteFunctionResponse,
|
|
307
|
-
errors: [UnknownStackitError],
|
|
308
|
-
protocol: StackitProtocol,
|
|
309
|
-
retry: Retry.Retry,
|
|
310
|
-
}));
|
|
311
|
-
/** Remove OCI image registry pull credential definition Removes the OCI image pull credential registry configuration. */
|
|
312
|
-
export const deletePullCredential = /*@__PURE__*/ API.make(() => ({
|
|
313
|
-
input: DeletePullCredentialRequest,
|
|
314
|
-
output: DeletePullCredentialResponse,
|
|
315
|
-
errors: [UnknownStackitError],
|
|
316
|
-
protocol: StackitProtocol,
|
|
317
|
-
retry: Retry.Retry,
|
|
318
|
-
}));
|
|
319
|
-
/** Deletes a specific revision. */
|
|
320
|
-
export const deleteRevision = /*@__PURE__*/ API.make(() => ({
|
|
321
|
-
input: DeleteRevisionRequest,
|
|
322
|
-
output: DeleteRevisionResponse,
|
|
323
|
-
errors: [UnknownStackitError],
|
|
324
|
-
protocol: StackitProtocol,
|
|
325
|
-
retry: Retry.Retry,
|
|
326
|
-
}));
|
|
327
|
-
/** Retrieves details of a specific function. */
|
|
328
|
-
export const getFunction = /*@__PURE__*/ API.make(() => ({
|
|
329
|
-
input: GetFunctionRequest,
|
|
330
|
-
output: Function,
|
|
331
|
-
errors: [UnknownStackitError],
|
|
332
|
-
protocol: StackitProtocol,
|
|
333
|
-
retry: Retry.Retry,
|
|
334
|
-
}));
|
|
335
|
-
/** Get OCI image registry pull credential definition Returns the current OCI image registry pull credential configuration. */
|
|
336
|
-
export const getPullCredential = /*@__PURE__*/ API.make(() => ({
|
|
337
|
-
input: GetPullCredentialRequest,
|
|
338
|
-
output: PullCredential,
|
|
339
|
-
errors: [UnknownStackitError],
|
|
340
|
-
protocol: StackitProtocol,
|
|
341
|
-
retry: Retry.Retry,
|
|
342
|
-
}));
|
|
343
|
-
/** Retrieves a specific revision. */
|
|
344
|
-
export const getRevision = /*@__PURE__*/ API.make(() => ({
|
|
345
|
-
input: GetRevisionRequest,
|
|
346
|
-
output: Revision,
|
|
347
|
-
errors: [UnknownStackitError],
|
|
348
|
-
protocol: StackitProtocol,
|
|
349
|
-
retry: Retry.Retry,
|
|
350
|
-
}));
|
|
351
|
-
/** Lists all functions. */
|
|
352
|
-
export const listFunctions2 = /*@__PURE__*/ API.make(() => ({
|
|
353
|
-
input: ListFunctionsRequest,
|
|
354
|
-
output: ListFunctions,
|
|
355
|
-
errors: [UnknownStackitError],
|
|
356
|
-
protocol: StackitProtocol,
|
|
357
|
-
retry: Retry.Retry,
|
|
358
|
-
}));
|
|
359
|
-
/** List OCI image registry pull credential definitions Returns all the current OCI image registry pull credential configurations for a project. */
|
|
360
|
-
export const listPullCredentials2 = /*@__PURE__*/ API.make(() => ({
|
|
361
|
-
input: ListPullCredentialsRequest,
|
|
362
|
-
output: ListPullCredentials,
|
|
363
|
-
errors: [UnknownStackitError],
|
|
364
|
-
protocol: StackitProtocol,
|
|
365
|
-
retry: Retry.Retry,
|
|
366
|
-
}));
|
|
367
|
-
/** Lists all revisions. */
|
|
368
|
-
export const listRevisions2 = /*@__PURE__*/ API.make(() => ({
|
|
369
|
-
input: ListRevisionsRequest,
|
|
370
|
-
output: ListRevisions,
|
|
371
|
-
errors: [UnknownStackitError],
|
|
372
|
-
protocol: StackitProtocol,
|
|
373
|
-
retry: Retry.Retry,
|
|
374
|
-
}));
|
|
375
|
-
/** Updates a specific function. */
|
|
376
|
-
export const updateFunction = /*@__PURE__*/ API.make(() => ({
|
|
377
|
-
input: UpdateFunctionRequest,
|
|
378
|
-
output: Function,
|
|
379
|
-
errors: [UnknownStackitError],
|
|
380
|
-
protocol: StackitProtocol,
|
|
381
|
-
retry: Retry.Retry,
|
|
382
|
-
}));
|
|
383
|
-
/** Update OCI image registry pull credential definition Updates the OCI image registry pull credential configuration. */
|
|
384
|
-
export const updatePullCredential = /*@__PURE__*/ API.make(() => ({
|
|
385
|
-
input: UpdatePullCredentialRequest,
|
|
386
|
-
output: PullCredential,
|
|
387
|
-
errors: [UnknownStackitError],
|
|
388
|
-
protocol: StackitProtocol,
|
|
389
|
-
retry: Retry.Retry,
|
|
390
|
-
}));
|
|
391
|
-
/** Updates a specific revision. */
|
|
392
|
-
export const updateRevision = /*@__PURE__*/ API.make(() => ({
|
|
393
|
-
input: UpdateRevisionRequest,
|
|
394
|
-
output: Revision,
|
|
395
|
-
errors: [UnknownStackitError],
|
|
396
|
-
protocol: StackitProtocol,
|
|
397
|
-
retry: Retry.Retry,
|
|
398
|
-
}));
|
|
399
|
-
//# sourceMappingURL=functions.js.map
|
|
9
|
+
const __0 = __L.at;
|
|
10
|
+
const __1 = T.Http;
|
|
11
|
+
const __2 = T.Label;
|
|
12
|
+
const __3 = S.String;
|
|
13
|
+
const __4 = S.optional;
|
|
14
|
+
const __5 = S.Struct;
|
|
15
|
+
const __6 = S.suspend;
|
|
16
|
+
const __7 = S.Record;
|
|
17
|
+
const __8 = S.Array;
|
|
18
|
+
const __9 = S.Number;
|
|
19
|
+
const __10 = S.NullOr;
|
|
20
|
+
const __11 = T.SensitiveValue;
|
|
21
|
+
|
|
22
|
+
export const createFunction = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$9],protocol:$10,retry:$11};$8(>2)@"CreateFunctionRequest";$7({projectId:$3.pipe($2()),created_at:$4($3),current_revision:$4($3),id:$4($3),labels:$4(#5:0),name:$3,state:$4($3),state_error:$4($3),updated_at:$4($3),url:$4(#6:0)}).pipe($1({method:"POST",uri:"/v1alpha/projects/{projectId}/functions",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __d0, __d1, __5, __6, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createFunction, i));
|
|
23
|
+
|
|
24
|
+
export const createFunctionRevision = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$10],protocol:$11,retry:$12};$9(>2)@"CreateFunctionRevisionRequest";$8({projectId:$3.pipe($2()),functionId:$3.pipe($2()),created_at:$4($3),digest:$4($3),function_id:$4($3),id:$4($3),labels:$4(#5:0),limits:#6:0,message:$4($3),name:$4($3),oci_pull_credential_id:$4($3),oci_reference:$3,state:$4($3),state_error:$4($3),updated_at:$4($3),variables:$4(#6:2),version:$4($7)}).pipe($1({method:"POST",uri:"/v1alpha/projects/{projectId}/functions/{functionId}/revisions",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __d0, __d2, __9, __5, __6, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createFunctionRevision, i));
|
|
25
|
+
|
|
26
|
+
export const createPullCredential = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"CreatePullCredentialRequest";$7({projectId:$3.pipe($2()),address:$3,id:$4($3),labels:$4(#5:0),name:$4($3),password:$3.pipe($6({})),username:$3}).pipe($1({method:"POST",uri:"/v1alpha/projects/{projectId}/pull-credentials",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __d0, __11, __5, __6, __d3, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createPullCredential, i));
|
|
27
|
+
|
|
28
|
+
export const deleteFunction = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeleteFunctionRequest";$4({projectId:$3.pipe($2()),functionId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1alpha/projects/{projectId}/functions/{functionId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d4, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteFunction, i));
|
|
29
|
+
|
|
30
|
+
export const deletePullCredential = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeletePullCredentialRequest";$4({projectId:$3.pipe($2()),pullCredentialId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d4, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deletePullCredential, i));
|
|
31
|
+
|
|
32
|
+
export const deleteRevision = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeleteRevisionRequest";$4({projectId:$3.pipe($2()),functionId:$3.pipe($2()),revisionId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d4, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteRevision, i));
|
|
33
|
+
|
|
34
|
+
export const getFunction = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetFunctionRequest";$4({projectId:$3.pipe($2()),functionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/functions/{functionId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d1, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getFunction, i));
|
|
35
|
+
|
|
36
|
+
export const getPullCredential = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetPullCredentialRequest";$4({projectId:$3.pipe($2()),pullCredentialId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d3, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getPullCredential, i));
|
|
37
|
+
|
|
38
|
+
export const getRevision = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetRevisionRequest";$4({projectId:$3.pipe($2()),functionId:$3.pipe($2()),revisionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __5, __6, __d2, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getRevision, i));
|
|
39
|
+
|
|
40
|
+
export const listFunctions2 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListFunctions", '{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"%Request";$7(#6:1);$5(>5)@"%";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/functions",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}));$4({functions:$8(#2),next_page_token:$8($3)})', [__0, __1, __2, __3, __5, __6, __d1, __8, __4, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listFunctions2, i));
|
|
41
|
+
|
|
42
|
+
export const listPullCredentials2 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListPullCredentials", '{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"%Request";$7(#6:0);$5(>5)@"%";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/pull-credentials",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}));$4({next_page_token:$8($3),pull_credentials:$8(#2)})', [__0, __1, __2, __3, __5, __6, __d3, __8, __4, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listPullCredentials2, i));
|
|
43
|
+
|
|
44
|
+
export const listRevisions2 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListRevisions", '{input:#1,output:#3,errors:[$10],protocol:$11,retry:$12};$5(>4)@"%Request";$7(#6:3);$5(>5)@"%";$4({projectId:$3.pipe($2()),functionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/functions/{functionId}/revisions",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}));$4({maxItems:$9($8),next_page_token:$9($3),revisionList:$9(#2)})', [__0, __1, __2, __3, __5, __6, __d2, __8, __9, __4, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listRevisions2, i));
|
|
45
|
+
|
|
46
|
+
export const updateFunction = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:1,errors:[$9],protocol:$10,retry:$11};$7(>2)@"UpdateFunctionRequest";$6({projectId:$3.pipe($2()),functionId:$3.pipe($2()),labels:$5(#4:0),name:$5($3)}).pipe($1({method:"PATCH",uri:"/v1alpha/projects/{projectId}/functions/{functionId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __d0, __4, __5, __6, __d1, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateFunction, i));
|
|
47
|
+
|
|
48
|
+
export const updatePullCredential = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"UpdatePullCredentialRequest";$7({projectId:$3.pipe($2()),pullCredentialId:$3.pipe($2()),address:$4($3),labels:$4(#5:0),name:$4($3),password:$4($3.pipe($6({}))),username:$4($3)}).pipe($1({method:"PATCH",uri:"/v1alpha/projects/{projectId}/pull-credentials/{pullCredentialId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __d0, __11, __5, __6, __d3, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updatePullCredential, i));
|
|
49
|
+
|
|
50
|
+
export const updateRevision = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:3,errors:[$9],protocol:$10,retry:$11};$7(>2)@"UpdateRevisionRequest";$6({projectId:$3.pipe($2()),functionId:$3.pipe($2()),revisionId:$3.pipe($2()),labels:$5(#4:0),name:$5($3)}).pipe($1({method:"PATCH",uri:"/v1alpha/projects/{projectId}/functions/{functionId}/revisions/{revisionId}",code:200,baseUrl:"https://functions.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __d0, __4, __5, __6, __d2, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateRevision, i));
|
|
51
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
52
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// Shared schema data (see `op` in core/api).
|
|
56
|
+
function __d0() {
|
|
57
|
+
return ['$2($1,$1)', [__0, __3, __7]];
|
|
58
|
+
}
|
|
59
|
+
function __d1() {
|
|
60
|
+
return ['$2($1);$6(>2)@"Function";$5({created_at:$3($1),current_revision:$3($1),id:$3($1),labels:$3(#4:0),name:$1,state:$3($1),state_error:$3($1),updated_at:$3($1),url:$3(#0)})', [__0, __3, __8, __4, __d0, __5, __6]];
|
|
61
|
+
}
|
|
62
|
+
function __d2() {
|
|
63
|
+
return ['$4(>4)@"ResourceLimits";$4(>5)@"RevisionVariable";$7(#1);$4(>6)@"Revision";$3({concurrency:$1,plan:$2});$3({name:$2,value:$6($5($2)),vault_reference:$6($5($2))});$3({created_at:$6($2),digest:$6($2),function_id:$6($2),id:$6($2),labels:$6(#8:0),limits:#0,message:$6($2),name:$6($2),oci_pull_credential_id:$6($2),oci_reference:$2,state:$6($2),state_error:$6($2),updated_at:$6($2),variables:$6(#2),version:$6($1)})', [__0, __9, __3, __5, __6, __10, __4, __8, __d0]];
|
|
64
|
+
}
|
|
65
|
+
function __d3() {
|
|
66
|
+
return ['$6(>1)@"PullCredential";$5({address:$1,id:$2($1),labels:$2(#3:0),name:$2($1),password:$1.pipe($4({})),username:$1})', [__0, __3, __4, __d0, __11, __5, __6]];
|
|
67
|
+
}
|
|
68
|
+
function __d4() {
|
|
69
|
+
return ['$2(>1)@"DeleteFunctionResponse";$1({})', [__0, __5, __6]];
|
|
70
|
+
}
|