@distilled.cloud/starburst-galaxy 0.0.0-stage → 1.0.0-rc.21
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 +114 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +84 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +29 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/catalog.d.ts +2791 -0
- package/lib/services/catalog.d.ts.map +1 -0
- package/lib/services/catalog.js +101 -0
- package/lib/services/catalog.js.map +1 -0
- package/lib/services/cluster.d.ts +248 -0
- package/lib/services/cluster.d.ts.map +1 -0
- package/lib/services/cluster.js +2 -0
- package/lib/services/cluster.js.map +1 -0
- package/lib/services/column_mask.d.ts +162 -0
- package/lib/services/column_mask.d.ts.map +1 -0
- package/lib/services/column_mask.js +2 -0
- package/lib/services/column_mask.js.map +1 -0
- package/lib/services/cross_account_iam_role.d.ts +133 -0
- package/lib/services/cross_account_iam_role.d.ts.map +1 -0
- package/lib/services/cross_account_iam_role.js +2 -0
- package/lib/services/cross_account_iam_role.js.map +1 -0
- package/lib/services/data_domain.d.ts +223 -0
- package/lib/services/data_domain.d.ts.map +1 -0
- package/lib/services/data_domain.js +2 -0
- package/lib/services/data_domain.js.map +1 -0
- package/lib/services/data_product.d.ts +290 -0
- package/lib/services/data_product.d.ts.map +1 -0
- package/lib/services/data_product.js +2 -0
- package/lib/services/data_product.js.map +1 -0
- package/lib/services/data_product_usage_example.d.ts +158 -0
- package/lib/services/data_product_usage_example.d.ts.map +1 -0
- package/lib/services/data_product_usage_example.js +2 -0
- package/lib/services/data_product_usage_example.js.map +1 -0
- package/lib/services/data_quality.d.ts +344 -0
- package/lib/services/data_quality.d.ts.map +1 -0
- package/lib/services/data_quality.js +2 -0
- package/lib/services/data_quality.js.map +1 -0
- package/lib/services/data_quality_metrics.d.ts +282 -0
- package/lib/services/data_quality_metrics.d.ts.map +1 -0
- package/lib/services/data_quality_metrics.js +2 -0
- package/lib/services/data_quality_metrics.js.map +1 -0
- package/lib/services/data_quality_schedule.d.ts +220 -0
- package/lib/services/data_quality_schedule.d.ts.map +1 -0
- package/lib/services/data_quality_schedule.js +2 -0
- package/lib/services/data_quality_schedule.js.map +1 -0
- package/lib/services/discovery.d.ts +439 -0
- package/lib/services/discovery.d.ts.map +1 -0
- package/lib/services/discovery.js +36 -0
- package/lib/services/discovery.js.map +1 -0
- package/lib/services/file_ingest_source.d.ts +205 -0
- package/lib/services/file_ingest_source.d.ts.map +1 -0
- package/lib/services/file_ingest_source.js +2 -0
- package/lib/services/file_ingest_source.js.map +1 -0
- package/lib/services/group.d.ts +140 -0
- package/lib/services/group.d.ts.map +1 -0
- package/lib/services/group.js +2 -0
- package/lib/services/group.js.map +1 -0
- package/lib/services/index.d.ts +26 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +25 -0
- package/lib/services/kafka_ingest_source.d.ts +236 -0
- package/lib/services/kafka_ingest_source.d.ts.map +1 -0
- package/lib/services/kafka_ingest_source.js +2 -0
- package/lib/services/kafka_ingest_source.js.map +1 -0
- package/lib/services/live_table.d.ts +851 -0
- package/lib/services/live_table.d.ts.map +1 -0
- package/lib/services/live_table.js +20 -0
- package/lib/services/live_table.js.map +1 -0
- package/lib/services/policy.d.ts +213 -0
- package/lib/services/policy.d.ts.map +1 -0
- package/lib/services/policy.js +2 -0
- package/lib/services/policy.js.map +1 -0
- package/lib/services/privatelink.d.ts +95 -0
- package/lib/services/privatelink.d.ts.map +1 -0
- package/lib/services/privatelink.js +2 -0
- package/lib/services/privatelink.js.map +1 -0
- package/lib/services/privilege.d.ts +167 -0
- package/lib/services/privilege.d.ts.map +1 -0
- package/lib/services/privilege.js +2 -0
- package/lib/services/privilege.js.map +1 -0
- package/lib/services/role.d.ts +222 -0
- package/lib/services/role.d.ts.map +1 -0
- package/lib/services/role.js +2 -0
- package/lib/services/role.js.map +1 -0
- package/lib/services/row_filter.d.ts +155 -0
- package/lib/services/row_filter.d.ts.map +1 -0
- package/lib/services/row_filter.js +2 -0
- package/lib/services/row_filter.js.map +1 -0
- package/lib/services/schema_discovery.d.ts +236 -0
- package/lib/services/schema_discovery.d.ts.map +1 -0
- package/lib/services/schema_discovery.js +2 -0
- package/lib/services/schema_discovery.js.map +1 -0
- package/lib/services/service_account.d.ts +206 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +2 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/sql_jobs.d.ts +264 -0
- package/lib/services/sql_jobs.d.ts.map +1 -0
- package/lib/services/sql_jobs.js +2 -0
- package/lib/services/sql_jobs.js.map +1 -0
- package/lib/services/tag.d.ts +287 -0
- package/lib/services/tag.d.ts.map +1 -0
- package/lib/services/tag.js +2 -0
- package/lib/services/tag.js.map +1 -0
- package/lib/services/user.d.ts +175 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +2 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services.lazy/catalog.js +4 -0
- package/lib/services.lazy/cluster.js +1 -0
- package/lib/services.lazy/column_mask.js +1 -0
- package/lib/services.lazy/cross_account_iam_role.js +1 -0
- package/lib/services.lazy/data_domain.js +1 -0
- package/lib/services.lazy/data_product.js +1 -0
- package/lib/services.lazy/data_product_usage_example.js +1 -0
- package/lib/services.lazy/data_quality.js +1 -0
- package/lib/services.lazy/data_quality_metrics.js +1 -0
- package/lib/services.lazy/data_quality_schedule.js +1 -0
- package/lib/services.lazy/discovery.js +4 -0
- package/lib/services.lazy/file_ingest_source.js +1 -0
- package/lib/services.lazy/group.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/kafka_ingest_source.js +1 -0
- package/lib/services.lazy/live_table.js +4 -0
- package/lib/services.lazy/policy.js +1 -0
- package/lib/services.lazy/privatelink.js +1 -0
- package/lib/services.lazy/privilege.js +1 -0
- package/lib/services.lazy/role.js +1 -0
- package/lib/services.lazy/row_filter.js +1 -0
- package/lib/services.lazy/schema_discovery.js +1 -0
- package/lib/services.lazy/service_account.js +1 -0
- package/lib/services.lazy/sql_jobs.js +1 -0
- package/lib/services.lazy/tag.js +1 -0
- package/lib/services.lazy/user.js +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +87 -3
- package/src/credentials.ts +205 -0
- package/src/errors.ts +102 -0
- package/src/index.ts +45 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +94 -0
- package/src/retry.ts +50 -0
- package/src/services/catalog.ts +6636 -0
- package/src/services/cluster.ts +492 -0
- package/src/services/column_mask.ts +388 -0
- package/src/services/cross_account_iam_role.ts +328 -0
- package/src/services/data_domain.ts +509 -0
- package/src/services/data_product.ts +641 -0
- package/src/services/data_product_usage_example.ts +380 -0
- package/src/services/data_quality.ts +771 -0
- package/src/services/data_quality_metrics.ts +580 -0
- package/src/services/data_quality_schedule.ts +454 -0
- package/src/services/discovery.ts +1257 -0
- package/src/services/file_ingest_source.ts +480 -0
- package/src/services/group.ts +282 -0
- package/src/services/index.ts +26 -0
- package/src/services/kafka_ingest_source.ts +545 -0
- package/src/services/live_table.ts +1537 -0
- package/src/services/policy.ts +526 -0
- package/src/services/privatelink.ts +209 -0
- package/src/services/privilege.ts +423 -0
- package/src/services/role.ts +501 -0
- package/src/services/row_filter.ts +365 -0
- package/src/services/schema_discovery.ts +516 -0
- package/src/services/service_account.ts +525 -0
- package/src/services/sql_jobs.ts +621 -0
- package/src/services/tag.ts +785 -0
- package/src/services/user.ts +375 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-starburst-galaxy/specs/{v1,v2}.json). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { StarburstGalaxyServiceErrors } from "../errors.ts";
|
|
7
|
+
import { paginateToken } from "../pagination.ts";
|
|
8
|
+
import {
|
|
9
|
+
StarburstGalaxyProtocol,
|
|
10
|
+
type StarburstGalaxyOpError,
|
|
11
|
+
type StarburstGalaxyOpContext,
|
|
12
|
+
} from "../protocol.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
import * as T from "../traits.ts";
|
|
15
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
16
|
+
const __s: any[] = [];
|
|
17
|
+
|
|
18
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
19
|
+
|
|
20
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
21
|
+
const TELEMETRY = {
|
|
22
|
+
system: "starburst-galaxy-api",
|
|
23
|
+
responseHeaders: [
|
|
24
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
25
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
26
|
+
],
|
|
27
|
+
prefix: "StarburstGalaxy",
|
|
28
|
+
service: "ClusterService",
|
|
29
|
+
labels: "starburst_galaxy",
|
|
30
|
+
propagate: "w3c",
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export class BadRequest
|
|
34
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
35
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
36
|
+
message: S.String,
|
|
37
|
+
body: S.Unknown,
|
|
38
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
39
|
+
}).pipe(C.withBadRequestError),
|
|
40
|
+
[{ status: 400 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class Conflict
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
46
|
+
message: S.String,
|
|
47
|
+
body: S.Unknown,
|
|
48
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
49
|
+
}).pipe(C.withConflictError),
|
|
50
|
+
[{ status: 409 }],
|
|
51
|
+
) {}
|
|
52
|
+
|
|
53
|
+
export class Forbidden
|
|
54
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
55
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
56
|
+
message: S.String,
|
|
57
|
+
body: S.Unknown,
|
|
58
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
59
|
+
}).pipe(C.withAuthError),
|
|
60
|
+
[{ status: 403 }],
|
|
61
|
+
) {}
|
|
62
|
+
|
|
63
|
+
export class NotFound
|
|
64
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
65
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
66
|
+
message: S.String,
|
|
67
|
+
body: S.Unknown,
|
|
68
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
69
|
+
}).pipe(C.withBadRequestError),
|
|
70
|
+
[{ status: 404 }],
|
|
71
|
+
) {}
|
|
72
|
+
|
|
73
|
+
export class PreconditionFailed
|
|
74
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
75
|
+
/*@__PURE__*/ S.TaggedError<PreconditionFailed>()("PreconditionFailed", {
|
|
76
|
+
message: S.String,
|
|
77
|
+
body: S.Unknown,
|
|
78
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
79
|
+
}),
|
|
80
|
+
[{ status: 412 }],
|
|
81
|
+
) {}
|
|
82
|
+
|
|
83
|
+
/** Catalog IDs to attach to the cluster */
|
|
84
|
+
export type CreateClusterRequestCatalogRefsList = Array<string>;
|
|
85
|
+
export type ClusterQueryProcessingMode = "Batch" | "WarpSpeed";
|
|
86
|
+
export interface CreateClusterRequest {
|
|
87
|
+
extended?: boolean | undefined;
|
|
88
|
+
/** Name of the cluster being created */
|
|
89
|
+
name: string;
|
|
90
|
+
/** Cloud region ID of where the cluster will be created */
|
|
91
|
+
cloudRegionId: string;
|
|
92
|
+
/** Catalog IDs to attach to the cluster */
|
|
93
|
+
catalogRefs: CreateClusterRequestCatalogRefsList;
|
|
94
|
+
/** Idle suspend duration (in minutes) */
|
|
95
|
+
idleStopMinutes?: number | undefined;
|
|
96
|
+
/** Cluster query processing mode */
|
|
97
|
+
processingMode?: ClusterQueryProcessingMode | (string & {}) | undefined;
|
|
98
|
+
/** Minimum worker count */
|
|
99
|
+
minWorkers: number;
|
|
100
|
+
/** Maximum worker count */
|
|
101
|
+
maxWorkers: number;
|
|
102
|
+
/** Enable/Disable warp resiliency */
|
|
103
|
+
warpResiliencyEnabled: boolean;
|
|
104
|
+
/** Enable/Disable resultset caching */
|
|
105
|
+
resultCacheEnabled: boolean;
|
|
106
|
+
/** Default visibility for resultset caching (in seconds) */
|
|
107
|
+
resultCacheDefaultVisibilitySeconds?: number | undefined;
|
|
108
|
+
/** Private Link Enabled */
|
|
109
|
+
privateLinkCluster: boolean;
|
|
110
|
+
/** Number of replicas */
|
|
111
|
+
replicas?: number | undefined;
|
|
112
|
+
}
|
|
113
|
+
/** Cluster attached catalog IDs (read only) */
|
|
114
|
+
export type ClusterCatalogRefsList = Array<string>;
|
|
115
|
+
/** A Trino cluster */
|
|
116
|
+
export interface Cluster {
|
|
117
|
+
/** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
|
|
118
|
+
syncToken: string;
|
|
119
|
+
/** Cluster ID (read only) */
|
|
120
|
+
clusterId: string;
|
|
121
|
+
/** Cluster name (read only) */
|
|
122
|
+
name: string;
|
|
123
|
+
/** Cloud region ID (read only) */
|
|
124
|
+
cloudRegionId: string;
|
|
125
|
+
/** Cluster attached catalog IDs (read only) */
|
|
126
|
+
catalogRefs: ClusterCatalogRefsList;
|
|
127
|
+
/** Idle stop duration (in minutes) (read only) */
|
|
128
|
+
idleStopMinutes?: number | undefined;
|
|
129
|
+
/** Supports resource intensive query processing mode (read only) */
|
|
130
|
+
batchCluster: boolean;
|
|
131
|
+
/** Supports warp speed mode (read only) */
|
|
132
|
+
warpSpeedCluster: boolean;
|
|
133
|
+
/** Minimum worker count (read only) */
|
|
134
|
+
minWorkers: number;
|
|
135
|
+
/** Maximum worker count (read only) */
|
|
136
|
+
maxWorkers: number;
|
|
137
|
+
/** Number of replicas (read only) */
|
|
138
|
+
replicas?: number | undefined;
|
|
139
|
+
/** Cluster state (read only) */
|
|
140
|
+
clusterState?: string | undefined;
|
|
141
|
+
/** Connection URL (read only) */
|
|
142
|
+
trinoUri?: string | undefined;
|
|
143
|
+
/** Cluster query processing mode (extended field) (read only) */
|
|
144
|
+
processingMode?: ClusterQueryProcessingMode | undefined;
|
|
145
|
+
/** Private Link enabled (extended field) (read only) */
|
|
146
|
+
privateLinkCluster?: boolean | undefined;
|
|
147
|
+
/** Result cache enabled (extended field) (read only) */
|
|
148
|
+
resultCacheEnabled?: boolean | undefined;
|
|
149
|
+
/** Default visibility for result cache in seconds (extended field) (read only) */
|
|
150
|
+
resultCacheDefaultVisibilitySeconds?: number | undefined;
|
|
151
|
+
/** Cluster enabled state (extended field) (read only) */
|
|
152
|
+
enabled?: boolean | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface DeleteClusterRequest {
|
|
155
|
+
/** - A Trino cluster - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
156
|
+
clusterId: string;
|
|
157
|
+
}
|
|
158
|
+
export interface DeleteClusterResponse {}
|
|
159
|
+
export interface GetClusterRequest {
|
|
160
|
+
/** - A Trino cluster - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
161
|
+
clusterId: string;
|
|
162
|
+
extended?: boolean | undefined;
|
|
163
|
+
}
|
|
164
|
+
export interface ListClustersRequest {
|
|
165
|
+
/** Pagination token */
|
|
166
|
+
pageToken?: string | undefined;
|
|
167
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
168
|
+
pageSize?: number | undefined;
|
|
169
|
+
extended?: boolean | undefined;
|
|
170
|
+
}
|
|
171
|
+
/** A page of results. */
|
|
172
|
+
export type PaginatedClusterResultList = Array<Cluster>;
|
|
173
|
+
export interface PaginatedCluster {
|
|
174
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
175
|
+
nextPageToken?: string | undefined;
|
|
176
|
+
/** A page of results. */
|
|
177
|
+
result: PaginatedClusterResultList;
|
|
178
|
+
}
|
|
179
|
+
/** Catalog IDs to attach to the cluster */
|
|
180
|
+
export type UpdateClusterRequestCatalogRefsList = Array<string>;
|
|
181
|
+
export interface UpdateClusterRequest {
|
|
182
|
+
/** - A Trino cluster - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
183
|
+
clusterId: string;
|
|
184
|
+
extended?: boolean | undefined;
|
|
185
|
+
/** Updated name of the cluster */
|
|
186
|
+
name?: string | undefined;
|
|
187
|
+
/** Updated cloud region ID of the cluster */
|
|
188
|
+
cloudRegionId?: string | undefined;
|
|
189
|
+
/** Catalog IDs to attach to the cluster */
|
|
190
|
+
catalogRefs?: UpdateClusterRequestCatalogRefsList | undefined;
|
|
191
|
+
/** Idle suspend duration (in minutes) */
|
|
192
|
+
idleStopMinutes?: number | undefined;
|
|
193
|
+
/** Cluster query processing mode */
|
|
194
|
+
processingMode?: ClusterQueryProcessingMode | (string & {}) | undefined;
|
|
195
|
+
/** Minimum worker count */
|
|
196
|
+
minWorkers?: number | undefined;
|
|
197
|
+
/** Maximum worker count */
|
|
198
|
+
maxWorkers?: number | undefined;
|
|
199
|
+
/** Enable/Disable a cluster */
|
|
200
|
+
enabled?: boolean | undefined;
|
|
201
|
+
/** Enable/Disable resultset caching */
|
|
202
|
+
resultCacheEnabled?: boolean | undefined;
|
|
203
|
+
/** Default visibility for resultset caching (in seconds) */
|
|
204
|
+
resultCacheDefaultVisibilitySeconds?: number | null | undefined;
|
|
205
|
+
/** Enable/Disable Private Link */
|
|
206
|
+
privateLinkCluster?: boolean | undefined;
|
|
207
|
+
/** Number of replicas */
|
|
208
|
+
replicas?: number | undefined;
|
|
209
|
+
}
|
|
210
|
+
/** Any fields/values that are invalid or incorrect */
|
|
211
|
+
export type BadRequestFieldsList = Array<string>;
|
|
212
|
+
/** Invalid request */
|
|
213
|
+
export interface BadRequest2 {
|
|
214
|
+
/** Description of the error */
|
|
215
|
+
message?: string | undefined;
|
|
216
|
+
/** Any fields/values that are invalid or incorrect */
|
|
217
|
+
fields?: BadRequestFieldsList | undefined;
|
|
218
|
+
}
|
|
219
|
+
/** Already exists */
|
|
220
|
+
export interface Exists {
|
|
221
|
+
message?: string | undefined;
|
|
222
|
+
}
|
|
223
|
+
/** Authorization failed */
|
|
224
|
+
export type Forbidden2 = Exists;
|
|
225
|
+
/** Any fields/values that weren't found */
|
|
226
|
+
export type NotFoundFieldsList = Array<string>;
|
|
227
|
+
/** A resource or required component was not found */
|
|
228
|
+
export interface NotFound2 {
|
|
229
|
+
/** Name of the resource */
|
|
230
|
+
message: string;
|
|
231
|
+
/** Violation description */
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
/** Any fields/values that weren't found */
|
|
234
|
+
fields?: NotFoundFieldsList | undefined;
|
|
235
|
+
}
|
|
236
|
+
export type TypeEnum = "TermsOfService";
|
|
237
|
+
/** Field violations (read only) */
|
|
238
|
+
export interface Violation {
|
|
239
|
+
/** Violation type */
|
|
240
|
+
type: TypeEnum;
|
|
241
|
+
/** Violation subject */
|
|
242
|
+
subject: string;
|
|
243
|
+
/** Violation description */
|
|
244
|
+
description: string;
|
|
245
|
+
}
|
|
246
|
+
/** Field violations (read only) */
|
|
247
|
+
export type PreconditionfailureViolationsList = Array<Violation>;
|
|
248
|
+
/** Error details (read only) */
|
|
249
|
+
export interface Preconditionfailure {
|
|
250
|
+
/** Field violations (read only) */
|
|
251
|
+
violations: PreconditionfailureViolationsList;
|
|
252
|
+
}
|
|
253
|
+
/** Request can not be executed in the current system state, such as deleting a non-empty directory. */
|
|
254
|
+
export interface FailedPrecondition {
|
|
255
|
+
/** Description of the error */
|
|
256
|
+
message: string;
|
|
257
|
+
detail: Preconditionfailure;
|
|
258
|
+
}
|
|
259
|
+
export type CreateClusterError =
|
|
260
|
+
| BadRequest
|
|
261
|
+
| Forbidden
|
|
262
|
+
| Conflict
|
|
263
|
+
| PreconditionFailed
|
|
264
|
+
| StarburstGalaxyOpError;
|
|
265
|
+
/** Create a cluster */
|
|
266
|
+
export const createCluster: API.OperationMethod<
|
|
267
|
+
CreateClusterRequest,
|
|
268
|
+
Cluster,
|
|
269
|
+
CreateClusterError,
|
|
270
|
+
StarburstGalaxyOpContext
|
|
271
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
272
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateClusterRequest>,
|
|
273
|
+
output: __S(5, __c1, 1) as any as S.Schema<Cluster>,
|
|
274
|
+
errors: [BadRequest, Forbidden, Conflict, PreconditionFailed],
|
|
275
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
276
|
+
protocol: StarburstGalaxyProtocol,
|
|
277
|
+
retry: Retry.Retry,
|
|
278
|
+
telemetry: TELEMETRY,
|
|
279
|
+
span: "CreateCluster",
|
|
280
|
+
}));
|
|
281
|
+
|
|
282
|
+
export type DeleteClusterError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
283
|
+
/** Delete a cluster */
|
|
284
|
+
export const deleteCluster: API.OperationMethod<
|
|
285
|
+
DeleteClusterRequest,
|
|
286
|
+
DeleteClusterResponse,
|
|
287
|
+
DeleteClusterError,
|
|
288
|
+
StarburstGalaxyOpContext
|
|
289
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
290
|
+
input: __S(8, __c2, 0) as any as S.Schema<DeleteClusterRequest>,
|
|
291
|
+
output: __S(9, __c2, 1) as any as S.Schema<DeleteClusterResponse>,
|
|
292
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
293
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
294
|
+
protocol: StarburstGalaxyProtocol,
|
|
295
|
+
retry: Retry.Retry,
|
|
296
|
+
telemetry: TELEMETRY,
|
|
297
|
+
span: "DeleteCluster",
|
|
298
|
+
}));
|
|
299
|
+
|
|
300
|
+
export type GetClusterError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
301
|
+
/** Get cluster by id */
|
|
302
|
+
export const getCluster: API.OperationMethod<
|
|
303
|
+
GetClusterRequest,
|
|
304
|
+
Cluster,
|
|
305
|
+
GetClusterError,
|
|
306
|
+
StarburstGalaxyOpContext
|
|
307
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
308
|
+
input: __S(12, __c3, 0) as any as S.Schema<GetClusterRequest>,
|
|
309
|
+
output: __S(5, __c1, 1) as any as S.Schema<Cluster>,
|
|
310
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
311
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
312
|
+
protocol: StarburstGalaxyProtocol,
|
|
313
|
+
retry: Retry.Retry,
|
|
314
|
+
telemetry: TELEMETRY,
|
|
315
|
+
span: "GetCluster",
|
|
316
|
+
}));
|
|
317
|
+
|
|
318
|
+
export type ListClustersError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
319
|
+
/** Return the clusters of your account */
|
|
320
|
+
export const listClusters: API.PaginatedOperationMethod<
|
|
321
|
+
ListClustersRequest,
|
|
322
|
+
PaginatedCluster,
|
|
323
|
+
ListClustersError,
|
|
324
|
+
StarburstGalaxyOpContext,
|
|
325
|
+
Cluster
|
|
326
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
327
|
+
() => ({
|
|
328
|
+
input: __S(16, __c4, 0) as any as S.Schema<ListClustersRequest>,
|
|
329
|
+
output: __S(18, __c4, 2) as any as S.Schema<PaginatedCluster>,
|
|
330
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
331
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
332
|
+
protocol: StarburstGalaxyProtocol,
|
|
333
|
+
retry: Retry.Retry,
|
|
334
|
+
telemetry: TELEMETRY,
|
|
335
|
+
span: "ListClusters",
|
|
336
|
+
pagination: {
|
|
337
|
+
mode: "token",
|
|
338
|
+
inputToken: "pageToken",
|
|
339
|
+
outputToken: "nextPageToken",
|
|
340
|
+
items: "result",
|
|
341
|
+
pageSize: "pageSize",
|
|
342
|
+
} as const,
|
|
343
|
+
}),
|
|
344
|
+
paginateToken,
|
|
345
|
+
) as any;
|
|
346
|
+
|
|
347
|
+
export type UpdateClusterError =
|
|
348
|
+
| BadRequest
|
|
349
|
+
| Forbidden
|
|
350
|
+
| NotFound
|
|
351
|
+
| Conflict
|
|
352
|
+
| StarburstGalaxyOpError;
|
|
353
|
+
/** Update a cluster. Only the owner of the cluster can perform this operation Only include fields you wish to update. Missing or unrecognized fields are ignored. */
|
|
354
|
+
export const updateCluster: API.OperationMethod<
|
|
355
|
+
UpdateClusterRequest,
|
|
356
|
+
Cluster,
|
|
357
|
+
UpdateClusterError,
|
|
358
|
+
StarburstGalaxyOpContext
|
|
359
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
360
|
+
input: __S(20, __c5, 0) as any as S.Schema<UpdateClusterRequest>,
|
|
361
|
+
output: __S(5, __c1, 1) as any as S.Schema<Cluster>,
|
|
362
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
363
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
364
|
+
protocol: StarburstGalaxyProtocol,
|
|
365
|
+
retry: Retry.Retry,
|
|
366
|
+
telemetry: TELEMETRY,
|
|
367
|
+
span: "UpdateCluster",
|
|
368
|
+
}));
|
|
369
|
+
|
|
370
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
371
|
+
function __c0(j: number): any {
|
|
372
|
+
switch (j) {
|
|
373
|
+
case 0:
|
|
374
|
+
return S.suspend(() =>
|
|
375
|
+
S.Struct({
|
|
376
|
+
extended: S.optional(S.Boolean.pipe(T.Query())),
|
|
377
|
+
name: S.String,
|
|
378
|
+
cloudRegionId: S.String,
|
|
379
|
+
catalogRefs: __S(4, __c1, 0),
|
|
380
|
+
idleStopMinutes: S.optional(S.Number),
|
|
381
|
+
processingMode: S.optional(S.String),
|
|
382
|
+
minWorkers: S.Number,
|
|
383
|
+
maxWorkers: S.Number,
|
|
384
|
+
warpResiliencyEnabled: S.Boolean,
|
|
385
|
+
resultCacheEnabled: S.Boolean,
|
|
386
|
+
resultCacheDefaultVisibilitySeconds: S.optional(S.Number),
|
|
387
|
+
privateLinkCluster: S.Boolean,
|
|
388
|
+
replicas: S.optional(S.Number),
|
|
389
|
+
}).pipe(T.Http({ method: "POST", uri: "/public/api/v1/cluster", code: 200 })),
|
|
390
|
+
).annotate({ identifier: "CreateClusterRequest" });
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
function __c1(j: number): any {
|
|
394
|
+
switch (j) {
|
|
395
|
+
case 0:
|
|
396
|
+
return S.Array(S.String);
|
|
397
|
+
case 1:
|
|
398
|
+
return S.suspend(() =>
|
|
399
|
+
S.Struct({
|
|
400
|
+
syncToken: S.String,
|
|
401
|
+
clusterId: S.String,
|
|
402
|
+
name: S.String,
|
|
403
|
+
cloudRegionId: S.String,
|
|
404
|
+
catalogRefs: __S(4, __c1, 0),
|
|
405
|
+
idleStopMinutes: S.optional(S.Number),
|
|
406
|
+
batchCluster: S.Boolean,
|
|
407
|
+
warpSpeedCluster: S.Boolean,
|
|
408
|
+
minWorkers: S.Number,
|
|
409
|
+
maxWorkers: S.Number,
|
|
410
|
+
replicas: S.optional(S.Number),
|
|
411
|
+
clusterState: S.optional(S.String),
|
|
412
|
+
trinoUri: S.optional(S.String),
|
|
413
|
+
processingMode: S.optional(S.String),
|
|
414
|
+
privateLinkCluster: S.optional(S.Boolean),
|
|
415
|
+
resultCacheEnabled: S.optional(S.Boolean),
|
|
416
|
+
resultCacheDefaultVisibilitySeconds: S.optional(S.Number),
|
|
417
|
+
enabled: S.optional(S.Boolean),
|
|
418
|
+
}),
|
|
419
|
+
).annotate({ identifier: "Cluster" });
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
function __c2(j: number): any {
|
|
423
|
+
switch (j) {
|
|
424
|
+
case 0:
|
|
425
|
+
return S.suspend(() =>
|
|
426
|
+
S.Struct({
|
|
427
|
+
clusterId: S.String.pipe(T.Label()),
|
|
428
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/public/api/v1/cluster/{clusterId}", code: 200 })),
|
|
429
|
+
).annotate({ identifier: "DeleteClusterRequest" });
|
|
430
|
+
case 1:
|
|
431
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteClusterResponse" });
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
function __c3(j: number): any {
|
|
435
|
+
switch (j) {
|
|
436
|
+
case 0:
|
|
437
|
+
return S.suspend(() =>
|
|
438
|
+
S.Struct({
|
|
439
|
+
clusterId: S.String.pipe(T.Label()),
|
|
440
|
+
extended: S.optional(S.Boolean.pipe(T.Query())),
|
|
441
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/cluster/{clusterId}", code: 200 })),
|
|
442
|
+
).annotate({ identifier: "GetClusterRequest" });
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
function __c4(j: number): any {
|
|
446
|
+
switch (j) {
|
|
447
|
+
case 0:
|
|
448
|
+
return S.suspend(() =>
|
|
449
|
+
S.Struct({
|
|
450
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
451
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
452
|
+
extended: S.optional(S.Boolean.pipe(T.Query())),
|
|
453
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/cluster", code: 200 })),
|
|
454
|
+
).annotate({ identifier: "ListClustersRequest" });
|
|
455
|
+
case 1:
|
|
456
|
+
return S.Array(__S(5, __c1, 1));
|
|
457
|
+
case 2:
|
|
458
|
+
return S.suspend(() =>
|
|
459
|
+
S.Struct({
|
|
460
|
+
nextPageToken: S.optional(S.String),
|
|
461
|
+
result: __S(17, __c4, 1),
|
|
462
|
+
}),
|
|
463
|
+
).annotate({ identifier: "PaginatedCluster" });
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
function __c5(j: number): any {
|
|
467
|
+
switch (j) {
|
|
468
|
+
case 0:
|
|
469
|
+
return S.suspend(() =>
|
|
470
|
+
S.Struct({
|
|
471
|
+
clusterId: S.String.pipe(T.Label()),
|
|
472
|
+
extended: S.optional(S.Boolean.pipe(T.Query())),
|
|
473
|
+
name: S.optional(S.String),
|
|
474
|
+
cloudRegionId: S.optional(S.String),
|
|
475
|
+
catalogRefs: S.optional(__S(4, __c1, 0)),
|
|
476
|
+
idleStopMinutes: S.optional(S.Number),
|
|
477
|
+
processingMode: S.optional(S.String),
|
|
478
|
+
minWorkers: S.optional(S.Number),
|
|
479
|
+
maxWorkers: S.optional(S.Number),
|
|
480
|
+
enabled: S.optional(S.Boolean),
|
|
481
|
+
resultCacheEnabled: S.optional(S.Boolean),
|
|
482
|
+
resultCacheDefaultVisibilitySeconds: S.optional(S.NullOr(S.Number)),
|
|
483
|
+
privateLinkCluster: S.optional(S.Boolean),
|
|
484
|
+
replicas: S.optional(S.Number),
|
|
485
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/public/api/v1/cluster/{clusterId}", code: 200 })),
|
|
486
|
+
).annotate({ identifier: "UpdateClusterRequest" });
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
490
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
491
|
+
return (__s[i] ??= __L.at(f, j));
|
|
492
|
+
}
|