@distilled.cloud/stackit 1.0.0-rc.17 → 1.0.0-rc.19
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/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/alb.d.ts +134 -132
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +27 -26
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +51 -51
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +32 -31
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +15 -15
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +47 -46
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +24 -1
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +129 -129
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +30 -29
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +40 -40
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +15 -15
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +218 -161
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -38
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +49 -34
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -1
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +21 -21
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +28 -1
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +104 -101
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +27 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +120 -29
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +38 -33
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +430 -415
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +180 -179
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +204 -0
- package/lib/services/identity.d.ts.map +1 -0
- package/lib/services/identity.js +2 -0
- package/lib/services/identity.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/intake.d.ts +58 -58
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +28 -27
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +13 -13
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +40 -39
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +14 -14
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -1
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +128 -126
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +28 -27
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +96 -45
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +35 -31
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +78 -24
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -32
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mailout.d.ts +476 -0
- package/lib/services/mailout.d.ts.map +1 -0
- package/lib/services/mailout.js +33 -0
- package/lib/services/mailout.js.map +1 -0
- package/lib/services/mariadb.d.ts +81 -30
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +36 -32
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +33 -33
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +25 -25
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +142 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +41 -40
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +6 -6
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +37 -36
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +362 -362
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +158 -157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +87 -36
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +36 -32
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +334 -278
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +30 -29
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +59 -55
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -45
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +36 -36
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +36 -35
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +92 -41
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +37 -33
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +26 -22
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +56 -56
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +35 -34
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +42 -42
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +349 -213
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +32 -23
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +24 -24
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +39 -38
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -21
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +41 -40
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +31 -31
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +28 -27
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +17 -17
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +30 -30
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +29 -28
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +22 -21
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +151 -141
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -44
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +121 -110
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +25 -24
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +47 -47
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +45 -44
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +39 -39
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +25 -24
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +80 -38
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -32
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +116 -41
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +31 -27
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +55 -54
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +94 -43
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +36 -32
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +150 -142
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +42 -41
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +65 -65
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +26 -25
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/alb_waf.js +1 -1
- package/lib/services.lazy/automation.js +4 -1
- package/lib/services.lazy/cdn.js +1 -1
- package/lib/services.lazy/dns.js +2 -2
- package/lib/services.lazy/edge.js +4 -1
- package/lib/services.lazy/functions.js +3 -1
- package/lib/services.lazy/git.js +2 -2
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/identity.js +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/intake.js +1 -1
- package/lib/services.lazy/kms.js +1 -1
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +2 -2
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mailout.js +4 -0
- package/lib/services.lazy/mariadb.js +2 -2
- package/lib/services.lazy/mongodb_flex.js +1 -1
- package/lib/services.lazy/object_storage.js +1 -1
- package/lib/services.lazy/observability.js +1 -1
- package/lib/services.lazy/opensearch.js +2 -2
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/pubsub.js +1 -1
- package/lib/services.lazy/rabbitmq.js +2 -2
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/sca.js +2 -2
- package/lib/services.lazy/scf.js +1 -1
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/server_backup.js +1 -1
- package/lib/services.lazy/service_account.js +1 -1
- package/lib/services.lazy/sfs.js +2 -2
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/sqlserverflex.js +1 -1
- package/lib/services.lazy/stackit_marketplace.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +2 -2
- package/lib/services.lazy/valkey.js +2 -2
- package/lib/services.lazy/vpn.js +1 -1
- package/lib/services.lazy/workflows.js +1 -1
- package/package.json +6 -5
- package/src/credentials.ts +1 -2
- package/src/index.ts +3 -3
- package/src/pagination.ts +7 -3
- package/src/protocol.ts +22 -20
- package/src/services/alb.ts +174 -132
- package/src/services/alb_waf.ts +96 -51
- package/src/services/authorization.ts +50 -15
- package/src/services/automation.ts +86 -49
- package/src/services/cdn.ts +172 -129
- package/src/services/certificates.ts +63 -40
- package/src/services/cost.ts +34 -15
- package/src/services/dns.ts +552 -269
- package/src/services/dremio.ts +187 -118
- package/src/services/edge.ts +62 -21
- package/src/services/functions.ts +217 -170
- package/src/services/git.ts +407 -108
- package/src/services/iaas.ts +723 -415
- package/src/services/identity.ts +625 -0
- package/src/services/index.ts +2 -0
- package/src/services/intake.ts +101 -58
- package/src/services/kms.ts +76 -13
- package/src/services/lb_ip_lists.ts +37 -14
- package/src/services/load_balancer.ts +168 -126
- package/src/services/logme.ts +345 -122
- package/src/services/logs.ts +172 -72
- package/src/services/mailout.ts +1277 -0
- package/src/services/mariadb.ts +328 -105
- package/src/services/model_experiments.ts +66 -33
- package/src/services/model_serving.ts +54 -25
- package/src/services/mongodb_flex.ts +205 -137
- package/src/services/object_storage.ts +61 -6
- package/src/services/observability.ts +594 -362
- package/src/services/opensearch.ts +337 -114
- package/src/services/pim.ts +403 -278
- package/src/services/postgres_flex.ts +258 -179
- package/src/services/pubsub.ts +85 -36
- package/src/services/rabbitmq.ts +348 -125
- package/src/services/registry.ts +55 -26
- package/src/services/resource_manager.ts +102 -57
- package/src/services/run_command.ts +65 -42
- package/src/services/sca.ts +769 -371
- package/src/services/scf.ts +83 -24
- package/src/services/secrets_manager.ts +87 -22
- package/src/services/server_backup.ts +76 -31
- package/src/services/server_update.ts +54 -17
- package/src/services/service_account.ts +75 -30
- package/src/services/service_enablement.ts +49 -24
- package/src/services/sfs.ts +469 -395
- package/src/services/ske.ts +299 -228
- package/src/services/sqlserverflex.ts +116 -47
- package/src/services/stackit_marketplace.ts +78 -39
- package/src/services/telemetry_link.ts +191 -81
- package/src/services/telemetry_router.ts +326 -94
- package/src/services/ufw.ts +85 -54
- package/src/services/valkey.ts +341 -118
- package/src/services/vpn.ts +213 -142
- package/src/services/workflows.ts +106 -65
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { StackitOpError, StackitOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "stackit-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "STACKIT",
|
|
23
|
+
service: "Functions",
|
|
24
|
+
labels: "stackit",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export type CreateFunctionRequestLabelsMap = { [key: string]: string | undefined };
|
|
16
29
|
/** Status of this function's latest revision. */
|
|
17
30
|
export type CreateFunctionRequestState = "CREATING" | "ACTIVE" | "FAILED";
|
|
@@ -21,22 +34,22 @@ export interface CreateFunctionRequest {
|
|
|
21
34
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
22
35
|
projectId: string;
|
|
23
36
|
/** Time the function was created. */
|
|
24
|
-
created_at?: string;
|
|
37
|
+
created_at?: string | undefined;
|
|
25
38
|
/** The ID of the currently-deployed revision associated with this function. */
|
|
26
|
-
current_revision?: string;
|
|
39
|
+
current_revision?: string | undefined;
|
|
27
40
|
/** Unique identifier for the function. */
|
|
28
|
-
id?: string;
|
|
29
|
-
labels?: CreateFunctionRequestLabelsMap;
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
labels?: CreateFunctionRequestLabelsMap | undefined;
|
|
30
43
|
/** User-defined name of the function. */
|
|
31
44
|
name: string;
|
|
32
45
|
/** Status of this function's latest revision. */
|
|
33
|
-
state?: CreateFunctionRequestState | (string & {});
|
|
46
|
+
state?: CreateFunctionRequestState | (string & {}) | undefined;
|
|
34
47
|
/** Error message related to this function's status. */
|
|
35
|
-
state_error?: string;
|
|
48
|
+
state_error?: string | undefined;
|
|
36
49
|
/** Time the function was last updated. */
|
|
37
|
-
updated_at?: string;
|
|
50
|
+
updated_at?: string | undefined;
|
|
38
51
|
/** URLs that resolve to the function. */
|
|
39
|
-
url?: CreateFunctionRequestUrlList;
|
|
52
|
+
url?: CreateFunctionRequestUrlList | undefined;
|
|
40
53
|
}
|
|
41
54
|
export type FunctionLabelsMap = { [key: string]: string | undefined };
|
|
42
55
|
/** Status of this function's latest revision. */
|
|
@@ -46,75 +59,108 @@ export type FunctionUrlList = Array<string>;
|
|
|
46
59
|
/** Represents a STACKIT Functions function. */
|
|
47
60
|
export interface Function {
|
|
48
61
|
/** Time the function was created. */
|
|
49
|
-
created_at?: string;
|
|
62
|
+
created_at?: string | undefined;
|
|
50
63
|
/** The ID of the currently-deployed revision associated with this function. */
|
|
51
|
-
current_revision?: string;
|
|
64
|
+
current_revision?: string | undefined;
|
|
52
65
|
/** Unique identifier for the function. */
|
|
53
|
-
id?: string;
|
|
54
|
-
labels?: FunctionLabelsMap;
|
|
66
|
+
id?: string | undefined;
|
|
67
|
+
labels?: FunctionLabelsMap | undefined;
|
|
55
68
|
/** User-defined name of the function. */
|
|
56
69
|
name: string;
|
|
57
70
|
/** Status of this function's latest revision. */
|
|
58
|
-
state?: FunctionState;
|
|
71
|
+
state?: FunctionState | undefined;
|
|
59
72
|
/** Error message related to this function's status. */
|
|
60
|
-
state_error?: string;
|
|
73
|
+
state_error?: string | undefined;
|
|
61
74
|
/** Time the function was last updated. */
|
|
62
|
-
updated_at?: string;
|
|
75
|
+
updated_at?: string | undefined;
|
|
63
76
|
/** URLs that resolve to the function. */
|
|
64
|
-
url?: FunctionUrlList;
|
|
77
|
+
url?: FunctionUrlList | undefined;
|
|
65
78
|
}
|
|
66
|
-
export type
|
|
79
|
+
export type CreatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
80
|
+
export interface CreatePullCredentialRequest {
|
|
81
|
+
/** The STACKIT portal project UUID the resource is located in. */
|
|
82
|
+
projectId: string;
|
|
83
|
+
/** The OCI registry address. */
|
|
84
|
+
address: string;
|
|
85
|
+
/** Unique identifier for the OCI registry pull credential. */
|
|
86
|
+
id?: string | undefined;
|
|
87
|
+
labels?: CreatePullCredentialRequestLabelsMap | undefined;
|
|
88
|
+
/** Unique name for the OCI registry pull credential. */
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
/** The password for the OCI registry pull-credentials. */
|
|
91
|
+
password: string | Redacted.Redacted<string>;
|
|
92
|
+
/** The username for the OCI registry pull-credentials. */
|
|
93
|
+
username: string;
|
|
94
|
+
}
|
|
95
|
+
export type PullCredentialLabelsMap = { [key: string]: string | undefined };
|
|
96
|
+
export interface PullCredential {
|
|
97
|
+
/** The OCI registry address. */
|
|
98
|
+
address: string;
|
|
99
|
+
/** Unique identifier for the OCI registry pull credential. */
|
|
100
|
+
id?: string | undefined;
|
|
101
|
+
labels?: PullCredentialLabelsMap | undefined;
|
|
102
|
+
/** Unique name for the OCI registry pull credential. */
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
/** The password for the OCI registry pull-credentials. */
|
|
105
|
+
password: string | Redacted.Redacted<string>;
|
|
106
|
+
/** The username for the OCI registry pull-credentials. */
|
|
107
|
+
username: string;
|
|
108
|
+
}
|
|
109
|
+
export type CreateRevisionRequestLabelsMap = { [key: string]: string | undefined };
|
|
67
110
|
/** Resource utilization limitations */
|
|
68
111
|
export interface ResourceLimits {
|
|
112
|
+
/** Maximum number of in-flight requests to a single instance */
|
|
69
113
|
concurrency: number;
|
|
114
|
+
/** Maximum number of running instances */
|
|
115
|
+
max_scale?: number | undefined;
|
|
70
116
|
plan: string;
|
|
71
117
|
}
|
|
72
118
|
/** Status of this revision. */
|
|
73
|
-
export type
|
|
119
|
+
export type CreateRevisionRequestState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
|
|
74
120
|
/** Represents a variable value for a specific revision. */
|
|
75
121
|
export interface RevisionVariable {
|
|
76
122
|
/** Name of the variable (must match a variable definition on the function). */
|
|
77
123
|
name: string;
|
|
78
124
|
/** The value of the variable. Only present for normal variables. Secrets will have a vault reference instead. */
|
|
79
|
-
value?: string | null;
|
|
125
|
+
value?: string | null | undefined;
|
|
80
126
|
/** Reference to the vault secret. Only present for secret variables. */
|
|
81
|
-
vault_reference?: string | null;
|
|
127
|
+
vault_reference?: string | null | undefined;
|
|
82
128
|
}
|
|
83
129
|
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
84
|
-
export type
|
|
85
|
-
export interface
|
|
130
|
+
export type CreateRevisionRequestVariablesList = Array<RevisionVariable>;
|
|
131
|
+
export interface CreateRevisionRequest {
|
|
86
132
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
87
133
|
projectId: string;
|
|
88
134
|
/** The STACKIT Functions functionId */
|
|
89
135
|
functionId: string;
|
|
90
136
|
/** Time the function was created. */
|
|
91
|
-
created_at?: string;
|
|
137
|
+
created_at?: string | undefined;
|
|
92
138
|
/** A hashed fingerprint of the revision artifact. */
|
|
93
|
-
digest?: string;
|
|
139
|
+
digest?: string | undefined;
|
|
94
140
|
/** The ID of the function associated with this revision. */
|
|
95
|
-
function_id?: string;
|
|
141
|
+
function_id?: string | undefined;
|
|
96
142
|
/** The revision identifier. */
|
|
97
|
-
id?: string;
|
|
98
|
-
labels?:
|
|
143
|
+
id?: string | undefined;
|
|
144
|
+
labels?: CreateRevisionRequestLabelsMap | undefined;
|
|
99
145
|
limits: ResourceLimits;
|
|
100
146
|
/** Revision message */
|
|
101
|
-
message?: string;
|
|
147
|
+
message?: string | undefined;
|
|
102
148
|
/** The name of the the revision. Must be unique within the function. */
|
|
103
|
-
name?: string;
|
|
149
|
+
name?: string | undefined;
|
|
104
150
|
/** OCI Registry pull credential to use for pulling the revision's image. */
|
|
105
|
-
oci_pull_credential_id?: string;
|
|
151
|
+
oci_pull_credential_id?: string | undefined;
|
|
106
152
|
/** OCI reference for the revision. */
|
|
107
153
|
oci_reference: string;
|
|
108
154
|
/** Status of this revision. */
|
|
109
|
-
state?:
|
|
155
|
+
state?: CreateRevisionRequestState | (string & {}) | undefined;
|
|
110
156
|
/** Error message related to this revision. */
|
|
111
|
-
state_error?: string;
|
|
157
|
+
state_error?: string | undefined;
|
|
112
158
|
/** Time the function was last updated. */
|
|
113
|
-
updated_at?: string;
|
|
159
|
+
updated_at?: string | undefined;
|
|
114
160
|
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
115
|
-
variables?:
|
|
161
|
+
variables?: CreateRevisionRequestVariablesList | undefined;
|
|
116
162
|
/** The version number of the revision. */
|
|
117
|
-
version?: number;
|
|
163
|
+
version?: number | undefined;
|
|
118
164
|
}
|
|
119
165
|
export type RevisionLabelsMap = { [key: string]: string | undefined };
|
|
120
166
|
/** Status of this revision. */
|
|
@@ -124,63 +170,33 @@ export type RevisionVariablesList = Array<RevisionVariable>;
|
|
|
124
170
|
/** The function revision */
|
|
125
171
|
export interface Revision {
|
|
126
172
|
/** Time the function was created. */
|
|
127
|
-
created_at?: string;
|
|
173
|
+
created_at?: string | undefined;
|
|
128
174
|
/** A hashed fingerprint of the revision artifact. */
|
|
129
|
-
digest?: string;
|
|
175
|
+
digest?: string | undefined;
|
|
130
176
|
/** The ID of the function associated with this revision. */
|
|
131
|
-
function_id?: string;
|
|
177
|
+
function_id?: string | undefined;
|
|
132
178
|
/** The revision identifier. */
|
|
133
|
-
id?: string;
|
|
134
|
-
labels?: RevisionLabelsMap;
|
|
179
|
+
id?: string | undefined;
|
|
180
|
+
labels?: RevisionLabelsMap | undefined;
|
|
135
181
|
limits: ResourceLimits;
|
|
136
182
|
/** Revision message */
|
|
137
|
-
message?: string;
|
|
183
|
+
message?: string | undefined;
|
|
138
184
|
/** The name of the the revision. Must be unique within the function. */
|
|
139
|
-
name?: string;
|
|
185
|
+
name?: string | undefined;
|
|
140
186
|
/** OCI Registry pull credential to use for pulling the revision's image. */
|
|
141
|
-
oci_pull_credential_id?: string;
|
|
187
|
+
oci_pull_credential_id?: string | undefined;
|
|
142
188
|
/** OCI reference for the revision. */
|
|
143
189
|
oci_reference: string;
|
|
144
190
|
/** Status of this revision. */
|
|
145
|
-
state?: RevisionState;
|
|
191
|
+
state?: RevisionState | undefined;
|
|
146
192
|
/** Error message related to this revision. */
|
|
147
|
-
state_error?: string;
|
|
193
|
+
state_error?: string | undefined;
|
|
148
194
|
/** Time the function was last updated. */
|
|
149
|
-
updated_at?: string;
|
|
195
|
+
updated_at?: string | undefined;
|
|
150
196
|
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
151
|
-
variables?: RevisionVariablesList;
|
|
197
|
+
variables?: RevisionVariablesList | undefined;
|
|
152
198
|
/** The version number of the revision. */
|
|
153
|
-
version?: number;
|
|
154
|
-
}
|
|
155
|
-
export type CreatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
156
|
-
export interface CreatePullCredentialRequest {
|
|
157
|
-
/** The STACKIT portal project UUID the resource is located in. */
|
|
158
|
-
projectId: string;
|
|
159
|
-
/** The OCI registry address. */
|
|
160
|
-
address: string;
|
|
161
|
-
/** Unique identifier for the OCI registry pull credential. */
|
|
162
|
-
id?: string;
|
|
163
|
-
labels?: CreatePullCredentialRequestLabelsMap;
|
|
164
|
-
/** Unique name for the OCI registry pull credential. */
|
|
165
|
-
name?: string;
|
|
166
|
-
/** The password for the OCI registry pull-credentials. */
|
|
167
|
-
password: string | Redacted.Redacted<string>;
|
|
168
|
-
/** The username for the OCI registry pull-credentials. */
|
|
169
|
-
username: string;
|
|
170
|
-
}
|
|
171
|
-
export type PullCredentialLabelsMap = { [key: string]: string | undefined };
|
|
172
|
-
export interface PullCredential {
|
|
173
|
-
/** The OCI registry address. */
|
|
174
|
-
address: string;
|
|
175
|
-
/** Unique identifier for the OCI registry pull credential. */
|
|
176
|
-
id?: string;
|
|
177
|
-
labels?: PullCredentialLabelsMap;
|
|
178
|
-
/** Unique name for the OCI registry pull credential. */
|
|
179
|
-
name?: string;
|
|
180
|
-
/** The password for the OCI registry pull-credentials. */
|
|
181
|
-
password: string | Redacted.Redacted<string>;
|
|
182
|
-
/** The username for the OCI registry pull-credentials. */
|
|
183
|
-
username: string;
|
|
199
|
+
version?: number | undefined;
|
|
184
200
|
}
|
|
185
201
|
export interface DeleteFunctionRequest {
|
|
186
202
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -233,9 +249,9 @@ export interface ListFunctionsRequest {
|
|
|
233
249
|
export type ListFunctionsFunctionsList = Array<Function>;
|
|
234
250
|
export interface ListFunctions {
|
|
235
251
|
/** List of functions. */
|
|
236
|
-
functions?: ListFunctionsFunctionsList;
|
|
252
|
+
functions?: ListFunctionsFunctionsList | undefined;
|
|
237
253
|
/** Token for the next page of results. */
|
|
238
|
-
next_page_token?: string;
|
|
254
|
+
next_page_token?: string | undefined;
|
|
239
255
|
}
|
|
240
256
|
export interface ListPullCredentialsRequest {
|
|
241
257
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -245,9 +261,9 @@ export interface ListPullCredentialsRequest {
|
|
|
245
261
|
export type ListPullCredentialsPullCredentialsList = Array<PullCredential>;
|
|
246
262
|
export interface ListPullCredentials {
|
|
247
263
|
/** Token for the next page of results. */
|
|
248
|
-
next_page_token?: string;
|
|
264
|
+
next_page_token?: string | undefined;
|
|
249
265
|
/** List of oci registries pull credentials associated with the project. */
|
|
250
|
-
pull_credentials?: ListPullCredentialsPullCredentialsList;
|
|
266
|
+
pull_credentials?: ListPullCredentialsPullCredentialsList | undefined;
|
|
251
267
|
}
|
|
252
268
|
export interface ListRevisionsRequest {
|
|
253
269
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -259,11 +275,11 @@ export interface ListRevisionsRequest {
|
|
|
259
275
|
export type ListRevisionsRevisionListList = Array<Revision>;
|
|
260
276
|
export interface ListRevisions {
|
|
261
277
|
/** Maximum number of items */
|
|
262
|
-
maxItems?: number;
|
|
278
|
+
maxItems?: number | undefined;
|
|
263
279
|
/** Token for the next page of results. */
|
|
264
|
-
next_page_token?: string;
|
|
280
|
+
next_page_token?: string | undefined;
|
|
265
281
|
/** List of revisions. */
|
|
266
|
-
revisionList?: ListRevisionsRevisionListList;
|
|
282
|
+
revisionList?: ListRevisionsRevisionListList | undefined;
|
|
267
283
|
}
|
|
268
284
|
export type UpdateFunctionRequestLabelsMap = { [key: string]: string | undefined };
|
|
269
285
|
export interface UpdateFunctionRequest {
|
|
@@ -271,9 +287,9 @@ export interface UpdateFunctionRequest {
|
|
|
271
287
|
projectId: string;
|
|
272
288
|
/** The STACKIT Functions functionId */
|
|
273
289
|
functionId: string;
|
|
274
|
-
labels?: UpdateFunctionRequestLabelsMap;
|
|
290
|
+
labels?: UpdateFunctionRequestLabelsMap | undefined;
|
|
275
291
|
/** User-defined name of the function. */
|
|
276
|
-
name?: string;
|
|
292
|
+
name?: string | undefined;
|
|
277
293
|
}
|
|
278
294
|
export type UpdatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
279
295
|
export interface UpdatePullCredentialRequest {
|
|
@@ -282,14 +298,14 @@ export interface UpdatePullCredentialRequest {
|
|
|
282
298
|
/** The identifier of the OCI registry pull credential configuration */
|
|
283
299
|
pullCredentialId: string;
|
|
284
300
|
/** The OCI registry address. */
|
|
285
|
-
address?: string;
|
|
286
|
-
labels?: UpdatePullCredentialRequestLabelsMap;
|
|
301
|
+
address?: string | undefined;
|
|
302
|
+
labels?: UpdatePullCredentialRequestLabelsMap | undefined;
|
|
287
303
|
/** Unique name for the OCI registry pull secret. */
|
|
288
|
-
name?: string;
|
|
304
|
+
name?: string | undefined;
|
|
289
305
|
/** The password for the OCI registry pull-credentials. */
|
|
290
|
-
password?: string | Redacted.Redacted<string
|
|
306
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
291
307
|
/** The username for the OCI registry pull-credentials. */
|
|
292
|
-
username?: string;
|
|
308
|
+
username?: string | undefined;
|
|
293
309
|
}
|
|
294
310
|
export type UpdateRevisionRequestLabelsMap = { [key: string]: string | undefined };
|
|
295
311
|
export interface UpdateRevisionRequest {
|
|
@@ -299,9 +315,9 @@ export interface UpdateRevisionRequest {
|
|
|
299
315
|
functionId: string;
|
|
300
316
|
/** The identifier of the revision */
|
|
301
317
|
revisionId: string;
|
|
302
|
-
labels?: UpdateRevisionRequestLabelsMap;
|
|
318
|
+
labels?: UpdateRevisionRequestLabelsMap | undefined;
|
|
303
319
|
/** The name of the the revision. Must be unique within the function. */
|
|
304
|
-
name?: string;
|
|
320
|
+
name?: string | undefined;
|
|
305
321
|
}
|
|
306
322
|
export type CreateFunctionError = StackitOpError;
|
|
307
323
|
/** Creates a new function. */
|
|
@@ -316,36 +332,42 @@ export const createFunction: API.OperationMethod<
|
|
|
316
332
|
errors: [UnknownStackitError],
|
|
317
333
|
protocol: StackitProtocol,
|
|
318
334
|
retry: Retry.Retry,
|
|
335
|
+
telemetry: TELEMETRY,
|
|
336
|
+
span: "CreateFunction",
|
|
319
337
|
}));
|
|
320
338
|
|
|
321
|
-
export type
|
|
322
|
-
/** Create a new
|
|
323
|
-
export const
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
339
|
+
export type CreatePullCredentialError = StackitOpError;
|
|
340
|
+
/** Create OCI image registry pull credential definition Create a new OCI image registry pull credential configuration. */
|
|
341
|
+
export const createPullCredential: API.OperationMethod<
|
|
342
|
+
CreatePullCredentialRequest,
|
|
343
|
+
PullCredential,
|
|
344
|
+
CreatePullCredentialError,
|
|
327
345
|
StackitOpContext
|
|
328
346
|
> = /*@__PURE__*/ API.make(() => ({
|
|
329
|
-
input: __S(12, __c3, 0) as any as S.Schema<
|
|
330
|
-
output: __S(
|
|
347
|
+
input: __S(12, __c3, 0) as any as S.Schema<CreatePullCredentialRequest>,
|
|
348
|
+
output: __S(16, __c4, 0) as any as S.Schema<PullCredential>,
|
|
331
349
|
errors: [UnknownStackitError],
|
|
332
350
|
protocol: StackitProtocol,
|
|
333
351
|
retry: Retry.Retry,
|
|
352
|
+
telemetry: TELEMETRY,
|
|
353
|
+
span: "CreatePullCredential",
|
|
334
354
|
}));
|
|
335
355
|
|
|
336
|
-
export type
|
|
337
|
-
/** Create
|
|
338
|
-
export const
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
356
|
+
export type CreateRevisionError = StackitOpError;
|
|
357
|
+
/** Create a new function revision */
|
|
358
|
+
export const createRevision: API.OperationMethod<
|
|
359
|
+
CreateRevisionRequest,
|
|
360
|
+
Revision,
|
|
361
|
+
CreateRevisionError,
|
|
342
362
|
StackitOpContext
|
|
343
363
|
> = /*@__PURE__*/ API.make(() => ({
|
|
344
|
-
input: __S(40, __c10, 0) as any as S.Schema<
|
|
345
|
-
output: __S(
|
|
364
|
+
input: __S(40, __c10, 0) as any as S.Schema<CreateRevisionRequest>,
|
|
365
|
+
output: __S(47, __c11, 3) as any as S.Schema<Revision>,
|
|
346
366
|
errors: [UnknownStackitError],
|
|
347
367
|
protocol: StackitProtocol,
|
|
348
368
|
retry: Retry.Retry,
|
|
369
|
+
telemetry: TELEMETRY,
|
|
370
|
+
span: "CreateRevision",
|
|
349
371
|
}));
|
|
350
372
|
|
|
351
373
|
export type DeleteFunctionError = StackitOpError;
|
|
@@ -361,6 +383,8 @@ export const deleteFunction: API.OperationMethod<
|
|
|
361
383
|
errors: [UnknownStackitError],
|
|
362
384
|
protocol: StackitProtocol,
|
|
363
385
|
retry: Retry.Retry,
|
|
386
|
+
telemetry: TELEMETRY,
|
|
387
|
+
span: "DeleteFunction",
|
|
364
388
|
}));
|
|
365
389
|
|
|
366
390
|
export type DeletePullCredentialError = StackitOpError;
|
|
@@ -376,6 +400,8 @@ export const deletePullCredential: API.OperationMethod<
|
|
|
376
400
|
errors: [UnknownStackitError],
|
|
377
401
|
protocol: StackitProtocol,
|
|
378
402
|
retry: Retry.Retry,
|
|
403
|
+
telemetry: TELEMETRY,
|
|
404
|
+
span: "DeletePullCredential",
|
|
379
405
|
}));
|
|
380
406
|
|
|
381
407
|
export type DeleteRevisionError = StackitOpError;
|
|
@@ -391,6 +417,8 @@ export const deleteRevision: API.OperationMethod<
|
|
|
391
417
|
errors: [UnknownStackitError],
|
|
392
418
|
protocol: StackitProtocol,
|
|
393
419
|
retry: Retry.Retry,
|
|
420
|
+
telemetry: TELEMETRY,
|
|
421
|
+
span: "DeleteRevision",
|
|
394
422
|
}));
|
|
395
423
|
|
|
396
424
|
export type GetFunctionError = StackitOpError;
|
|
@@ -406,6 +434,8 @@ export const getFunction: API.OperationMethod<
|
|
|
406
434
|
errors: [UnknownStackitError],
|
|
407
435
|
protocol: StackitProtocol,
|
|
408
436
|
retry: Retry.Retry,
|
|
437
|
+
telemetry: TELEMETRY,
|
|
438
|
+
span: "GetFunction",
|
|
409
439
|
}));
|
|
410
440
|
|
|
411
441
|
export type GetPullCredentialError = StackitOpError;
|
|
@@ -417,10 +447,12 @@ export const getPullCredential: API.OperationMethod<
|
|
|
417
447
|
StackitOpContext
|
|
418
448
|
> = /*@__PURE__*/ API.make(() => ({
|
|
419
449
|
input: __S(68, __c17, 0) as any as S.Schema<GetPullCredentialRequest>,
|
|
420
|
-
output: __S(
|
|
450
|
+
output: __S(16, __c4, 0) as any as S.Schema<PullCredential>,
|
|
421
451
|
errors: [UnknownStackitError],
|
|
422
452
|
protocol: StackitProtocol,
|
|
423
453
|
retry: Retry.Retry,
|
|
454
|
+
telemetry: TELEMETRY,
|
|
455
|
+
span: "GetPullCredential",
|
|
424
456
|
}));
|
|
425
457
|
|
|
426
458
|
export type GetRevisionError = StackitOpError;
|
|
@@ -432,10 +464,12 @@ export const getRevision: API.OperationMethod<
|
|
|
432
464
|
StackitOpContext
|
|
433
465
|
> = /*@__PURE__*/ API.make(() => ({
|
|
434
466
|
input: __S(72, __c18, 0) as any as S.Schema<GetRevisionRequest>,
|
|
435
|
-
output: __S(
|
|
467
|
+
output: __S(47, __c11, 3) as any as S.Schema<Revision>,
|
|
436
468
|
errors: [UnknownStackitError],
|
|
437
469
|
protocol: StackitProtocol,
|
|
438
470
|
retry: Retry.Retry,
|
|
471
|
+
telemetry: TELEMETRY,
|
|
472
|
+
span: "GetRevision",
|
|
439
473
|
}));
|
|
440
474
|
|
|
441
475
|
export type ListFunctions2Error = StackitOpError;
|
|
@@ -451,6 +485,8 @@ export const listFunctions2: API.OperationMethod<
|
|
|
451
485
|
errors: [UnknownStackitError],
|
|
452
486
|
protocol: StackitProtocol,
|
|
453
487
|
retry: Retry.Retry,
|
|
488
|
+
telemetry: TELEMETRY,
|
|
489
|
+
span: "ListFunctions2",
|
|
454
490
|
}));
|
|
455
491
|
|
|
456
492
|
export type ListPullCredentials2Error = StackitOpError;
|
|
@@ -466,6 +502,8 @@ export const listPullCredentials2: API.OperationMethod<
|
|
|
466
502
|
errors: [UnknownStackitError],
|
|
467
503
|
protocol: StackitProtocol,
|
|
468
504
|
retry: Retry.Retry,
|
|
505
|
+
telemetry: TELEMETRY,
|
|
506
|
+
span: "ListPullCredentials2",
|
|
469
507
|
}));
|
|
470
508
|
|
|
471
509
|
export type ListRevisions2Error = StackitOpError;
|
|
@@ -481,6 +519,8 @@ export const listRevisions2: API.OperationMethod<
|
|
|
481
519
|
errors: [UnknownStackitError],
|
|
482
520
|
protocol: StackitProtocol,
|
|
483
521
|
retry: Retry.Retry,
|
|
522
|
+
telemetry: TELEMETRY,
|
|
523
|
+
span: "ListRevisions2",
|
|
484
524
|
}));
|
|
485
525
|
|
|
486
526
|
export type UpdateFunctionError = StackitOpError;
|
|
@@ -496,6 +536,8 @@ export const updateFunction: API.OperationMethod<
|
|
|
496
536
|
errors: [UnknownStackitError],
|
|
497
537
|
protocol: StackitProtocol,
|
|
498
538
|
retry: Retry.Retry,
|
|
539
|
+
telemetry: TELEMETRY,
|
|
540
|
+
span: "UpdateFunction",
|
|
499
541
|
}));
|
|
500
542
|
|
|
501
543
|
export type UpdatePullCredentialError = StackitOpError;
|
|
@@ -507,10 +549,12 @@ export const updatePullCredential: API.OperationMethod<
|
|
|
507
549
|
StackitOpContext
|
|
508
550
|
> = /*@__PURE__*/ API.make(() => ({
|
|
509
551
|
input: __S(32, __c8, 0) as any as S.Schema<UpdatePullCredentialRequest>,
|
|
510
|
-
output: __S(
|
|
552
|
+
output: __S(16, __c4, 0) as any as S.Schema<PullCredential>,
|
|
511
553
|
errors: [UnknownStackitError],
|
|
512
554
|
protocol: StackitProtocol,
|
|
513
555
|
retry: Retry.Retry,
|
|
556
|
+
telemetry: TELEMETRY,
|
|
557
|
+
span: "UpdatePullCredential",
|
|
514
558
|
}));
|
|
515
559
|
|
|
516
560
|
export type UpdateRevisionError = StackitOpError;
|
|
@@ -522,10 +566,12 @@ export const updateRevision: API.OperationMethod<
|
|
|
522
566
|
StackitOpContext
|
|
523
567
|
> = /*@__PURE__*/ API.make(() => ({
|
|
524
568
|
input: __S(36, __c9, 0) as any as S.Schema<UpdateRevisionRequest>,
|
|
525
|
-
output: __S(
|
|
569
|
+
output: __S(47, __c11, 3) as any as S.Schema<Revision>,
|
|
526
570
|
errors: [UnknownStackitError],
|
|
527
571
|
protocol: StackitProtocol,
|
|
528
572
|
retry: Retry.Retry,
|
|
573
|
+
telemetry: TELEMETRY,
|
|
574
|
+
span: "UpdateRevision",
|
|
529
575
|
}));
|
|
530
576
|
|
|
531
577
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
@@ -587,31 +633,21 @@ function __c3(j: number): any {
|
|
|
587
633
|
return S.suspend(() =>
|
|
588
634
|
S.Struct({
|
|
589
635
|
projectId: S.String.pipe(T.Label()),
|
|
590
|
-
|
|
591
|
-
created_at: S.optional(S.String),
|
|
592
|
-
digest: S.optional(S.String),
|
|
593
|
-
function_id: S.optional(S.String),
|
|
636
|
+
address: S.String,
|
|
594
637
|
id: S.optional(S.String),
|
|
595
638
|
labels: S.optional(__S(4, __c1, 0)),
|
|
596
|
-
limits: __S(16, __c4, 0),
|
|
597
|
-
message: S.optional(S.String),
|
|
598
639
|
name: S.optional(S.String),
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
state: S.optional(S.String),
|
|
602
|
-
state_error: S.optional(S.String),
|
|
603
|
-
updated_at: S.optional(S.String),
|
|
604
|
-
variables: S.optional(__S(18, __c4, 2)),
|
|
605
|
-
version: S.optional(S.Number),
|
|
640
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
641
|
+
username: S.String,
|
|
606
642
|
}).pipe(
|
|
607
643
|
T.Http({
|
|
608
644
|
method: "POST",
|
|
609
|
-
uri: "/v1alpha/projects/{projectId}/
|
|
645
|
+
uri: "/v1alpha/projects/{projectId}/pull-credentials",
|
|
610
646
|
code: 200,
|
|
611
647
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
612
648
|
}),
|
|
613
649
|
),
|
|
614
|
-
).annotate({ identifier: "
|
|
650
|
+
).annotate({ identifier: "CreatePullCredentialRequest" });
|
|
615
651
|
}
|
|
616
652
|
}
|
|
617
653
|
function __c4(j: number): any {
|
|
@@ -619,40 +655,14 @@ function __c4(j: number): any {
|
|
|
619
655
|
case 0:
|
|
620
656
|
return S.suspend(() =>
|
|
621
657
|
S.Struct({
|
|
622
|
-
|
|
623
|
-
plan: S.String,
|
|
624
|
-
}),
|
|
625
|
-
).annotate({ identifier: "ResourceLimits" });
|
|
626
|
-
case 1:
|
|
627
|
-
return S.suspend(() =>
|
|
628
|
-
S.Struct({
|
|
629
|
-
name: S.String,
|
|
630
|
-
value: S.optional(S.NullOr(S.String)),
|
|
631
|
-
vault_reference: S.optional(S.NullOr(S.String)),
|
|
632
|
-
}),
|
|
633
|
-
).annotate({ identifier: "RevisionVariable" });
|
|
634
|
-
case 2:
|
|
635
|
-
return S.Array(__S(17, __c4, 1));
|
|
636
|
-
case 3:
|
|
637
|
-
return S.suspend(() =>
|
|
638
|
-
S.Struct({
|
|
639
|
-
created_at: S.optional(S.String),
|
|
640
|
-
digest: S.optional(S.String),
|
|
641
|
-
function_id: S.optional(S.String),
|
|
658
|
+
address: S.String,
|
|
642
659
|
id: S.optional(S.String),
|
|
643
660
|
labels: S.optional(__S(4, __c1, 0)),
|
|
644
|
-
limits: __S(16, __c4, 0),
|
|
645
|
-
message: S.optional(S.String),
|
|
646
661
|
name: S.optional(S.String),
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
state: S.optional(S.String),
|
|
650
|
-
state_error: S.optional(S.String),
|
|
651
|
-
updated_at: S.optional(S.String),
|
|
652
|
-
variables: S.optional(__S(18, __c4, 2)),
|
|
653
|
-
version: S.optional(S.Number),
|
|
662
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
663
|
+
username: S.String,
|
|
654
664
|
}),
|
|
655
|
-
).annotate({ identifier: "
|
|
665
|
+
).annotate({ identifier: "PullCredential" });
|
|
656
666
|
}
|
|
657
667
|
}
|
|
658
668
|
function __c5(j: number): any {
|
|
@@ -671,7 +681,7 @@ function __c5(j: number): any {
|
|
|
671
681
|
),
|
|
672
682
|
).annotate({ identifier: "ListPullCredentialsRequest" });
|
|
673
683
|
case 1:
|
|
674
|
-
return S.Array(__S(
|
|
684
|
+
return S.Array(__S(16, __c4, 0));
|
|
675
685
|
case 2:
|
|
676
686
|
return S.suspend(() =>
|
|
677
687
|
S.Struct({
|
|
@@ -698,7 +708,7 @@ function __c6(j: number): any {
|
|
|
698
708
|
),
|
|
699
709
|
).annotate({ identifier: "ListRevisionsRequest" });
|
|
700
710
|
case 1:
|
|
701
|
-
return S.Array(__S(
|
|
711
|
+
return S.Array(__S(47, __c11, 3));
|
|
702
712
|
case 2:
|
|
703
713
|
return S.suspend(() =>
|
|
704
714
|
S.Struct({
|
|
@@ -779,21 +789,31 @@ function __c10(j: number): any {
|
|
|
779
789
|
return S.suspend(() =>
|
|
780
790
|
S.Struct({
|
|
781
791
|
projectId: S.String.pipe(T.Label()),
|
|
782
|
-
|
|
792
|
+
functionId: S.String.pipe(T.Label()),
|
|
793
|
+
created_at: S.optional(S.String),
|
|
794
|
+
digest: S.optional(S.String),
|
|
795
|
+
function_id: S.optional(S.String),
|
|
783
796
|
id: S.optional(S.String),
|
|
784
797
|
labels: S.optional(__S(4, __c1, 0)),
|
|
798
|
+
limits: __S(44, __c11, 0),
|
|
799
|
+
message: S.optional(S.String),
|
|
785
800
|
name: S.optional(S.String),
|
|
786
|
-
|
|
787
|
-
|
|
801
|
+
oci_pull_credential_id: S.optional(S.String),
|
|
802
|
+
oci_reference: S.String,
|
|
803
|
+
state: S.optional(S.String),
|
|
804
|
+
state_error: S.optional(S.String),
|
|
805
|
+
updated_at: S.optional(S.String),
|
|
806
|
+
variables: S.optional(__S(46, __c11, 2)),
|
|
807
|
+
version: S.optional(S.Number),
|
|
788
808
|
}).pipe(
|
|
789
809
|
T.Http({
|
|
790
810
|
method: "POST",
|
|
791
|
-
uri: "/v1alpha/projects/{projectId}/
|
|
811
|
+
uri: "/v1alpha/projects/{projectId}/functions/{functionId}/revisions",
|
|
792
812
|
code: 200,
|
|
793
813
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
794
814
|
}),
|
|
795
815
|
),
|
|
796
|
-
).annotate({ identifier: "
|
|
816
|
+
).annotate({ identifier: "CreateRevisionRequest" });
|
|
797
817
|
}
|
|
798
818
|
}
|
|
799
819
|
function __c11(j: number): any {
|
|
@@ -801,14 +821,41 @@ function __c11(j: number): any {
|
|
|
801
821
|
case 0:
|
|
802
822
|
return S.suspend(() =>
|
|
803
823
|
S.Struct({
|
|
804
|
-
|
|
824
|
+
concurrency: S.Number,
|
|
825
|
+
max_scale: S.optional(S.Number),
|
|
826
|
+
plan: S.String,
|
|
827
|
+
}),
|
|
828
|
+
).annotate({ identifier: "ResourceLimits" });
|
|
829
|
+
case 1:
|
|
830
|
+
return S.suspend(() =>
|
|
831
|
+
S.Struct({
|
|
832
|
+
name: S.String,
|
|
833
|
+
value: S.optional(S.NullOr(S.String)),
|
|
834
|
+
vault_reference: S.optional(S.NullOr(S.String)),
|
|
835
|
+
}),
|
|
836
|
+
).annotate({ identifier: "RevisionVariable" });
|
|
837
|
+
case 2:
|
|
838
|
+
return S.Array(__S(45, __c11, 1));
|
|
839
|
+
case 3:
|
|
840
|
+
return S.suspend(() =>
|
|
841
|
+
S.Struct({
|
|
842
|
+
created_at: S.optional(S.String),
|
|
843
|
+
digest: S.optional(S.String),
|
|
844
|
+
function_id: S.optional(S.String),
|
|
805
845
|
id: S.optional(S.String),
|
|
806
846
|
labels: S.optional(__S(4, __c1, 0)),
|
|
847
|
+
limits: __S(44, __c11, 0),
|
|
848
|
+
message: S.optional(S.String),
|
|
807
849
|
name: S.optional(S.String),
|
|
808
|
-
|
|
809
|
-
|
|
850
|
+
oci_pull_credential_id: S.optional(S.String),
|
|
851
|
+
oci_reference: S.String,
|
|
852
|
+
state: S.optional(S.String),
|
|
853
|
+
state_error: S.optional(S.String),
|
|
854
|
+
updated_at: S.optional(S.String),
|
|
855
|
+
variables: S.optional(__S(46, __c11, 2)),
|
|
856
|
+
version: S.optional(S.Number),
|
|
810
857
|
}),
|
|
811
|
-
).annotate({ identifier: "
|
|
858
|
+
).annotate({ identifier: "Revision" });
|
|
812
859
|
}
|
|
813
860
|
}
|
|
814
861
|
function __c12(j: number): any {
|