@distilled.cloud/stackit 0.0.0-placeholder → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
StackitProtocol,
|
|
8
|
+
type StackitOpError,
|
|
9
|
+
type StackitOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { StackitOpError, StackitOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Forbidden
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withAuthError),
|
|
31
|
+
[{ status: 403 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class NotFound
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withBadRequestError),
|
|
40
|
+
[{ status: 404 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export type CreateRuleRequestRegionId = "eu01" | "eu02";
|
|
44
|
+
export const CreateRuleRequestRegionId = /*@__PURE__*/ S.String;
|
|
45
|
+
|
|
46
|
+
export interface CreateRuleRequest {
|
|
47
|
+
/** The STACKIT portal project UUID */
|
|
48
|
+
projectId: string;
|
|
49
|
+
/** The STACKIT region name the resource is located in. */
|
|
50
|
+
regionId: CreateRuleRequestRegionId | (string & {});
|
|
51
|
+
/** A description for the rule. */
|
|
52
|
+
description?: string;
|
|
53
|
+
/** The direction of the traffic, typically "ingress" or "egress". */
|
|
54
|
+
direction?: string;
|
|
55
|
+
/** Specifies the bound of the rule. */
|
|
56
|
+
etherType?: string;
|
|
57
|
+
/** The ID of the product, similar to a project ID. */
|
|
58
|
+
instanceId: string;
|
|
59
|
+
/** Position in the list. */
|
|
60
|
+
offset?: number;
|
|
61
|
+
/** The Port range to which the rule applies. */
|
|
62
|
+
portRange?: string;
|
|
63
|
+
/** The source service (e.g., Load Balancer, Redis). */
|
|
64
|
+
product: string;
|
|
65
|
+
/** The network protocol (e.g., "TCP", "UDP", "ICMP"). */
|
|
66
|
+
protocol?: string;
|
|
67
|
+
/** The ID of the Group. */
|
|
68
|
+
remoteSecurityGroupId?: string;
|
|
69
|
+
/** The ID of the Group. */
|
|
70
|
+
securityGroupId?: string;
|
|
71
|
+
/** The IP (CIDR) to which the rule applies. */
|
|
72
|
+
sourceIP: string;
|
|
73
|
+
/** Indicates whether the security group rule is stateful or stateless (used only for security groups, default value for them will be true). */
|
|
74
|
+
stateful?: boolean;
|
|
75
|
+
/** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
|
|
76
|
+
type: string;
|
|
77
|
+
}
|
|
78
|
+
export const CreateRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
79
|
+
S.Struct({
|
|
80
|
+
projectId: S.String.pipe(T.Label()),
|
|
81
|
+
regionId: CreateRuleRequestRegionId.pipe(T.Label()),
|
|
82
|
+
description: S.optional(S.String),
|
|
83
|
+
direction: S.optional(S.String),
|
|
84
|
+
etherType: S.optional(S.String),
|
|
85
|
+
instanceId: S.String,
|
|
86
|
+
offset: S.optional(S.Number),
|
|
87
|
+
portRange: S.optional(S.String),
|
|
88
|
+
product: S.String,
|
|
89
|
+
protocol: S.optional(S.String),
|
|
90
|
+
remoteSecurityGroupId: S.optional(S.String),
|
|
91
|
+
securityGroupId: S.optional(S.String),
|
|
92
|
+
sourceIP: S.String,
|
|
93
|
+
stateful: S.optional(S.Boolean),
|
|
94
|
+
type: S.String,
|
|
95
|
+
}).pipe(
|
|
96
|
+
T.Http({
|
|
97
|
+
method: "POST",
|
|
98
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/rules",
|
|
99
|
+
code: 200,
|
|
100
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
101
|
+
}),
|
|
102
|
+
),
|
|
103
|
+
).annotate({
|
|
104
|
+
identifier: "CreateRuleRequest",
|
|
105
|
+
}) as any as S.Schema<CreateRuleRequest>;
|
|
106
|
+
|
|
107
|
+
export interface CreateRuleResponse {
|
|
108
|
+
/** Represents the uuid of the created rule */
|
|
109
|
+
refId?: string;
|
|
110
|
+
}
|
|
111
|
+
export const CreateRuleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
+
S.Struct({
|
|
113
|
+
refId: S.optional(S.String),
|
|
114
|
+
}),
|
|
115
|
+
).annotate({
|
|
116
|
+
identifier: "CreateRuleResponse",
|
|
117
|
+
}) as any as S.Schema<CreateRuleResponse>;
|
|
118
|
+
|
|
119
|
+
export type DeleteRuleRequestRegionId = "eu01" | "eu02";
|
|
120
|
+
export const DeleteRuleRequestRegionId = /*@__PURE__*/ S.String;
|
|
121
|
+
|
|
122
|
+
export interface DeleteRuleRequest {
|
|
123
|
+
/** The STACKIT portal project UUID */
|
|
124
|
+
projectId: string;
|
|
125
|
+
/** The STACKIT region name the resource is located in. */
|
|
126
|
+
regionId: DeleteRuleRequestRegionId | (string & {});
|
|
127
|
+
/** The STACKIT security rule UUID. */
|
|
128
|
+
ruleId: string;
|
|
129
|
+
}
|
|
130
|
+
export const DeleteRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
131
|
+
S.Struct({
|
|
132
|
+
projectId: S.String.pipe(T.Label()),
|
|
133
|
+
regionId: DeleteRuleRequestRegionId.pipe(T.Label()),
|
|
134
|
+
ruleId: S.String.pipe(T.Label()),
|
|
135
|
+
}).pipe(
|
|
136
|
+
T.Http({
|
|
137
|
+
method: "DELETE",
|
|
138
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
|
|
139
|
+
code: 200,
|
|
140
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
141
|
+
}),
|
|
142
|
+
),
|
|
143
|
+
).annotate({
|
|
144
|
+
identifier: "DeleteRuleRequest",
|
|
145
|
+
}) as any as S.Schema<DeleteRuleRequest>;
|
|
146
|
+
|
|
147
|
+
export interface DeleteRuleResponse {
|
|
148
|
+
/** Represents if the call was successfully made */
|
|
149
|
+
success?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export const DeleteRuleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
152
|
+
S.Struct({
|
|
153
|
+
success: S.optional(S.Boolean),
|
|
154
|
+
}),
|
|
155
|
+
).annotate({
|
|
156
|
+
identifier: "DeleteRuleResponse",
|
|
157
|
+
}) as any as S.Schema<DeleteRuleResponse>;
|
|
158
|
+
|
|
159
|
+
export type GetRuleRequestRegionId = "eu01" | "eu02";
|
|
160
|
+
export const GetRuleRequestRegionId = /*@__PURE__*/ S.String;
|
|
161
|
+
|
|
162
|
+
export interface GetRuleRequest {
|
|
163
|
+
/** The STACKIT portal project UUID */
|
|
164
|
+
projectId: string;
|
|
165
|
+
/** The STACKIT region name the resource is located in. */
|
|
166
|
+
regionId: GetRuleRequestRegionId | (string & {});
|
|
167
|
+
/** The STACKIT security rule UUID. */
|
|
168
|
+
ruleId: string;
|
|
169
|
+
}
|
|
170
|
+
export const GetRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
171
|
+
S.Struct({
|
|
172
|
+
projectId: S.String.pipe(T.Label()),
|
|
173
|
+
regionId: GetRuleRequestRegionId.pipe(T.Label()),
|
|
174
|
+
ruleId: S.String.pipe(T.Label()),
|
|
175
|
+
}).pipe(
|
|
176
|
+
T.Http({
|
|
177
|
+
method: "GET",
|
|
178
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
|
|
179
|
+
code: 200,
|
|
180
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
181
|
+
}),
|
|
182
|
+
),
|
|
183
|
+
).annotate({ identifier: "GetRuleRequest" }) as any as S.Schema<GetRuleRequest>;
|
|
184
|
+
|
|
185
|
+
/** The current state of the resource. */
|
|
186
|
+
export type RuleResponseStatus =
|
|
187
|
+
| "Active"
|
|
188
|
+
| "Error"
|
|
189
|
+
| "Pending"
|
|
190
|
+
| "Updating"
|
|
191
|
+
| "Deleting"
|
|
192
|
+
| "Creating";
|
|
193
|
+
export const RuleResponseStatus = /*@__PURE__*/ S.String;
|
|
194
|
+
|
|
195
|
+
/** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
|
|
196
|
+
export type RuleResponseType =
|
|
197
|
+
| "ACL"
|
|
198
|
+
| "PublicIP"
|
|
199
|
+
| "SecurityRule"
|
|
200
|
+
| "SecurityGroup";
|
|
201
|
+
export const RuleResponseType = /*@__PURE__*/ S.String;
|
|
202
|
+
|
|
203
|
+
export interface RuleResponse {
|
|
204
|
+
description?: string;
|
|
205
|
+
destination: string;
|
|
206
|
+
direction?: string;
|
|
207
|
+
errorMessage?: string;
|
|
208
|
+
etherType?: string;
|
|
209
|
+
instanceId: string;
|
|
210
|
+
instanceName?: string;
|
|
211
|
+
ipRange?: string;
|
|
212
|
+
offset?: number;
|
|
213
|
+
portRange?: string;
|
|
214
|
+
product: string;
|
|
215
|
+
protocol?: string;
|
|
216
|
+
refId?: string;
|
|
217
|
+
region?: string;
|
|
218
|
+
remoteSecurityGroupId?: string;
|
|
219
|
+
securityGroupId?: string;
|
|
220
|
+
sourceIP: string;
|
|
221
|
+
stateful?: boolean;
|
|
222
|
+
/** The current state of the resource. */
|
|
223
|
+
status: RuleResponseStatus;
|
|
224
|
+
/** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
|
|
225
|
+
type: RuleResponseType;
|
|
226
|
+
}
|
|
227
|
+
export const RuleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
228
|
+
S.Struct({
|
|
229
|
+
description: S.optional(S.String),
|
|
230
|
+
destination: S.String,
|
|
231
|
+
direction: S.optional(S.String),
|
|
232
|
+
errorMessage: S.optional(S.String),
|
|
233
|
+
etherType: S.optional(S.String),
|
|
234
|
+
instanceId: S.String,
|
|
235
|
+
instanceName: S.optional(S.String),
|
|
236
|
+
ipRange: S.optional(S.String),
|
|
237
|
+
offset: S.optional(S.Number),
|
|
238
|
+
portRange: S.optional(S.String),
|
|
239
|
+
product: S.String,
|
|
240
|
+
protocol: S.optional(S.String),
|
|
241
|
+
refId: S.optional(S.String),
|
|
242
|
+
region: S.optional(S.String),
|
|
243
|
+
remoteSecurityGroupId: S.optional(S.String),
|
|
244
|
+
securityGroupId: S.optional(S.String),
|
|
245
|
+
sourceIP: S.String,
|
|
246
|
+
stateful: S.optional(S.Boolean),
|
|
247
|
+
status: RuleResponseStatus,
|
|
248
|
+
type: RuleResponseType,
|
|
249
|
+
}),
|
|
250
|
+
).annotate({ identifier: "RuleResponse" }) as any as S.Schema<RuleResponse>;
|
|
251
|
+
|
|
252
|
+
export interface ListFolderContainersRequest {
|
|
253
|
+
/** The STACKIT portal folder UUID */
|
|
254
|
+
folderId: string;
|
|
255
|
+
/** The maximum number of items to return in the response. If maximum is exceeded, maximum is used. */
|
|
256
|
+
limit?: number;
|
|
257
|
+
/** A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. */
|
|
258
|
+
cursor?: string;
|
|
259
|
+
}
|
|
260
|
+
export const ListFolderContainersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
261
|
+
S.Struct({
|
|
262
|
+
folderId: S.String.pipe(T.Label()),
|
|
263
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
264
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
265
|
+
}).pipe(
|
|
266
|
+
T.Http({
|
|
267
|
+
method: "GET",
|
|
268
|
+
uri: "/v1/folders/{folderId}/children",
|
|
269
|
+
code: 200,
|
|
270
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
271
|
+
}),
|
|
272
|
+
),
|
|
273
|
+
).annotate({
|
|
274
|
+
identifier: "ListFolderContainersRequest",
|
|
275
|
+
}) as any as S.Schema<ListFolderContainersRequest>;
|
|
276
|
+
|
|
277
|
+
export interface ContainerResponse {
|
|
278
|
+
id: string;
|
|
279
|
+
name: string;
|
|
280
|
+
type: string;
|
|
281
|
+
}
|
|
282
|
+
export const ContainerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
283
|
+
S.Struct({
|
|
284
|
+
id: S.String,
|
|
285
|
+
name: S.String,
|
|
286
|
+
type: S.String,
|
|
287
|
+
}),
|
|
288
|
+
).annotate({
|
|
289
|
+
identifier: "ContainerResponse",
|
|
290
|
+
}) as any as S.Schema<ContainerResponse>;
|
|
291
|
+
|
|
292
|
+
export type ListContainersResponseItemsList = Array<ContainerResponse>;
|
|
293
|
+
export const ListContainersResponseItemsList = /*@__PURE__*/ S.Array(
|
|
294
|
+
ContainerResponse,
|
|
295
|
+
) as any as S.Schema<ListContainersResponseItemsList>;
|
|
296
|
+
|
|
297
|
+
export interface ListContainersResponse {
|
|
298
|
+
cursor: string;
|
|
299
|
+
items: ListContainersResponseItemsList;
|
|
300
|
+
limit: number;
|
|
301
|
+
}
|
|
302
|
+
export const ListContainersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
303
|
+
S.Struct({
|
|
304
|
+
cursor: S.String,
|
|
305
|
+
items: ListContainersResponseItemsList,
|
|
306
|
+
limit: S.Number,
|
|
307
|
+
}),
|
|
308
|
+
).annotate({
|
|
309
|
+
identifier: "ListContainersResponse",
|
|
310
|
+
}) as any as S.Schema<ListContainersResponse>;
|
|
311
|
+
|
|
312
|
+
export interface ListOrganizationContainersRequest {
|
|
313
|
+
/** The STACKIT portal organization UUID */
|
|
314
|
+
organizationId: string;
|
|
315
|
+
/** The maximum number of items to return in the response. If maximum is exceeded, maximum is used. */
|
|
316
|
+
limit?: number;
|
|
317
|
+
/** A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. */
|
|
318
|
+
cursor?: string;
|
|
319
|
+
}
|
|
320
|
+
export const ListOrganizationContainersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
321
|
+
S.Struct({
|
|
322
|
+
organizationId: S.String.pipe(T.Label()),
|
|
323
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
324
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
325
|
+
}).pipe(
|
|
326
|
+
T.Http({
|
|
327
|
+
method: "GET",
|
|
328
|
+
uri: "/v1/organizations/{organizationId}/children",
|
|
329
|
+
code: 200,
|
|
330
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
331
|
+
}),
|
|
332
|
+
),
|
|
333
|
+
).annotate({
|
|
334
|
+
identifier: "ListOrganizationContainersRequest",
|
|
335
|
+
}) as any as S.Schema<ListOrganizationContainersRequest>;
|
|
336
|
+
|
|
337
|
+
export type ListProviderOptionsRequestRegionId = "eu01" | "eu02";
|
|
338
|
+
export const ListProviderOptionsRequestRegionId = /*@__PURE__*/ S.String;
|
|
339
|
+
|
|
340
|
+
export interface ListProviderOptionsRequest {
|
|
341
|
+
/** The STACKIT region name the resource is located in. */
|
|
342
|
+
regionId: ListProviderOptionsRequestRegionId | (string & {});
|
|
343
|
+
}
|
|
344
|
+
export const ListProviderOptionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
345
|
+
S.Struct({
|
|
346
|
+
regionId: ListProviderOptionsRequestRegionId.pipe(T.Label()),
|
|
347
|
+
}).pipe(
|
|
348
|
+
T.Http({
|
|
349
|
+
method: "GET",
|
|
350
|
+
uri: "/v1/regions/{regionId}/provider-options",
|
|
351
|
+
code: 200,
|
|
352
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
353
|
+
}),
|
|
354
|
+
),
|
|
355
|
+
).annotate({
|
|
356
|
+
identifier: "ListProviderOptionsRequest",
|
|
357
|
+
}) as any as S.Schema<ListProviderOptionsRequest>;
|
|
358
|
+
|
|
359
|
+
export type ProviderOptionsProductMetaActionsList = Array<string>;
|
|
360
|
+
export const ProviderOptionsProductMetaActionsList = /*@__PURE__*/ S.Array(
|
|
361
|
+
S.String,
|
|
362
|
+
) as any as S.Schema<ProviderOptionsProductMetaActionsList>;
|
|
363
|
+
|
|
364
|
+
export type ProviderOptionsProductMetaTypesList = Array<string>;
|
|
365
|
+
export const ProviderOptionsProductMetaTypesList = /*@__PURE__*/ S.Array(
|
|
366
|
+
S.String,
|
|
367
|
+
) as any as S.Schema<ProviderOptionsProductMetaTypesList>;
|
|
368
|
+
|
|
369
|
+
export interface ProviderOptionsProductMeta {
|
|
370
|
+
actions: ProviderOptionsProductMetaActionsList;
|
|
371
|
+
types: ProviderOptionsProductMetaTypesList;
|
|
372
|
+
}
|
|
373
|
+
export const ProviderOptionsProductMeta = /*@__PURE__*/ S.suspend(() =>
|
|
374
|
+
S.Struct({
|
|
375
|
+
actions: ProviderOptionsProductMetaActionsList,
|
|
376
|
+
types: ProviderOptionsProductMetaTypesList,
|
|
377
|
+
}),
|
|
378
|
+
).annotate({
|
|
379
|
+
identifier: "ProviderOptionsProductMeta",
|
|
380
|
+
}) as any as S.Schema<ProviderOptionsProductMeta>;
|
|
381
|
+
|
|
382
|
+
export type ProviderOptionsResponseProductMetaMap = {
|
|
383
|
+
[key: string]: ProviderOptionsProductMeta | undefined;
|
|
384
|
+
};
|
|
385
|
+
export const ProviderOptionsResponseProductMetaMap = /*@__PURE__*/ S.Record(
|
|
386
|
+
S.String,
|
|
387
|
+
ProviderOptionsProductMeta,
|
|
388
|
+
) as any as S.Schema<ProviderOptionsResponseProductMetaMap>;
|
|
389
|
+
|
|
390
|
+
export type ProviderOptionsResponseProductsList = Array<string>;
|
|
391
|
+
export const ProviderOptionsResponseProductsList = /*@__PURE__*/ S.Array(
|
|
392
|
+
S.String,
|
|
393
|
+
) as any as S.Schema<ProviderOptionsResponseProductsList>;
|
|
394
|
+
|
|
395
|
+
export type ProviderOptionsResponseTypesList = Array<string>;
|
|
396
|
+
export const ProviderOptionsResponseTypesList = /*@__PURE__*/ S.Array(
|
|
397
|
+
S.String,
|
|
398
|
+
) as any as S.Schema<ProviderOptionsResponseTypesList>;
|
|
399
|
+
|
|
400
|
+
export interface ProviderOptionsResponse {
|
|
401
|
+
productMeta: ProviderOptionsResponseProductMetaMap;
|
|
402
|
+
products: ProviderOptionsResponseProductsList;
|
|
403
|
+
types: ProviderOptionsResponseTypesList;
|
|
404
|
+
}
|
|
405
|
+
export const ProviderOptionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
406
|
+
S.Struct({
|
|
407
|
+
productMeta: ProviderOptionsResponseProductMetaMap,
|
|
408
|
+
products: ProviderOptionsResponseProductsList,
|
|
409
|
+
types: ProviderOptionsResponseTypesList,
|
|
410
|
+
}),
|
|
411
|
+
).annotate({
|
|
412
|
+
identifier: "ProviderOptionsResponse",
|
|
413
|
+
}) as any as S.Schema<ProviderOptionsResponse>;
|
|
414
|
+
|
|
415
|
+
export type ListRulesRequestRegionId = "eu01" | "eu02";
|
|
416
|
+
export const ListRulesRequestRegionId = /*@__PURE__*/ S.String;
|
|
417
|
+
|
|
418
|
+
export type ListRulesRequestDirection = "ingress" | "egress";
|
|
419
|
+
export const ListRulesRequestDirection = /*@__PURE__*/ S.String;
|
|
420
|
+
|
|
421
|
+
export type ListRulesRequestSortOrder = "asc" | "desc";
|
|
422
|
+
export const ListRulesRequestSortOrder = /*@__PURE__*/ S.String;
|
|
423
|
+
|
|
424
|
+
export interface ListRulesRequest {
|
|
425
|
+
/** The STACKIT portal project UUID */
|
|
426
|
+
projectId: string;
|
|
427
|
+
/** The STACKIT region name the resource is located in. */
|
|
428
|
+
regionId: ListRulesRequestRegionId | (string & {});
|
|
429
|
+
/** The UUID of the group. */
|
|
430
|
+
securityGroupId?: string;
|
|
431
|
+
/** The product service (e.g., Load Balancer, Redis). */
|
|
432
|
+
product?: string;
|
|
433
|
+
/** The ID of the source, similar to a project ID but for the product service instance. */
|
|
434
|
+
instanceId?: string;
|
|
435
|
+
/** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
|
|
436
|
+
type?: string;
|
|
437
|
+
/** The IP for the rule. */
|
|
438
|
+
sourceIP?: string;
|
|
439
|
+
/** The port range for the rule. */
|
|
440
|
+
portRange?: string;
|
|
441
|
+
/** The protocol for the rule (e.g., "tcp", "udp"). */
|
|
442
|
+
protocol?: string;
|
|
443
|
+
/** The direction of the rule (e.g., "ingress", "egress"). */
|
|
444
|
+
direction?: ListRulesRequestDirection | (string & {});
|
|
445
|
+
/** The ether type for the rule. */
|
|
446
|
+
etherType?: string;
|
|
447
|
+
/** The field to sort the response by. */
|
|
448
|
+
sortBy?: string;
|
|
449
|
+
/** The order to sort the response by. */
|
|
450
|
+
sortOrder?: ListRulesRequestSortOrder | (string & {});
|
|
451
|
+
/** The maximum number of items to return in the response. If maximum is exceeded, maximum is used. */
|
|
452
|
+
limit?: number;
|
|
453
|
+
/** A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. */
|
|
454
|
+
cursor?: string;
|
|
455
|
+
}
|
|
456
|
+
export const ListRulesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
457
|
+
S.Struct({
|
|
458
|
+
projectId: S.String.pipe(T.Label()),
|
|
459
|
+
regionId: ListRulesRequestRegionId.pipe(T.Label()),
|
|
460
|
+
securityGroupId: S.optional(S.String.pipe(T.Query())),
|
|
461
|
+
product: S.optional(S.String.pipe(T.Query())),
|
|
462
|
+
instanceId: S.optional(S.String.pipe(T.Query())),
|
|
463
|
+
type: S.optional(S.String.pipe(T.Query())),
|
|
464
|
+
sourceIP: S.optional(S.String.pipe(T.Query())),
|
|
465
|
+
portRange: S.optional(S.String.pipe(T.Query())),
|
|
466
|
+
protocol: S.optional(S.String.pipe(T.Query())),
|
|
467
|
+
direction: S.optional(ListRulesRequestDirection.pipe(T.Query())),
|
|
468
|
+
etherType: S.optional(S.String.pipe(T.Query())),
|
|
469
|
+
sortBy: S.optional(S.String.pipe(T.Query())),
|
|
470
|
+
sortOrder: S.optional(ListRulesRequestSortOrder.pipe(T.Query())),
|
|
471
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
472
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
473
|
+
}).pipe(
|
|
474
|
+
T.Http({
|
|
475
|
+
method: "GET",
|
|
476
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/rules",
|
|
477
|
+
code: 200,
|
|
478
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
479
|
+
}),
|
|
480
|
+
),
|
|
481
|
+
).annotate({
|
|
482
|
+
identifier: "ListRulesRequest",
|
|
483
|
+
}) as any as S.Schema<ListRulesRequest>;
|
|
484
|
+
|
|
485
|
+
export type ListRulesResponseErrorsList = Array<string>;
|
|
486
|
+
export const ListRulesResponseErrorsList = /*@__PURE__*/ S.Array(
|
|
487
|
+
S.String,
|
|
488
|
+
) as any as S.Schema<ListRulesResponseErrorsList>;
|
|
489
|
+
|
|
490
|
+
export type ListRulesResponseRulesList = Array<RuleResponse>;
|
|
491
|
+
export const ListRulesResponseRulesList = /*@__PURE__*/ S.Array(
|
|
492
|
+
RuleResponse,
|
|
493
|
+
) as any as S.Schema<ListRulesResponseRulesList>;
|
|
494
|
+
|
|
495
|
+
export interface ListRulesResponse {
|
|
496
|
+
errors?: ListRulesResponseErrorsList;
|
|
497
|
+
rules: ListRulesResponseRulesList;
|
|
498
|
+
}
|
|
499
|
+
export const ListRulesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
500
|
+
S.Struct({
|
|
501
|
+
errors: S.optional(ListRulesResponseErrorsList),
|
|
502
|
+
rules: ListRulesResponseRulesList,
|
|
503
|
+
}),
|
|
504
|
+
).annotate({
|
|
505
|
+
identifier: "ListRulesResponse",
|
|
506
|
+
}) as any as S.Schema<ListRulesResponse>;
|
|
507
|
+
|
|
508
|
+
export type UpdateRuleRequestRegionId = "eu01" | "eu02";
|
|
509
|
+
export const UpdateRuleRequestRegionId = /*@__PURE__*/ S.String;
|
|
510
|
+
|
|
511
|
+
export interface UpdateRuleRequest {
|
|
512
|
+
/** The STACKIT portal project UUID */
|
|
513
|
+
projectId: string;
|
|
514
|
+
/** The STACKIT region name the resource is located in. */
|
|
515
|
+
regionId: UpdateRuleRequestRegionId | (string & {});
|
|
516
|
+
/** The STACKIT security rule UUID. */
|
|
517
|
+
ruleId: string;
|
|
518
|
+
/** The direction of the traffic, typically "ingress" or "egress". */
|
|
519
|
+
direction?: string;
|
|
520
|
+
/** Specifies the bound of the rule. */
|
|
521
|
+
etherType?: string;
|
|
522
|
+
/** The Port range to which the rule applies. */
|
|
523
|
+
portRange?: string;
|
|
524
|
+
/** The network protocol (e.g., "TCP", "UDP", "ICMP"). */
|
|
525
|
+
protocol?: string;
|
|
526
|
+
/** The ID of the Group. */
|
|
527
|
+
securityGroupId?: string;
|
|
528
|
+
/** The IP (CIDR) to which the rule applies. */
|
|
529
|
+
sourceIP: string;
|
|
530
|
+
}
|
|
531
|
+
export const UpdateRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
532
|
+
S.Struct({
|
|
533
|
+
projectId: S.String.pipe(T.Label()),
|
|
534
|
+
regionId: UpdateRuleRequestRegionId.pipe(T.Label()),
|
|
535
|
+
ruleId: S.String.pipe(T.Label()),
|
|
536
|
+
direction: S.optional(S.String),
|
|
537
|
+
etherType: S.optional(S.String),
|
|
538
|
+
portRange: S.optional(S.String),
|
|
539
|
+
protocol: S.optional(S.String),
|
|
540
|
+
securityGroupId: S.optional(S.String),
|
|
541
|
+
sourceIP: S.String,
|
|
542
|
+
}).pipe(
|
|
543
|
+
T.Http({
|
|
544
|
+
method: "PUT",
|
|
545
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
|
|
546
|
+
code: 200,
|
|
547
|
+
baseUrl: "https://ufw.api.stackit.cloud",
|
|
548
|
+
}),
|
|
549
|
+
),
|
|
550
|
+
).annotate({
|
|
551
|
+
identifier: "UpdateRuleRequest",
|
|
552
|
+
}) as any as S.Schema<UpdateRuleRequest>;
|
|
553
|
+
|
|
554
|
+
export interface UpdateRuleResponse {
|
|
555
|
+
/** Represents the uuid of the updated rule */
|
|
556
|
+
refId?: string;
|
|
557
|
+
}
|
|
558
|
+
export const UpdateRuleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
559
|
+
S.Struct({
|
|
560
|
+
refId: S.optional(S.String),
|
|
561
|
+
}),
|
|
562
|
+
).annotate({
|
|
563
|
+
identifier: "UpdateRuleResponse",
|
|
564
|
+
}) as any as S.Schema<UpdateRuleResponse>;
|
|
565
|
+
|
|
566
|
+
export type CreateRuleError =
|
|
567
|
+
| BadRequest
|
|
568
|
+
| Forbidden
|
|
569
|
+
| NotFound
|
|
570
|
+
| StackitOpError;
|
|
571
|
+
/** Create rule for a project Returns the created rule for a specific project */
|
|
572
|
+
export const createRule: API.OperationMethod<
|
|
573
|
+
CreateRuleRequest,
|
|
574
|
+
CreateRuleResponse,
|
|
575
|
+
CreateRuleError,
|
|
576
|
+
StackitOpContext
|
|
577
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
578
|
+
input: CreateRuleRequest,
|
|
579
|
+
output: CreateRuleResponse,
|
|
580
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
581
|
+
protocol: StackitProtocol,
|
|
582
|
+
retry: Retry.Retry,
|
|
583
|
+
}));
|
|
584
|
+
|
|
585
|
+
export type DeleteRuleError =
|
|
586
|
+
| BadRequest
|
|
587
|
+
| Forbidden
|
|
588
|
+
| NotFound
|
|
589
|
+
| StackitOpError;
|
|
590
|
+
/** Delete rule by UUID for a project Returns success */
|
|
591
|
+
export const deleteRule: API.OperationMethod<
|
|
592
|
+
DeleteRuleRequest,
|
|
593
|
+
DeleteRuleResponse,
|
|
594
|
+
DeleteRuleError,
|
|
595
|
+
StackitOpContext
|
|
596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
597
|
+
input: DeleteRuleRequest,
|
|
598
|
+
output: DeleteRuleResponse,
|
|
599
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
600
|
+
protocol: StackitProtocol,
|
|
601
|
+
retry: Retry.Retry,
|
|
602
|
+
}));
|
|
603
|
+
|
|
604
|
+
export type GetRuleError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
605
|
+
/** Get rule by UUID for a project Returns the specific rule */
|
|
606
|
+
export const getRule: API.OperationMethod<
|
|
607
|
+
GetRuleRequest,
|
|
608
|
+
RuleResponse,
|
|
609
|
+
GetRuleError,
|
|
610
|
+
StackitOpContext
|
|
611
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
612
|
+
input: GetRuleRequest,
|
|
613
|
+
output: RuleResponse,
|
|
614
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
615
|
+
protocol: StackitProtocol,
|
|
616
|
+
retry: Retry.Retry,
|
|
617
|
+
}));
|
|
618
|
+
|
|
619
|
+
export type ListFolderContainersError =
|
|
620
|
+
| BadRequest
|
|
621
|
+
| Forbidden
|
|
622
|
+
| NotFound
|
|
623
|
+
| StackitOpError;
|
|
624
|
+
/** Get containers from a folder Returns a list of containers for a specific folder */
|
|
625
|
+
export const listFolderContainers: API.OperationMethod<
|
|
626
|
+
ListFolderContainersRequest,
|
|
627
|
+
ListContainersResponse,
|
|
628
|
+
ListFolderContainersError,
|
|
629
|
+
StackitOpContext
|
|
630
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
631
|
+
input: ListFolderContainersRequest,
|
|
632
|
+
output: ListContainersResponse,
|
|
633
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
634
|
+
protocol: StackitProtocol,
|
|
635
|
+
retry: Retry.Retry,
|
|
636
|
+
}));
|
|
637
|
+
|
|
638
|
+
export type ListOrganizationContainersError =
|
|
639
|
+
| BadRequest
|
|
640
|
+
| Forbidden
|
|
641
|
+
| NotFound
|
|
642
|
+
| StackitOpError;
|
|
643
|
+
/** Get containers from an organization Returns a list of containers for a specific organization */
|
|
644
|
+
export const listOrganizationContainers: API.OperationMethod<
|
|
645
|
+
ListOrganizationContainersRequest,
|
|
646
|
+
ListContainersResponse,
|
|
647
|
+
ListOrganizationContainersError,
|
|
648
|
+
StackitOpContext
|
|
649
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
650
|
+
input: ListOrganizationContainersRequest,
|
|
651
|
+
output: ListContainersResponse,
|
|
652
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
653
|
+
protocol: StackitProtocol,
|
|
654
|
+
retry: Retry.Retry,
|
|
655
|
+
}));
|
|
656
|
+
|
|
657
|
+
export type ListProviderOptionsError = BadRequest | StackitOpError;
|
|
658
|
+
/** Get Provider Options Returns a list of supported configuration options for this region. */
|
|
659
|
+
export const listProviderOptions: API.OperationMethod<
|
|
660
|
+
ListProviderOptionsRequest,
|
|
661
|
+
ProviderOptionsResponse,
|
|
662
|
+
ListProviderOptionsError,
|
|
663
|
+
StackitOpContext
|
|
664
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
665
|
+
input: ListProviderOptionsRequest,
|
|
666
|
+
output: ProviderOptionsResponse,
|
|
667
|
+
errors: [BadRequest, UnknownStackitError],
|
|
668
|
+
protocol: StackitProtocol,
|
|
669
|
+
retry: Retry.Retry,
|
|
670
|
+
}));
|
|
671
|
+
|
|
672
|
+
export type ListRulesError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
673
|
+
/** Get rules for a project Returns a list of rules for a specific project */
|
|
674
|
+
export const listRules: API.OperationMethod<
|
|
675
|
+
ListRulesRequest,
|
|
676
|
+
ListRulesResponse,
|
|
677
|
+
ListRulesError,
|
|
678
|
+
StackitOpContext
|
|
679
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
680
|
+
input: ListRulesRequest,
|
|
681
|
+
output: ListRulesResponse,
|
|
682
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
683
|
+
protocol: StackitProtocol,
|
|
684
|
+
retry: Retry.Retry,
|
|
685
|
+
}));
|
|
686
|
+
|
|
687
|
+
export type UpdateRuleError =
|
|
688
|
+
| BadRequest
|
|
689
|
+
| Forbidden
|
|
690
|
+
| NotFound
|
|
691
|
+
| StackitOpError;
|
|
692
|
+
/** Update rule by UUID for a project Returns the updated rule for a specific project */
|
|
693
|
+
export const updateRule: API.OperationMethod<
|
|
694
|
+
UpdateRuleRequest,
|
|
695
|
+
UpdateRuleResponse,
|
|
696
|
+
UpdateRuleError,
|
|
697
|
+
StackitOpContext
|
|
698
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
699
|
+
input: UpdateRuleRequest,
|
|
700
|
+
output: UpdateRuleResponse,
|
|
701
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
702
|
+
protocol: StackitProtocol,
|
|
703
|
+
retry: Retry.Retry,
|
|
704
|
+
}));
|