@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
|
@@ -13,6 +13,19 @@ const __s: any[] = [];
|
|
|
13
13
|
|
|
14
14
|
export type { StackitOpError, StackitOpContext };
|
|
15
15
|
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "stackit-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
],
|
|
23
|
+
prefix: "STACKIT",
|
|
24
|
+
service: "Certificates",
|
|
25
|
+
labels: "stackit",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
16
29
|
export class BadRequest
|
|
17
30
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
31
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -46,45 +59,45 @@ export interface CreateCertificateRequest {
|
|
|
46
59
|
projectId: string;
|
|
47
60
|
region: string;
|
|
48
61
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
49
|
-
labels?: CreateCertificateRequestLabelsMap;
|
|
62
|
+
labels?: CreateCertificateRequestLabelsMap | undefined;
|
|
50
63
|
/** TLS certificate name */
|
|
51
|
-
name?: string;
|
|
64
|
+
name?: string | undefined;
|
|
52
65
|
/** The PEM encoded private key part */
|
|
53
|
-
privateKey?: string | Redacted.Redacted<string
|
|
66
|
+
privateKey?: string | Redacted.Redacted<string> | undefined;
|
|
54
67
|
/** The PEM encoded public key part */
|
|
55
|
-
publicKey?: string;
|
|
68
|
+
publicKey?: string | undefined;
|
|
56
69
|
}
|
|
57
70
|
export interface Data {
|
|
58
71
|
/** Comma-separated list of all domains and IP addresses the certificate is valid for (Subject Alternative Names). */
|
|
59
|
-
dnsNames?: string;
|
|
72
|
+
dnsNames?: string | undefined;
|
|
60
73
|
/** Comma-separated list of purposes the cert is valid for. 'Server Auth' is required for Load Balancer use. */
|
|
61
|
-
extendedKeyUsage?: string;
|
|
74
|
+
extendedKeyUsage?: string | undefined;
|
|
62
75
|
/** The legacy SHA1 thumbprint. Provided for cross-referencing with older systems and browsers. */
|
|
63
|
-
fingerprintSha1?: string;
|
|
76
|
+
fingerprintSha1?: string | undefined;
|
|
64
77
|
/** The unique SHA256 hash of the raw certificate bytes. Use this as the primary unique identifier. */
|
|
65
|
-
fingerprintSha256?: string;
|
|
78
|
+
fingerprintSha256?: string | undefined;
|
|
66
79
|
/** Indicates if the certificate is a Certificate Authority, meaning it can sign other certificates. */
|
|
67
|
-
isCa?: boolean;
|
|
80
|
+
isCa?: boolean | undefined;
|
|
68
81
|
/** Indicates if the certificate was signed by its own private key rather than a trusted third-party CA. */
|
|
69
|
-
isSelfSigned?: boolean;
|
|
82
|
+
isSelfSigned?: boolean | undefined;
|
|
70
83
|
/** The Common Name of the Certificate Authority (CA) that signed and issued the certificate. */
|
|
71
|
-
issuerCn?: string;
|
|
84
|
+
issuerCn?: string | undefined;
|
|
72
85
|
/** Human-readable summary of the public key's algorithm and bit-length or curve name. */
|
|
73
|
-
keyStrength?: string;
|
|
86
|
+
keyStrength?: string | undefined;
|
|
74
87
|
/** The expiration timestamp. After this date, browsers will show security warnings (RFC3339 format). */
|
|
75
|
-
notAfter?: string;
|
|
88
|
+
notAfter?: string | undefined;
|
|
76
89
|
/** The timestamp indicating when the certificate starts being valid (RFC3339 format). */
|
|
77
|
-
notBefore?: string;
|
|
90
|
+
notBefore?: string | undefined;
|
|
78
91
|
/** Organization name associated with the certificate subject. */
|
|
79
|
-
organization?: string;
|
|
92
|
+
organization?: string | undefined;
|
|
80
93
|
/** The cryptographic algorithm used to generate the public/private key pair. */
|
|
81
|
-
publicKeyAlgorithm?: string;
|
|
94
|
+
publicKeyAlgorithm?: string | undefined;
|
|
82
95
|
/** The unique serial number assigned by the CA, represented in uppercase hexadecimal format. */
|
|
83
|
-
serialNumber?: string;
|
|
96
|
+
serialNumber?: string | undefined;
|
|
84
97
|
/** The algorithm used by the CA to sign this certificate. */
|
|
85
|
-
signatureAlgorithm?: string;
|
|
98
|
+
signatureAlgorithm?: string | undefined;
|
|
86
99
|
/** The primary identity of the certificate. Fallback sequence: Common Name -> First DNS Name -> Full Subject String. */
|
|
87
|
-
subjectCn?: string;
|
|
100
|
+
subjectCn?: string | undefined;
|
|
88
101
|
}
|
|
89
102
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
90
103
|
export type GetCertificateResponseLabelsMap = { [key: string]: string | undefined };
|
|
@@ -92,32 +105,32 @@ export type GetCertificateResponseLabelsMap = { [key: string]: string | undefine
|
|
|
92
105
|
export type UsageItemListenerNamesList = Array<string>;
|
|
93
106
|
export interface UsageItem {
|
|
94
107
|
/** The list of listener names in this Load Balancer, that are using the certificate. */
|
|
95
|
-
listenerNames?: UsageItemListenerNamesList;
|
|
108
|
+
listenerNames?: UsageItemListenerNamesList | undefined;
|
|
96
109
|
/** The display name of the Load Balancer. */
|
|
97
|
-
loadBalancerName?: string;
|
|
110
|
+
loadBalancerName?: string | undefined;
|
|
98
111
|
}
|
|
99
112
|
/** List of Load Balancers with their associated listeners that use this certificate. */
|
|
100
113
|
export type UsageItemsList = Array<UsageItem>;
|
|
101
114
|
export interface Usage {
|
|
102
115
|
/** Number of listeners using this certificate. */
|
|
103
|
-
count?: number;
|
|
116
|
+
count?: number | undefined;
|
|
104
117
|
/** List of Load Balancers with their associated listeners that use this certificate. */
|
|
105
|
-
items?: UsageItemsList;
|
|
118
|
+
items?: UsageItemsList | undefined;
|
|
106
119
|
}
|
|
107
120
|
/** GetCertificateResponse returns name, id and public key */
|
|
108
121
|
export interface GetCertificateResponse {
|
|
109
|
-
data?: Data;
|
|
122
|
+
data?: Data | undefined;
|
|
110
123
|
/** The certificates resource id */
|
|
111
|
-
id?: string;
|
|
124
|
+
id?: string | undefined;
|
|
112
125
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
113
|
-
labels?: GetCertificateResponseLabelsMap;
|
|
126
|
+
labels?: GetCertificateResponseLabelsMap | undefined;
|
|
114
127
|
/** Certificate display name */
|
|
115
|
-
name?: string;
|
|
128
|
+
name?: string | undefined;
|
|
116
129
|
/** The PEM encoded public key part */
|
|
117
|
-
publicKey?: string;
|
|
130
|
+
publicKey?: string | undefined;
|
|
118
131
|
/** Region of the LoadBalancer */
|
|
119
|
-
region?: string;
|
|
120
|
-
usage?: Usage;
|
|
132
|
+
region?: string | undefined;
|
|
133
|
+
usage?: Usage | undefined;
|
|
121
134
|
}
|
|
122
135
|
export interface DeleteCertificateRequest {
|
|
123
136
|
projectId: string;
|
|
@@ -137,35 +150,35 @@ export interface GetQuotaRequest {
|
|
|
137
150
|
/** Certificates quotas holds the limits and usage for certificates resources */
|
|
138
151
|
export interface CertificatesQuota {
|
|
139
152
|
/** The maximum number of TLS certificates in this project. */
|
|
140
|
-
limit?: number;
|
|
153
|
+
limit?: number | undefined;
|
|
141
154
|
/** The number of certificates that are currently existing in this project. */
|
|
142
|
-
usage?: number;
|
|
155
|
+
usage?: number | undefined;
|
|
143
156
|
}
|
|
144
157
|
/** Quotas holds the specific quota elements for different resources */
|
|
145
158
|
export interface Quotas {
|
|
146
|
-
certificates?: CertificatesQuota;
|
|
159
|
+
certificates?: CertificatesQuota | undefined;
|
|
147
160
|
}
|
|
148
161
|
export interface GetQuotaResponse {
|
|
149
162
|
/** Project identifier */
|
|
150
|
-
projectId?: string;
|
|
151
|
-
quotas?: Quotas;
|
|
163
|
+
projectId?: string | undefined;
|
|
164
|
+
quotas?: Quotas | undefined;
|
|
152
165
|
/** Region */
|
|
153
|
-
region?: string;
|
|
166
|
+
region?: string | undefined;
|
|
154
167
|
}
|
|
155
168
|
export interface ListCertificatesRequest {
|
|
156
169
|
projectId: string;
|
|
157
170
|
region: string;
|
|
158
171
|
/** page_size specifies how many certificates should be returned on this page. Must be a positive number <= 1000 */
|
|
159
|
-
pageSize?: string;
|
|
172
|
+
pageSize?: string | undefined;
|
|
160
173
|
/** page_id is a page identifier returned by the previous response and is used to request the next page */
|
|
161
|
-
pageId?: string;
|
|
174
|
+
pageId?: string | undefined;
|
|
162
175
|
}
|
|
163
176
|
export type ListCertificatesResponseItemsList = Array<GetCertificateResponse>;
|
|
164
177
|
/** ListCertificateResponse returns a list of certificate responses */
|
|
165
178
|
export interface ListCertificatesResponse {
|
|
166
|
-
items?: ListCertificatesResponseItemsList;
|
|
179
|
+
items?: ListCertificatesResponseItemsList | undefined;
|
|
167
180
|
/** Continue token from the ListCertificatesResponse with Limit option */
|
|
168
|
-
nextPageId?: string;
|
|
181
|
+
nextPageId?: string | undefined;
|
|
169
182
|
}
|
|
170
183
|
export type CreateCertificateError = BadRequest | Forbidden | StackitOpError;
|
|
171
184
|
/** Store a TLS certificate in a project. CreateCertificate will store a TLS certificate in a project. */
|
|
@@ -180,6 +193,8 @@ export const createCertificate: API.OperationMethod<
|
|
|
180
193
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
181
194
|
protocol: StackitProtocol,
|
|
182
195
|
retry: Retry.Retry,
|
|
196
|
+
telemetry: TELEMETRY,
|
|
197
|
+
span: "CreateCertificate",
|
|
183
198
|
}));
|
|
184
199
|
|
|
185
200
|
export type DeleteCertificateError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -195,6 +210,8 @@ export const deleteCertificate: API.OperationMethod<
|
|
|
195
210
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
196
211
|
protocol: StackitProtocol,
|
|
197
212
|
retry: Retry.Retry,
|
|
213
|
+
telemetry: TELEMETRY,
|
|
214
|
+
span: "DeleteCertificate",
|
|
198
215
|
}));
|
|
199
216
|
|
|
200
217
|
export type GetCertificateError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -210,6 +227,8 @@ export const getCertificate: API.OperationMethod<
|
|
|
210
227
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
211
228
|
protocol: StackitProtocol,
|
|
212
229
|
retry: Retry.Retry,
|
|
230
|
+
telemetry: TELEMETRY,
|
|
231
|
+
span: "GetCertificate",
|
|
213
232
|
}));
|
|
214
233
|
|
|
215
234
|
export type GetQuotaError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -225,6 +244,8 @@ export const getQuota: API.OperationMethod<
|
|
|
225
244
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
226
245
|
protocol: StackitProtocol,
|
|
227
246
|
retry: Retry.Retry,
|
|
247
|
+
telemetry: TELEMETRY,
|
|
248
|
+
span: "GetQuota",
|
|
228
249
|
}));
|
|
229
250
|
|
|
230
251
|
export type ListCertificatesError = BadRequest | Forbidden | StackitOpError;
|
|
@@ -240,6 +261,8 @@ export const listCertificates: API.OperationMethod<
|
|
|
240
261
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
241
262
|
protocol: StackitProtocol,
|
|
242
263
|
retry: Retry.Retry,
|
|
264
|
+
telemetry: TELEMETRY,
|
|
265
|
+
span: "ListCertificates",
|
|
243
266
|
}));
|
|
244
267
|
|
|
245
268
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/src/services/cost.ts
CHANGED
|
@@ -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: "Cost",
|
|
24
|
+
labels: "stackit",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export class BadRequest
|
|
16
29
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
30
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -56,11 +69,11 @@ export interface GetCostsForProjectRequest {
|
|
|
56
69
|
/** Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included. */
|
|
57
70
|
to: string;
|
|
58
71
|
/** Depth of desired cost information. "project" provides costs grouped by project, without services. "service" provides costs separated on service level. */
|
|
59
|
-
depth?: GetCostsForProjectRequestDepth | (string & {});
|
|
72
|
+
depth?: GetCostsForProjectRequestDepth | (string & {}) | undefined;
|
|
60
73
|
/** Define granularity of costs - Default is "none" which does NOT include detailed report data. If "monthly", "weekly" or "yearly" is requested, the "from" parameter SHOULD be the first day and the "to" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If "daily" is requested, the date range defined by "from" and "to" MUST NOT be longer than 92 days. */
|
|
61
|
-
granularity?: GetCostsForProjectRequestGranularity | (string & {});
|
|
74
|
+
granularity?: GetCostsForProjectRequestGranularity | (string & {}) | undefined;
|
|
62
75
|
/** Whether costs of 0 should be included in the response */
|
|
63
|
-
includeZeroCosts?: boolean;
|
|
76
|
+
includeZeroCosts?: boolean | undefined;
|
|
64
77
|
}
|
|
65
78
|
/** Summarized costs for a project */
|
|
66
79
|
export interface SummarizedProjectCost {
|
|
@@ -74,8 +87,8 @@ export interface SummarizedProjectCost {
|
|
|
74
87
|
}
|
|
75
88
|
/** Time period according to desired granularity */
|
|
76
89
|
export interface ReportDataTimePeriod {
|
|
77
|
-
end?: string;
|
|
78
|
-
start?: string;
|
|
90
|
+
end?: string | undefined;
|
|
91
|
+
start?: string | undefined;
|
|
79
92
|
}
|
|
80
93
|
/** Costs report for a certain period of time */
|
|
81
94
|
export interface ReportData {
|
|
@@ -98,7 +111,7 @@ export interface ProjectCostWithReports {
|
|
|
98
111
|
projectId: string;
|
|
99
112
|
projectName: string;
|
|
100
113
|
/** Detailed project costs which are ONLY included if granularity is provided AND depth is "project" */
|
|
101
|
-
reportData?: ProjectCostWithReportsReportDataList;
|
|
114
|
+
reportData?: ProjectCostWithReportsReportDataList | undefined;
|
|
102
115
|
/** Total charge (including discounts) for all services and the whole requested date range (value in cents) */
|
|
103
116
|
totalCharge: number;
|
|
104
117
|
/** Total discount for all services and the whole requested date range (value in cents) */
|
|
@@ -114,7 +127,7 @@ export interface ProjectCostWithSummarizedServices {
|
|
|
114
127
|
projectId: string;
|
|
115
128
|
projectName: string;
|
|
116
129
|
/** Summarized service costs */
|
|
117
|
-
services?: ProjectCostWithSummarizedServicesServicesList;
|
|
130
|
+
services?: ProjectCostWithSummarizedServicesServicesList | undefined;
|
|
118
131
|
/** Total charge (including discounts) for all services and the whole requested date range (value in cents) */
|
|
119
132
|
totalCharge: number;
|
|
120
133
|
/** Total discount for all services and the whole requested date range (value in cents) */
|
|
@@ -125,7 +138,7 @@ export type DetailedServiceCostReportDataList = Array<ReportData>;
|
|
|
125
138
|
/** Costs for a single service */
|
|
126
139
|
export interface DetailedServiceCost {
|
|
127
140
|
/** Detailed service costs which are ONLY included if granularity is provided */
|
|
128
|
-
reportData?: DetailedServiceCostReportDataList;
|
|
141
|
+
reportData?: DetailedServiceCostReportDataList | undefined;
|
|
129
142
|
/** Service category name */
|
|
130
143
|
serviceCategoryName: string;
|
|
131
144
|
/** Name of the service */
|
|
@@ -151,7 +164,7 @@ export interface ProjectCostWithDetailedServices {
|
|
|
151
164
|
projectId: string;
|
|
152
165
|
projectName: string;
|
|
153
166
|
/** Total discount for all services and the whole requested date range (value in cents). Please see "depth" parameter for more details. */
|
|
154
|
-
services?: ProjectCostWithDetailedServicesServicesList;
|
|
167
|
+
services?: ProjectCostWithDetailedServicesServicesList | undefined;
|
|
155
168
|
/** Total charge (including discounts) for all services and the whole requested date range (value in cents) */
|
|
156
169
|
totalCharge: number;
|
|
157
170
|
/** Total discount for all services and the whole requested date range (value in cents) */
|
|
@@ -178,11 +191,11 @@ export interface ListCostsForCustomerRequest {
|
|
|
178
191
|
/** Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included. */
|
|
179
192
|
to: string;
|
|
180
193
|
/** Depth of desired cost information. "project" provides costs grouped by project, without services. "service" provides costs separated on service level. */
|
|
181
|
-
depth?: ListCostsForCustomerRequestDepth | (string & {});
|
|
194
|
+
depth?: ListCostsForCustomerRequestDepth | (string & {}) | undefined;
|
|
182
195
|
/** Define granularity of costs - Default is "none" which does NOT include detailed report data. If "monthly", "weekly" or "yearly" is requested, the "from" parameter SHOULD be the first day and the "to" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If "daily" is requested, the date range defined by "from" and "to" MUST NOT be longer than 92 days. */
|
|
183
|
-
granularity?: ListCostsForCustomerRequestGranularity | (string & {});
|
|
196
|
+
granularity?: ListCostsForCustomerRequestGranularity | (string & {}) | undefined;
|
|
184
197
|
/** Whether costs of 0 should be included in the response */
|
|
185
|
-
includeZeroCosts?: boolean;
|
|
198
|
+
includeZeroCosts?: boolean | undefined;
|
|
186
199
|
}
|
|
187
200
|
export type ListCostsForCustomerResponseBodyList = Array<ProjectCost>;
|
|
188
201
|
export type ListCostsForCustomerResponse = ListCostsForCustomerResponseBodyList;
|
|
@@ -201,11 +214,11 @@ export interface ListCostsForResellerRequest {
|
|
|
201
214
|
/** Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included. */
|
|
202
215
|
to: string;
|
|
203
216
|
/** Depth of desired cost information. "project" provides costs grouped by project, without services. "service" provides costs separated on service level. */
|
|
204
|
-
depth?: ListCostsForResellerRequestDepth | (string & {});
|
|
217
|
+
depth?: ListCostsForResellerRequestDepth | (string & {}) | undefined;
|
|
205
218
|
/** Define granularity of costs - Default is "none" which does NOT include detailed report data. If "monthly", "weekly" or "yearly" is requested, the "from" parameter SHOULD be the first day and the "to" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If "daily" is requested, the date range defined by "from" and "to" MUST NOT be longer than 92 days. */
|
|
206
|
-
granularity?: ListCostsForResellerRequestGranularity | (string & {});
|
|
219
|
+
granularity?: ListCostsForResellerRequestGranularity | (string & {}) | undefined;
|
|
207
220
|
/** Whether costs of 0 should be included in the response */
|
|
208
|
-
includeZeroCosts?: boolean;
|
|
221
|
+
includeZeroCosts?: boolean | undefined;
|
|
209
222
|
}
|
|
210
223
|
export type ListCostsForResellerResponseBodyList = Array<ProjectCost>;
|
|
211
224
|
export type ListCostsForResellerResponse = ListCostsForResellerResponseBodyList;
|
|
@@ -222,6 +235,8 @@ export const getCostsForProject: API.OperationMethod<
|
|
|
222
235
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
223
236
|
protocol: StackitProtocol,
|
|
224
237
|
retry: Retry.Retry,
|
|
238
|
+
telemetry: TELEMETRY,
|
|
239
|
+
span: "GetCostsForProject",
|
|
225
240
|
}));
|
|
226
241
|
|
|
227
242
|
export type ListCostsForCustomerError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -237,6 +252,8 @@ export const listCostsForCustomer: API.OperationMethod<
|
|
|
237
252
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
238
253
|
protocol: StackitProtocol,
|
|
239
254
|
retry: Retry.Retry,
|
|
255
|
+
telemetry: TELEMETRY,
|
|
256
|
+
span: "ListCostsForCustomer",
|
|
240
257
|
}));
|
|
241
258
|
|
|
242
259
|
export type ListCostsForResellerError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
@@ -252,6 +269,8 @@ export const listCostsForReseller: API.OperationMethod<
|
|
|
252
269
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
253
270
|
protocol: StackitProtocol,
|
|
254
271
|
retry: Retry.Retry,
|
|
272
|
+
telemetry: TELEMETRY,
|
|
273
|
+
span: "ListCostsForReseller",
|
|
255
274
|
}));
|
|
256
275
|
|
|
257
276
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|