@databricks/sdk-networking 0.1.0-dev.4 → 0.2.0
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/README.md +23 -0
- package/dist/v1/client.d.ts +19 -20
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +182 -143
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +1 -1
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/model.d.ts +631 -640
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +846 -852
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +30 -2
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +33 -16
- package/dist/v1/transport.js.map +1 -1
- package/package.json +9 -4
package/dist/v1/model.js
CHANGED
|
@@ -2,13 +2,6 @@
|
|
|
2
2
|
import { Temporal } from '@js-temporal/polyfill';
|
|
3
3
|
import { FieldMask } from '@databricks/sdk-core/wkt';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
6
|
-
export const CustomerFacingVpcEndpointUseCase = {
|
|
7
|
-
WORKSPACE_ACCESS: 'WORKSPACE_ACCESS',
|
|
8
|
-
DATAPLANE_RELAY_ACCESS: 'DATAPLANE_RELAY_ACCESS',
|
|
9
|
-
/** General access, replaces WORKSPACE_ACCESS in customer-facing API. */
|
|
10
|
-
GENERAL_ACCESS: 'GENERAL_ACCESS',
|
|
11
|
-
};
|
|
12
5
|
/**
|
|
13
6
|
* The target resources that are supported by Network Connectivity Config.
|
|
14
7
|
* Note: some egress types can support general types that are not defined in EgressResourceType.
|
|
@@ -50,6 +43,13 @@ export const PrivateAccessLevel = {
|
|
|
50
43
|
ACCOUNT: 'ACCOUNT',
|
|
51
44
|
};
|
|
52
45
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
46
|
+
export const VpcEndpointUseCase = {
|
|
47
|
+
WORKSPACE_ACCESS: 'WORKSPACE_ACCESS',
|
|
48
|
+
DATAPLANE_RELAY_ACCESS: 'DATAPLANE_RELAY_ACCESS',
|
|
49
|
+
/** General access, replaces WORKSPACE_ACCESS in customer-facing API. */
|
|
50
|
+
GENERAL_ACCESS: 'GENERAL_ACCESS',
|
|
51
|
+
};
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
53
53
|
export const VpcStatus = {
|
|
54
54
|
VALID: 'VALID',
|
|
55
55
|
BROKEN: 'BROKEN',
|
|
@@ -70,48 +70,99 @@ export const AccountIpAccessListType_IpAccessListType = {
|
|
|
70
70
|
/** Blocks the associated CIDRs. */
|
|
71
71
|
BLOCK: 'BLOCK',
|
|
72
72
|
};
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
74
|
+
export const EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType = {
|
|
75
|
+
INTERNET_DESTINATION_TYPE_UNSPECIFIED: 'INTERNET_DESTINATION_TYPE_UNSPECIFIED',
|
|
76
|
+
/** This is defined as `FQDN` in settings-policy/api/proto/messages.proto. Translation is done in accounts-lake-net-manager/src/util/NetworkPolicySettingUtil.scala. */
|
|
77
|
+
DNS_NAME: 'DNS_NAME',
|
|
78
|
+
};
|
|
79
|
+
/** The values should match the list of workloads used in networkconfig.proto */
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
81
|
+
export const EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter = {
|
|
82
|
+
DRY_RUN_MODE_PRODUCT_FILTER_UNSPECIFIED: 'DRY_RUN_MODE_PRODUCT_FILTER_UNSPECIFIED',
|
|
83
|
+
/** SQL Warehouse product */
|
|
84
|
+
DBSQL: 'DBSQL',
|
|
85
|
+
/** Machine Learning serving product */
|
|
86
|
+
ML_SERVING: 'ML_SERVING',
|
|
87
|
+
};
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
89
|
+
export const EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode = {
|
|
90
|
+
ENFORCEMENT_MODE_UNSPECIFIED: 'ENFORCEMENT_MODE_UNSPECIFIED',
|
|
91
|
+
/** Blocks traffic that violates network policy. This is the default mode. */
|
|
92
|
+
ENFORCED: 'ENFORCED',
|
|
93
|
+
/** Logs violations without blocking traffic. Useful for testing policies before enforcement. */
|
|
94
|
+
DRY_RUN: 'DRY_RUN',
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* At which level can <Databricks> and <Databricks> managed compute access Internet.
|
|
98
|
+
* FULL_ACCESS: <Databricks> can access Internet. No blocking rules will apply.
|
|
99
|
+
* RESTRICTED_ACCESS: <Databricks> can only access explicitly allowed internet and storage destinations,
|
|
100
|
+
* as well as UC connections and external locations.
|
|
101
|
+
*/
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
103
|
+
export const EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode = {
|
|
104
|
+
RESTRICTION_MODE_UNSPECIFIED: 'RESTRICTION_MODE_UNSPECIFIED',
|
|
105
|
+
FULL_ACCESS: 'FULL_ACCESS',
|
|
106
|
+
RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
|
|
107
|
+
};
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
109
|
+
export const EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType = {
|
|
110
|
+
STORAGE_DESTINATION_TYPE_UNSPECIFIED: 'STORAGE_DESTINATION_TYPE_UNSPECIFIED',
|
|
111
|
+
/**
|
|
112
|
+
* AWS_S3 can be used both for direct AWS S3 access and for cross-cloud access from Azure and GCP
|
|
113
|
+
* When used in an Azure/GCP context, this indicates cross-cloud access from Azure/GCP to the specified S3 bucket
|
|
114
|
+
*/
|
|
115
|
+
AWS_S3: 'AWS_S3',
|
|
116
|
+
AZURE_STORAGE: 'AZURE_STORAGE',
|
|
117
|
+
GOOGLE_CLOUD_STORAGE: 'GOOGLE_CLOUD_STORAGE',
|
|
118
|
+
};
|
|
119
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
120
|
+
export const EndpointUseCase_EndpointUseCase = {
|
|
121
|
+
/** service-direct frontend private link connectivity. */
|
|
122
|
+
SERVICE_DIRECT: 'SERVICE_DIRECT',
|
|
123
|
+
};
|
|
73
124
|
/**
|
|
74
125
|
* Qualifies the breadth of API access permitted by an ingress network policy rule.
|
|
75
126
|
* API_SCOPE_QUALIFIER_READ narrows matching to read-only variants of the listed scopes;
|
|
76
127
|
* API_SCOPE_QUALIFIER_ALL matches any scope. When unset, scopes match exactly as listed.
|
|
77
128
|
*/
|
|
78
129
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
79
|
-
export const
|
|
130
|
+
export const IngressNetworkPolicy_ApiScopeQualifier = {
|
|
80
131
|
/** Narrows matching to read-only variants of the listed scopes (e.g. GET/HEAD requests). */
|
|
81
132
|
API_SCOPE_QUALIFIER_READ: 'API_SCOPE_QUALIFIER_READ',
|
|
82
133
|
/** Matches any scope regardless of access level. */
|
|
83
134
|
API_SCOPE_QUALIFIER_ALL: 'API_SCOPE_QUALIFIER_ALL',
|
|
84
135
|
};
|
|
85
136
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
86
|
-
export const
|
|
137
|
+
export const IngressNetworkPolicy_Authentication_IdentityType = {
|
|
87
138
|
IDENTITY_TYPE_UNSPECIFIED: 'IDENTITY_TYPE_UNSPECIFIED',
|
|
88
139
|
IDENTITY_TYPE_ALL_USERS: 'IDENTITY_TYPE_ALL_USERS',
|
|
89
140
|
IDENTITY_TYPE_ALL_SERVICE_PRINCIPALS: 'IDENTITY_TYPE_ALL_SERVICE_PRINCIPALS',
|
|
90
141
|
IDENTITY_TYPE_SELECTED_IDENTITIES: 'IDENTITY_TYPE_SELECTED_IDENTITIES',
|
|
91
142
|
};
|
|
92
143
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
93
|
-
export const
|
|
144
|
+
export const IngressNetworkPolicy_AuthenticationIdentity_PrincipalType = {
|
|
94
145
|
PRINCIPAL_TYPE_UNSPECIFIED: 'PRINCIPAL_TYPE_UNSPECIFIED',
|
|
95
146
|
PRINCIPAL_TYPE_USER: 'PRINCIPAL_TYPE_USER',
|
|
96
147
|
PRINCIPAL_TYPE_SERVICE_PRINCIPAL: 'PRINCIPAL_TYPE_SERVICE_PRINCIPAL',
|
|
97
148
|
};
|
|
98
149
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
99
|
-
export const
|
|
150
|
+
export const IngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode = {
|
|
100
151
|
FULL_ACCESS: 'FULL_ACCESS',
|
|
101
152
|
RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
|
|
102
153
|
};
|
|
103
154
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
104
|
-
export const
|
|
155
|
+
export const IngressNetworkPolicy_PrivateAccess_RestrictionMode = {
|
|
105
156
|
ALLOW_ALL_REGISTERED_ENDPOINTS: 'ALLOW_ALL_REGISTERED_ENDPOINTS',
|
|
106
157
|
RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
|
|
107
158
|
};
|
|
108
159
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
109
|
-
export const
|
|
160
|
+
export const IngressNetworkPolicy_PublicAccess_RestrictionMode = {
|
|
110
161
|
FULL_ACCESS: 'FULL_ACCESS',
|
|
111
162
|
RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
|
|
112
163
|
};
|
|
113
164
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
114
|
-
export const
|
|
165
|
+
export const NccPrivateEndpointRule_PrivateLinkConnectionState = {
|
|
115
166
|
PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED: 'PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED',
|
|
116
167
|
/** The endpoint has been approved and is ready to use in your serverless compute resources. */
|
|
117
168
|
ESTABLISHED: 'ESTABLISHED',
|
|
@@ -122,7 +173,7 @@ export const CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_Priva
|
|
|
122
173
|
* be deleted for clean-up.
|
|
123
174
|
*/
|
|
124
175
|
DISCONNECTED: 'DISCONNECTED',
|
|
125
|
-
/** If the endpoint
|
|
176
|
+
/** If the endpoint was created but not approved in 14 days, it will be EXPIRED. */
|
|
126
177
|
EXPIRED: 'EXPIRED',
|
|
127
178
|
/** The endpoint has been created and pending approval. */
|
|
128
179
|
PENDING: 'PENDING',
|
|
@@ -132,10 +183,8 @@ export const CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_Priva
|
|
|
132
183
|
CREATE_FAILED: 'CREATE_FAILED',
|
|
133
184
|
};
|
|
134
185
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
135
|
-
export const
|
|
186
|
+
export const NetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState = {
|
|
136
187
|
PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED: 'PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED',
|
|
137
|
-
/** The endpoint has been created and pending approval. */
|
|
138
|
-
INIT: 'INIT',
|
|
139
188
|
/** The endpoint has been approved and is ready to use in your serverless compute resources. */
|
|
140
189
|
ESTABLISHED: 'ESTABLISHED',
|
|
141
190
|
/** Connection was rejected by the private link resource owner. */
|
|
@@ -145,7 +194,7 @@ export const CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_Pri
|
|
|
145
194
|
* be deleted for clean-up.
|
|
146
195
|
*/
|
|
147
196
|
DISCONNECTED: 'DISCONNECTED',
|
|
148
|
-
/** If the endpoint
|
|
197
|
+
/** If the endpoint is created but not approved in 14 days, it is EXPIRED. */
|
|
149
198
|
EXPIRED: 'EXPIRED',
|
|
150
199
|
/** The endpoint has been created and pending approval. */
|
|
151
200
|
PENDING: 'PENDING',
|
|
@@ -155,59 +204,10 @@ export const CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_Pri
|
|
|
155
204
|
CREATE_FAILED: 'CREATE_FAILED',
|
|
156
205
|
};
|
|
157
206
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
158
|
-
export const
|
|
159
|
-
INTERNET_DESTINATION_TYPE_UNSPECIFIED: 'INTERNET_DESTINATION_TYPE_UNSPECIFIED',
|
|
160
|
-
/** This is defined as `FQDN` in settings-policy/api/proto/messages.proto. Translation is done in accounts-lake-net-manager/src/util/NetworkPolicySettingUtil.scala. */
|
|
161
|
-
DNS_NAME: 'DNS_NAME',
|
|
162
|
-
};
|
|
163
|
-
/** The values should match the list of workloads used in networkconfig.proto */
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
165
|
-
export const EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter = {
|
|
166
|
-
DRY_RUN_MODE_PRODUCT_FILTER_UNSPECIFIED: 'DRY_RUN_MODE_PRODUCT_FILTER_UNSPECIFIED',
|
|
167
|
-
/** SQL Warehouse product */
|
|
168
|
-
DBSQL: 'DBSQL',
|
|
169
|
-
/** Machine Learning serving product */
|
|
170
|
-
ML_SERVING: 'ML_SERVING',
|
|
171
|
-
};
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
173
|
-
export const EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode = {
|
|
174
|
-
ENFORCEMENT_MODE_UNSPECIFIED: 'ENFORCEMENT_MODE_UNSPECIFIED',
|
|
175
|
-
/** Blocks traffic that violates network policy. This is the default mode. */
|
|
176
|
-
ENFORCED: 'ENFORCED',
|
|
177
|
-
/** Logs violations without blocking traffic. Useful for testing policies before enforcement. */
|
|
178
|
-
DRY_RUN: 'DRY_RUN',
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* At which level can <Databricks> and <Databricks> managed compute access Internet.
|
|
182
|
-
* FULL_ACCESS: <Databricks> can access Internet. No blocking rules will apply.
|
|
183
|
-
* RESTRICTED_ACCESS: <Databricks> can only access explicitly allowed internet and storage destinations,
|
|
184
|
-
* as well as UC connections and external locations.
|
|
185
|
-
*/
|
|
186
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
187
|
-
export const EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode = {
|
|
188
|
-
RESTRICTION_MODE_UNSPECIFIED: 'RESTRICTION_MODE_UNSPECIFIED',
|
|
189
|
-
FULL_ACCESS: 'FULL_ACCESS',
|
|
190
|
-
RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
|
|
191
|
-
};
|
|
192
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
193
|
-
export const EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType = {
|
|
194
|
-
STORAGE_DESTINATION_TYPE_UNSPECIFIED: 'STORAGE_DESTINATION_TYPE_UNSPECIFIED',
|
|
195
|
-
/**
|
|
196
|
-
* AWS_S3 can be used both for direct AWS S3 access and for cross-cloud access from Azure and GCP
|
|
197
|
-
* When used in an Azure/GCP context, this indicates cross-cloud access from Azure/GCP to the specified S3 bucket
|
|
198
|
-
*/
|
|
199
|
-
AWS_S3: 'AWS_S3',
|
|
200
|
-
AZURE_STORAGE: 'AZURE_STORAGE',
|
|
201
|
-
GOOGLE_CLOUD_STORAGE: 'GOOGLE_CLOUD_STORAGE',
|
|
202
|
-
};
|
|
203
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
204
|
-
export const EndpointUseCase_EndpointUseCase = {
|
|
205
|
-
/** service-direct frontend private link connectivity. */
|
|
206
|
-
SERVICE_DIRECT: 'SERVICE_DIRECT',
|
|
207
|
-
};
|
|
208
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
209
|
-
export const NccPrivateEndpointRule_PrivateLinkConnectionState = {
|
|
207
|
+
export const NetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState = {
|
|
210
208
|
PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED: 'PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED',
|
|
209
|
+
/** The endpoint has been created and pending approval. */
|
|
210
|
+
INIT: 'INIT',
|
|
211
211
|
/** The endpoint has been approved and is ready to use in your serverless compute resources. */
|
|
212
212
|
ESTABLISHED: 'ESTABLISHED',
|
|
213
213
|
/** Connection was rejected by the private link resource owner. */
|
|
@@ -268,11 +268,9 @@ export const unmarshalAccountNetworkPolicySchema = z
|
|
|
268
268
|
network_policy_id: z.string().optional(),
|
|
269
269
|
account_id: z.string().optional(),
|
|
270
270
|
egress: z.lazy(() => unmarshalEgressNetworkPolicySchema).optional(),
|
|
271
|
-
ingress: z
|
|
272
|
-
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicySchema)
|
|
273
|
-
.optional(),
|
|
271
|
+
ingress: z.lazy(() => unmarshalIngressNetworkPolicySchema).optional(),
|
|
274
272
|
ingress_dry_run: z
|
|
275
|
-
.lazy(() =>
|
|
273
|
+
.lazy(() => unmarshalIngressNetworkPolicySchema)
|
|
276
274
|
.optional(),
|
|
277
275
|
})
|
|
278
276
|
.transform(d => ({
|
|
@@ -311,124 +309,316 @@ export const unmarshalCreateIpAccessListResponseSchema = z
|
|
|
311
309
|
.transform(d => ({
|
|
312
310
|
ipAccessList: d.ip_access_list,
|
|
313
311
|
}));
|
|
314
|
-
export const
|
|
312
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema = z
|
|
315
313
|
.object({
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
314
|
+
default_rules: z
|
|
315
|
+
.lazy(() => unmarshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema)
|
|
316
|
+
.optional(),
|
|
317
|
+
target_rules: z
|
|
318
|
+
.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema)
|
|
319
|
+
.optional(),
|
|
321
320
|
})
|
|
322
321
|
.transform(d => ({
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
pscEndpointName: d.psc_endpoint_name,
|
|
326
|
-
endpointRegion: d.endpoint_region,
|
|
327
|
-
serviceAttachmentId: d.service_attachment_id,
|
|
322
|
+
defaultRules: d.default_rules,
|
|
323
|
+
targetRules: d.target_rules,
|
|
328
324
|
}));
|
|
329
|
-
|
|
325
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
326
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema = z
|
|
330
327
|
.object({
|
|
331
|
-
|
|
332
|
-
.lazy(() =>
|
|
333
|
-
.optional(),
|
|
334
|
-
private_access: z
|
|
335
|
-
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema)
|
|
328
|
+
azure_private_endpoint_rules: z
|
|
329
|
+
.array(z.lazy(() => unmarshalNetworkConnectivityConfigAzurePrivateEndpointRuleSchema))
|
|
336
330
|
.optional(),
|
|
337
|
-
|
|
338
|
-
.lazy(() =>
|
|
331
|
+
aws_private_endpoint_rules: z
|
|
332
|
+
.array(z.lazy(() => unmarshalNetworkConnectivityConfigAwsPrivateEndpointRuleSchema))
|
|
339
333
|
.optional(),
|
|
340
334
|
})
|
|
341
335
|
.transform(d => ({
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
crossWorkspaceAccess: d.cross_workspace_access,
|
|
336
|
+
azurePrivateEndpointRules: d.azure_private_endpoint_rules,
|
|
337
|
+
awsPrivateEndpointRules: d.aws_private_endpoint_rules,
|
|
345
338
|
}));
|
|
346
|
-
|
|
347
|
-
export const
|
|
339
|
+
export const unmarshalDeleteAccountIpAccessListResponseSchema = z.object({});
|
|
340
|
+
export const unmarshalDeleteIpAccessListResponseSchema = z.object({});
|
|
341
|
+
export const unmarshalEgressNetworkPolicySchema = z
|
|
348
342
|
.object({
|
|
349
|
-
|
|
350
|
-
|
|
343
|
+
network_access: z
|
|
344
|
+
.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema)
|
|
345
|
+
.optional(),
|
|
351
346
|
})
|
|
352
347
|
.transform(d => ({
|
|
353
|
-
|
|
354
|
-
scopeQualifier: d.scope_qualifier,
|
|
348
|
+
networkAccess: d.network_access,
|
|
355
349
|
}));
|
|
356
350
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
357
|
-
export const
|
|
351
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
|
|
358
352
|
.object({
|
|
359
|
-
|
|
353
|
+
restriction_mode: z.string().optional(),
|
|
354
|
+
allowed_internet_destinations: z
|
|
355
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
356
|
+
.optional(),
|
|
357
|
+
allowed_storage_destinations: z
|
|
358
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema))
|
|
359
|
+
.optional(),
|
|
360
|
+
policy_enforcement: z
|
|
361
|
+
.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema)
|
|
362
|
+
.optional(),
|
|
363
|
+
blocked_internet_destinations: z
|
|
364
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
365
|
+
.optional(),
|
|
366
|
+
allowed_databricks_destinations: z
|
|
367
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema))
|
|
368
|
+
.optional(),
|
|
360
369
|
})
|
|
361
370
|
.transform(d => ({
|
|
362
|
-
|
|
371
|
+
restrictionMode: d.restriction_mode,
|
|
372
|
+
allowedInternetDestinations: d.allowed_internet_destinations,
|
|
373
|
+
allowedStorageDestinations: d.allowed_storage_destinations,
|
|
374
|
+
policyEnforcement: d.policy_enforcement,
|
|
375
|
+
blockedInternetDestinations: d.blocked_internet_destinations,
|
|
376
|
+
allowedDatabricksDestinations: d.allowed_databricks_destinations,
|
|
363
377
|
}));
|
|
364
378
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
365
|
-
export const
|
|
379
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema = z
|
|
366
380
|
.object({
|
|
367
|
-
|
|
381
|
+
workspace_ids: z
|
|
382
|
+
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
383
|
+
.optional(),
|
|
368
384
|
})
|
|
369
385
|
.transform(d => ({
|
|
370
|
-
|
|
386
|
+
workspaceIds: d.workspace_ids,
|
|
371
387
|
}));
|
|
372
388
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
373
|
-
export const
|
|
389
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
|
|
374
390
|
.object({
|
|
375
|
-
|
|
391
|
+
destination: z.string().optional(),
|
|
392
|
+
internet_destination_type: z.string().optional(),
|
|
376
393
|
})
|
|
377
394
|
.transform(d => ({
|
|
378
|
-
|
|
395
|
+
destination: d.destination,
|
|
396
|
+
internetDestinationType: d.internet_destination_type,
|
|
379
397
|
}));
|
|
380
398
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
381
|
-
export const
|
|
399
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
|
|
382
400
|
.object({
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema))
|
|
386
|
-
.optional(),
|
|
401
|
+
enforcement_mode: z.string().optional(),
|
|
402
|
+
dry_run_mode_product_filter: z.array(z.string()).optional(),
|
|
387
403
|
})
|
|
388
404
|
.transform(d => ({
|
|
389
|
-
|
|
390
|
-
|
|
405
|
+
enforcementMode: d.enforcement_mode,
|
|
406
|
+
dryRunModeProductFilter: d.dry_run_mode_product_filter,
|
|
391
407
|
}));
|
|
392
408
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
393
|
-
export const
|
|
409
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema = z
|
|
394
410
|
.object({
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
411
|
+
bucket_name: z.string().optional(),
|
|
412
|
+
region: z.string().optional(),
|
|
413
|
+
storage_destination_type: z.string().optional(),
|
|
414
|
+
azure_storage_account: z.string().optional(),
|
|
415
|
+
azure_storage_service: z.string().optional(),
|
|
400
416
|
})
|
|
401
417
|
.transform(d => ({
|
|
402
|
-
|
|
403
|
-
|
|
418
|
+
bucketName: d.bucket_name,
|
|
419
|
+
region: d.region,
|
|
420
|
+
storageDestinationType: d.storage_destination_type,
|
|
421
|
+
azureStorageAccount: d.azure_storage_account,
|
|
422
|
+
azureStorageService: d.azure_storage_service,
|
|
404
423
|
}));
|
|
405
|
-
|
|
406
|
-
export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
|
|
424
|
+
export const unmarshalEndpointSchema = z
|
|
407
425
|
.object({
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
426
|
+
name: z.string().optional(),
|
|
427
|
+
endpoint_id: z.string().optional(),
|
|
428
|
+
account_id: z.string().optional(),
|
|
429
|
+
display_name: z.string().optional(),
|
|
430
|
+
use_case: z.string().optional(),
|
|
431
|
+
region: z.string().optional(),
|
|
432
|
+
state: z.string().optional(),
|
|
433
|
+
azure_private_endpoint_info: z
|
|
434
|
+
.lazy(() => unmarshalAzurePrivateEndpointInfoSchema)
|
|
411
435
|
.optional(),
|
|
412
|
-
|
|
413
|
-
.
|
|
436
|
+
create_time: z
|
|
437
|
+
.string()
|
|
438
|
+
.transform(s => Temporal.Instant.from(s))
|
|
414
439
|
.optional(),
|
|
415
440
|
})
|
|
416
441
|
.transform(d => ({
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
442
|
+
name: d.name,
|
|
443
|
+
endpointId: d.endpoint_id,
|
|
444
|
+
accountId: d.account_id,
|
|
445
|
+
displayName: d.display_name,
|
|
446
|
+
useCase: d.use_case,
|
|
447
|
+
region: d.region,
|
|
448
|
+
state: d.state,
|
|
449
|
+
endpointInfo: d.azure_private_endpoint_info !== undefined
|
|
450
|
+
? {
|
|
451
|
+
$case: 'azurePrivateEndpointInfo',
|
|
452
|
+
azurePrivateEndpointInfo: d.azure_private_endpoint_info,
|
|
453
|
+
}
|
|
454
|
+
: undefined,
|
|
455
|
+
createTime: d.create_time,
|
|
456
|
+
}));
|
|
457
|
+
export const unmarshalGcpEndpointSchema = z
|
|
458
|
+
.object({
|
|
459
|
+
psc_endpoint_uri: z.string().optional(),
|
|
460
|
+
service_attachment: z.string().optional(),
|
|
461
|
+
})
|
|
462
|
+
.transform(d => ({
|
|
463
|
+
pscEndpointUri: d.psc_endpoint_uri,
|
|
464
|
+
targetServices: d.service_attachment !== undefined
|
|
465
|
+
? {
|
|
466
|
+
$case: 'serviceAttachment',
|
|
467
|
+
serviceAttachment: d.service_attachment,
|
|
468
|
+
}
|
|
469
|
+
: undefined,
|
|
470
|
+
}));
|
|
471
|
+
export const unmarshalGcpNetworkInfoSchema = z
|
|
472
|
+
.object({
|
|
473
|
+
network_project_id: z.string().optional(),
|
|
474
|
+
vpc_id: z.string().optional(),
|
|
475
|
+
subnet_id: z.string().optional(),
|
|
476
|
+
subnet_region: z.string().optional(),
|
|
477
|
+
pod_ip_range_name: z.string().optional(),
|
|
478
|
+
service_ip_range_name: z.string().optional(),
|
|
479
|
+
})
|
|
480
|
+
.transform(d => ({
|
|
481
|
+
networkProjectId: d.network_project_id,
|
|
482
|
+
vpcId: d.vpc_id,
|
|
483
|
+
subnetId: d.subnet_id,
|
|
484
|
+
subnetRegion: d.subnet_region,
|
|
485
|
+
podIpRangeName: d.pod_ip_range_name,
|
|
486
|
+
serviceIpRangeName: d.service_ip_range_name,
|
|
487
|
+
}));
|
|
488
|
+
export const unmarshalGcpVpcEndpointInfoSchema = z
|
|
489
|
+
.object({
|
|
490
|
+
psc_connection_id: z.string().optional(),
|
|
491
|
+
project_id: z.string().optional(),
|
|
492
|
+
psc_endpoint_name: z.string().optional(),
|
|
493
|
+
endpoint_region: z.string().optional(),
|
|
494
|
+
service_attachment_id: z.string().optional(),
|
|
495
|
+
})
|
|
496
|
+
.transform(d => ({
|
|
497
|
+
pscConnectionId: d.psc_connection_id,
|
|
498
|
+
projectId: d.project_id,
|
|
499
|
+
pscEndpointName: d.psc_endpoint_name,
|
|
500
|
+
endpointRegion: d.endpoint_region,
|
|
501
|
+
serviceAttachmentId: d.service_attachment_id,
|
|
502
|
+
}));
|
|
503
|
+
export const unmarshalGetAccountIpAccessListResponseSchema = z
|
|
504
|
+
.object({
|
|
505
|
+
ip_access_list: z
|
|
506
|
+
.lazy(() => unmarshalAccountIpAccessListSchema)
|
|
507
|
+
.optional(),
|
|
508
|
+
})
|
|
509
|
+
.transform(d => ({
|
|
510
|
+
ipAccessList: d.ip_access_list,
|
|
511
|
+
}));
|
|
512
|
+
export const unmarshalGetIpAccessListResponseSchema = z
|
|
513
|
+
.object({
|
|
514
|
+
ip_access_list: z.lazy(() => unmarshalIpAccessListSchema).optional(),
|
|
515
|
+
})
|
|
516
|
+
.transform(d => ({
|
|
517
|
+
ipAccessList: d.ip_access_list,
|
|
518
|
+
}));
|
|
519
|
+
export const unmarshalIngressNetworkPolicySchema = z
|
|
520
|
+
.object({
|
|
521
|
+
public_access: z
|
|
522
|
+
.lazy(() => unmarshalIngressNetworkPolicy_PublicAccessSchema)
|
|
523
|
+
.optional(),
|
|
524
|
+
private_access: z
|
|
525
|
+
.lazy(() => unmarshalIngressNetworkPolicy_PrivateAccessSchema)
|
|
526
|
+
.optional(),
|
|
527
|
+
cross_workspace_access: z
|
|
528
|
+
.lazy(() => unmarshalIngressNetworkPolicy_CrossWorkspaceAccessSchema)
|
|
529
|
+
.optional(),
|
|
530
|
+
})
|
|
531
|
+
.transform(d => ({
|
|
532
|
+
publicAccess: d.public_access,
|
|
533
|
+
privateAccess: d.private_access,
|
|
534
|
+
crossWorkspaceAccess: d.cross_workspace_access,
|
|
535
|
+
}));
|
|
536
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
537
|
+
export const unmarshalIngressNetworkPolicy_AccountApiDestinationSchema = z
|
|
538
|
+
.object({
|
|
539
|
+
scopes: z.array(z.string()).optional(),
|
|
540
|
+
scope_qualifier: z.string().optional(),
|
|
541
|
+
})
|
|
542
|
+
.transform(d => ({
|
|
543
|
+
scopes: d.scopes,
|
|
544
|
+
scopeQualifier: d.scope_qualifier,
|
|
545
|
+
}));
|
|
546
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
547
|
+
export const unmarshalIngressNetworkPolicy_AccountDatabricksOneDestinationSchema = z
|
|
548
|
+
.object({
|
|
549
|
+
all_destinations: z.boolean().optional(),
|
|
550
|
+
})
|
|
551
|
+
.transform(d => ({
|
|
552
|
+
allDestinations: d.all_destinations,
|
|
553
|
+
}));
|
|
554
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
555
|
+
export const unmarshalIngressNetworkPolicy_AccountUiDestinationSchema = z
|
|
556
|
+
.object({
|
|
557
|
+
all_destinations: z.boolean().optional(),
|
|
558
|
+
})
|
|
559
|
+
.transform(d => ({
|
|
560
|
+
allDestinations: d.all_destinations,
|
|
561
|
+
}));
|
|
562
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
563
|
+
export const unmarshalIngressNetworkPolicy_AppsRuntimeDestinationSchema = z
|
|
564
|
+
.object({
|
|
565
|
+
all_destinations: z.boolean().optional(),
|
|
566
|
+
})
|
|
567
|
+
.transform(d => ({
|
|
568
|
+
allDestinations: d.all_destinations,
|
|
569
|
+
}));
|
|
570
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
571
|
+
export const unmarshalIngressNetworkPolicy_AuthenticationSchema = z
|
|
572
|
+
.object({
|
|
573
|
+
identity_type: z.string().optional(),
|
|
574
|
+
identities: z
|
|
575
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_AuthenticationIdentitySchema))
|
|
576
|
+
.optional(),
|
|
577
|
+
})
|
|
578
|
+
.transform(d => ({
|
|
579
|
+
identityType: d.identity_type,
|
|
580
|
+
identities: d.identities,
|
|
420
581
|
}));
|
|
421
582
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
422
|
-
export const
|
|
583
|
+
export const unmarshalIngressNetworkPolicy_AuthenticationIdentitySchema = z
|
|
584
|
+
.object({
|
|
585
|
+
principal_type: z.string().optional(),
|
|
586
|
+
principal_id: z
|
|
587
|
+
.union([z.number(), z.bigint()])
|
|
588
|
+
.transform(v => BigInt(v))
|
|
589
|
+
.optional(),
|
|
590
|
+
})
|
|
591
|
+
.transform(d => ({
|
|
592
|
+
principalType: d.principal_type,
|
|
593
|
+
principalId: d.principal_id,
|
|
594
|
+
}));
|
|
595
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
596
|
+
export const unmarshalIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
|
|
597
|
+
.object({
|
|
598
|
+
restriction_mode: z.string().optional(),
|
|
599
|
+
deny_rules: z
|
|
600
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
601
|
+
.optional(),
|
|
602
|
+
allow_rules: z
|
|
603
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
604
|
+
.optional(),
|
|
605
|
+
})
|
|
606
|
+
.transform(d => ({
|
|
607
|
+
restrictionMode: d.restriction_mode,
|
|
608
|
+
denyRules: d.deny_rules,
|
|
609
|
+
allowRules: d.allow_rules,
|
|
610
|
+
}));
|
|
611
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
612
|
+
export const unmarshalIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema = z
|
|
423
613
|
.object({
|
|
424
614
|
origin: z
|
|
425
|
-
.lazy(() =>
|
|
615
|
+
.lazy(() => unmarshalIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema)
|
|
426
616
|
.optional(),
|
|
427
617
|
destination: z
|
|
428
|
-
.lazy(() =>
|
|
618
|
+
.lazy(() => unmarshalIngressNetworkPolicy_RequestDestinationSchema)
|
|
429
619
|
.optional(),
|
|
430
620
|
authentication: z
|
|
431
|
-
.lazy(() =>
|
|
621
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AuthenticationSchema)
|
|
432
622
|
.optional(),
|
|
433
623
|
label: z.string().optional(),
|
|
434
624
|
})
|
|
@@ -439,11 +629,11 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRu
|
|
|
439
629
|
label: d.label,
|
|
440
630
|
}));
|
|
441
631
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
442
|
-
export const
|
|
632
|
+
export const unmarshalIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema = z
|
|
443
633
|
.object({
|
|
444
634
|
all_source_workspaces: z.boolean().optional(),
|
|
445
635
|
selected_workspaces: z
|
|
446
|
-
.lazy(() =>
|
|
636
|
+
.lazy(() => unmarshalIngressNetworkPolicy_WorkspaceIdListSchema)
|
|
447
637
|
.optional(),
|
|
448
638
|
})
|
|
449
639
|
.transform(d => ({
|
|
@@ -460,7 +650,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOr
|
|
|
460
650
|
: undefined,
|
|
461
651
|
}));
|
|
462
652
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
463
|
-
export const
|
|
653
|
+
export const unmarshalIngressNetworkPolicy_EndpointsSchema = z
|
|
464
654
|
.object({
|
|
465
655
|
endpoint_ids: z.array(z.string()).optional(),
|
|
466
656
|
})
|
|
@@ -468,7 +658,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_EndpointsSchema = z
|
|
|
468
658
|
endpointIds: d.endpoint_ids,
|
|
469
659
|
}));
|
|
470
660
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
471
|
-
export const
|
|
661
|
+
export const unmarshalIngressNetworkPolicy_IpRangesSchema = z
|
|
472
662
|
.object({
|
|
473
663
|
ip_ranges: z.array(z.string()).optional(),
|
|
474
664
|
})
|
|
@@ -476,7 +666,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_IpRangesSchema = z
|
|
|
476
666
|
ipRanges: d.ip_ranges,
|
|
477
667
|
}));
|
|
478
668
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
479
|
-
export const
|
|
669
|
+
export const unmarshalIngressNetworkPolicy_LakebaseRuntimeDestinationSchema = z
|
|
480
670
|
.object({
|
|
481
671
|
all_destinations: z.boolean().optional(),
|
|
482
672
|
})
|
|
@@ -484,14 +674,14 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinat
|
|
|
484
674
|
allDestinations: d.all_destinations,
|
|
485
675
|
}));
|
|
486
676
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
487
|
-
export const
|
|
677
|
+
export const unmarshalIngressNetworkPolicy_PrivateAccessSchema = z
|
|
488
678
|
.object({
|
|
489
679
|
restriction_mode: z.string().optional(),
|
|
490
680
|
deny_rules: z
|
|
491
|
-
.array(z.lazy(() =>
|
|
681
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
492
682
|
.optional(),
|
|
493
683
|
allow_rules: z
|
|
494
|
-
.array(z.lazy(() =>
|
|
684
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
495
685
|
.optional(),
|
|
496
686
|
})
|
|
497
687
|
.transform(d => ({
|
|
@@ -500,16 +690,16 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema = z
|
|
|
500
690
|
allowRules: d.allow_rules,
|
|
501
691
|
}));
|
|
502
692
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
503
|
-
export const
|
|
693
|
+
export const unmarshalIngressNetworkPolicy_PrivateIngressRuleSchema = z
|
|
504
694
|
.object({
|
|
505
695
|
origin: z
|
|
506
|
-
.lazy(() =>
|
|
696
|
+
.lazy(() => unmarshalIngressNetworkPolicy_PrivateRequestOriginSchema)
|
|
507
697
|
.optional(),
|
|
508
698
|
destination: z
|
|
509
|
-
.lazy(() =>
|
|
699
|
+
.lazy(() => unmarshalIngressNetworkPolicy_RequestDestinationSchema)
|
|
510
700
|
.optional(),
|
|
511
701
|
authentication: z
|
|
512
|
-
.lazy(() =>
|
|
702
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AuthenticationSchema)
|
|
513
703
|
.optional(),
|
|
514
704
|
label: z.string().optional(),
|
|
515
705
|
})
|
|
@@ -520,10 +710,10 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchem
|
|
|
520
710
|
label: d.label,
|
|
521
711
|
}));
|
|
522
712
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
523
|
-
export const
|
|
713
|
+
export const unmarshalIngressNetworkPolicy_PrivateRequestOriginSchema = z
|
|
524
714
|
.object({
|
|
525
715
|
endpoints: z
|
|
526
|
-
.lazy(() =>
|
|
716
|
+
.lazy(() => unmarshalIngressNetworkPolicy_EndpointsSchema)
|
|
527
717
|
.optional(),
|
|
528
718
|
all_registered_endpoints: z.boolean().optional(),
|
|
529
719
|
azure_workspace_private_link: z.boolean().optional(),
|
|
@@ -550,14 +740,14 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSch
|
|
|
550
740
|
: undefined,
|
|
551
741
|
}));
|
|
552
742
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
553
|
-
export const
|
|
743
|
+
export const unmarshalIngressNetworkPolicy_PublicAccessSchema = z
|
|
554
744
|
.object({
|
|
555
745
|
restriction_mode: z.string().optional(),
|
|
556
746
|
deny_rules: z
|
|
557
|
-
.array(z.lazy(() =>
|
|
747
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
558
748
|
.optional(),
|
|
559
749
|
allow_rules: z
|
|
560
|
-
.array(z.lazy(() =>
|
|
750
|
+
.array(z.lazy(() => unmarshalIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
561
751
|
.optional(),
|
|
562
752
|
})
|
|
563
753
|
.transform(d => ({
|
|
@@ -566,16 +756,16 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema = z
|
|
|
566
756
|
allowRules: d.allow_rules,
|
|
567
757
|
}));
|
|
568
758
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
569
|
-
export const
|
|
759
|
+
export const unmarshalIngressNetworkPolicy_PublicIngressRuleSchema = z
|
|
570
760
|
.object({
|
|
571
761
|
origin: z
|
|
572
|
-
.lazy(() =>
|
|
762
|
+
.lazy(() => unmarshalIngressNetworkPolicy_PublicRequestOriginSchema)
|
|
573
763
|
.optional(),
|
|
574
764
|
destination: z
|
|
575
|
-
.lazy(() =>
|
|
765
|
+
.lazy(() => unmarshalIngressNetworkPolicy_RequestDestinationSchema)
|
|
576
766
|
.optional(),
|
|
577
767
|
authentication: z
|
|
578
|
-
.lazy(() =>
|
|
768
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AuthenticationSchema)
|
|
579
769
|
.optional(),
|
|
580
770
|
label: z.string().optional(),
|
|
581
771
|
})
|
|
@@ -586,14 +776,14 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema
|
|
|
586
776
|
label: d.label,
|
|
587
777
|
}));
|
|
588
778
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
589
|
-
export const
|
|
779
|
+
export const unmarshalIngressNetworkPolicy_PublicRequestOriginSchema = z
|
|
590
780
|
.object({
|
|
591
781
|
all_ip_ranges: z.boolean().optional(),
|
|
592
782
|
included_ip_ranges: z
|
|
593
|
-
.lazy(() =>
|
|
783
|
+
.lazy(() => unmarshalIngressNetworkPolicy_IpRangesSchema)
|
|
594
784
|
.optional(),
|
|
595
785
|
excluded_ip_ranges: z
|
|
596
|
-
.lazy(() =>
|
|
786
|
+
.lazy(() => unmarshalIngressNetworkPolicy_IpRangesSchema)
|
|
597
787
|
.optional(),
|
|
598
788
|
})
|
|
599
789
|
.transform(d => ({
|
|
@@ -612,29 +802,29 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PublicRequestOriginSche
|
|
|
612
802
|
: undefined,
|
|
613
803
|
}));
|
|
614
804
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
615
|
-
export const
|
|
805
|
+
export const unmarshalIngressNetworkPolicy_RequestDestinationSchema = z
|
|
616
806
|
.object({
|
|
617
807
|
all_destinations: z.boolean().optional(),
|
|
618
808
|
workspace_ui: z
|
|
619
|
-
.lazy(() =>
|
|
809
|
+
.lazy(() => unmarshalIngressNetworkPolicy_WorkspaceUiDestinationSchema)
|
|
620
810
|
.optional(),
|
|
621
811
|
workspace_api: z
|
|
622
|
-
.lazy(() =>
|
|
812
|
+
.lazy(() => unmarshalIngressNetworkPolicy_WorkspaceApiDestinationSchema)
|
|
623
813
|
.optional(),
|
|
624
814
|
apps_runtime: z
|
|
625
|
-
.lazy(() =>
|
|
815
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AppsRuntimeDestinationSchema)
|
|
626
816
|
.optional(),
|
|
627
817
|
lakebase_runtime: z
|
|
628
|
-
.lazy(() =>
|
|
818
|
+
.lazy(() => unmarshalIngressNetworkPolicy_LakebaseRuntimeDestinationSchema)
|
|
629
819
|
.optional(),
|
|
630
820
|
account_ui: z
|
|
631
|
-
.lazy(() =>
|
|
821
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AccountUiDestinationSchema)
|
|
632
822
|
.optional(),
|
|
633
823
|
account_api: z
|
|
634
|
-
.lazy(() =>
|
|
824
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AccountApiDestinationSchema)
|
|
635
825
|
.optional(),
|
|
636
826
|
account_databricks_one: z
|
|
637
|
-
.lazy(() =>
|
|
827
|
+
.lazy(() => unmarshalIngressNetworkPolicy_AccountDatabricksOneDestinationSchema)
|
|
638
828
|
.optional(),
|
|
639
829
|
})
|
|
640
830
|
.transform(d => ({
|
|
@@ -648,7 +838,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchem
|
|
|
648
838
|
accountDatabricksOne: d.account_databricks_one,
|
|
649
839
|
}));
|
|
650
840
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
651
|
-
export const
|
|
841
|
+
export const unmarshalIngressNetworkPolicy_WorkspaceApiDestinationSchema = z
|
|
652
842
|
.object({
|
|
653
843
|
scopes: z.array(z.string()).optional(),
|
|
654
844
|
scope_qualifier: z.string().optional(),
|
|
@@ -658,7 +848,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestination
|
|
|
658
848
|
scopeQualifier: d.scope_qualifier,
|
|
659
849
|
}));
|
|
660
850
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
661
|
-
export const
|
|
851
|
+
export const unmarshalIngressNetworkPolicy_WorkspaceIdListSchema = z
|
|
662
852
|
.object({
|
|
663
853
|
workspace_ids: z
|
|
664
854
|
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
@@ -668,404 +858,54 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceIdListSchema =
|
|
|
668
858
|
workspaceIds: d.workspace_ids,
|
|
669
859
|
}));
|
|
670
860
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
671
|
-
export const
|
|
861
|
+
export const unmarshalIngressNetworkPolicy_WorkspaceUiDestinationSchema = z
|
|
672
862
|
.object({
|
|
673
863
|
all_destinations: z.boolean().optional(),
|
|
674
864
|
})
|
|
675
865
|
.transform(d => ({
|
|
676
866
|
allDestinations: d.all_destinations,
|
|
677
867
|
}));
|
|
678
|
-
export const
|
|
868
|
+
export const unmarshalIpAccessListSchema = z
|
|
679
869
|
.object({
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
.optional(),
|
|
687
|
-
updated_time: z
|
|
688
|
-
.union([z.number(), z.bigint()])
|
|
689
|
-
.transform(v => BigInt(v))
|
|
690
|
-
.optional(),
|
|
691
|
-
creation_time: z
|
|
870
|
+
list_id: z.string().optional(),
|
|
871
|
+
label: z.string().optional(),
|
|
872
|
+
ip_addresses: z.array(z.string()).optional(),
|
|
873
|
+
address_count: z.number().optional(),
|
|
874
|
+
list_type: z.string().optional(),
|
|
875
|
+
created_at: z
|
|
692
876
|
.union([z.number(), z.bigint()])
|
|
693
877
|
.transform(v => BigInt(v))
|
|
694
878
|
.optional(),
|
|
695
|
-
|
|
696
|
-
.transform(d => ({
|
|
697
|
-
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
698
|
-
accountId: d.account_id,
|
|
699
|
-
name: d.name,
|
|
700
|
-
region: d.region,
|
|
701
|
-
egressConfig: d.egress_config,
|
|
702
|
-
updatedTime: d.updated_time,
|
|
703
|
-
creationTime: d.creation_time,
|
|
704
|
-
}));
|
|
705
|
-
export const unmarshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema = z
|
|
706
|
-
.object({
|
|
707
|
-
rule_id: z.string().optional(),
|
|
708
|
-
network_connectivity_config_id: z.string().optional(),
|
|
709
|
-
account_id: z.string().optional(),
|
|
710
|
-
endpoint_service: z.string().optional(),
|
|
711
|
-
domain_names: z.array(z.string()).optional(),
|
|
712
|
-
resource_names: z.array(z.string()).optional(),
|
|
713
|
-
vpc_endpoint_id: z.string().optional(),
|
|
714
|
-
connection_state: z.string().optional(),
|
|
715
|
-
creation_time: z
|
|
879
|
+
created_by: z
|
|
716
880
|
.union([z.number(), z.bigint()])
|
|
717
881
|
.transform(v => BigInt(v))
|
|
718
882
|
.optional(),
|
|
719
|
-
|
|
883
|
+
updated_at: z
|
|
720
884
|
.union([z.number(), z.bigint()])
|
|
721
885
|
.transform(v => BigInt(v))
|
|
722
886
|
.optional(),
|
|
723
|
-
|
|
724
|
-
deactivated_at: z
|
|
887
|
+
updated_by: z
|
|
725
888
|
.union([z.number(), z.bigint()])
|
|
726
889
|
.transform(v => BigInt(v))
|
|
727
890
|
.optional(),
|
|
728
891
|
enabled: z.boolean().optional(),
|
|
729
|
-
error_message: z.string().optional(),
|
|
730
892
|
})
|
|
731
893
|
.transform(d => ({
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
updatedTime: d.updated_time,
|
|
742
|
-
deactivated: d.deactivated,
|
|
743
|
-
deactivatedAt: d.deactivated_at,
|
|
894
|
+
listId: d.list_id,
|
|
895
|
+
label: d.label,
|
|
896
|
+
ipAddresses: d.ip_addresses,
|
|
897
|
+
addressCount: d.address_count,
|
|
898
|
+
listType: d.list_type,
|
|
899
|
+
createdAt: d.created_at,
|
|
900
|
+
createdBy: d.created_by,
|
|
901
|
+
updatedAt: d.updated_at,
|
|
902
|
+
updatedBy: d.updated_by,
|
|
744
903
|
enabled: d.enabled,
|
|
745
|
-
errorMessage: d.error_message,
|
|
746
904
|
}));
|
|
747
|
-
export const
|
|
905
|
+
export const unmarshalListAccountIpAccessListsResponseSchema = z
|
|
748
906
|
.object({
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
resource_id: z.string().optional(),
|
|
752
|
-
group_id: z.string().optional(),
|
|
753
|
-
endpoint_name: z.string().optional(),
|
|
754
|
-
connection_state: z.string().optional(),
|
|
755
|
-
creation_time: z
|
|
756
|
-
.union([z.number(), z.bigint()])
|
|
757
|
-
.transform(v => BigInt(v))
|
|
758
|
-
.optional(),
|
|
759
|
-
updated_time: z
|
|
760
|
-
.union([z.number(), z.bigint()])
|
|
761
|
-
.transform(v => BigInt(v))
|
|
762
|
-
.optional(),
|
|
763
|
-
deactivated: z.boolean().optional(),
|
|
764
|
-
deactivated_at: z
|
|
765
|
-
.union([z.number(), z.bigint()])
|
|
766
|
-
.transform(v => BigInt(v))
|
|
767
|
-
.optional(),
|
|
768
|
-
domain_names: z.array(z.string()).optional(),
|
|
769
|
-
error_message: z.string().optional(),
|
|
770
|
-
})
|
|
771
|
-
.transform(d => ({
|
|
772
|
-
ruleId: d.rule_id,
|
|
773
|
-
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
774
|
-
resourceId: d.resource_id,
|
|
775
|
-
groupId: d.group_id,
|
|
776
|
-
endpointName: d.endpoint_name,
|
|
777
|
-
connectionState: d.connection_state,
|
|
778
|
-
creationTime: d.creation_time,
|
|
779
|
-
updatedTime: d.updated_time,
|
|
780
|
-
deactivated: d.deactivated,
|
|
781
|
-
deactivatedAt: d.deactivated_at,
|
|
782
|
-
domainNames: d.domain_names,
|
|
783
|
-
errorMessage: d.error_message,
|
|
784
|
-
}));
|
|
785
|
-
export const unmarshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema = z
|
|
786
|
-
.object({
|
|
787
|
-
default_rules: z
|
|
788
|
-
.lazy(() => unmarshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema)
|
|
789
|
-
.optional(),
|
|
790
|
-
target_rules: z
|
|
791
|
-
.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema)
|
|
792
|
-
.optional(),
|
|
793
|
-
})
|
|
794
|
-
.transform(d => ({
|
|
795
|
-
defaultRules: d.default_rules,
|
|
796
|
-
targetRules: d.target_rules,
|
|
797
|
-
}));
|
|
798
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
799
|
-
export const unmarshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema = z
|
|
800
|
-
.object({
|
|
801
|
-
azure_private_endpoint_rules: z
|
|
802
|
-
.array(z.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRuleSchema))
|
|
803
|
-
.optional(),
|
|
804
|
-
aws_private_endpoint_rules: z
|
|
805
|
-
.array(z.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema))
|
|
806
|
-
.optional(),
|
|
807
|
-
})
|
|
808
|
-
.transform(d => ({
|
|
809
|
-
azurePrivateEndpointRules: d.azure_private_endpoint_rules,
|
|
810
|
-
awsPrivateEndpointRules: d.aws_private_endpoint_rules,
|
|
811
|
-
}));
|
|
812
|
-
export const unmarshalCustomerFacingPrivateAccessSettingsSchema = z
|
|
813
|
-
.object({
|
|
814
|
-
private_access_settings_id: z.string().optional(),
|
|
815
|
-
account_id: z.string().optional(),
|
|
816
|
-
private_access_settings_name: z.string().optional(),
|
|
817
|
-
region: z.string().optional(),
|
|
818
|
-
public_access_enabled: z.boolean().optional(),
|
|
819
|
-
private_access_level: z.string().optional(),
|
|
820
|
-
allowed_vpc_endpoint_ids: z.array(z.string()).optional(),
|
|
821
|
-
})
|
|
822
|
-
.transform(d => ({
|
|
823
|
-
privateAccessSettingsId: d.private_access_settings_id,
|
|
824
|
-
accountId: d.account_id,
|
|
825
|
-
privateAccessSettingsName: d.private_access_settings_name,
|
|
826
|
-
region: d.region,
|
|
827
|
-
publicAccessEnabled: d.public_access_enabled,
|
|
828
|
-
privateAccessLevel: d.private_access_level,
|
|
829
|
-
allowedVpcEndpointIds: d.allowed_vpc_endpoint_ids,
|
|
830
|
-
}));
|
|
831
|
-
export const unmarshalCustomerFacingVpcEndpointSchema = z
|
|
832
|
-
.object({
|
|
833
|
-
vpc_endpoint_id: z.string().optional(),
|
|
834
|
-
account_id: z.string().optional(),
|
|
835
|
-
vpc_endpoint_name: z.string().optional(),
|
|
836
|
-
aws_vpc_endpoint_id: z.string().optional(),
|
|
837
|
-
aws_endpoint_service_id: z.string().optional(),
|
|
838
|
-
use_case: z.string().optional(),
|
|
839
|
-
region: z.string().optional(),
|
|
840
|
-
aws_account_id: z.string().optional(),
|
|
841
|
-
state: z.string().optional(),
|
|
842
|
-
gcp_vpc_endpoint_info: z
|
|
843
|
-
.lazy(() => unmarshalCustomerFacingGcpVpcEndpointInfoSchema)
|
|
844
|
-
.optional(),
|
|
845
|
-
})
|
|
846
|
-
.transform(d => ({
|
|
847
|
-
vpcEndpointId: d.vpc_endpoint_id,
|
|
848
|
-
accountId: d.account_id,
|
|
849
|
-
vpcEndpointName: d.vpc_endpoint_name,
|
|
850
|
-
awsVpcEndpointId: d.aws_vpc_endpoint_id,
|
|
851
|
-
awsEndpointServiceId: d.aws_endpoint_service_id,
|
|
852
|
-
useCase: d.use_case,
|
|
853
|
-
region: d.region,
|
|
854
|
-
awsAccountId: d.aws_account_id,
|
|
855
|
-
state: d.state,
|
|
856
|
-
vpcEndpointInfo: d.gcp_vpc_endpoint_info !== undefined
|
|
857
|
-
? {
|
|
858
|
-
$case: 'gcpVpcEndpointInfo',
|
|
859
|
-
gcpVpcEndpointInfo: d.gcp_vpc_endpoint_info,
|
|
860
|
-
}
|
|
861
|
-
: undefined,
|
|
862
|
-
}));
|
|
863
|
-
export const unmarshalDeleteAccountIpAccessListResponseSchema = z.object({});
|
|
864
|
-
export const unmarshalDeleteIpAccessListResponseSchema = z.object({});
|
|
865
|
-
export const unmarshalEgressNetworkPolicySchema = z
|
|
866
|
-
.object({
|
|
867
|
-
network_access: z
|
|
868
|
-
.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema)
|
|
869
|
-
.optional(),
|
|
870
|
-
})
|
|
871
|
-
.transform(d => ({
|
|
872
|
-
networkAccess: d.network_access,
|
|
873
|
-
}));
|
|
874
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
875
|
-
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
|
|
876
|
-
.object({
|
|
877
|
-
restriction_mode: z.string().optional(),
|
|
878
|
-
allowed_internet_destinations: z
|
|
879
|
-
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
880
|
-
.optional(),
|
|
881
|
-
allowed_storage_destinations: z
|
|
882
|
-
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema))
|
|
883
|
-
.optional(),
|
|
884
|
-
policy_enforcement: z
|
|
885
|
-
.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema)
|
|
886
|
-
.optional(),
|
|
887
|
-
blocked_internet_destinations: z
|
|
888
|
-
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
889
|
-
.optional(),
|
|
890
|
-
allowed_databricks_destinations: z
|
|
891
|
-
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema))
|
|
892
|
-
.optional(),
|
|
893
|
-
})
|
|
894
|
-
.transform(d => ({
|
|
895
|
-
restrictionMode: d.restriction_mode,
|
|
896
|
-
allowedInternetDestinations: d.allowed_internet_destinations,
|
|
897
|
-
allowedStorageDestinations: d.allowed_storage_destinations,
|
|
898
|
-
policyEnforcement: d.policy_enforcement,
|
|
899
|
-
blockedInternetDestinations: d.blocked_internet_destinations,
|
|
900
|
-
allowedDatabricksDestinations: d.allowed_databricks_destinations,
|
|
901
|
-
}));
|
|
902
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
903
|
-
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema = z
|
|
904
|
-
.object({
|
|
905
|
-
workspace_ids: z
|
|
906
|
-
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
907
|
-
.optional(),
|
|
908
|
-
})
|
|
909
|
-
.transform(d => ({
|
|
910
|
-
workspaceIds: d.workspace_ids,
|
|
911
|
-
}));
|
|
912
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
913
|
-
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
|
|
914
|
-
.object({
|
|
915
|
-
destination: z.string().optional(),
|
|
916
|
-
internet_destination_type: z.string().optional(),
|
|
917
|
-
})
|
|
918
|
-
.transform(d => ({
|
|
919
|
-
destination: d.destination,
|
|
920
|
-
internetDestinationType: d.internet_destination_type,
|
|
921
|
-
}));
|
|
922
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
923
|
-
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
|
|
924
|
-
.object({
|
|
925
|
-
enforcement_mode: z.string().optional(),
|
|
926
|
-
dry_run_mode_product_filter: z.array(z.string()).optional(),
|
|
927
|
-
})
|
|
928
|
-
.transform(d => ({
|
|
929
|
-
enforcementMode: d.enforcement_mode,
|
|
930
|
-
dryRunModeProductFilter: d.dry_run_mode_product_filter,
|
|
931
|
-
}));
|
|
932
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
933
|
-
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema = z
|
|
934
|
-
.object({
|
|
935
|
-
bucket_name: z.string().optional(),
|
|
936
|
-
region: z.string().optional(),
|
|
937
|
-
storage_destination_type: z.string().optional(),
|
|
938
|
-
azure_storage_account: z.string().optional(),
|
|
939
|
-
azure_storage_service: z.string().optional(),
|
|
940
|
-
})
|
|
941
|
-
.transform(d => ({
|
|
942
|
-
bucketName: d.bucket_name,
|
|
943
|
-
region: d.region,
|
|
944
|
-
storageDestinationType: d.storage_destination_type,
|
|
945
|
-
azureStorageAccount: d.azure_storage_account,
|
|
946
|
-
azureStorageService: d.azure_storage_service,
|
|
947
|
-
}));
|
|
948
|
-
export const unmarshalEndpointSchema = z
|
|
949
|
-
.object({
|
|
950
|
-
name: z.string().optional(),
|
|
951
|
-
endpoint_id: z.string().optional(),
|
|
952
|
-
account_id: z.string().optional(),
|
|
953
|
-
display_name: z.string().optional(),
|
|
954
|
-
use_case: z.string().optional(),
|
|
955
|
-
region: z.string().optional(),
|
|
956
|
-
state: z.string().optional(),
|
|
957
|
-
azure_private_endpoint_info: z
|
|
958
|
-
.lazy(() => unmarshalAzurePrivateEndpointInfoSchema)
|
|
959
|
-
.optional(),
|
|
960
|
-
create_time: z
|
|
961
|
-
.string()
|
|
962
|
-
.transform(s => Temporal.Instant.from(s))
|
|
963
|
-
.optional(),
|
|
964
|
-
})
|
|
965
|
-
.transform(d => ({
|
|
966
|
-
name: d.name,
|
|
967
|
-
endpointId: d.endpoint_id,
|
|
968
|
-
accountId: d.account_id,
|
|
969
|
-
displayName: d.display_name,
|
|
970
|
-
useCase: d.use_case,
|
|
971
|
-
region: d.region,
|
|
972
|
-
state: d.state,
|
|
973
|
-
endpointInfo: d.azure_private_endpoint_info !== undefined
|
|
974
|
-
? {
|
|
975
|
-
$case: 'azurePrivateEndpointInfo',
|
|
976
|
-
azurePrivateEndpointInfo: d.azure_private_endpoint_info,
|
|
977
|
-
}
|
|
978
|
-
: undefined,
|
|
979
|
-
createTime: d.create_time,
|
|
980
|
-
}));
|
|
981
|
-
export const unmarshalGcpEndpointSchema = z
|
|
982
|
-
.object({
|
|
983
|
-
psc_endpoint_uri: z.string().optional(),
|
|
984
|
-
service_attachment: z.string().optional(),
|
|
985
|
-
})
|
|
986
|
-
.transform(d => ({
|
|
987
|
-
pscEndpointUri: d.psc_endpoint_uri,
|
|
988
|
-
targetServices: d.service_attachment !== undefined
|
|
989
|
-
? {
|
|
990
|
-
$case: 'serviceAttachment',
|
|
991
|
-
serviceAttachment: d.service_attachment,
|
|
992
|
-
}
|
|
993
|
-
: undefined,
|
|
994
|
-
}));
|
|
995
|
-
export const unmarshalGcpNetworkInfoSchema = z
|
|
996
|
-
.object({
|
|
997
|
-
network_project_id: z.string().optional(),
|
|
998
|
-
vpc_id: z.string().optional(),
|
|
999
|
-
subnet_id: z.string().optional(),
|
|
1000
|
-
subnet_region: z.string().optional(),
|
|
1001
|
-
pod_ip_range_name: z.string().optional(),
|
|
1002
|
-
service_ip_range_name: z.string().optional(),
|
|
1003
|
-
})
|
|
1004
|
-
.transform(d => ({
|
|
1005
|
-
networkProjectId: d.network_project_id,
|
|
1006
|
-
vpcId: d.vpc_id,
|
|
1007
|
-
subnetId: d.subnet_id,
|
|
1008
|
-
subnetRegion: d.subnet_region,
|
|
1009
|
-
podIpRangeName: d.pod_ip_range_name,
|
|
1010
|
-
serviceIpRangeName: d.service_ip_range_name,
|
|
1011
|
-
}));
|
|
1012
|
-
export const unmarshalGetAccountIpAccessListResponseSchema = z
|
|
1013
|
-
.object({
|
|
1014
|
-
ip_access_list: z
|
|
1015
|
-
.lazy(() => unmarshalAccountIpAccessListSchema)
|
|
1016
|
-
.optional(),
|
|
1017
|
-
})
|
|
1018
|
-
.transform(d => ({
|
|
1019
|
-
ipAccessList: d.ip_access_list,
|
|
1020
|
-
}));
|
|
1021
|
-
export const unmarshalGetIpAccessListResponseSchema = z
|
|
1022
|
-
.object({
|
|
1023
|
-
ip_access_list: z.lazy(() => unmarshalIpAccessListSchema).optional(),
|
|
1024
|
-
})
|
|
1025
|
-
.transform(d => ({
|
|
1026
|
-
ipAccessList: d.ip_access_list,
|
|
1027
|
-
}));
|
|
1028
|
-
export const unmarshalIpAccessListSchema = z
|
|
1029
|
-
.object({
|
|
1030
|
-
list_id: z.string().optional(),
|
|
1031
|
-
label: z.string().optional(),
|
|
1032
|
-
ip_addresses: z.array(z.string()).optional(),
|
|
1033
|
-
address_count: z.number().optional(),
|
|
1034
|
-
list_type: z.string().optional(),
|
|
1035
|
-
created_at: z
|
|
1036
|
-
.union([z.number(), z.bigint()])
|
|
1037
|
-
.transform(v => BigInt(v))
|
|
1038
|
-
.optional(),
|
|
1039
|
-
created_by: z
|
|
1040
|
-
.union([z.number(), z.bigint()])
|
|
1041
|
-
.transform(v => BigInt(v))
|
|
1042
|
-
.optional(),
|
|
1043
|
-
updated_at: z
|
|
1044
|
-
.union([z.number(), z.bigint()])
|
|
1045
|
-
.transform(v => BigInt(v))
|
|
1046
|
-
.optional(),
|
|
1047
|
-
updated_by: z
|
|
1048
|
-
.union([z.number(), z.bigint()])
|
|
1049
|
-
.transform(v => BigInt(v))
|
|
1050
|
-
.optional(),
|
|
1051
|
-
enabled: z.boolean().optional(),
|
|
1052
|
-
})
|
|
1053
|
-
.transform(d => ({
|
|
1054
|
-
listId: d.list_id,
|
|
1055
|
-
label: d.label,
|
|
1056
|
-
ipAddresses: d.ip_addresses,
|
|
1057
|
-
addressCount: d.address_count,
|
|
1058
|
-
listType: d.list_type,
|
|
1059
|
-
createdAt: d.created_at,
|
|
1060
|
-
createdBy: d.created_by,
|
|
1061
|
-
updatedAt: d.updated_at,
|
|
1062
|
-
updatedBy: d.updated_by,
|
|
1063
|
-
enabled: d.enabled,
|
|
1064
|
-
}));
|
|
1065
|
-
export const unmarshalListAccountIpAccessListsResponseSchema = z
|
|
1066
|
-
.object({
|
|
1067
|
-
ip_access_lists: z
|
|
1068
|
-
.array(z.lazy(() => unmarshalAccountIpAccessListSchema))
|
|
907
|
+
ip_access_lists: z
|
|
908
|
+
.array(z.lazy(() => unmarshalAccountIpAccessListSchema))
|
|
1069
909
|
.optional(),
|
|
1070
910
|
})
|
|
1071
911
|
.transform(d => ({
|
|
@@ -1103,7 +943,7 @@ export const unmarshalListNccPrivateEndpointRulesResponseSchema = z
|
|
|
1103
943
|
export const unmarshalListNetworkConnectivityConfigsResponseSchema = z
|
|
1104
944
|
.object({
|
|
1105
945
|
items: z
|
|
1106
|
-
.array(z.lazy(() =>
|
|
946
|
+
.array(z.lazy(() => unmarshalNetworkConnectivityConfigSchema))
|
|
1107
947
|
.optional(),
|
|
1108
948
|
next_page_token: z.string().optional(),
|
|
1109
949
|
})
|
|
@@ -1182,40 +1022,147 @@ export const unmarshalNetworkSchema = z
|
|
|
1182
1022
|
.union([z.number(), z.bigint()])
|
|
1183
1023
|
.transform(v => BigInt(v))
|
|
1184
1024
|
.optional(),
|
|
1185
|
-
vpc_id: z.string().optional(),
|
|
1186
|
-
subnet_ids: z.array(z.string()).optional(),
|
|
1187
|
-
security_group_ids: z.array(z.string()).optional(),
|
|
1188
|
-
vpc_status: z.string().optional(),
|
|
1189
|
-
error_messages: z
|
|
1190
|
-
.array(z.lazy(() => unmarshalNetworkHealthSchema))
|
|
1191
|
-
.optional(),
|
|
1192
|
-
network_name: z.string().optional(),
|
|
1193
|
-
creation_time: z
|
|
1025
|
+
vpc_id: z.string().optional(),
|
|
1026
|
+
subnet_ids: z.array(z.string()).optional(),
|
|
1027
|
+
security_group_ids: z.array(z.string()).optional(),
|
|
1028
|
+
vpc_status: z.string().optional(),
|
|
1029
|
+
error_messages: z
|
|
1030
|
+
.array(z.lazy(() => unmarshalNetworkHealthSchema))
|
|
1031
|
+
.optional(),
|
|
1032
|
+
network_name: z.string().optional(),
|
|
1033
|
+
creation_time: z
|
|
1034
|
+
.union([z.number(), z.bigint()])
|
|
1035
|
+
.transform(v => BigInt(v))
|
|
1036
|
+
.optional(),
|
|
1037
|
+
warning_messages: z
|
|
1038
|
+
.array(z.lazy(() => unmarshalNetworkWarningSchema))
|
|
1039
|
+
.optional(),
|
|
1040
|
+
vpc_endpoints: z.lazy(() => unmarshalNetworkVpcEndpointsSchema).optional(),
|
|
1041
|
+
gcp_network_info: z.lazy(() => unmarshalGcpNetworkInfoSchema).optional(),
|
|
1042
|
+
})
|
|
1043
|
+
.transform(d => ({
|
|
1044
|
+
networkId: d.network_id,
|
|
1045
|
+
accountId: d.account_id,
|
|
1046
|
+
workspaceId: d.workspace_id,
|
|
1047
|
+
vpcId: d.vpc_id,
|
|
1048
|
+
subnetIds: d.subnet_ids,
|
|
1049
|
+
securityGroupIds: d.security_group_ids,
|
|
1050
|
+
vpcStatus: d.vpc_status,
|
|
1051
|
+
errorMessages: d.error_messages,
|
|
1052
|
+
networkName: d.network_name,
|
|
1053
|
+
creationTime: d.creation_time,
|
|
1054
|
+
warningMessages: d.warning_messages,
|
|
1055
|
+
vpcEndpoints: d.vpc_endpoints,
|
|
1056
|
+
networkInfo: d.gcp_network_info !== undefined
|
|
1057
|
+
? { $case: 'gcpNetworkInfo', gcpNetworkInfo: d.gcp_network_info }
|
|
1058
|
+
: undefined,
|
|
1059
|
+
}));
|
|
1060
|
+
export const unmarshalNetworkConnectivityConfigSchema = z
|
|
1061
|
+
.object({
|
|
1062
|
+
network_connectivity_config_id: z.string().optional(),
|
|
1063
|
+
account_id: z.string().optional(),
|
|
1064
|
+
name: z.string().optional(),
|
|
1065
|
+
region: z.string().optional(),
|
|
1066
|
+
egress_config: z
|
|
1067
|
+
.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema)
|
|
1068
|
+
.optional(),
|
|
1069
|
+
updated_time: z
|
|
1070
|
+
.union([z.number(), z.bigint()])
|
|
1071
|
+
.transform(v => BigInt(v))
|
|
1072
|
+
.optional(),
|
|
1073
|
+
creation_time: z
|
|
1074
|
+
.union([z.number(), z.bigint()])
|
|
1075
|
+
.transform(v => BigInt(v))
|
|
1076
|
+
.optional(),
|
|
1077
|
+
})
|
|
1078
|
+
.transform(d => ({
|
|
1079
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
1080
|
+
accountId: d.account_id,
|
|
1081
|
+
name: d.name,
|
|
1082
|
+
region: d.region,
|
|
1083
|
+
egressConfig: d.egress_config,
|
|
1084
|
+
updatedTime: d.updated_time,
|
|
1085
|
+
creationTime: d.creation_time,
|
|
1086
|
+
}));
|
|
1087
|
+
export const unmarshalNetworkConnectivityConfigAwsPrivateEndpointRuleSchema = z
|
|
1088
|
+
.object({
|
|
1089
|
+
rule_id: z.string().optional(),
|
|
1090
|
+
network_connectivity_config_id: z.string().optional(),
|
|
1091
|
+
account_id: z.string().optional(),
|
|
1092
|
+
endpoint_service: z.string().optional(),
|
|
1093
|
+
domain_names: z.array(z.string()).optional(),
|
|
1094
|
+
resource_names: z.array(z.string()).optional(),
|
|
1095
|
+
vpc_endpoint_id: z.string().optional(),
|
|
1096
|
+
connection_state: z.string().optional(),
|
|
1097
|
+
creation_time: z
|
|
1098
|
+
.union([z.number(), z.bigint()])
|
|
1099
|
+
.transform(v => BigInt(v))
|
|
1100
|
+
.optional(),
|
|
1101
|
+
updated_time: z
|
|
1102
|
+
.union([z.number(), z.bigint()])
|
|
1103
|
+
.transform(v => BigInt(v))
|
|
1104
|
+
.optional(),
|
|
1105
|
+
deactivated: z.boolean().optional(),
|
|
1106
|
+
deactivated_at: z
|
|
1107
|
+
.union([z.number(), z.bigint()])
|
|
1108
|
+
.transform(v => BigInt(v))
|
|
1109
|
+
.optional(),
|
|
1110
|
+
enabled: z.boolean().optional(),
|
|
1111
|
+
error_message: z.string().optional(),
|
|
1112
|
+
})
|
|
1113
|
+
.transform(d => ({
|
|
1114
|
+
ruleId: d.rule_id,
|
|
1115
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
1116
|
+
accountId: d.account_id,
|
|
1117
|
+
endpointService: d.endpoint_service,
|
|
1118
|
+
domainNames: d.domain_names,
|
|
1119
|
+
resourceNames: d.resource_names,
|
|
1120
|
+
vpcEndpointId: d.vpc_endpoint_id,
|
|
1121
|
+
connectionState: d.connection_state,
|
|
1122
|
+
creationTime: d.creation_time,
|
|
1123
|
+
updatedTime: d.updated_time,
|
|
1124
|
+
deactivated: d.deactivated,
|
|
1125
|
+
deactivatedAt: d.deactivated_at,
|
|
1126
|
+
enabled: d.enabled,
|
|
1127
|
+
errorMessage: d.error_message,
|
|
1128
|
+
}));
|
|
1129
|
+
export const unmarshalNetworkConnectivityConfigAzurePrivateEndpointRuleSchema = z
|
|
1130
|
+
.object({
|
|
1131
|
+
rule_id: z.string().optional(),
|
|
1132
|
+
network_connectivity_config_id: z.string().optional(),
|
|
1133
|
+
resource_id: z.string().optional(),
|
|
1134
|
+
group_id: z.string().optional(),
|
|
1135
|
+
endpoint_name: z.string().optional(),
|
|
1136
|
+
connection_state: z.string().optional(),
|
|
1137
|
+
creation_time: z
|
|
1138
|
+
.union([z.number(), z.bigint()])
|
|
1139
|
+
.transform(v => BigInt(v))
|
|
1140
|
+
.optional(),
|
|
1141
|
+
updated_time: z
|
|
1194
1142
|
.union([z.number(), z.bigint()])
|
|
1195
1143
|
.transform(v => BigInt(v))
|
|
1196
1144
|
.optional(),
|
|
1197
|
-
|
|
1198
|
-
|
|
1145
|
+
deactivated: z.boolean().optional(),
|
|
1146
|
+
deactivated_at: z
|
|
1147
|
+
.union([z.number(), z.bigint()])
|
|
1148
|
+
.transform(v => BigInt(v))
|
|
1199
1149
|
.optional(),
|
|
1200
|
-
|
|
1201
|
-
|
|
1150
|
+
domain_names: z.array(z.string()).optional(),
|
|
1151
|
+
error_message: z.string().optional(),
|
|
1202
1152
|
})
|
|
1203
1153
|
.transform(d => ({
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
vpcStatus: d.vpc_status,
|
|
1211
|
-
errorMessages: d.error_messages,
|
|
1212
|
-
networkName: d.network_name,
|
|
1154
|
+
ruleId: d.rule_id,
|
|
1155
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
1156
|
+
resourceId: d.resource_id,
|
|
1157
|
+
groupId: d.group_id,
|
|
1158
|
+
endpointName: d.endpoint_name,
|
|
1159
|
+
connectionState: d.connection_state,
|
|
1213
1160
|
creationTime: d.creation_time,
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1161
|
+
updatedTime: d.updated_time,
|
|
1162
|
+
deactivated: d.deactivated,
|
|
1163
|
+
deactivatedAt: d.deactivated_at,
|
|
1164
|
+
domainNames: d.domain_names,
|
|
1165
|
+
errorMessage: d.error_message,
|
|
1219
1166
|
}));
|
|
1220
1167
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1221
1168
|
export const unmarshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema = z
|
|
@@ -1278,6 +1225,25 @@ export const unmarshalNetworkWarningSchema = z
|
|
|
1278
1225
|
warningType: d.warning_type,
|
|
1279
1226
|
warningMessage: d.warning_message,
|
|
1280
1227
|
}));
|
|
1228
|
+
export const unmarshalPrivateAccessSettingsSchema = z
|
|
1229
|
+
.object({
|
|
1230
|
+
private_access_settings_id: z.string().optional(),
|
|
1231
|
+
account_id: z.string().optional(),
|
|
1232
|
+
private_access_settings_name: z.string().optional(),
|
|
1233
|
+
region: z.string().optional(),
|
|
1234
|
+
public_access_enabled: z.boolean().optional(),
|
|
1235
|
+
private_access_level: z.string().optional(),
|
|
1236
|
+
allowed_vpc_endpoint_ids: z.array(z.string()).optional(),
|
|
1237
|
+
})
|
|
1238
|
+
.transform(d => ({
|
|
1239
|
+
privateAccessSettingsId: d.private_access_settings_id,
|
|
1240
|
+
accountId: d.account_id,
|
|
1241
|
+
privateAccessSettingsName: d.private_access_settings_name,
|
|
1242
|
+
region: d.region,
|
|
1243
|
+
publicAccessEnabled: d.public_access_enabled,
|
|
1244
|
+
privateAccessLevel: d.private_access_level,
|
|
1245
|
+
allowedVpcEndpointIds: d.allowed_vpc_endpoint_ids,
|
|
1246
|
+
}));
|
|
1281
1247
|
export const unmarshalReplaceAccountIpAccessListResponseSchema = z
|
|
1282
1248
|
.object({
|
|
1283
1249
|
ip_access_list: z
|
|
@@ -1310,6 +1276,38 @@ export const unmarshalUpdateIpAccessListResponseSchema = z
|
|
|
1310
1276
|
.transform(d => ({
|
|
1311
1277
|
ipAccessList: d.ip_access_list,
|
|
1312
1278
|
}));
|
|
1279
|
+
export const unmarshalVpcEndpointSchema = z
|
|
1280
|
+
.object({
|
|
1281
|
+
vpc_endpoint_id: z.string().optional(),
|
|
1282
|
+
account_id: z.string().optional(),
|
|
1283
|
+
vpc_endpoint_name: z.string().optional(),
|
|
1284
|
+
aws_vpc_endpoint_id: z.string().optional(),
|
|
1285
|
+
aws_endpoint_service_id: z.string().optional(),
|
|
1286
|
+
use_case: z.string().optional(),
|
|
1287
|
+
region: z.string().optional(),
|
|
1288
|
+
aws_account_id: z.string().optional(),
|
|
1289
|
+
state: z.string().optional(),
|
|
1290
|
+
gcp_vpc_endpoint_info: z
|
|
1291
|
+
.lazy(() => unmarshalGcpVpcEndpointInfoSchema)
|
|
1292
|
+
.optional(),
|
|
1293
|
+
})
|
|
1294
|
+
.transform(d => ({
|
|
1295
|
+
vpcEndpointId: d.vpc_endpoint_id,
|
|
1296
|
+
accountId: d.account_id,
|
|
1297
|
+
vpcEndpointName: d.vpc_endpoint_name,
|
|
1298
|
+
awsVpcEndpointId: d.aws_vpc_endpoint_id,
|
|
1299
|
+
awsEndpointServiceId: d.aws_endpoint_service_id,
|
|
1300
|
+
useCase: d.use_case,
|
|
1301
|
+
region: d.region,
|
|
1302
|
+
awsAccountId: d.aws_account_id,
|
|
1303
|
+
state: d.state,
|
|
1304
|
+
vpcEndpointInfo: d.gcp_vpc_endpoint_info !== undefined
|
|
1305
|
+
? {
|
|
1306
|
+
$case: 'gcpVpcEndpointInfo',
|
|
1307
|
+
gcpVpcEndpointInfo: d.gcp_vpc_endpoint_info,
|
|
1308
|
+
}
|
|
1309
|
+
: undefined,
|
|
1310
|
+
}));
|
|
1313
1311
|
export const unmarshalWorkspaceNetworkOptionSchema = z
|
|
1314
1312
|
.object({
|
|
1315
1313
|
network_policy_id: z.string().optional(),
|
|
@@ -1327,12 +1325,8 @@ export const marshalAccountNetworkPolicySchema = z
|
|
|
1327
1325
|
networkPolicyId: z.string().optional(),
|
|
1328
1326
|
accountId: z.string().optional(),
|
|
1329
1327
|
egress: z.lazy(() => marshalEgressNetworkPolicySchema).optional(),
|
|
1330
|
-
ingress: z
|
|
1331
|
-
|
|
1332
|
-
.optional(),
|
|
1333
|
-
ingressDryRun: z
|
|
1334
|
-
.lazy(() => marshalCustomerFacingIngressNetworkPolicySchema)
|
|
1335
|
-
.optional(),
|
|
1328
|
+
ingress: z.lazy(() => marshalIngressNetworkPolicySchema).optional(),
|
|
1329
|
+
ingressDryRun: z.lazy(() => marshalIngressNetworkPolicySchema).optional(),
|
|
1336
1330
|
})
|
|
1337
1331
|
.transform(d => ({
|
|
1338
1332
|
network_policy_id: d.networkPolicyId,
|
|
@@ -1367,7 +1361,7 @@ export const marshalCreateAccountIpAccessListRequestSchema = z
|
|
|
1367
1361
|
list_type: d.listType,
|
|
1368
1362
|
ip_addresses: d.ipAddresses,
|
|
1369
1363
|
}));
|
|
1370
|
-
export const
|
|
1364
|
+
export const marshalCreateIpAccessListRequestSchema = z
|
|
1371
1365
|
.object({
|
|
1372
1366
|
label: z.string().optional(),
|
|
1373
1367
|
listType: z.string().optional(),
|
|
@@ -1485,31 +1479,209 @@ export const marshalCreatePrivateEndpointRuleSchema = z
|
|
|
1485
1479
|
gcp_endpoint: d.endpoint.gcpEndpoint,
|
|
1486
1480
|
}),
|
|
1487
1481
|
}));
|
|
1488
|
-
export const marshalCreateVpcEndpointRequestSchema = z
|
|
1482
|
+
export const marshalCreateVpcEndpointRequestSchema = z
|
|
1483
|
+
.object({
|
|
1484
|
+
accountId: z.string().optional(),
|
|
1485
|
+
vpcEndpointName: z.string().optional(),
|
|
1486
|
+
region: z.string().optional(),
|
|
1487
|
+
awsVpcEndpointId: z.string().optional(),
|
|
1488
|
+
vpcEndpointInfo: z
|
|
1489
|
+
.discriminatedUnion('$case', [
|
|
1490
|
+
z.object({
|
|
1491
|
+
$case: z.literal('gcpVpcEndpointInfo'),
|
|
1492
|
+
gcpVpcEndpointInfo: z.lazy(() => marshalGcpVpcEndpointInfoSchema),
|
|
1493
|
+
}),
|
|
1494
|
+
])
|
|
1495
|
+
.optional(),
|
|
1496
|
+
})
|
|
1497
|
+
.transform(d => ({
|
|
1498
|
+
account_id: d.accountId,
|
|
1499
|
+
vpc_endpoint_name: d.vpcEndpointName,
|
|
1500
|
+
region: d.region,
|
|
1501
|
+
aws_vpc_endpoint_id: d.awsVpcEndpointId,
|
|
1502
|
+
...(d.vpcEndpointInfo?.$case === 'gcpVpcEndpointInfo' && {
|
|
1503
|
+
gcp_vpc_endpoint_info: d.vpcEndpointInfo.gcpVpcEndpointInfo,
|
|
1504
|
+
}),
|
|
1505
|
+
}));
|
|
1506
|
+
export const marshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema = z
|
|
1507
|
+
.object({
|
|
1508
|
+
defaultRules: z
|
|
1509
|
+
.lazy(() => marshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema)
|
|
1510
|
+
.optional(),
|
|
1511
|
+
targetRules: z
|
|
1512
|
+
.lazy(() => marshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema)
|
|
1513
|
+
.optional(),
|
|
1514
|
+
})
|
|
1515
|
+
.transform(d => ({
|
|
1516
|
+
default_rules: d.defaultRules,
|
|
1517
|
+
target_rules: d.targetRules,
|
|
1518
|
+
}));
|
|
1519
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1520
|
+
export const marshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema = z
|
|
1521
|
+
.object({
|
|
1522
|
+
azurePrivateEndpointRules: z
|
|
1523
|
+
.array(z.lazy(() => marshalNetworkConnectivityConfigAzurePrivateEndpointRuleSchema))
|
|
1524
|
+
.optional(),
|
|
1525
|
+
awsPrivateEndpointRules: z
|
|
1526
|
+
.array(z.lazy(() => marshalNetworkConnectivityConfigAwsPrivateEndpointRuleSchema))
|
|
1527
|
+
.optional(),
|
|
1528
|
+
})
|
|
1529
|
+
.transform(d => ({
|
|
1530
|
+
azure_private_endpoint_rules: d.azurePrivateEndpointRules,
|
|
1531
|
+
aws_private_endpoint_rules: d.awsPrivateEndpointRules,
|
|
1532
|
+
}));
|
|
1533
|
+
export const marshalEgressNetworkPolicySchema = z
|
|
1534
|
+
.object({
|
|
1535
|
+
networkAccess: z
|
|
1536
|
+
.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicySchema)
|
|
1537
|
+
.optional(),
|
|
1538
|
+
})
|
|
1539
|
+
.transform(d => ({
|
|
1540
|
+
network_access: d.networkAccess,
|
|
1541
|
+
}));
|
|
1542
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1543
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
|
|
1544
|
+
.object({
|
|
1545
|
+
restrictionMode: z.string().optional(),
|
|
1546
|
+
allowedInternetDestinations: z
|
|
1547
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
1548
|
+
.optional(),
|
|
1549
|
+
allowedStorageDestinations: z
|
|
1550
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema))
|
|
1551
|
+
.optional(),
|
|
1552
|
+
policyEnforcement: z
|
|
1553
|
+
.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema)
|
|
1554
|
+
.optional(),
|
|
1555
|
+
blockedInternetDestinations: z
|
|
1556
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
1557
|
+
.optional(),
|
|
1558
|
+
allowedDatabricksDestinations: z
|
|
1559
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema))
|
|
1560
|
+
.optional(),
|
|
1561
|
+
})
|
|
1562
|
+
.transform(d => ({
|
|
1563
|
+
restriction_mode: d.restrictionMode,
|
|
1564
|
+
allowed_internet_destinations: d.allowedInternetDestinations,
|
|
1565
|
+
allowed_storage_destinations: d.allowedStorageDestinations,
|
|
1566
|
+
policy_enforcement: d.policyEnforcement,
|
|
1567
|
+
blocked_internet_destinations: d.blockedInternetDestinations,
|
|
1568
|
+
allowed_databricks_destinations: d.allowedDatabricksDestinations,
|
|
1569
|
+
}));
|
|
1570
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1571
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema = z
|
|
1572
|
+
.object({
|
|
1573
|
+
workspaceIds: z.array(z.bigint()).optional(),
|
|
1574
|
+
})
|
|
1575
|
+
.transform(d => ({
|
|
1576
|
+
workspace_ids: d.workspaceIds,
|
|
1577
|
+
}));
|
|
1578
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1579
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
|
|
1580
|
+
.object({
|
|
1581
|
+
destination: z.string().optional(),
|
|
1582
|
+
internetDestinationType: z.string().optional(),
|
|
1583
|
+
})
|
|
1584
|
+
.transform(d => ({
|
|
1585
|
+
destination: d.destination,
|
|
1586
|
+
internet_destination_type: d.internetDestinationType,
|
|
1587
|
+
}));
|
|
1588
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1589
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
|
|
1590
|
+
.object({
|
|
1591
|
+
enforcementMode: z.string().optional(),
|
|
1592
|
+
dryRunModeProductFilter: z.array(z.string()).optional(),
|
|
1593
|
+
})
|
|
1594
|
+
.transform(d => ({
|
|
1595
|
+
enforcement_mode: d.enforcementMode,
|
|
1596
|
+
dry_run_mode_product_filter: d.dryRunModeProductFilter,
|
|
1597
|
+
}));
|
|
1598
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1599
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema = z
|
|
1600
|
+
.object({
|
|
1601
|
+
bucketName: z.string().optional(),
|
|
1602
|
+
region: z.string().optional(),
|
|
1603
|
+
storageDestinationType: z.string().optional(),
|
|
1604
|
+
azureStorageAccount: z.string().optional(),
|
|
1605
|
+
azureStorageService: z.string().optional(),
|
|
1606
|
+
})
|
|
1607
|
+
.transform(d => ({
|
|
1608
|
+
bucket_name: d.bucketName,
|
|
1609
|
+
region: d.region,
|
|
1610
|
+
storage_destination_type: d.storageDestinationType,
|
|
1611
|
+
azure_storage_account: d.azureStorageAccount,
|
|
1612
|
+
azure_storage_service: d.azureStorageService,
|
|
1613
|
+
}));
|
|
1614
|
+
export const marshalEndpointSchema = z
|
|
1615
|
+
.object({
|
|
1616
|
+
name: z.string().optional(),
|
|
1617
|
+
endpointId: z.string().optional(),
|
|
1618
|
+
accountId: z.string().optional(),
|
|
1619
|
+
displayName: z.string().optional(),
|
|
1620
|
+
useCase: z.string().optional(),
|
|
1621
|
+
region: z.string().optional(),
|
|
1622
|
+
state: z.string().optional(),
|
|
1623
|
+
endpointInfo: z
|
|
1624
|
+
.discriminatedUnion('$case', [
|
|
1625
|
+
z.object({
|
|
1626
|
+
$case: z.literal('azurePrivateEndpointInfo'),
|
|
1627
|
+
azurePrivateEndpointInfo: z.lazy(() => marshalAzurePrivateEndpointInfoSchema),
|
|
1628
|
+
}),
|
|
1629
|
+
])
|
|
1630
|
+
.optional(),
|
|
1631
|
+
createTime: z
|
|
1632
|
+
.any()
|
|
1633
|
+
.transform((d) => d.toString())
|
|
1634
|
+
.optional(),
|
|
1635
|
+
})
|
|
1636
|
+
.transform(d => ({
|
|
1637
|
+
name: d.name,
|
|
1638
|
+
endpoint_id: d.endpointId,
|
|
1639
|
+
account_id: d.accountId,
|
|
1640
|
+
display_name: d.displayName,
|
|
1641
|
+
use_case: d.useCase,
|
|
1642
|
+
region: d.region,
|
|
1643
|
+
state: d.state,
|
|
1644
|
+
...(d.endpointInfo?.$case === 'azurePrivateEndpointInfo' && {
|
|
1645
|
+
azure_private_endpoint_info: d.endpointInfo.azurePrivateEndpointInfo,
|
|
1646
|
+
}),
|
|
1647
|
+
create_time: d.createTime,
|
|
1648
|
+
}));
|
|
1649
|
+
export const marshalGcpEndpointSchema = z
|
|
1489
1650
|
.object({
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
region: z.string().optional(),
|
|
1493
|
-
awsVpcEndpointId: z.string().optional(),
|
|
1494
|
-
vpcEndpointInfo: z
|
|
1651
|
+
pscEndpointUri: z.string().optional(),
|
|
1652
|
+
targetServices: z
|
|
1495
1653
|
.discriminatedUnion('$case', [
|
|
1496
1654
|
z.object({
|
|
1497
|
-
$case: z.literal('
|
|
1498
|
-
|
|
1655
|
+
$case: z.literal('serviceAttachment'),
|
|
1656
|
+
serviceAttachment: z.string(),
|
|
1499
1657
|
}),
|
|
1500
1658
|
])
|
|
1501
1659
|
.optional(),
|
|
1502
1660
|
})
|
|
1503
1661
|
.transform(d => ({
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
aws_vpc_endpoint_id: d.awsVpcEndpointId,
|
|
1508
|
-
...(d.vpcEndpointInfo?.$case === 'gcpVpcEndpointInfo' && {
|
|
1509
|
-
gcp_vpc_endpoint_info: d.vpcEndpointInfo.gcpVpcEndpointInfo,
|
|
1662
|
+
psc_endpoint_uri: d.pscEndpointUri,
|
|
1663
|
+
...(d.targetServices?.$case === 'serviceAttachment' && {
|
|
1664
|
+
service_attachment: d.targetServices.serviceAttachment,
|
|
1510
1665
|
}),
|
|
1511
1666
|
}));
|
|
1512
|
-
export const
|
|
1667
|
+
export const marshalGcpNetworkInfoSchema = z
|
|
1668
|
+
.object({
|
|
1669
|
+
networkProjectId: z.string().optional(),
|
|
1670
|
+
vpcId: z.string().optional(),
|
|
1671
|
+
subnetId: z.string().optional(),
|
|
1672
|
+
subnetRegion: z.string().optional(),
|
|
1673
|
+
podIpRangeName: z.string().optional(),
|
|
1674
|
+
serviceIpRangeName: z.string().optional(),
|
|
1675
|
+
})
|
|
1676
|
+
.transform(d => ({
|
|
1677
|
+
network_project_id: d.networkProjectId,
|
|
1678
|
+
vpc_id: d.vpcId,
|
|
1679
|
+
subnet_id: d.subnetId,
|
|
1680
|
+
subnet_region: d.subnetRegion,
|
|
1681
|
+
pod_ip_range_name: d.podIpRangeName,
|
|
1682
|
+
service_ip_range_name: d.serviceIpRangeName,
|
|
1683
|
+
}));
|
|
1684
|
+
export const marshalGcpVpcEndpointInfoSchema = z
|
|
1513
1685
|
.object({
|
|
1514
1686
|
pscConnectionId: z.string().optional(),
|
|
1515
1687
|
projectId: z.string().optional(),
|
|
@@ -1524,16 +1696,16 @@ export const marshalCustomerFacingGcpVpcEndpointInfoSchema = z
|
|
|
1524
1696
|
endpoint_region: d.endpointRegion,
|
|
1525
1697
|
service_attachment_id: d.serviceAttachmentId,
|
|
1526
1698
|
}));
|
|
1527
|
-
export const
|
|
1699
|
+
export const marshalIngressNetworkPolicySchema = z
|
|
1528
1700
|
.object({
|
|
1529
1701
|
publicAccess: z
|
|
1530
|
-
.lazy(() =>
|
|
1702
|
+
.lazy(() => marshalIngressNetworkPolicy_PublicAccessSchema)
|
|
1531
1703
|
.optional(),
|
|
1532
1704
|
privateAccess: z
|
|
1533
|
-
.lazy(() =>
|
|
1705
|
+
.lazy(() => marshalIngressNetworkPolicy_PrivateAccessSchema)
|
|
1534
1706
|
.optional(),
|
|
1535
1707
|
crossWorkspaceAccess: z
|
|
1536
|
-
.lazy(() =>
|
|
1708
|
+
.lazy(() => marshalIngressNetworkPolicy_CrossWorkspaceAccessSchema)
|
|
1537
1709
|
.optional(),
|
|
1538
1710
|
})
|
|
1539
1711
|
.transform(d => ({
|
|
@@ -1542,7 +1714,7 @@ export const marshalCustomerFacingIngressNetworkPolicySchema = z
|
|
|
1542
1714
|
cross_workspace_access: d.crossWorkspaceAccess,
|
|
1543
1715
|
}));
|
|
1544
1716
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1545
|
-
export const
|
|
1717
|
+
export const marshalIngressNetworkPolicy_AccountApiDestinationSchema = z
|
|
1546
1718
|
.object({
|
|
1547
1719
|
scopes: z.array(z.string()).optional(),
|
|
1548
1720
|
scopeQualifier: z.string().optional(),
|
|
@@ -1552,7 +1724,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSche
|
|
|
1552
1724
|
scope_qualifier: d.scopeQualifier,
|
|
1553
1725
|
}));
|
|
1554
1726
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1555
|
-
export const
|
|
1727
|
+
export const marshalIngressNetworkPolicy_AccountDatabricksOneDestinationSchema = z
|
|
1556
1728
|
.object({
|
|
1557
1729
|
allDestinations: z.boolean().optional(),
|
|
1558
1730
|
})
|
|
@@ -1560,7 +1732,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AccountDatabricksOneDesti
|
|
|
1560
1732
|
all_destinations: d.allDestinations,
|
|
1561
1733
|
}));
|
|
1562
1734
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1563
|
-
export const
|
|
1735
|
+
export const marshalIngressNetworkPolicy_AccountUiDestinationSchema = z
|
|
1564
1736
|
.object({
|
|
1565
1737
|
allDestinations: z.boolean().optional(),
|
|
1566
1738
|
})
|
|
@@ -1568,7 +1740,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AccountUiDestinationSchem
|
|
|
1568
1740
|
all_destinations: d.allDestinations,
|
|
1569
1741
|
}));
|
|
1570
1742
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1571
|
-
export const
|
|
1743
|
+
export const marshalIngressNetworkPolicy_AppsRuntimeDestinationSchema = z
|
|
1572
1744
|
.object({
|
|
1573
1745
|
allDestinations: z.boolean().optional(),
|
|
1574
1746
|
})
|
|
@@ -1576,11 +1748,11 @@ export const marshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationSch
|
|
|
1576
1748
|
all_destinations: d.allDestinations,
|
|
1577
1749
|
}));
|
|
1578
1750
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1579
|
-
export const
|
|
1751
|
+
export const marshalIngressNetworkPolicy_AuthenticationSchema = z
|
|
1580
1752
|
.object({
|
|
1581
1753
|
identityType: z.string().optional(),
|
|
1582
1754
|
identities: z
|
|
1583
|
-
.array(z.lazy(() =>
|
|
1755
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_AuthenticationIdentitySchema))
|
|
1584
1756
|
.optional(),
|
|
1585
1757
|
})
|
|
1586
1758
|
.transform(d => ({
|
|
@@ -1588,7 +1760,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema = z
|
|
|
1588
1760
|
identities: d.identities,
|
|
1589
1761
|
}));
|
|
1590
1762
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1591
|
-
export const
|
|
1763
|
+
export const marshalIngressNetworkPolicy_AuthenticationIdentitySchema = z
|
|
1592
1764
|
.object({
|
|
1593
1765
|
principalType: z.string().optional(),
|
|
1594
1766
|
principalId: z.bigint().optional(),
|
|
@@ -1598,14 +1770,14 @@ export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySch
|
|
|
1598
1770
|
principal_id: d.principalId,
|
|
1599
1771
|
}));
|
|
1600
1772
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1601
|
-
export const
|
|
1773
|
+
export const marshalIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
|
|
1602
1774
|
.object({
|
|
1603
1775
|
restrictionMode: z.string().optional(),
|
|
1604
1776
|
denyRules: z
|
|
1605
|
-
.array(z.lazy(() =>
|
|
1777
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
1606
1778
|
.optional(),
|
|
1607
1779
|
allowRules: z
|
|
1608
|
-
.array(z.lazy(() =>
|
|
1780
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
1609
1781
|
.optional(),
|
|
1610
1782
|
})
|
|
1611
1783
|
.transform(d => ({
|
|
@@ -1614,16 +1786,16 @@ export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchem
|
|
|
1614
1786
|
allow_rules: d.allowRules,
|
|
1615
1787
|
}));
|
|
1616
1788
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1617
|
-
export const
|
|
1789
|
+
export const marshalIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema = z
|
|
1618
1790
|
.object({
|
|
1619
1791
|
origin: z
|
|
1620
|
-
.lazy(() =>
|
|
1792
|
+
.lazy(() => marshalIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema)
|
|
1621
1793
|
.optional(),
|
|
1622
1794
|
destination: z
|
|
1623
|
-
.lazy(() =>
|
|
1795
|
+
.lazy(() => marshalIngressNetworkPolicy_RequestDestinationSchema)
|
|
1624
1796
|
.optional(),
|
|
1625
1797
|
authentication: z
|
|
1626
|
-
.lazy(() =>
|
|
1798
|
+
.lazy(() => marshalIngressNetworkPolicy_AuthenticationSchema)
|
|
1627
1799
|
.optional(),
|
|
1628
1800
|
label: z.string().optional(),
|
|
1629
1801
|
})
|
|
@@ -1634,7 +1806,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRule
|
|
|
1634
1806
|
label: d.label,
|
|
1635
1807
|
}));
|
|
1636
1808
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1637
|
-
export const
|
|
1809
|
+
export const marshalIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema = z
|
|
1638
1810
|
.object({
|
|
1639
1811
|
source: z
|
|
1640
1812
|
.discriminatedUnion('$case', [
|
|
@@ -1644,7 +1816,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOrig
|
|
|
1644
1816
|
}),
|
|
1645
1817
|
z.object({
|
|
1646
1818
|
$case: z.literal('selectedWorkspaces'),
|
|
1647
|
-
selectedWorkspaces: z.lazy(() =>
|
|
1819
|
+
selectedWorkspaces: z.lazy(() => marshalIngressNetworkPolicy_WorkspaceIdListSchema),
|
|
1648
1820
|
}),
|
|
1649
1821
|
])
|
|
1650
1822
|
.optional(),
|
|
@@ -1658,7 +1830,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOrig
|
|
|
1658
1830
|
}),
|
|
1659
1831
|
}));
|
|
1660
1832
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1661
|
-
export const
|
|
1833
|
+
export const marshalIngressNetworkPolicy_EndpointsSchema = z
|
|
1662
1834
|
.object({
|
|
1663
1835
|
endpointIds: z.array(z.string()).optional(),
|
|
1664
1836
|
})
|
|
@@ -1666,7 +1838,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_EndpointsSchema = z
|
|
|
1666
1838
|
endpoint_ids: d.endpointIds,
|
|
1667
1839
|
}));
|
|
1668
1840
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1669
|
-
export const
|
|
1841
|
+
export const marshalIngressNetworkPolicy_IpRangesSchema = z
|
|
1670
1842
|
.object({
|
|
1671
1843
|
ipRanges: z.array(z.string()).optional(),
|
|
1672
1844
|
})
|
|
@@ -1674,7 +1846,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_IpRangesSchema = z
|
|
|
1674
1846
|
ip_ranges: d.ipRanges,
|
|
1675
1847
|
}));
|
|
1676
1848
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1677
|
-
export const
|
|
1849
|
+
export const marshalIngressNetworkPolicy_LakebaseRuntimeDestinationSchema = z
|
|
1678
1850
|
.object({
|
|
1679
1851
|
allDestinations: z.boolean().optional(),
|
|
1680
1852
|
})
|
|
@@ -1682,14 +1854,14 @@ export const marshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinatio
|
|
|
1682
1854
|
all_destinations: d.allDestinations,
|
|
1683
1855
|
}));
|
|
1684
1856
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1685
|
-
export const
|
|
1857
|
+
export const marshalIngressNetworkPolicy_PrivateAccessSchema = z
|
|
1686
1858
|
.object({
|
|
1687
1859
|
restrictionMode: z.string().optional(),
|
|
1688
1860
|
denyRules: z
|
|
1689
|
-
.array(z.lazy(() =>
|
|
1861
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
1690
1862
|
.optional(),
|
|
1691
1863
|
allowRules: z
|
|
1692
|
-
.array(z.lazy(() =>
|
|
1864
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
1693
1865
|
.optional(),
|
|
1694
1866
|
})
|
|
1695
1867
|
.transform(d => ({
|
|
@@ -1698,16 +1870,16 @@ export const marshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema = z
|
|
|
1698
1870
|
allow_rules: d.allowRules,
|
|
1699
1871
|
}));
|
|
1700
1872
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1701
|
-
export const
|
|
1873
|
+
export const marshalIngressNetworkPolicy_PrivateIngressRuleSchema = z
|
|
1702
1874
|
.object({
|
|
1703
1875
|
origin: z
|
|
1704
|
-
.lazy(() =>
|
|
1876
|
+
.lazy(() => marshalIngressNetworkPolicy_PrivateRequestOriginSchema)
|
|
1705
1877
|
.optional(),
|
|
1706
1878
|
destination: z
|
|
1707
|
-
.lazy(() =>
|
|
1879
|
+
.lazy(() => marshalIngressNetworkPolicy_RequestDestinationSchema)
|
|
1708
1880
|
.optional(),
|
|
1709
1881
|
authentication: z
|
|
1710
|
-
.lazy(() =>
|
|
1882
|
+
.lazy(() => marshalIngressNetworkPolicy_AuthenticationSchema)
|
|
1711
1883
|
.optional(),
|
|
1712
1884
|
label: z.string().optional(),
|
|
1713
1885
|
})
|
|
@@ -1718,13 +1890,13 @@ export const marshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema
|
|
|
1718
1890
|
label: d.label,
|
|
1719
1891
|
}));
|
|
1720
1892
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1721
|
-
export const
|
|
1893
|
+
export const marshalIngressNetworkPolicy_PrivateRequestOriginSchema = z
|
|
1722
1894
|
.object({
|
|
1723
1895
|
source: z
|
|
1724
1896
|
.discriminatedUnion('$case', [
|
|
1725
1897
|
z.object({
|
|
1726
1898
|
$case: z.literal('endpoints'),
|
|
1727
|
-
endpoints: z.lazy(() =>
|
|
1899
|
+
endpoints: z.lazy(() => marshalIngressNetworkPolicy_EndpointsSchema),
|
|
1728
1900
|
}),
|
|
1729
1901
|
z.object({
|
|
1730
1902
|
$case: z.literal('allRegisteredEndpoints'),
|
|
@@ -1754,14 +1926,14 @@ export const marshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSchem
|
|
|
1754
1926
|
}),
|
|
1755
1927
|
}));
|
|
1756
1928
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1757
|
-
export const
|
|
1929
|
+
export const marshalIngressNetworkPolicy_PublicAccessSchema = z
|
|
1758
1930
|
.object({
|
|
1759
1931
|
restrictionMode: z.string().optional(),
|
|
1760
1932
|
denyRules: z
|
|
1761
|
-
.array(z.lazy(() =>
|
|
1933
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
1762
1934
|
.optional(),
|
|
1763
1935
|
allowRules: z
|
|
1764
|
-
.array(z.lazy(() =>
|
|
1936
|
+
.array(z.lazy(() => marshalIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
1765
1937
|
.optional(),
|
|
1766
1938
|
})
|
|
1767
1939
|
.transform(d => ({
|
|
@@ -1770,16 +1942,16 @@ export const marshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema = z
|
|
|
1770
1942
|
allow_rules: d.allowRules,
|
|
1771
1943
|
}));
|
|
1772
1944
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1773
|
-
export const
|
|
1945
|
+
export const marshalIngressNetworkPolicy_PublicIngressRuleSchema = z
|
|
1774
1946
|
.object({
|
|
1775
1947
|
origin: z
|
|
1776
|
-
.lazy(() =>
|
|
1948
|
+
.lazy(() => marshalIngressNetworkPolicy_PublicRequestOriginSchema)
|
|
1777
1949
|
.optional(),
|
|
1778
1950
|
destination: z
|
|
1779
|
-
.lazy(() =>
|
|
1951
|
+
.lazy(() => marshalIngressNetworkPolicy_RequestDestinationSchema)
|
|
1780
1952
|
.optional(),
|
|
1781
1953
|
authentication: z
|
|
1782
|
-
.lazy(() =>
|
|
1954
|
+
.lazy(() => marshalIngressNetworkPolicy_AuthenticationSchema)
|
|
1783
1955
|
.optional(),
|
|
1784
1956
|
label: z.string().optional(),
|
|
1785
1957
|
})
|
|
@@ -1790,18 +1962,18 @@ export const marshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema =
|
|
|
1790
1962
|
label: d.label,
|
|
1791
1963
|
}));
|
|
1792
1964
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1793
|
-
export const
|
|
1965
|
+
export const marshalIngressNetworkPolicy_PublicRequestOriginSchema = z
|
|
1794
1966
|
.object({
|
|
1795
1967
|
source: z
|
|
1796
1968
|
.discriminatedUnion('$case', [
|
|
1797
1969
|
z.object({ $case: z.literal('allIpRanges'), allIpRanges: z.boolean() }),
|
|
1798
1970
|
z.object({
|
|
1799
1971
|
$case: z.literal('includedIpRanges'),
|
|
1800
|
-
includedIpRanges: z.lazy(() =>
|
|
1972
|
+
includedIpRanges: z.lazy(() => marshalIngressNetworkPolicy_IpRangesSchema),
|
|
1801
1973
|
}),
|
|
1802
1974
|
z.object({
|
|
1803
1975
|
$case: z.literal('excludedIpRanges'),
|
|
1804
|
-
excludedIpRanges: z.lazy(() =>
|
|
1976
|
+
excludedIpRanges: z.lazy(() => marshalIngressNetworkPolicy_IpRangesSchema),
|
|
1805
1977
|
}),
|
|
1806
1978
|
])
|
|
1807
1979
|
.optional(),
|
|
@@ -1818,29 +1990,29 @@ export const marshalCustomerFacingIngressNetworkPolicy_PublicRequestOriginSchema
|
|
|
1818
1990
|
}),
|
|
1819
1991
|
}));
|
|
1820
1992
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1821
|
-
export const
|
|
1993
|
+
export const marshalIngressNetworkPolicy_RequestDestinationSchema = z
|
|
1822
1994
|
.object({
|
|
1823
1995
|
allDestinations: z.boolean().optional(),
|
|
1824
1996
|
workspaceUi: z
|
|
1825
|
-
.lazy(() =>
|
|
1997
|
+
.lazy(() => marshalIngressNetworkPolicy_WorkspaceUiDestinationSchema)
|
|
1826
1998
|
.optional(),
|
|
1827
1999
|
workspaceApi: z
|
|
1828
|
-
.lazy(() =>
|
|
2000
|
+
.lazy(() => marshalIngressNetworkPolicy_WorkspaceApiDestinationSchema)
|
|
1829
2001
|
.optional(),
|
|
1830
2002
|
appsRuntime: z
|
|
1831
|
-
.lazy(() =>
|
|
2003
|
+
.lazy(() => marshalIngressNetworkPolicy_AppsRuntimeDestinationSchema)
|
|
1832
2004
|
.optional(),
|
|
1833
2005
|
lakebaseRuntime: z
|
|
1834
|
-
.lazy(() =>
|
|
2006
|
+
.lazy(() => marshalIngressNetworkPolicy_LakebaseRuntimeDestinationSchema)
|
|
1835
2007
|
.optional(),
|
|
1836
2008
|
accountUi: z
|
|
1837
|
-
.lazy(() =>
|
|
2009
|
+
.lazy(() => marshalIngressNetworkPolicy_AccountUiDestinationSchema)
|
|
1838
2010
|
.optional(),
|
|
1839
2011
|
accountApi: z
|
|
1840
|
-
.lazy(() =>
|
|
2012
|
+
.lazy(() => marshalIngressNetworkPolicy_AccountApiDestinationSchema)
|
|
1841
2013
|
.optional(),
|
|
1842
2014
|
accountDatabricksOne: z
|
|
1843
|
-
.lazy(() =>
|
|
2015
|
+
.lazy(() => marshalIngressNetworkPolicy_AccountDatabricksOneDestinationSchema)
|
|
1844
2016
|
.optional(),
|
|
1845
2017
|
})
|
|
1846
2018
|
.transform(d => ({
|
|
@@ -1854,7 +2026,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema
|
|
|
1854
2026
|
account_databricks_one: d.accountDatabricksOne,
|
|
1855
2027
|
}));
|
|
1856
2028
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1857
|
-
export const
|
|
2029
|
+
export const marshalIngressNetworkPolicy_WorkspaceApiDestinationSchema = z
|
|
1858
2030
|
.object({
|
|
1859
2031
|
scopes: z.array(z.string()).optional(),
|
|
1860
2032
|
scopeQualifier: z.string().optional(),
|
|
@@ -1864,7 +2036,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSc
|
|
|
1864
2036
|
scope_qualifier: d.scopeQualifier,
|
|
1865
2037
|
}));
|
|
1866
2038
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1867
|
-
export const
|
|
2039
|
+
export const marshalIngressNetworkPolicy_WorkspaceIdListSchema = z
|
|
1868
2040
|
.object({
|
|
1869
2041
|
workspaceIds: z.array(z.bigint()).optional(),
|
|
1870
2042
|
})
|
|
@@ -1872,14 +2044,14 @@ export const marshalCustomerFacingIngressNetworkPolicy_WorkspaceIdListSchema = z
|
|
|
1872
2044
|
workspace_ids: d.workspaceIds,
|
|
1873
2045
|
}));
|
|
1874
2046
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1875
|
-
export const
|
|
2047
|
+
export const marshalIngressNetworkPolicy_WorkspaceUiDestinationSchema = z
|
|
1876
2048
|
.object({
|
|
1877
2049
|
allDestinations: z.boolean().optional(),
|
|
1878
2050
|
})
|
|
1879
2051
|
.transform(d => ({
|
|
1880
2052
|
all_destinations: d.allDestinations,
|
|
1881
2053
|
}));
|
|
1882
|
-
export const
|
|
2054
|
+
export const marshalNetworkConnectivityConfigAwsPrivateEndpointRuleSchema = z
|
|
1883
2055
|
.object({
|
|
1884
2056
|
ruleId: z.string().optional(),
|
|
1885
2057
|
networkConnectivityConfigId: z.string().optional(),
|
|
@@ -1912,7 +2084,7 @@ export const marshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRul
|
|
|
1912
2084
|
enabled: d.enabled,
|
|
1913
2085
|
error_message: d.errorMessage,
|
|
1914
2086
|
}));
|
|
1915
|
-
export const
|
|
2087
|
+
export const marshalNetworkConnectivityConfigAzurePrivateEndpointRuleSchema = z
|
|
1916
2088
|
.object({
|
|
1917
2089
|
ruleId: z.string().optional(),
|
|
1918
2090
|
networkConnectivityConfigId: z.string().optional(),
|
|
@@ -1941,203 +2113,6 @@ export const marshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointR
|
|
|
1941
2113
|
domain_names: d.domainNames,
|
|
1942
2114
|
error_message: d.errorMessage,
|
|
1943
2115
|
}));
|
|
1944
|
-
export const marshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema = z
|
|
1945
|
-
.object({
|
|
1946
|
-
defaultRules: z
|
|
1947
|
-
.lazy(() => marshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema)
|
|
1948
|
-
.optional(),
|
|
1949
|
-
targetRules: z
|
|
1950
|
-
.lazy(() => marshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema)
|
|
1951
|
-
.optional(),
|
|
1952
|
-
})
|
|
1953
|
-
.transform(d => ({
|
|
1954
|
-
default_rules: d.defaultRules,
|
|
1955
|
-
target_rules: d.targetRules,
|
|
1956
|
-
}));
|
|
1957
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1958
|
-
export const marshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema = z
|
|
1959
|
-
.object({
|
|
1960
|
-
azurePrivateEndpointRules: z
|
|
1961
|
-
.array(z.lazy(() => marshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRuleSchema))
|
|
1962
|
-
.optional(),
|
|
1963
|
-
awsPrivateEndpointRules: z
|
|
1964
|
-
.array(z.lazy(() => marshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema))
|
|
1965
|
-
.optional(),
|
|
1966
|
-
})
|
|
1967
|
-
.transform(d => ({
|
|
1968
|
-
azure_private_endpoint_rules: d.azurePrivateEndpointRules,
|
|
1969
|
-
aws_private_endpoint_rules: d.awsPrivateEndpointRules,
|
|
1970
|
-
}));
|
|
1971
|
-
export const marshalCustomerFacingPrivateAccessSettingsSchema = z
|
|
1972
|
-
.object({
|
|
1973
|
-
privateAccessSettingsId: z.string().optional(),
|
|
1974
|
-
accountId: z.string().optional(),
|
|
1975
|
-
privateAccessSettingsName: z.string().optional(),
|
|
1976
|
-
region: z.string().optional(),
|
|
1977
|
-
publicAccessEnabled: z.boolean().optional(),
|
|
1978
|
-
privateAccessLevel: z.string().optional(),
|
|
1979
|
-
allowedVpcEndpointIds: z.array(z.string()).optional(),
|
|
1980
|
-
})
|
|
1981
|
-
.transform(d => ({
|
|
1982
|
-
private_access_settings_id: d.privateAccessSettingsId,
|
|
1983
|
-
account_id: d.accountId,
|
|
1984
|
-
private_access_settings_name: d.privateAccessSettingsName,
|
|
1985
|
-
region: d.region,
|
|
1986
|
-
public_access_enabled: d.publicAccessEnabled,
|
|
1987
|
-
private_access_level: d.privateAccessLevel,
|
|
1988
|
-
allowed_vpc_endpoint_ids: d.allowedVpcEndpointIds,
|
|
1989
|
-
}));
|
|
1990
|
-
export const marshalEgressNetworkPolicySchema = z
|
|
1991
|
-
.object({
|
|
1992
|
-
networkAccess: z
|
|
1993
|
-
.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicySchema)
|
|
1994
|
-
.optional(),
|
|
1995
|
-
})
|
|
1996
|
-
.transform(d => ({
|
|
1997
|
-
network_access: d.networkAccess,
|
|
1998
|
-
}));
|
|
1999
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2000
|
-
export const marshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
|
|
2001
|
-
.object({
|
|
2002
|
-
restrictionMode: z.string().optional(),
|
|
2003
|
-
allowedInternetDestinations: z
|
|
2004
|
-
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
2005
|
-
.optional(),
|
|
2006
|
-
allowedStorageDestinations: z
|
|
2007
|
-
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema))
|
|
2008
|
-
.optional(),
|
|
2009
|
-
policyEnforcement: z
|
|
2010
|
-
.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema)
|
|
2011
|
-
.optional(),
|
|
2012
|
-
blockedInternetDestinations: z
|
|
2013
|
-
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
2014
|
-
.optional(),
|
|
2015
|
-
allowedDatabricksDestinations: z
|
|
2016
|
-
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema))
|
|
2017
|
-
.optional(),
|
|
2018
|
-
})
|
|
2019
|
-
.transform(d => ({
|
|
2020
|
-
restriction_mode: d.restrictionMode,
|
|
2021
|
-
allowed_internet_destinations: d.allowedInternetDestinations,
|
|
2022
|
-
allowed_storage_destinations: d.allowedStorageDestinations,
|
|
2023
|
-
policy_enforcement: d.policyEnforcement,
|
|
2024
|
-
blocked_internet_destinations: d.blockedInternetDestinations,
|
|
2025
|
-
allowed_databricks_destinations: d.allowedDatabricksDestinations,
|
|
2026
|
-
}));
|
|
2027
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2028
|
-
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema = z
|
|
2029
|
-
.object({
|
|
2030
|
-
workspaceIds: z.array(z.bigint()).optional(),
|
|
2031
|
-
})
|
|
2032
|
-
.transform(d => ({
|
|
2033
|
-
workspace_ids: d.workspaceIds,
|
|
2034
|
-
}));
|
|
2035
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2036
|
-
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
|
|
2037
|
-
.object({
|
|
2038
|
-
destination: z.string().optional(),
|
|
2039
|
-
internetDestinationType: z.string().optional(),
|
|
2040
|
-
})
|
|
2041
|
-
.transform(d => ({
|
|
2042
|
-
destination: d.destination,
|
|
2043
|
-
internet_destination_type: d.internetDestinationType,
|
|
2044
|
-
}));
|
|
2045
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2046
|
-
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
|
|
2047
|
-
.object({
|
|
2048
|
-
enforcementMode: z.string().optional(),
|
|
2049
|
-
dryRunModeProductFilter: z.array(z.string()).optional(),
|
|
2050
|
-
})
|
|
2051
|
-
.transform(d => ({
|
|
2052
|
-
enforcement_mode: d.enforcementMode,
|
|
2053
|
-
dry_run_mode_product_filter: d.dryRunModeProductFilter,
|
|
2054
|
-
}));
|
|
2055
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2056
|
-
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema = z
|
|
2057
|
-
.object({
|
|
2058
|
-
bucketName: z.string().optional(),
|
|
2059
|
-
region: z.string().optional(),
|
|
2060
|
-
storageDestinationType: z.string().optional(),
|
|
2061
|
-
azureStorageAccount: z.string().optional(),
|
|
2062
|
-
azureStorageService: z.string().optional(),
|
|
2063
|
-
})
|
|
2064
|
-
.transform(d => ({
|
|
2065
|
-
bucket_name: d.bucketName,
|
|
2066
|
-
region: d.region,
|
|
2067
|
-
storage_destination_type: d.storageDestinationType,
|
|
2068
|
-
azure_storage_account: d.azureStorageAccount,
|
|
2069
|
-
azure_storage_service: d.azureStorageService,
|
|
2070
|
-
}));
|
|
2071
|
-
export const marshalEndpointSchema = z
|
|
2072
|
-
.object({
|
|
2073
|
-
name: z.string().optional(),
|
|
2074
|
-
endpointId: z.string().optional(),
|
|
2075
|
-
accountId: z.string().optional(),
|
|
2076
|
-
displayName: z.string().optional(),
|
|
2077
|
-
useCase: z.string().optional(),
|
|
2078
|
-
region: z.string().optional(),
|
|
2079
|
-
state: z.string().optional(),
|
|
2080
|
-
endpointInfo: z
|
|
2081
|
-
.discriminatedUnion('$case', [
|
|
2082
|
-
z.object({
|
|
2083
|
-
$case: z.literal('azurePrivateEndpointInfo'),
|
|
2084
|
-
azurePrivateEndpointInfo: z.lazy(() => marshalAzurePrivateEndpointInfoSchema),
|
|
2085
|
-
}),
|
|
2086
|
-
])
|
|
2087
|
-
.optional(),
|
|
2088
|
-
createTime: z
|
|
2089
|
-
.any()
|
|
2090
|
-
.transform((d) => d.toString())
|
|
2091
|
-
.optional(),
|
|
2092
|
-
})
|
|
2093
|
-
.transform(d => ({
|
|
2094
|
-
name: d.name,
|
|
2095
|
-
endpoint_id: d.endpointId,
|
|
2096
|
-
account_id: d.accountId,
|
|
2097
|
-
display_name: d.displayName,
|
|
2098
|
-
use_case: d.useCase,
|
|
2099
|
-
region: d.region,
|
|
2100
|
-
state: d.state,
|
|
2101
|
-
...(d.endpointInfo?.$case === 'azurePrivateEndpointInfo' && {
|
|
2102
|
-
azure_private_endpoint_info: d.endpointInfo.azurePrivateEndpointInfo,
|
|
2103
|
-
}),
|
|
2104
|
-
create_time: d.createTime,
|
|
2105
|
-
}));
|
|
2106
|
-
export const marshalGcpEndpointSchema = z
|
|
2107
|
-
.object({
|
|
2108
|
-
pscEndpointUri: z.string().optional(),
|
|
2109
|
-
targetServices: z
|
|
2110
|
-
.discriminatedUnion('$case', [
|
|
2111
|
-
z.object({
|
|
2112
|
-
$case: z.literal('serviceAttachment'),
|
|
2113
|
-
serviceAttachment: z.string(),
|
|
2114
|
-
}),
|
|
2115
|
-
])
|
|
2116
|
-
.optional(),
|
|
2117
|
-
})
|
|
2118
|
-
.transform(d => ({
|
|
2119
|
-
psc_endpoint_uri: d.pscEndpointUri,
|
|
2120
|
-
...(d.targetServices?.$case === 'serviceAttachment' && {
|
|
2121
|
-
service_attachment: d.targetServices.serviceAttachment,
|
|
2122
|
-
}),
|
|
2123
|
-
}));
|
|
2124
|
-
export const marshalGcpNetworkInfoSchema = z
|
|
2125
|
-
.object({
|
|
2126
|
-
networkProjectId: z.string().optional(),
|
|
2127
|
-
vpcId: z.string().optional(),
|
|
2128
|
-
subnetId: z.string().optional(),
|
|
2129
|
-
subnetRegion: z.string().optional(),
|
|
2130
|
-
podIpRangeName: z.string().optional(),
|
|
2131
|
-
serviceIpRangeName: z.string().optional(),
|
|
2132
|
-
})
|
|
2133
|
-
.transform(d => ({
|
|
2134
|
-
network_project_id: d.networkProjectId,
|
|
2135
|
-
vpc_id: d.vpcId,
|
|
2136
|
-
subnet_id: d.subnetId,
|
|
2137
|
-
subnet_region: d.subnetRegion,
|
|
2138
|
-
pod_ip_range_name: d.podIpRangeName,
|
|
2139
|
-
service_ip_range_name: d.serviceIpRangeName,
|
|
2140
|
-
}));
|
|
2141
2116
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2142
2117
|
export const marshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema = z
|
|
2143
2118
|
.object({
|
|
@@ -2181,6 +2156,25 @@ export const marshalNetworkVpcEndpointsSchema = z
|
|
|
2181
2156
|
rest_api: d.restApi,
|
|
2182
2157
|
dataplane_relay: d.dataplaneRelay,
|
|
2183
2158
|
}));
|
|
2159
|
+
export const marshalPrivateAccessSettingsSchema = z
|
|
2160
|
+
.object({
|
|
2161
|
+
privateAccessSettingsId: z.string().optional(),
|
|
2162
|
+
accountId: z.string().optional(),
|
|
2163
|
+
privateAccessSettingsName: z.string().optional(),
|
|
2164
|
+
region: z.string().optional(),
|
|
2165
|
+
publicAccessEnabled: z.boolean().optional(),
|
|
2166
|
+
privateAccessLevel: z.string().optional(),
|
|
2167
|
+
allowedVpcEndpointIds: z.array(z.string()).optional(),
|
|
2168
|
+
})
|
|
2169
|
+
.transform(d => ({
|
|
2170
|
+
private_access_settings_id: d.privateAccessSettingsId,
|
|
2171
|
+
account_id: d.accountId,
|
|
2172
|
+
private_access_settings_name: d.privateAccessSettingsName,
|
|
2173
|
+
region: d.region,
|
|
2174
|
+
public_access_enabled: d.publicAccessEnabled,
|
|
2175
|
+
private_access_level: d.privateAccessLevel,
|
|
2176
|
+
allowed_vpc_endpoint_ids: d.allowedVpcEndpointIds,
|
|
2177
|
+
}));
|
|
2184
2178
|
export const marshalReplaceAccountIpAccessListRequestSchema = z
|
|
2185
2179
|
.object({
|
|
2186
2180
|
accountId: z.string().optional(),
|
|
@@ -2198,7 +2192,7 @@ export const marshalReplaceAccountIpAccessListRequestSchema = z
|
|
|
2198
2192
|
ip_addresses: d.ipAddresses,
|
|
2199
2193
|
enabled: d.enabled,
|
|
2200
2194
|
}));
|
|
2201
|
-
export const
|
|
2195
|
+
export const marshalReplaceIpAccessListRequestSchema = z
|
|
2202
2196
|
.object({
|
|
2203
2197
|
listId: z.string().optional(),
|
|
2204
2198
|
label: z.string().optional(),
|
|
@@ -2230,7 +2224,7 @@ export const marshalUpdateAccountIpAccessListRequestSchema = z
|
|
|
2230
2224
|
ip_addresses: d.ipAddresses,
|
|
2231
2225
|
enabled: d.enabled,
|
|
2232
2226
|
}));
|
|
2233
|
-
export const
|
|
2227
|
+
export const marshalUpdateIpAccessListRequestSchema = z
|
|
2234
2228
|
.object({
|
|
2235
2229
|
listId: z.string().optional(),
|
|
2236
2230
|
label: z.string().optional(),
|