@databricks/sdk-workspaces 0.1.0-dev.2 → 0.1.0-dev.4
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/dist/v1/model.d.ts +33 -28
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +49 -49
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +2 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +6 -6
- package/src/v1/client.ts +0 -405
- package/src/v1/index.ts +0 -36
- package/src/v1/model.ts +0 -834
- package/src/v1/transport.ts +0 -73
- package/src/v1/utils.ts +0 -180
package/src/v1/model.ts
DELETED
|
@@ -1,834 +0,0 @@
|
|
|
1
|
-
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
import {FieldMask} from '@databricks/sdk-core/wkt';
|
|
4
|
-
import type {FieldMaskSchema} from '@databricks/sdk-core/wkt';
|
|
5
|
-
import {z} from 'zod';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Corresponds to compute mode defined here:
|
|
9
|
-
* https://src.dev.databricks.com/databricks/universe@9076536b18479afd639d1c1f9dd5a59f72215e69/-/blob/central/api/common.proto?L872
|
|
10
|
-
*/
|
|
11
|
-
export enum ComputeMode {
|
|
12
|
-
/** Classic + Serverless */
|
|
13
|
-
HYBRID = 'HYBRID',
|
|
14
|
-
/** Serverless-only. */
|
|
15
|
-
SERVERLESS = 'SERVERLESS',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Specifies the network connectivity types for the GKE nodes and the GKE master network.
|
|
20
|
-
*
|
|
21
|
-
* Set to `PRIVATE_NODE_PUBLIC_MASTER` for a private GKE cluster
|
|
22
|
-
* for the workspace. The GKE nodes will not have public IPs.
|
|
23
|
-
*
|
|
24
|
-
* Set to `PUBLIC_NODE_PUBLIC_MASTER` for a public GKE cluster.
|
|
25
|
-
* The nodes of a public GKE cluster have public IP addresses.
|
|
26
|
-
*/
|
|
27
|
-
export enum GkeConnectivityType {
|
|
28
|
-
/**
|
|
29
|
-
* The nodes of the GKE cluster will have private IP only. GKE master will still have a public
|
|
30
|
-
* IP.
|
|
31
|
-
*/
|
|
32
|
-
PRIVATE_NODE_PUBLIC_MASTER = 'PRIVATE_NODE_PUBLIC_MASTER',
|
|
33
|
-
/** The GKE cluster will have public IPs for both its nodes and GKE master. */
|
|
34
|
-
PUBLIC_NODE_PUBLIC_MASTER = 'PUBLIC_NODE_PUBLIC_MASTER',
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export enum PricingTier {
|
|
38
|
-
/** unknown tier that signifies invalid tier values */
|
|
39
|
-
UNKNOWN = 'UNKNOWN',
|
|
40
|
-
/** Tier for CE workspaces */
|
|
41
|
-
COMMUNITY_EDITION = 'COMMUNITY_EDITION',
|
|
42
|
-
/** Standard pricing tier that maps to STANDARD_TIER feature tier */
|
|
43
|
-
STANDARD = 'STANDARD',
|
|
44
|
-
/** Premium pricing tier that maps to STANDARD_W_SEC_TIER feature tier */
|
|
45
|
-
PREMIUM = 'PREMIUM',
|
|
46
|
-
/** Enterprise pricing tier that maps to ENTERPRISE_TIER_V2 feature tier */
|
|
47
|
-
ENTERPRISE = 'ENTERPRISE',
|
|
48
|
-
/** Dedicated pricing tier that maps to the DEDICATED feature tier */
|
|
49
|
-
DEDICATED = 'DEDICATED',
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export enum StorageMode {
|
|
53
|
-
/** The storage resources of the workspace are hosted by customers. */
|
|
54
|
-
CUSTOMER_HOSTED = 'CUSTOMER_HOSTED',
|
|
55
|
-
/** The storage resources of the workspace are hosted by Databricks. */
|
|
56
|
-
DEFAULT_STORAGE = 'DEFAULT_STORAGE',
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* The different statuses of a workspace. The following represents the current set of valid
|
|
61
|
-
* transitions from status to status:
|
|
62
|
-
* NOT_PROVISIONED
|
|
63
|
-
* -> PROVISIONING
|
|
64
|
-
* -> CANCELLED
|
|
65
|
-
* PROVISIONING
|
|
66
|
-
* -> RUNNING
|
|
67
|
-
* -> FAILED
|
|
68
|
-
* -> CANCELLED (note that this transition is disallowed in the MultiWorkspace Project)
|
|
69
|
-
* RUNNING
|
|
70
|
-
* -> PROVISIONING
|
|
71
|
-
* -> BANNED
|
|
72
|
-
* -> CANCELLED
|
|
73
|
-
* FAILED
|
|
74
|
-
* -> PROVISIONING
|
|
75
|
-
* -> CANCELLED
|
|
76
|
-
* BANNED
|
|
77
|
-
* -> RUNNING
|
|
78
|
-
* -> CANCELLED
|
|
79
|
-
* Note that a transition from any state to itself is also valid.
|
|
80
|
-
* TODO(PLAT-5867): add a transition from CANCELLED to some other value (e.g. RECOVERING)
|
|
81
|
-
*/
|
|
82
|
-
export enum WorkspaceStatus {
|
|
83
|
-
/**
|
|
84
|
-
* Status for workspaces that have been created but not provisioned yet. It is technically
|
|
85
|
-
* possible for an Azure workspace to be in this state, but only for less than a second in almost
|
|
86
|
-
* all cases, as it will almost immediately transition to PROVISIONING. AWS workspaces may be in
|
|
87
|
-
* NOT_PROVISIONED state for much longer.
|
|
88
|
-
*/
|
|
89
|
-
NOT_PROVISIONED = 'NOT_PROVISIONED',
|
|
90
|
-
/** Status for workspaces being provisioned. */
|
|
91
|
-
PROVISIONING = 'PROVISIONING',
|
|
92
|
-
/** Status for running workspaces. */
|
|
93
|
-
RUNNING = 'RUNNING',
|
|
94
|
-
/**
|
|
95
|
-
* Status for workspaces that have failed to be provisioned. This is currently an AWS-only state
|
|
96
|
-
* since an Azure customer can easily retry to launch a workspace that failed to launch, whereas
|
|
97
|
-
* this process is different in AWS.
|
|
98
|
-
*/
|
|
99
|
-
FAILED = 'FAILED',
|
|
100
|
-
/**
|
|
101
|
-
* Status for banned workspaces. This is intended for use with CE workspaces, although there is no
|
|
102
|
-
* code to enforce this restriction. These workspaces can be unbanned at a later time.
|
|
103
|
-
*/
|
|
104
|
-
BANNED = 'BANNED',
|
|
105
|
-
/** Status for cancelling workspaces. This state always comes before the CANCELLED status. */
|
|
106
|
-
CANCELLING = 'CANCELLING',
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface AzureWorkspaceInfo {
|
|
110
|
-
/** Azure Resource Group name */
|
|
111
|
-
resourceGroup?: string | undefined;
|
|
112
|
-
/** Azure Subscription ID */
|
|
113
|
-
subscriptionId?: string | undefined;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface CloudResourceContainer {
|
|
117
|
-
cloudResourceContainer?:
|
|
118
|
-
| {$case: 'gcp'; gcp: GcpCloudResourceContainer}
|
|
119
|
-
| undefined;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface CreateWorkspaceRequest {
|
|
123
|
-
accountId?: string | undefined;
|
|
124
|
-
/** The human-readable name of the workspace. */
|
|
125
|
-
workspaceName?: string | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* The deployment name defines part of the subdomain for the workspace. The workspace URL for the web application and REST APIs is <workspace-deployment-name>.cloud.databricks.com. For example, if the deployment name is abcsales, your workspace URL will be https://abcsales.cloud.databricks.com. Hyphens are allowed. This property supports only the set of characters that are allowed in a subdomain.
|
|
128
|
-
* To set this value, you must have a deployment name prefix. Contact your <Databricks> account team to add an account deployment name prefix to your account.
|
|
129
|
-
* Workspace deployment names follow the account prefix and a hyphen. For example, if your account's deployment prefix is acme and the workspace deployment name is workspace-1, the JSON response for the deployment_name field becomes acme-workspace-1. The workspace URL would be acme-workspace-1.cloud.databricks.com.
|
|
130
|
-
* You can also set the deployment_name to the reserved keyword EMPTY if you want the deployment name to only include the deployment prefix. For example, if your account's deployment prefix is acme and the workspace deployment name is EMPTY, the deployment_name becomes acme only and the workspace URL is acme.cloud.databricks.com.
|
|
131
|
-
* This value must be unique across all non-deleted deployments across all AWS regions.
|
|
132
|
-
* If a new workspace omits this property, the server generates a unique deployment name for you with the pattern dbc-xxxxxxxx-xxxx.
|
|
133
|
-
*/
|
|
134
|
-
deploymentName?: string | undefined;
|
|
135
|
-
awsRegion?: string | undefined;
|
|
136
|
-
/** The Google Cloud region of the workspace data plane in your Google account (for example, `us-east4`). */
|
|
137
|
-
location?: string | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* DEPRECATED: This field is being ignored by the server and will be removed in the future.
|
|
140
|
-
* The cloud name. This field always has the value `gcp`.
|
|
141
|
-
*/
|
|
142
|
-
cloud?: string | undefined;
|
|
143
|
-
pricingTier?: PricingTier | undefined;
|
|
144
|
-
cloudResourceContainer?: CloudResourceContainer | undefined;
|
|
145
|
-
/** ID of the workspace's credential configuration object. */
|
|
146
|
-
credentialsId?: string | undefined;
|
|
147
|
-
/** ID of the workspace's storage configuration object. */
|
|
148
|
-
storageConfigurationId?: string | undefined;
|
|
149
|
-
/** The ID of the workspace's network configuration object. To use AWS PrivateLink, this field is required. */
|
|
150
|
-
networkId?: string | undefined;
|
|
151
|
-
gcpManagedNetworkConfig?: GcpManagedNetworkConfig | undefined;
|
|
152
|
-
gkeConfig?: GkeConfig | undefined;
|
|
153
|
-
/**
|
|
154
|
-
* ID of the workspace's private access settings object. Only used for PrivateLink. You must specify this ID if you are using [AWS PrivateLink](https://aws.amazon.com/privatelink/) for either front-end (user-to-workspace connection), back-end (data plane to control plane connection), or both connection types.
|
|
155
|
-
* Before configuring PrivateLink, read the [<Databricks> article about PrivateLink](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html).",
|
|
156
|
-
*/
|
|
157
|
-
privateAccessSettingsId?: string | undefined;
|
|
158
|
-
/** The ID of the workspace's managed services encryption key configuration object. This is used to help protect and control access to the workspace's notebooks, secrets, Databricks SQL queries, and query history. The provided key configuration object property use_cases must contain MANAGED_SERVICES. */
|
|
159
|
-
managedServicesCustomerManagedKeyId?: string | undefined;
|
|
160
|
-
/** The ID of the workspace's storage encryption key configuration object. This is used to encrypt the workspace's root S3 bucket (root DBFS and system data) and, optionally, cluster EBS volumes. The provided key configuration object property use_cases must contain STORAGE. */
|
|
161
|
-
storageCustomerManagedKeyId?: string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* The custom tags key-value pairing that is attached to this workspace. The key-value pair is a string of utf-8 characters. The
|
|
164
|
-
* value can be an empty string, with maximum length of 255 characters. The key can be of maximum length of 127 characters, and cannot be empty.
|
|
165
|
-
*/
|
|
166
|
-
customTags?: Record<string, string> | undefined;
|
|
167
|
-
/**
|
|
168
|
-
* If the compute mode is `SERVERLESS`, a serverless workspace is created that comes pre-configured with serverless compute and default storage, providing a fully-managed, enterprise-ready SaaS experience. This means you don't need to provide any resources managed by you, such as credentials, storage, or network.
|
|
169
|
-
* If the compute mode is `HYBRID` (which is the default option), a classic workspace is created that uses customer-managed resources.
|
|
170
|
-
*/
|
|
171
|
-
computeMode?: ComputeMode | undefined;
|
|
172
|
-
/** The object ID of network connectivity config. Once assigned, the workspace serverless compute resources use the same set of stable IP CIDR blocks and optional private link to access your resources. */
|
|
173
|
-
networkConnectivityConfigId?: string | undefined;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/** key-value representation of a custom workspace tag */
|
|
177
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
178
|
-
export interface CreateWorkspaceRequest_CustomTagsEntry {
|
|
179
|
-
key?: string | undefined;
|
|
180
|
-
value?: string | undefined;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface DeleteWorkspaceRequest {
|
|
184
|
-
workspaceId?: bigint | undefined;
|
|
185
|
-
accountId?: string | undefined;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export interface GcpCloudResourceContainer {
|
|
189
|
-
projectId?: string | undefined;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* The shared network config for GCP workspace.
|
|
194
|
-
* This object has common network configurations that are network attributions of a workspace.
|
|
195
|
-
* DEPRECATED. Use GkeConfig instead.
|
|
196
|
-
*/
|
|
197
|
-
export interface GcpCommonNetworkConfig {
|
|
198
|
-
/** The type of network connectivity of the GKE cluster. */
|
|
199
|
-
gkeConnectivityType?: GkeConnectivityType | undefined;
|
|
200
|
-
/**
|
|
201
|
-
* The IP range that will be used to allocate GKE cluster master resources from.
|
|
202
|
-
* This field must not be set if gke_cluster_type=PUBLIC_NODE_PUBLIC_MASTER.
|
|
203
|
-
*/
|
|
204
|
-
gkeClusterMasterIpRange?: string | undefined;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/** The network configuration for the workspace. */
|
|
208
|
-
export interface GcpManagedNetworkConfig {
|
|
209
|
-
/**
|
|
210
|
-
* The IP range which will be used to allocate GKE cluster nodes from.
|
|
211
|
-
* Note: Pods, services and master IP range must be mutually exclusive.
|
|
212
|
-
*/
|
|
213
|
-
subnetCidr?: string | undefined;
|
|
214
|
-
/** The IP range that will be used to allocate GKE cluster Pods from. */
|
|
215
|
-
gkeClusterPodIpRange?: string | undefined;
|
|
216
|
-
/** The IP range that will be used to allocate GKE cluster Services from. */
|
|
217
|
-
gkeClusterServiceIpRange?: string | undefined;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface GetWorkspaceRequest {
|
|
221
|
-
workspaceId?: bigint | undefined;
|
|
222
|
-
accountId?: string | undefined;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/** The configurations of the GKE cluster used by the GCP workspace. */
|
|
226
|
-
export interface GkeConfig {
|
|
227
|
-
/** The type of network connectivity of the GKE cluster. */
|
|
228
|
-
connectivityType?: GkeConnectivityType | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* The IP range that will be used to allocate GKE cluster master resources from.
|
|
231
|
-
* This field must not be set if gke_cluster_type=PUBLIC_NODE_PUBLIC_MASTER.
|
|
232
|
-
*/
|
|
233
|
-
masterIpRange?: string | undefined;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export interface ListWorkspacesRequest {
|
|
237
|
-
accountId?: string | undefined;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface ListWorkspacesResponse {
|
|
241
|
-
workspaces?: Workspace[] | undefined;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export interface UpdateWorkspaceRequest {
|
|
245
|
-
customerFacingWorkspace?: Workspace | undefined;
|
|
246
|
-
updateMask?: FieldMask<Workspace> | undefined;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export interface Workspace {
|
|
250
|
-
/** A unique integer ID for the workspace */
|
|
251
|
-
workspaceId?: bigint | undefined;
|
|
252
|
-
/** The human-readable name of the workspace. */
|
|
253
|
-
workspaceName?: string | undefined;
|
|
254
|
-
awsRegion?: string | undefined;
|
|
255
|
-
/** Time in epoch milliseconds when the workspace was created. */
|
|
256
|
-
creationTime?: bigint | undefined;
|
|
257
|
-
deploymentName?: string | undefined;
|
|
258
|
-
/** The status of a workspace */
|
|
259
|
-
workspaceStatus?: WorkspaceStatus | undefined;
|
|
260
|
-
/** <Databricks> account ID. */
|
|
261
|
-
accountId?: string | undefined;
|
|
262
|
-
/** ID of the workspace's credential configuration object. */
|
|
263
|
-
credentialsId?: string | undefined;
|
|
264
|
-
/** ID of the workspace's storage configuration object. */
|
|
265
|
-
storageConfigurationId?: string | undefined;
|
|
266
|
-
/** Message describing the current workspace status. */
|
|
267
|
-
workspaceStatusMessage?: string | undefined;
|
|
268
|
-
networkConfig?:
|
|
269
|
-
| {
|
|
270
|
-
$case: 'networkId';
|
|
271
|
-
/**
|
|
272
|
-
* If this workspace is BYO VPC, then the network_id will be populated. If this workspace is not
|
|
273
|
-
* BYO VPC, then the network_id will be empty.
|
|
274
|
-
*/
|
|
275
|
-
networkId: string;
|
|
276
|
-
}
|
|
277
|
-
| {
|
|
278
|
-
$case: 'gcpManagedNetworkConfig';
|
|
279
|
-
gcpManagedNetworkConfig: GcpManagedNetworkConfig;
|
|
280
|
-
}
|
|
281
|
-
| undefined;
|
|
282
|
-
pricingTier?: PricingTier | undefined;
|
|
283
|
-
/**
|
|
284
|
-
* ID of the workspace's private access settings object. Only used for PrivateLink. You must specify this ID if you are using [AWS PrivateLink](https://aws.amazon.com/privatelink/) for either front-end (user-to-workspace connection), back-end (data plane to control plane connection), or both connection types.
|
|
285
|
-
*
|
|
286
|
-
* Before configuring PrivateLink, read the [<Databricks> article about PrivateLink](https://docs.databricks.com/administration-guide/cloud-configurations/aws/privatelink.html).",
|
|
287
|
-
*/
|
|
288
|
-
privateAccessSettingsId?: string | undefined;
|
|
289
|
-
/** ID of the key configuration for encrypting managed services. */
|
|
290
|
-
managedServicesCustomerManagedKeyId?: string | undefined;
|
|
291
|
-
/** ID of the key configuration for encrypting workspace storage. */
|
|
292
|
-
storageCustomerManagedKeyId?: string | undefined;
|
|
293
|
-
/** The Google Cloud region of the workspace data plane in your Google account (for example, `us-east4`). */
|
|
294
|
-
location?: string | undefined;
|
|
295
|
-
/** The cloud name. This field can have values like `azure`, `gcp`. */
|
|
296
|
-
cloud?: string | undefined;
|
|
297
|
-
/**
|
|
298
|
-
* The network configuration for the workspace.
|
|
299
|
-
*
|
|
300
|
-
* DEPRECATED. Use `network_id` instead.
|
|
301
|
-
*/
|
|
302
|
-
network?: WorkspaceNetwork | undefined;
|
|
303
|
-
azureWorkspaceInfo?: AzureWorkspaceInfo | undefined;
|
|
304
|
-
gkeConfig?: GkeConfig | undefined;
|
|
305
|
-
cloudResourceContainer?: CloudResourceContainer | undefined;
|
|
306
|
-
/**
|
|
307
|
-
* The custom tags key-value pairing that is attached to this workspace. The key-value pair is a string of utf-8 characters. The value can be an empty string,
|
|
308
|
-
* with maximum length of 255 characters. The key can be of maximum length of 127 characters, and cannot be empty.
|
|
309
|
-
*/
|
|
310
|
-
customTags?: Record<string, string> | undefined;
|
|
311
|
-
/** The object ID of network connectivity config. */
|
|
312
|
-
networkConnectivityConfigId?: string | undefined;
|
|
313
|
-
/** The storage mode of the workspace. */
|
|
314
|
-
storageMode?: StorageMode | undefined;
|
|
315
|
-
/** The compute mode of the workspace. */
|
|
316
|
-
computeMode?: ComputeMode | undefined;
|
|
317
|
-
/**
|
|
318
|
-
* A client owned field used to indicate the workspace status that the client expects to be in.
|
|
319
|
-
* For now this is only used to unblock Temporal workflow for GCP least privileged workspace.
|
|
320
|
-
*/
|
|
321
|
-
expectedWorkspaceStatus?: WorkspaceStatus | undefined;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/** key-value representation of a custom workspace tag */
|
|
325
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
326
|
-
export interface Workspace_CustomTagsEntry {
|
|
327
|
-
key?: string | undefined;
|
|
328
|
-
value?: string | undefined;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/** The network configuration for workspaces. */
|
|
332
|
-
export interface WorkspaceNetwork {
|
|
333
|
-
network?:
|
|
334
|
-
| {
|
|
335
|
-
$case: 'gcpManagedNetworkConfig';
|
|
336
|
-
/**
|
|
337
|
-
* The mutually exclusive network deployment modes. The option decides which network mode the
|
|
338
|
-
* workspace will use.
|
|
339
|
-
* The network config for GCP workspace with <Databricks> managed network.
|
|
340
|
-
* This object is input-only and will not be provided when listing workspaces.
|
|
341
|
-
* See go/gcp-byovpc-alpha-design for interface decisions.
|
|
342
|
-
*/
|
|
343
|
-
gcpManagedNetworkConfig: GcpManagedNetworkConfig;
|
|
344
|
-
}
|
|
345
|
-
| {
|
|
346
|
-
$case: 'networkId';
|
|
347
|
-
/**
|
|
348
|
-
* The ID of the network object, if the workspace is a BYOVPC workspace.
|
|
349
|
-
* This should apply to workspaces on all clouds in internal services. In accounts-rest-api, user will use
|
|
350
|
-
* workspace.network_id for input and output instead.
|
|
351
|
-
* Currently (2021-06-19) the network ID is only used by GCP.
|
|
352
|
-
*/
|
|
353
|
-
networkId: string;
|
|
354
|
-
}
|
|
355
|
-
| undefined;
|
|
356
|
-
/**
|
|
357
|
-
* The shared network config for GCP workspace.
|
|
358
|
-
* This object has common network configurations that are network attributions of a workspace.
|
|
359
|
-
* This object is input-only.
|
|
360
|
-
*/
|
|
361
|
-
gcpCommonNetworkConfig?: GcpCommonNetworkConfig | undefined;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export const unmarshalAzureWorkspaceInfoSchema: z.ZodType<AzureWorkspaceInfo> =
|
|
365
|
-
z
|
|
366
|
-
.object({
|
|
367
|
-
resource_group: z.string().optional(),
|
|
368
|
-
subscription_id: z.string().optional(),
|
|
369
|
-
})
|
|
370
|
-
.transform(d => ({
|
|
371
|
-
resourceGroup: d.resource_group,
|
|
372
|
-
subscriptionId: d.subscription_id,
|
|
373
|
-
}));
|
|
374
|
-
|
|
375
|
-
export const unmarshalCloudResourceContainerSchema: z.ZodType<CloudResourceContainer> =
|
|
376
|
-
z
|
|
377
|
-
.object({
|
|
378
|
-
gcp: z.lazy(() => unmarshalGcpCloudResourceContainerSchema).optional(),
|
|
379
|
-
})
|
|
380
|
-
.transform(d => ({
|
|
381
|
-
cloudResourceContainer:
|
|
382
|
-
d.gcp !== undefined ? {$case: 'gcp' as const, gcp: d.gcp} : undefined,
|
|
383
|
-
}));
|
|
384
|
-
|
|
385
|
-
export const unmarshalGcpCloudResourceContainerSchema: z.ZodType<GcpCloudResourceContainer> =
|
|
386
|
-
z
|
|
387
|
-
.object({
|
|
388
|
-
project_id: z.string().optional(),
|
|
389
|
-
})
|
|
390
|
-
.transform(d => ({
|
|
391
|
-
projectId: d.project_id,
|
|
392
|
-
}));
|
|
393
|
-
|
|
394
|
-
export const unmarshalGcpCommonNetworkConfigSchema: z.ZodType<GcpCommonNetworkConfig> =
|
|
395
|
-
z
|
|
396
|
-
.object({
|
|
397
|
-
gke_connectivity_type: z.enum(GkeConnectivityType).optional(),
|
|
398
|
-
gke_cluster_master_ip_range: z.string().optional(),
|
|
399
|
-
})
|
|
400
|
-
.transform(d => ({
|
|
401
|
-
gkeConnectivityType: d.gke_connectivity_type,
|
|
402
|
-
gkeClusterMasterIpRange: d.gke_cluster_master_ip_range,
|
|
403
|
-
}));
|
|
404
|
-
|
|
405
|
-
export const unmarshalGcpManagedNetworkConfigSchema: z.ZodType<GcpManagedNetworkConfig> =
|
|
406
|
-
z
|
|
407
|
-
.object({
|
|
408
|
-
subnet_cidr: z.string().optional(),
|
|
409
|
-
gke_cluster_pod_ip_range: z.string().optional(),
|
|
410
|
-
gke_cluster_service_ip_range: z.string().optional(),
|
|
411
|
-
})
|
|
412
|
-
.transform(d => ({
|
|
413
|
-
subnetCidr: d.subnet_cidr,
|
|
414
|
-
gkeClusterPodIpRange: d.gke_cluster_pod_ip_range,
|
|
415
|
-
gkeClusterServiceIpRange: d.gke_cluster_service_ip_range,
|
|
416
|
-
}));
|
|
417
|
-
|
|
418
|
-
export const unmarshalGkeConfigSchema: z.ZodType<GkeConfig> = z
|
|
419
|
-
.object({
|
|
420
|
-
connectivity_type: z.enum(GkeConnectivityType).optional(),
|
|
421
|
-
master_ip_range: z.string().optional(),
|
|
422
|
-
})
|
|
423
|
-
.transform(d => ({
|
|
424
|
-
connectivityType: d.connectivity_type,
|
|
425
|
-
masterIpRange: d.master_ip_range,
|
|
426
|
-
}));
|
|
427
|
-
|
|
428
|
-
export const unmarshalWorkspaceSchema: z.ZodType<Workspace> = z
|
|
429
|
-
.object({
|
|
430
|
-
workspace_id: z
|
|
431
|
-
.union([z.number(), z.bigint()])
|
|
432
|
-
.transform(v => BigInt(v))
|
|
433
|
-
.optional(),
|
|
434
|
-
workspace_name: z.string().optional(),
|
|
435
|
-
aws_region: z.string().optional(),
|
|
436
|
-
creation_time: z
|
|
437
|
-
.union([z.number(), z.bigint()])
|
|
438
|
-
.transform(v => BigInt(v))
|
|
439
|
-
.optional(),
|
|
440
|
-
deployment_name: z.string().optional(),
|
|
441
|
-
workspace_status: z.enum(WorkspaceStatus).optional(),
|
|
442
|
-
account_id: z.string().optional(),
|
|
443
|
-
credentials_id: z.string().optional(),
|
|
444
|
-
storage_configuration_id: z.string().optional(),
|
|
445
|
-
workspace_status_message: z.string().optional(),
|
|
446
|
-
network_id: z.string().optional(),
|
|
447
|
-
gcp_managed_network_config: z
|
|
448
|
-
.lazy(() => unmarshalGcpManagedNetworkConfigSchema)
|
|
449
|
-
.optional(),
|
|
450
|
-
pricing_tier: z.enum(PricingTier).optional(),
|
|
451
|
-
private_access_settings_id: z.string().optional(),
|
|
452
|
-
managed_services_customer_managed_key_id: z.string().optional(),
|
|
453
|
-
storage_customer_managed_key_id: z.string().optional(),
|
|
454
|
-
location: z.string().optional(),
|
|
455
|
-
cloud: z.string().optional(),
|
|
456
|
-
network: z.lazy(() => unmarshalWorkspaceNetworkSchema).optional(),
|
|
457
|
-
azure_workspace_info: z
|
|
458
|
-
.lazy(() => unmarshalAzureWorkspaceInfoSchema)
|
|
459
|
-
.optional(),
|
|
460
|
-
gke_config: z.lazy(() => unmarshalGkeConfigSchema).optional(),
|
|
461
|
-
cloud_resource_container: z
|
|
462
|
-
.lazy(() => unmarshalCloudResourceContainerSchema)
|
|
463
|
-
.optional(),
|
|
464
|
-
custom_tags: z.record(z.string(), z.string()).optional(),
|
|
465
|
-
network_connectivity_config_id: z.string().optional(),
|
|
466
|
-
storage_mode: z.enum(StorageMode).optional(),
|
|
467
|
-
compute_mode: z.enum(ComputeMode).optional(),
|
|
468
|
-
expected_workspace_status: z.enum(WorkspaceStatus).optional(),
|
|
469
|
-
})
|
|
470
|
-
.transform(d => ({
|
|
471
|
-
workspaceId: d.workspace_id,
|
|
472
|
-
workspaceName: d.workspace_name,
|
|
473
|
-
awsRegion: d.aws_region,
|
|
474
|
-
creationTime: d.creation_time,
|
|
475
|
-
deploymentName: d.deployment_name,
|
|
476
|
-
workspaceStatus: d.workspace_status,
|
|
477
|
-
accountId: d.account_id,
|
|
478
|
-
credentialsId: d.credentials_id,
|
|
479
|
-
storageConfigurationId: d.storage_configuration_id,
|
|
480
|
-
workspaceStatusMessage: d.workspace_status_message,
|
|
481
|
-
networkConfig:
|
|
482
|
-
d.network_id !== undefined
|
|
483
|
-
? {$case: 'networkId' as const, networkId: d.network_id}
|
|
484
|
-
: d.gcp_managed_network_config !== undefined
|
|
485
|
-
? {
|
|
486
|
-
$case: 'gcpManagedNetworkConfig' as const,
|
|
487
|
-
gcpManagedNetworkConfig: d.gcp_managed_network_config,
|
|
488
|
-
}
|
|
489
|
-
: undefined,
|
|
490
|
-
pricingTier: d.pricing_tier,
|
|
491
|
-
privateAccessSettingsId: d.private_access_settings_id,
|
|
492
|
-
managedServicesCustomerManagedKeyId:
|
|
493
|
-
d.managed_services_customer_managed_key_id,
|
|
494
|
-
storageCustomerManagedKeyId: d.storage_customer_managed_key_id,
|
|
495
|
-
location: d.location,
|
|
496
|
-
cloud: d.cloud,
|
|
497
|
-
network: d.network,
|
|
498
|
-
azureWorkspaceInfo: d.azure_workspace_info,
|
|
499
|
-
gkeConfig: d.gke_config,
|
|
500
|
-
cloudResourceContainer: d.cloud_resource_container,
|
|
501
|
-
customTags: d.custom_tags,
|
|
502
|
-
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
503
|
-
storageMode: d.storage_mode,
|
|
504
|
-
computeMode: d.compute_mode,
|
|
505
|
-
expectedWorkspaceStatus: d.expected_workspace_status,
|
|
506
|
-
}));
|
|
507
|
-
|
|
508
|
-
export const unmarshalWorkspaceNetworkSchema: z.ZodType<WorkspaceNetwork> = z
|
|
509
|
-
.object({
|
|
510
|
-
gcp_managed_network_config: z
|
|
511
|
-
.lazy(() => unmarshalGcpManagedNetworkConfigSchema)
|
|
512
|
-
.optional(),
|
|
513
|
-
network_id: z.string().optional(),
|
|
514
|
-
gcp_common_network_config: z
|
|
515
|
-
.lazy(() => unmarshalGcpCommonNetworkConfigSchema)
|
|
516
|
-
.optional(),
|
|
517
|
-
})
|
|
518
|
-
.transform(d => ({
|
|
519
|
-
network:
|
|
520
|
-
d.gcp_managed_network_config !== undefined
|
|
521
|
-
? {
|
|
522
|
-
$case: 'gcpManagedNetworkConfig' as const,
|
|
523
|
-
gcpManagedNetworkConfig: d.gcp_managed_network_config,
|
|
524
|
-
}
|
|
525
|
-
: d.network_id !== undefined
|
|
526
|
-
? {$case: 'networkId' as const, networkId: d.network_id}
|
|
527
|
-
: undefined,
|
|
528
|
-
gcpCommonNetworkConfig: d.gcp_common_network_config,
|
|
529
|
-
}));
|
|
530
|
-
|
|
531
|
-
export const marshalAzureWorkspaceInfoSchema: z.ZodType = z
|
|
532
|
-
.object({
|
|
533
|
-
resourceGroup: z.string().optional(),
|
|
534
|
-
subscriptionId: z.string().optional(),
|
|
535
|
-
})
|
|
536
|
-
.transform(d => ({
|
|
537
|
-
resource_group: d.resourceGroup,
|
|
538
|
-
subscription_id: d.subscriptionId,
|
|
539
|
-
}));
|
|
540
|
-
|
|
541
|
-
export const marshalCloudResourceContainerSchema: z.ZodType = z
|
|
542
|
-
.object({
|
|
543
|
-
cloudResourceContainer: z
|
|
544
|
-
.discriminatedUnion('$case', [
|
|
545
|
-
z.object({
|
|
546
|
-
$case: z.literal('gcp'),
|
|
547
|
-
gcp: z.lazy(() => marshalGcpCloudResourceContainerSchema),
|
|
548
|
-
}),
|
|
549
|
-
])
|
|
550
|
-
.optional(),
|
|
551
|
-
})
|
|
552
|
-
.transform(d => ({
|
|
553
|
-
...(d.cloudResourceContainer?.$case === 'gcp' && {
|
|
554
|
-
gcp: d.cloudResourceContainer.gcp,
|
|
555
|
-
}),
|
|
556
|
-
}));
|
|
557
|
-
|
|
558
|
-
export const marshalCreateWorkspaceRequestSchema: z.ZodType = z
|
|
559
|
-
.object({
|
|
560
|
-
accountId: z.string().optional(),
|
|
561
|
-
workspaceName: z.string().optional(),
|
|
562
|
-
deploymentName: z.string().optional(),
|
|
563
|
-
awsRegion: z.string().optional(),
|
|
564
|
-
location: z.string().optional(),
|
|
565
|
-
cloud: z.string().optional(),
|
|
566
|
-
pricingTier: z.enum(PricingTier).optional(),
|
|
567
|
-
cloudResourceContainer: z
|
|
568
|
-
.lazy(() => marshalCloudResourceContainerSchema)
|
|
569
|
-
.optional(),
|
|
570
|
-
credentialsId: z.string().optional(),
|
|
571
|
-
storageConfigurationId: z.string().optional(),
|
|
572
|
-
networkId: z.string().optional(),
|
|
573
|
-
gcpManagedNetworkConfig: z
|
|
574
|
-
.lazy(() => marshalGcpManagedNetworkConfigSchema)
|
|
575
|
-
.optional(),
|
|
576
|
-
gkeConfig: z.lazy(() => marshalGkeConfigSchema).optional(),
|
|
577
|
-
privateAccessSettingsId: z.string().optional(),
|
|
578
|
-
managedServicesCustomerManagedKeyId: z.string().optional(),
|
|
579
|
-
storageCustomerManagedKeyId: z.string().optional(),
|
|
580
|
-
customTags: z.record(z.string(), z.string()).optional(),
|
|
581
|
-
computeMode: z.enum(ComputeMode).optional(),
|
|
582
|
-
networkConnectivityConfigId: z.string().optional(),
|
|
583
|
-
})
|
|
584
|
-
.transform(d => ({
|
|
585
|
-
account_id: d.accountId,
|
|
586
|
-
workspace_name: d.workspaceName,
|
|
587
|
-
deployment_name: d.deploymentName,
|
|
588
|
-
aws_region: d.awsRegion,
|
|
589
|
-
location: d.location,
|
|
590
|
-
cloud: d.cloud,
|
|
591
|
-
pricing_tier: d.pricingTier,
|
|
592
|
-
cloud_resource_container: d.cloudResourceContainer,
|
|
593
|
-
credentials_id: d.credentialsId,
|
|
594
|
-
storage_configuration_id: d.storageConfigurationId,
|
|
595
|
-
network_id: d.networkId,
|
|
596
|
-
gcp_managed_network_config: d.gcpManagedNetworkConfig,
|
|
597
|
-
gke_config: d.gkeConfig,
|
|
598
|
-
private_access_settings_id: d.privateAccessSettingsId,
|
|
599
|
-
managed_services_customer_managed_key_id:
|
|
600
|
-
d.managedServicesCustomerManagedKeyId,
|
|
601
|
-
storage_customer_managed_key_id: d.storageCustomerManagedKeyId,
|
|
602
|
-
custom_tags: d.customTags,
|
|
603
|
-
compute_mode: d.computeMode,
|
|
604
|
-
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
605
|
-
}));
|
|
606
|
-
|
|
607
|
-
export const marshalGcpCloudResourceContainerSchema: z.ZodType = z
|
|
608
|
-
.object({
|
|
609
|
-
projectId: z.string().optional(),
|
|
610
|
-
})
|
|
611
|
-
.transform(d => ({
|
|
612
|
-
project_id: d.projectId,
|
|
613
|
-
}));
|
|
614
|
-
|
|
615
|
-
export const marshalGcpCommonNetworkConfigSchema: z.ZodType = z
|
|
616
|
-
.object({
|
|
617
|
-
gkeConnectivityType: z.enum(GkeConnectivityType).optional(),
|
|
618
|
-
gkeClusterMasterIpRange: z.string().optional(),
|
|
619
|
-
})
|
|
620
|
-
.transform(d => ({
|
|
621
|
-
gke_connectivity_type: d.gkeConnectivityType,
|
|
622
|
-
gke_cluster_master_ip_range: d.gkeClusterMasterIpRange,
|
|
623
|
-
}));
|
|
624
|
-
|
|
625
|
-
export const marshalGcpManagedNetworkConfigSchema: z.ZodType = z
|
|
626
|
-
.object({
|
|
627
|
-
subnetCidr: z.string().optional(),
|
|
628
|
-
gkeClusterPodIpRange: z.string().optional(),
|
|
629
|
-
gkeClusterServiceIpRange: z.string().optional(),
|
|
630
|
-
})
|
|
631
|
-
.transform(d => ({
|
|
632
|
-
subnet_cidr: d.subnetCidr,
|
|
633
|
-
gke_cluster_pod_ip_range: d.gkeClusterPodIpRange,
|
|
634
|
-
gke_cluster_service_ip_range: d.gkeClusterServiceIpRange,
|
|
635
|
-
}));
|
|
636
|
-
|
|
637
|
-
export const marshalGkeConfigSchema: z.ZodType = z
|
|
638
|
-
.object({
|
|
639
|
-
connectivityType: z.enum(GkeConnectivityType).optional(),
|
|
640
|
-
masterIpRange: z.string().optional(),
|
|
641
|
-
})
|
|
642
|
-
.transform(d => ({
|
|
643
|
-
connectivity_type: d.connectivityType,
|
|
644
|
-
master_ip_range: d.masterIpRange,
|
|
645
|
-
}));
|
|
646
|
-
|
|
647
|
-
export const marshalWorkspaceSchema: z.ZodType = z
|
|
648
|
-
.object({
|
|
649
|
-
workspaceId: z.bigint().optional(),
|
|
650
|
-
workspaceName: z.string().optional(),
|
|
651
|
-
awsRegion: z.string().optional(),
|
|
652
|
-
creationTime: z.bigint().optional(),
|
|
653
|
-
deploymentName: z.string().optional(),
|
|
654
|
-
workspaceStatus: z.enum(WorkspaceStatus).optional(),
|
|
655
|
-
accountId: z.string().optional(),
|
|
656
|
-
credentialsId: z.string().optional(),
|
|
657
|
-
storageConfigurationId: z.string().optional(),
|
|
658
|
-
workspaceStatusMessage: z.string().optional(),
|
|
659
|
-
networkConfig: z
|
|
660
|
-
.discriminatedUnion('$case', [
|
|
661
|
-
z.object({$case: z.literal('networkId'), networkId: z.string()}),
|
|
662
|
-
z.object({
|
|
663
|
-
$case: z.literal('gcpManagedNetworkConfig'),
|
|
664
|
-
gcpManagedNetworkConfig: z.lazy(
|
|
665
|
-
() => marshalGcpManagedNetworkConfigSchema
|
|
666
|
-
),
|
|
667
|
-
}),
|
|
668
|
-
])
|
|
669
|
-
.optional(),
|
|
670
|
-
pricingTier: z.enum(PricingTier).optional(),
|
|
671
|
-
privateAccessSettingsId: z.string().optional(),
|
|
672
|
-
managedServicesCustomerManagedKeyId: z.string().optional(),
|
|
673
|
-
storageCustomerManagedKeyId: z.string().optional(),
|
|
674
|
-
location: z.string().optional(),
|
|
675
|
-
cloud: z.string().optional(),
|
|
676
|
-
network: z.lazy(() => marshalWorkspaceNetworkSchema).optional(),
|
|
677
|
-
azureWorkspaceInfo: z
|
|
678
|
-
.lazy(() => marshalAzureWorkspaceInfoSchema)
|
|
679
|
-
.optional(),
|
|
680
|
-
gkeConfig: z.lazy(() => marshalGkeConfigSchema).optional(),
|
|
681
|
-
cloudResourceContainer: z
|
|
682
|
-
.lazy(() => marshalCloudResourceContainerSchema)
|
|
683
|
-
.optional(),
|
|
684
|
-
customTags: z.record(z.string(), z.string()).optional(),
|
|
685
|
-
networkConnectivityConfigId: z.string().optional(),
|
|
686
|
-
storageMode: z.enum(StorageMode).optional(),
|
|
687
|
-
computeMode: z.enum(ComputeMode).optional(),
|
|
688
|
-
expectedWorkspaceStatus: z.enum(WorkspaceStatus).optional(),
|
|
689
|
-
})
|
|
690
|
-
.transform(d => ({
|
|
691
|
-
workspace_id: d.workspaceId,
|
|
692
|
-
workspace_name: d.workspaceName,
|
|
693
|
-
aws_region: d.awsRegion,
|
|
694
|
-
creation_time: d.creationTime,
|
|
695
|
-
deployment_name: d.deploymentName,
|
|
696
|
-
workspace_status: d.workspaceStatus,
|
|
697
|
-
account_id: d.accountId,
|
|
698
|
-
credentials_id: d.credentialsId,
|
|
699
|
-
storage_configuration_id: d.storageConfigurationId,
|
|
700
|
-
workspace_status_message: d.workspaceStatusMessage,
|
|
701
|
-
...(d.networkConfig?.$case === 'networkId' && {
|
|
702
|
-
network_id: d.networkConfig.networkId,
|
|
703
|
-
}),
|
|
704
|
-
...(d.networkConfig?.$case === 'gcpManagedNetworkConfig' && {
|
|
705
|
-
gcp_managed_network_config: d.networkConfig.gcpManagedNetworkConfig,
|
|
706
|
-
}),
|
|
707
|
-
pricing_tier: d.pricingTier,
|
|
708
|
-
private_access_settings_id: d.privateAccessSettingsId,
|
|
709
|
-
managed_services_customer_managed_key_id:
|
|
710
|
-
d.managedServicesCustomerManagedKeyId,
|
|
711
|
-
storage_customer_managed_key_id: d.storageCustomerManagedKeyId,
|
|
712
|
-
location: d.location,
|
|
713
|
-
cloud: d.cloud,
|
|
714
|
-
network: d.network,
|
|
715
|
-
azure_workspace_info: d.azureWorkspaceInfo,
|
|
716
|
-
gke_config: d.gkeConfig,
|
|
717
|
-
cloud_resource_container: d.cloudResourceContainer,
|
|
718
|
-
custom_tags: d.customTags,
|
|
719
|
-
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
720
|
-
storage_mode: d.storageMode,
|
|
721
|
-
compute_mode: d.computeMode,
|
|
722
|
-
expected_workspace_status: d.expectedWorkspaceStatus,
|
|
723
|
-
}));
|
|
724
|
-
|
|
725
|
-
export const marshalWorkspaceNetworkSchema: z.ZodType = z
|
|
726
|
-
.object({
|
|
727
|
-
network: z
|
|
728
|
-
.discriminatedUnion('$case', [
|
|
729
|
-
z.object({
|
|
730
|
-
$case: z.literal('gcpManagedNetworkConfig'),
|
|
731
|
-
gcpManagedNetworkConfig: z.lazy(
|
|
732
|
-
() => marshalGcpManagedNetworkConfigSchema
|
|
733
|
-
),
|
|
734
|
-
}),
|
|
735
|
-
z.object({$case: z.literal('networkId'), networkId: z.string()}),
|
|
736
|
-
])
|
|
737
|
-
.optional(),
|
|
738
|
-
gcpCommonNetworkConfig: z
|
|
739
|
-
.lazy(() => marshalGcpCommonNetworkConfigSchema)
|
|
740
|
-
.optional(),
|
|
741
|
-
})
|
|
742
|
-
.transform(d => ({
|
|
743
|
-
...(d.network?.$case === 'gcpManagedNetworkConfig' && {
|
|
744
|
-
gcp_managed_network_config: d.network.gcpManagedNetworkConfig,
|
|
745
|
-
}),
|
|
746
|
-
...(d.network?.$case === 'networkId' && {network_id: d.network.networkId}),
|
|
747
|
-
gcp_common_network_config: d.gcpCommonNetworkConfig,
|
|
748
|
-
}));
|
|
749
|
-
|
|
750
|
-
const azureWorkspaceInfoFieldMaskSchema: FieldMaskSchema = {
|
|
751
|
-
resourceGroup: {wire: 'resource_group'},
|
|
752
|
-
subscriptionId: {wire: 'subscription_id'},
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
const cloudResourceContainerFieldMaskSchema: FieldMaskSchema = {
|
|
756
|
-
gcp: {wire: 'gcp', children: () => gcpCloudResourceContainerFieldMaskSchema},
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
const gcpCloudResourceContainerFieldMaskSchema: FieldMaskSchema = {
|
|
760
|
-
projectId: {wire: 'project_id'},
|
|
761
|
-
};
|
|
762
|
-
|
|
763
|
-
const gcpCommonNetworkConfigFieldMaskSchema: FieldMaskSchema = {
|
|
764
|
-
gkeClusterMasterIpRange: {wire: 'gke_cluster_master_ip_range'},
|
|
765
|
-
gkeConnectivityType: {wire: 'gke_connectivity_type'},
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
const gcpManagedNetworkConfigFieldMaskSchema: FieldMaskSchema = {
|
|
769
|
-
gkeClusterPodIpRange: {wire: 'gke_cluster_pod_ip_range'},
|
|
770
|
-
gkeClusterServiceIpRange: {wire: 'gke_cluster_service_ip_range'},
|
|
771
|
-
subnetCidr: {wire: 'subnet_cidr'},
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
const gkeConfigFieldMaskSchema: FieldMaskSchema = {
|
|
775
|
-
connectivityType: {wire: 'connectivity_type'},
|
|
776
|
-
masterIpRange: {wire: 'master_ip_range'},
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
const workspaceFieldMaskSchema: FieldMaskSchema = {
|
|
780
|
-
accountId: {wire: 'account_id'},
|
|
781
|
-
awsRegion: {wire: 'aws_region'},
|
|
782
|
-
azureWorkspaceInfo: {
|
|
783
|
-
wire: 'azure_workspace_info',
|
|
784
|
-
children: () => azureWorkspaceInfoFieldMaskSchema,
|
|
785
|
-
},
|
|
786
|
-
cloud: {wire: 'cloud'},
|
|
787
|
-
cloudResourceContainer: {
|
|
788
|
-
wire: 'cloud_resource_container',
|
|
789
|
-
children: () => cloudResourceContainerFieldMaskSchema,
|
|
790
|
-
},
|
|
791
|
-
computeMode: {wire: 'compute_mode'},
|
|
792
|
-
creationTime: {wire: 'creation_time'},
|
|
793
|
-
credentialsId: {wire: 'credentials_id'},
|
|
794
|
-
customTags: {wire: 'custom_tags'},
|
|
795
|
-
deploymentName: {wire: 'deployment_name'},
|
|
796
|
-
expectedWorkspaceStatus: {wire: 'expected_workspace_status'},
|
|
797
|
-
gcpManagedNetworkConfig: {
|
|
798
|
-
wire: 'gcp_managed_network_config',
|
|
799
|
-
children: () => gcpManagedNetworkConfigFieldMaskSchema,
|
|
800
|
-
},
|
|
801
|
-
gkeConfig: {wire: 'gke_config', children: () => gkeConfigFieldMaskSchema},
|
|
802
|
-
location: {wire: 'location'},
|
|
803
|
-
managedServicesCustomerManagedKeyId: {
|
|
804
|
-
wire: 'managed_services_customer_managed_key_id',
|
|
805
|
-
},
|
|
806
|
-
network: {wire: 'network', children: () => workspaceNetworkFieldMaskSchema},
|
|
807
|
-
networkConnectivityConfigId: {wire: 'network_connectivity_config_id'},
|
|
808
|
-
networkId: {wire: 'network_id'},
|
|
809
|
-
pricingTier: {wire: 'pricing_tier'},
|
|
810
|
-
privateAccessSettingsId: {wire: 'private_access_settings_id'},
|
|
811
|
-
storageConfigurationId: {wire: 'storage_configuration_id'},
|
|
812
|
-
storageCustomerManagedKeyId: {wire: 'storage_customer_managed_key_id'},
|
|
813
|
-
storageMode: {wire: 'storage_mode'},
|
|
814
|
-
workspaceId: {wire: 'workspace_id'},
|
|
815
|
-
workspaceName: {wire: 'workspace_name'},
|
|
816
|
-
workspaceStatus: {wire: 'workspace_status'},
|
|
817
|
-
workspaceStatusMessage: {wire: 'workspace_status_message'},
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
export function workspaceFieldMask(...paths: string[]): FieldMask<Workspace> {
|
|
821
|
-
return FieldMask.build<Workspace>(paths, workspaceFieldMaskSchema);
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
const workspaceNetworkFieldMaskSchema: FieldMaskSchema = {
|
|
825
|
-
gcpCommonNetworkConfig: {
|
|
826
|
-
wire: 'gcp_common_network_config',
|
|
827
|
-
children: () => gcpCommonNetworkConfigFieldMaskSchema,
|
|
828
|
-
},
|
|
829
|
-
gcpManagedNetworkConfig: {
|
|
830
|
-
wire: 'gcp_managed_network_config',
|
|
831
|
-
children: () => gcpManagedNetworkConfigFieldMaskSchema,
|
|
832
|
-
},
|
|
833
|
-
networkId: {wire: 'network_id'},
|
|
834
|
-
};
|