@databricks/sdk-networking 0.1.0-dev.3 → 0.1.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v1/model.js CHANGED
@@ -2,253 +2,237 @@
2
2
  import { Temporal } from '@js-temporal/polyfill';
3
3
  import { FieldMask } from '@databricks/sdk-core/wkt';
4
4
  import { z } from 'zod';
5
- export var CustomerFacingVpcEndpointUseCase;
6
- (function (CustomerFacingVpcEndpointUseCase) {
7
- CustomerFacingVpcEndpointUseCase["WORKSPACE_ACCESS"] = "WORKSPACE_ACCESS";
8
- CustomerFacingVpcEndpointUseCase["DATAPLANE_RELAY_ACCESS"] = "DATAPLANE_RELAY_ACCESS";
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
9
  /** General access, replaces WORKSPACE_ACCESS in customer-facing API. */
10
- CustomerFacingVpcEndpointUseCase["GENERAL_ACCESS"] = "GENERAL_ACCESS";
11
- })(CustomerFacingVpcEndpointUseCase || (CustomerFacingVpcEndpointUseCase = {}));
10
+ GENERAL_ACCESS: 'GENERAL_ACCESS',
11
+ };
12
12
  /**
13
13
  * The target resources that are supported by Network Connectivity Config.
14
14
  * Note: some egress types can support general types that are not defined in EgressResourceType.
15
15
  * E.g.: Azure private endpoint supports private link enabled Azure services.
16
16
  */
17
- export var EgressResourceType;
18
- (function (EgressResourceType) {
19
- EgressResourceType["EGRESS_RESOURCE_TYPE_UNSPECIFIED"] = "EGRESS_RESOURCE_TYPE_UNSPECIFIED";
20
- EgressResourceType["AZURE_BLOB_STORAGE"] = "AZURE_BLOB_STORAGE";
21
- })(EgressResourceType || (EgressResourceType = {}));
22
- export var EndpointState;
23
- (function (EndpointState) {
17
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
18
+ export const EgressResourceType = {
19
+ EGRESS_RESOURCE_TYPE_UNSPECIFIED: 'EGRESS_RESOURCE_TYPE_UNSPECIFIED',
20
+ AZURE_BLOB_STORAGE: 'AZURE_BLOB_STORAGE',
21
+ };
22
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
23
+ export const EndpointState = {
24
24
  /** The endpoint is pending approval. */
25
- EndpointState["PENDING"] = "PENDING";
25
+ PENDING: 'PENDING',
26
26
  /** The endpoint has been approved and is ready for use. */
27
- EndpointState["APPROVED"] = "APPROVED";
27
+ APPROVED: 'APPROVED',
28
28
  /** The endpoint encountered some issues during setup. */
29
- EndpointState["FAILED"] = "FAILED";
29
+ FAILED: 'FAILED',
30
30
  /** The endpoint was once established but later disconnected. This endpoint doesn't provide connectivity. */
31
- EndpointState["DISCONNECTED"] = "DISCONNECTED";
32
- })(EndpointState || (EndpointState = {}));
31
+ DISCONNECTED: 'DISCONNECTED',
32
+ };
33
33
  /**
34
34
  * Type of IP access list. Valid values are as follows and are case-sensitive:
35
35
  *
36
36
  * * `ALLOW`: An allow list. Include this IP or range.
37
37
  * * `BLOCK`: A block list. Exclude this IP or range. IP addresses in the block list are excluded even if they are included in an allow list.
38
38
  */
39
- export var IpAccessListType;
40
- (function (IpAccessListType) {
41
- IpAccessListType["ALLOW"] = "ALLOW";
39
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
40
+ export const IpAccessListType = {
41
+ ALLOW: 'ALLOW',
42
42
  /** Blocks the associated CIDRs. */
43
- IpAccessListType["BLOCK"] = "BLOCK";
44
- })(IpAccessListType || (IpAccessListType = {}));
45
- export var PrivateAccessLevel;
46
- (function (PrivateAccessLevel) {
43
+ BLOCK: 'BLOCK',
44
+ };
45
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
46
+ export const PrivateAccessLevel = {
47
47
  /** Only specifically listed endpoints can access my workspace */
48
- PrivateAccessLevel["ENDPOINT"] = "ENDPOINT";
48
+ ENDPOINT: 'ENDPOINT',
49
49
  /** Only endpoints in the same account can access my workspace */
50
- PrivateAccessLevel["ACCOUNT"] = "ACCOUNT";
51
- })(PrivateAccessLevel || (PrivateAccessLevel = {}));
52
- export var VpcStatus;
53
- (function (VpcStatus) {
54
- VpcStatus["VALID"] = "VALID";
55
- VpcStatus["BROKEN"] = "BROKEN";
56
- VpcStatus["UNATTACHED"] = "UNATTACHED";
50
+ ACCOUNT: 'ACCOUNT',
51
+ };
52
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
53
+ export const VpcStatus = {
54
+ VALID: 'VALID',
55
+ BROKEN: 'BROKEN',
56
+ UNATTACHED: 'UNATTACHED',
57
57
  /** Some optional tests are failing for this Vpc, see NetworkWarning for more information */
58
- VpcStatus["WARNED"] = "WARNED";
59
- })(VpcStatus || (VpcStatus = {}));
58
+ WARNED: 'WARNED',
59
+ };
60
60
  /**
61
61
  * Type of IP access list. Valid values are as follows and are case-sensitive:
62
62
  *
63
63
  * * `ALLOW`: An allow list. Include this IP or range.
64
64
  * * `BLOCK`: A block list. Exclude this IP or range. IP addresses in the block list are excluded even if they are included in an allow list.
65
65
  */
66
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
67
- export var AccountIpAccessListType_IpAccessListType;
68
- (function (AccountIpAccessListType_IpAccessListType) {
66
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
67
+ export const AccountIpAccessListType_IpAccessListType = {
69
68
  /** Allows the associated CIDRs. */
70
- AccountIpAccessListType_IpAccessListType["ALLOW"] = "ALLOW";
69
+ ALLOW: 'ALLOW',
71
70
  /** Blocks the associated CIDRs. */
72
- AccountIpAccessListType_IpAccessListType["BLOCK"] = "BLOCK";
73
- })(AccountIpAccessListType_IpAccessListType || (AccountIpAccessListType_IpAccessListType = {}));
71
+ BLOCK: 'BLOCK',
72
+ };
74
73
  /**
75
74
  * Qualifies the breadth of API access permitted by an ingress network policy rule.
76
75
  * API_SCOPE_QUALIFIER_READ narrows matching to read-only variants of the listed scopes;
77
76
  * API_SCOPE_QUALIFIER_ALL matches any scope. When unset, scopes match exactly as listed.
78
77
  */
79
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
80
- export var CustomerFacingIngressNetworkPolicy_ApiScopeQualifier;
81
- (function (CustomerFacingIngressNetworkPolicy_ApiScopeQualifier) {
78
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
79
+ export const CustomerFacingIngressNetworkPolicy_ApiScopeQualifier = {
82
80
  /** Narrows matching to read-only variants of the listed scopes (e.g. GET/HEAD requests). */
83
- CustomerFacingIngressNetworkPolicy_ApiScopeQualifier["API_SCOPE_QUALIFIER_READ"] = "API_SCOPE_QUALIFIER_READ";
81
+ API_SCOPE_QUALIFIER_READ: 'API_SCOPE_QUALIFIER_READ',
84
82
  /** Matches any scope regardless of access level. */
85
- CustomerFacingIngressNetworkPolicy_ApiScopeQualifier["API_SCOPE_QUALIFIER_ALL"] = "API_SCOPE_QUALIFIER_ALL";
86
- })(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier || (CustomerFacingIngressNetworkPolicy_ApiScopeQualifier = {}));
87
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
88
- export var CustomerFacingIngressNetworkPolicy_Authentication_IdentityType;
89
- (function (CustomerFacingIngressNetworkPolicy_Authentication_IdentityType) {
90
- CustomerFacingIngressNetworkPolicy_Authentication_IdentityType["IDENTITY_TYPE_UNSPECIFIED"] = "IDENTITY_TYPE_UNSPECIFIED";
91
- CustomerFacingIngressNetworkPolicy_Authentication_IdentityType["IDENTITY_TYPE_ALL_USERS"] = "IDENTITY_TYPE_ALL_USERS";
92
- CustomerFacingIngressNetworkPolicy_Authentication_IdentityType["IDENTITY_TYPE_ALL_SERVICE_PRINCIPALS"] = "IDENTITY_TYPE_ALL_SERVICE_PRINCIPALS";
93
- CustomerFacingIngressNetworkPolicy_Authentication_IdentityType["IDENTITY_TYPE_SELECTED_IDENTITIES"] = "IDENTITY_TYPE_SELECTED_IDENTITIES";
94
- })(CustomerFacingIngressNetworkPolicy_Authentication_IdentityType || (CustomerFacingIngressNetworkPolicy_Authentication_IdentityType = {}));
95
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
96
- export var CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType;
97
- (function (CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType) {
98
- CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType["PRINCIPAL_TYPE_UNSPECIFIED"] = "PRINCIPAL_TYPE_UNSPECIFIED";
99
- CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType["PRINCIPAL_TYPE_USER"] = "PRINCIPAL_TYPE_USER";
100
- CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType["PRINCIPAL_TYPE_SERVICE_PRINCIPAL"] = "PRINCIPAL_TYPE_SERVICE_PRINCIPAL";
101
- })(CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType || (CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType = {}));
102
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
103
- export var CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode;
104
- (function (CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode) {
105
- CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode["FULL_ACCESS"] = "FULL_ACCESS";
106
- CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode["RESTRICTED_ACCESS"] = "RESTRICTED_ACCESS";
107
- })(CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode || (CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode = {}));
108
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
109
- export var CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode;
110
- (function (CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode) {
111
- CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode["ALLOW_ALL_REGISTERED_ENDPOINTS"] = "ALLOW_ALL_REGISTERED_ENDPOINTS";
112
- CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode["RESTRICTED_ACCESS"] = "RESTRICTED_ACCESS";
113
- })(CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode || (CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode = {}));
114
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
115
- export var CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode;
116
- (function (CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode) {
117
- CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode["FULL_ACCESS"] = "FULL_ACCESS";
118
- CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode["RESTRICTED_ACCESS"] = "RESTRICTED_ACCESS";
119
- })(CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode || (CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode = {}));
120
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
121
- export var CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState;
122
- (function (CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState) {
123
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED"] = "PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED";
83
+ API_SCOPE_QUALIFIER_ALL: 'API_SCOPE_QUALIFIER_ALL',
84
+ };
85
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
86
+ export const CustomerFacingIngressNetworkPolicy_Authentication_IdentityType = {
87
+ IDENTITY_TYPE_UNSPECIFIED: 'IDENTITY_TYPE_UNSPECIFIED',
88
+ IDENTITY_TYPE_ALL_USERS: 'IDENTITY_TYPE_ALL_USERS',
89
+ IDENTITY_TYPE_ALL_SERVICE_PRINCIPALS: 'IDENTITY_TYPE_ALL_SERVICE_PRINCIPALS',
90
+ IDENTITY_TYPE_SELECTED_IDENTITIES: 'IDENTITY_TYPE_SELECTED_IDENTITIES',
91
+ };
92
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
93
+ export const CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType = {
94
+ PRINCIPAL_TYPE_UNSPECIFIED: 'PRINCIPAL_TYPE_UNSPECIFIED',
95
+ PRINCIPAL_TYPE_USER: 'PRINCIPAL_TYPE_USER',
96
+ PRINCIPAL_TYPE_SERVICE_PRINCIPAL: 'PRINCIPAL_TYPE_SERVICE_PRINCIPAL',
97
+ };
98
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
99
+ export const CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode = {
100
+ FULL_ACCESS: 'FULL_ACCESS',
101
+ RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
102
+ };
103
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
104
+ export const CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode = {
105
+ ALLOW_ALL_REGISTERED_ENDPOINTS: 'ALLOW_ALL_REGISTERED_ENDPOINTS',
106
+ RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
107
+ };
108
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
109
+ export const CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode = {
110
+ FULL_ACCESS: 'FULL_ACCESS',
111
+ RESTRICTED_ACCESS: 'RESTRICTED_ACCESS',
112
+ };
113
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
114
+ export const CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState = {
115
+ PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED: 'PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED',
124
116
  /** The endpoint has been approved and is ready to use in your serverless compute resources. */
125
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["ESTABLISHED"] = "ESTABLISHED";
117
+ ESTABLISHED: 'ESTABLISHED',
126
118
  /** Connection was rejected by the private link resource owner. */
127
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["REJECTED"] = "REJECTED";
119
+ REJECTED: 'REJECTED',
128
120
  /**
129
121
  * Connection was removed by the private link resource owner, the private endpoint becomes informative and should
130
122
  * be deleted for clean-up.
131
123
  */
132
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["DISCONNECTED"] = "DISCONNECTED";
124
+ DISCONNECTED: 'DISCONNECTED',
133
125
  /** If the endpoint is created but not approved in 14 days, it is EXPIRED. */
134
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["EXPIRED"] = "EXPIRED";
126
+ EXPIRED: 'EXPIRED',
135
127
  /** The endpoint has been created and pending approval. */
136
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["PENDING"] = "PENDING";
128
+ PENDING: 'PENDING',
137
129
  /** The endpoint creation is in progress. */
138
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["CREATING"] = "CREATING";
130
+ CREATING: 'CREATING',
139
131
  /** The endpoint creation failed. */
140
- CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["CREATE_FAILED"] = "CREATE_FAILED";
141
- })(CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState || (CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState = {}));
142
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
143
- export var CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState;
144
- (function (CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState) {
145
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED"] = "PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED";
132
+ CREATE_FAILED: 'CREATE_FAILED',
133
+ };
134
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
135
+ export const CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState = {
136
+ PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED: 'PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED',
146
137
  /** The endpoint has been created and pending approval. */
147
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["INIT"] = "INIT";
138
+ INIT: 'INIT',
148
139
  /** The endpoint has been approved and is ready to use in your serverless compute resources. */
149
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["ESTABLISHED"] = "ESTABLISHED";
140
+ ESTABLISHED: 'ESTABLISHED',
150
141
  /** Connection was rejected by the private link resource owner. */
151
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["REJECTED"] = "REJECTED";
142
+ REJECTED: 'REJECTED',
152
143
  /**
153
144
  * Connection was removed by the private link resource owner, the private endpoint becomes informative and should
154
145
  * be deleted for clean-up.
155
146
  */
156
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["DISCONNECTED"] = "DISCONNECTED";
147
+ DISCONNECTED: 'DISCONNECTED',
157
148
  /** If the endpoint was created but not approved in 14 days, it will be EXPIRED. */
158
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["EXPIRED"] = "EXPIRED";
149
+ EXPIRED: 'EXPIRED',
159
150
  /** The endpoint has been created and pending approval. */
160
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["PENDING"] = "PENDING";
151
+ PENDING: 'PENDING',
161
152
  /** The endpoint creation is in progress. */
162
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["CREATING"] = "CREATING";
153
+ CREATING: 'CREATING',
163
154
  /** The endpoint creation failed. */
164
- CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["CREATE_FAILED"] = "CREATE_FAILED";
165
- })(CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState || (CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState = {}));
166
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
167
- export var EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType;
168
- (function (EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType) {
169
- EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType["INTERNET_DESTINATION_TYPE_UNSPECIFIED"] = "INTERNET_DESTINATION_TYPE_UNSPECIFIED";
155
+ CREATE_FAILED: 'CREATE_FAILED',
156
+ };
157
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
158
+ export const EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType = {
159
+ INTERNET_DESTINATION_TYPE_UNSPECIFIED: 'INTERNET_DESTINATION_TYPE_UNSPECIFIED',
170
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. */
171
- EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType["DNS_NAME"] = "DNS_NAME";
172
- })(EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType || (EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType = {}));
161
+ DNS_NAME: 'DNS_NAME',
162
+ };
173
163
  /** The values should match the list of workloads used in networkconfig.proto */
174
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
175
- export var EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter;
176
- (function (EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter) {
177
- EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter["DRY_RUN_MODE_PRODUCT_FILTER_UNSPECIFIED"] = "DRY_RUN_MODE_PRODUCT_FILTER_UNSPECIFIED";
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',
178
167
  /** SQL Warehouse product */
179
- EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter["DBSQL"] = "DBSQL";
168
+ DBSQL: 'DBSQL',
180
169
  /** Machine Learning serving product */
181
- EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter["ML_SERVING"] = "ML_SERVING";
182
- })(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter || (EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter = {}));
183
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
184
- export var EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode;
185
- (function (EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode) {
186
- EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode["ENFORCEMENT_MODE_UNSPECIFIED"] = "ENFORCEMENT_MODE_UNSPECIFIED";
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',
187
175
  /** Blocks traffic that violates network policy. This is the default mode. */
188
- EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode["ENFORCED"] = "ENFORCED";
176
+ ENFORCED: 'ENFORCED',
189
177
  /** Logs violations without blocking traffic. Useful for testing policies before enforcement. */
190
- EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode["DRY_RUN"] = "DRY_RUN";
191
- })(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode || (EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode = {}));
178
+ DRY_RUN: 'DRY_RUN',
179
+ };
192
180
  /**
193
181
  * At which level can <Databricks> and <Databricks> managed compute access Internet.
194
182
  * FULL_ACCESS: <Databricks> can access Internet. No blocking rules will apply.
195
183
  * RESTRICTED_ACCESS: <Databricks> can only access explicitly allowed internet and storage destinations,
196
184
  * as well as UC connections and external locations.
197
185
  */
198
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
199
- export var EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode;
200
- (function (EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode) {
201
- EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode["RESTRICTION_MODE_UNSPECIFIED"] = "RESTRICTION_MODE_UNSPECIFIED";
202
- EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode["FULL_ACCESS"] = "FULL_ACCESS";
203
- EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode["RESTRICTED_ACCESS"] = "RESTRICTED_ACCESS";
204
- })(EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode || (EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode = {}));
205
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
206
- export var EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType;
207
- (function (EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType) {
208
- EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType["STORAGE_DESTINATION_TYPE_UNSPECIFIED"] = "STORAGE_DESTINATION_TYPE_UNSPECIFIED";
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',
209
195
  /**
210
196
  * AWS_S3 can be used both for direct AWS S3 access and for cross-cloud access from Azure and GCP
211
197
  * When used in an Azure/GCP context, this indicates cross-cloud access from Azure/GCP to the specified S3 bucket
212
198
  */
213
- EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType["AWS_S3"] = "AWS_S3";
214
- EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType["AZURE_STORAGE"] = "AZURE_STORAGE";
215
- EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType["GOOGLE_CLOUD_STORAGE"] = "GOOGLE_CLOUD_STORAGE";
216
- })(EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType || (EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType = {}));
217
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
218
- export var EndpointUseCase_EndpointUseCase;
219
- (function (EndpointUseCase_EndpointUseCase) {
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 = {
220
205
  /** service-direct frontend private link connectivity. */
221
- EndpointUseCase_EndpointUseCase["SERVICE_DIRECT"] = "SERVICE_DIRECT";
222
- })(EndpointUseCase_EndpointUseCase || (EndpointUseCase_EndpointUseCase = {}));
223
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
224
- export var NccPrivateEndpointRule_PrivateLinkConnectionState;
225
- (function (NccPrivateEndpointRule_PrivateLinkConnectionState) {
226
- NccPrivateEndpointRule_PrivateLinkConnectionState["PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED"] = "PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED";
206
+ SERVICE_DIRECT: 'SERVICE_DIRECT',
207
+ };
208
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
209
+ export const NccPrivateEndpointRule_PrivateLinkConnectionState = {
210
+ PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED: 'PRIVATE_LINK_CONNECTION_STATE_UNSPECIFIED',
227
211
  /** The endpoint has been approved and is ready to use in your serverless compute resources. */
228
- NccPrivateEndpointRule_PrivateLinkConnectionState["ESTABLISHED"] = "ESTABLISHED";
212
+ ESTABLISHED: 'ESTABLISHED',
229
213
  /** Connection was rejected by the private link resource owner. */
230
- NccPrivateEndpointRule_PrivateLinkConnectionState["REJECTED"] = "REJECTED";
214
+ REJECTED: 'REJECTED',
231
215
  /**
232
216
  * Connection was removed by the private link resource owner, the private endpoint becomes informative and should
233
217
  * be deleted for clean-up.
234
218
  */
235
- NccPrivateEndpointRule_PrivateLinkConnectionState["DISCONNECTED"] = "DISCONNECTED";
219
+ DISCONNECTED: 'DISCONNECTED',
236
220
  /** If the endpoint was created but not approved in 14 days, it will be EXPIRED. */
237
- NccPrivateEndpointRule_PrivateLinkConnectionState["EXPIRED"] = "EXPIRED";
221
+ EXPIRED: 'EXPIRED',
238
222
  /** The endpoint has been created and pending approval. */
239
- NccPrivateEndpointRule_PrivateLinkConnectionState["PENDING"] = "PENDING";
223
+ PENDING: 'PENDING',
240
224
  /** The endpoint creation is in progress. */
241
- NccPrivateEndpointRule_PrivateLinkConnectionState["CREATING"] = "CREATING";
225
+ CREATING: 'CREATING',
242
226
  /** The endpoint creation failed. */
243
- NccPrivateEndpointRule_PrivateLinkConnectionState["CREATE_FAILED"] = "CREATE_FAILED";
244
- })(NccPrivateEndpointRule_PrivateLinkConnectionState || (NccPrivateEndpointRule_PrivateLinkConnectionState = {}));
227
+ CREATE_FAILED: 'CREATE_FAILED',
228
+ };
245
229
  export const unmarshalAccountIpAccessListSchema = z
246
230
  .object({
247
231
  list_id: z.string().optional(),
248
232
  label: z.string().optional(),
249
233
  ip_addresses: z.array(z.string()).optional(),
250
234
  address_count: z.number().optional(),
251
- list_type: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
235
+ list_type: z.string().optional(),
252
236
  created_at: z
253
237
  .union([z.number(), z.bigint()])
254
238
  .transform(v => BigInt(v))
@@ -363,9 +347,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicySchema = z
363
347
  export const unmarshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSchema = z
364
348
  .object({
365
349
  scopes: z.array(z.string()).optional(),
366
- scope_qualifier: z
367
- .enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
368
- .optional(),
350
+ scope_qualifier: z.string().optional(),
369
351
  })
370
352
  .transform(d => ({
371
353
  scopes: d.scopes,
@@ -398,9 +380,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationS
398
380
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
399
381
  export const unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema = z
400
382
  .object({
401
- identity_type: z
402
- .enum(CustomerFacingIngressNetworkPolicy_Authentication_IdentityType)
403
- .optional(),
383
+ identity_type: z.string().optional(),
404
384
  identities: z
405
385
  .array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema))
406
386
  .optional(),
@@ -412,9 +392,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema =
412
392
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
413
393
  export const unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema = z
414
394
  .object({
415
- principal_type: z
416
- .enum(CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType)
417
- .optional(),
395
+ principal_type: z.string().optional(),
418
396
  principal_id: z
419
397
  .union([z.number(), z.bigint()])
420
398
  .transform(v => BigInt(v))
@@ -427,9 +405,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentityS
427
405
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
428
406
  export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
429
407
  .object({
430
- restriction_mode: z
431
- .enum(CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode)
432
- .optional(),
408
+ restriction_mode: z.string().optional(),
433
409
  deny_rules: z
434
410
  .array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
435
411
  .optional(),
@@ -510,9 +486,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinat
510
486
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
511
487
  export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema = z
512
488
  .object({
513
- restriction_mode: z
514
- .enum(CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode)
515
- .optional(),
489
+ restriction_mode: z.string().optional(),
516
490
  deny_rules: z
517
491
  .array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema))
518
492
  .optional(),
@@ -578,9 +552,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSch
578
552
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
579
553
  export const unmarshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema = z
580
554
  .object({
581
- restriction_mode: z
582
- .enum(CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode)
583
- .optional(),
555
+ restriction_mode: z.string().optional(),
584
556
  deny_rules: z
585
557
  .array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema))
586
558
  .optional(),
@@ -679,9 +651,7 @@ export const unmarshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchem
679
651
  export const unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSchema = z
680
652
  .object({
681
653
  scopes: z.array(z.string()).optional(),
682
- scope_qualifier: z
683
- .enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
684
- .optional(),
654
+ scope_qualifier: z.string().optional(),
685
655
  })
686
656
  .transform(d => ({
687
657
  scopes: d.scopes,
@@ -741,9 +711,7 @@ export const unmarshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointR
741
711
  domain_names: z.array(z.string()).optional(),
742
712
  resource_names: z.array(z.string()).optional(),
743
713
  vpc_endpoint_id: z.string().optional(),
744
- connection_state: z
745
- .enum(CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState)
746
- .optional(),
714
+ connection_state: z.string().optional(),
747
715
  creation_time: z
748
716
  .union([z.number(), z.bigint()])
749
717
  .transform(v => BigInt(v))
@@ -783,9 +751,7 @@ export const unmarshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpoin
783
751
  resource_id: z.string().optional(),
784
752
  group_id: z.string().optional(),
785
753
  endpoint_name: z.string().optional(),
786
- connection_state: z
787
- .enum(CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState)
788
- .optional(),
754
+ connection_state: z.string().optional(),
789
755
  creation_time: z
790
756
  .union([z.number(), z.bigint()])
791
757
  .transform(v => BigInt(v))
@@ -850,7 +816,7 @@ export const unmarshalCustomerFacingPrivateAccessSettingsSchema = z
850
816
  private_access_settings_name: z.string().optional(),
851
817
  region: z.string().optional(),
852
818
  public_access_enabled: z.boolean().optional(),
853
- private_access_level: z.enum(PrivateAccessLevel).optional(),
819
+ private_access_level: z.string().optional(),
854
820
  allowed_vpc_endpoint_ids: z.array(z.string()).optional(),
855
821
  })
856
822
  .transform(d => ({
@@ -869,7 +835,7 @@ export const unmarshalCustomerFacingVpcEndpointSchema = z
869
835
  vpc_endpoint_name: z.string().optional(),
870
836
  aws_vpc_endpoint_id: z.string().optional(),
871
837
  aws_endpoint_service_id: z.string().optional(),
872
- use_case: z.enum(CustomerFacingVpcEndpointUseCase).optional(),
838
+ use_case: z.string().optional(),
873
839
  region: z.string().optional(),
874
840
  aws_account_id: z.string().optional(),
875
841
  state: z.string().optional(),
@@ -908,9 +874,7 @@ export const unmarshalEgressNetworkPolicySchema = z
908
874
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
909
875
  export const unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
910
876
  .object({
911
- restriction_mode: z
912
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode)
913
- .optional(),
877
+ restriction_mode: z.string().optional(),
914
878
  allowed_internet_destinations: z
915
879
  .array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
916
880
  .optional(),
@@ -923,6 +887,9 @@ export const unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
923
887
  blocked_internet_destinations: z
924
888
  .array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
925
889
  .optional(),
890
+ allowed_databricks_destinations: z
891
+ .array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema))
892
+ .optional(),
926
893
  })
927
894
  .transform(d => ({
928
895
  restrictionMode: d.restriction_mode,
@@ -930,14 +897,23 @@ export const unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
930
897
  allowedStorageDestinations: d.allowed_storage_destinations,
931
898
  policyEnforcement: d.policy_enforcement,
932
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,
933
911
  }));
934
912
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
935
913
  export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
936
914
  .object({
937
915
  destination: z.string().optional(),
938
- internet_destination_type: z
939
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType)
940
- .optional(),
916
+ internet_destination_type: z.string().optional(),
941
917
  })
942
918
  .transform(d => ({
943
919
  destination: d.destination,
@@ -946,12 +922,8 @@ export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinatio
946
922
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
947
923
  export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
948
924
  .object({
949
- enforcement_mode: z
950
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode)
951
- .optional(),
952
- dry_run_mode_product_filter: z
953
- .array(z.enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter))
954
- .optional(),
925
+ enforcement_mode: z.string().optional(),
926
+ dry_run_mode_product_filter: z.array(z.string()).optional(),
955
927
  })
956
928
  .transform(d => ({
957
929
  enforcementMode: d.enforcement_mode,
@@ -962,9 +934,7 @@ export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestination
962
934
  .object({
963
935
  bucket_name: z.string().optional(),
964
936
  region: z.string().optional(),
965
- storage_destination_type: z
966
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType)
967
- .optional(),
937
+ storage_destination_type: z.string().optional(),
968
938
  azure_storage_account: z.string().optional(),
969
939
  azure_storage_service: z.string().optional(),
970
940
  })
@@ -981,9 +951,9 @@ export const unmarshalEndpointSchema = z
981
951
  endpoint_id: z.string().optional(),
982
952
  account_id: z.string().optional(),
983
953
  display_name: z.string().optional(),
984
- use_case: z.enum(EndpointUseCase_EndpointUseCase).optional(),
954
+ use_case: z.string().optional(),
985
955
  region: z.string().optional(),
986
- state: z.enum(EndpointState).optional(),
956
+ state: z.string().optional(),
987
957
  azure_private_endpoint_info: z
988
958
  .lazy(() => unmarshalAzurePrivateEndpointInfoSchema)
989
959
  .optional(),
@@ -1061,7 +1031,7 @@ export const unmarshalIpAccessListSchema = z
1061
1031
  label: z.string().optional(),
1062
1032
  ip_addresses: z.array(z.string()).optional(),
1063
1033
  address_count: z.number().optional(),
1064
- list_type: z.enum(IpAccessListType).optional(),
1034
+ list_type: z.string().optional(),
1065
1035
  created_at: z
1066
1036
  .union([z.number(), z.bigint()])
1067
1037
  .transform(v => BigInt(v))
@@ -1156,9 +1126,7 @@ export const unmarshalNccPrivateEndpointRuleSchema = z
1156
1126
  .object({
1157
1127
  rule_id: z.string().optional(),
1158
1128
  network_connectivity_config_id: z.string().optional(),
1159
- connection_state: z
1160
- .enum(NccPrivateEndpointRule_PrivateLinkConnectionState)
1161
- .optional(),
1129
+ connection_state: z.string().optional(),
1162
1130
  domain_names: z.array(z.string()).optional(),
1163
1131
  creation_time: z
1164
1132
  .union([z.number(), z.bigint()])
@@ -1217,7 +1185,7 @@ export const unmarshalNetworkSchema = z
1217
1185
  vpc_id: z.string().optional(),
1218
1186
  subnet_ids: z.array(z.string()).optional(),
1219
1187
  security_group_ids: z.array(z.string()).optional(),
1220
- vpc_status: z.enum(VpcStatus).optional(),
1188
+ vpc_status: z.string().optional(),
1221
1189
  error_messages: z
1222
1190
  .array(z.lazy(() => unmarshalNetworkHealthSchema))
1223
1191
  .optional(),
@@ -1275,7 +1243,7 @@ export const unmarshalNetworkConnectivityConfigEgressConfig_DefaultRule_AwsStabl
1275
1243
  export const unmarshalNetworkConnectivityConfigEgressConfig_DefaultRule_AzureServiceEndpointRuleSchema = z
1276
1244
  .object({
1277
1245
  target_region: z.string().optional(),
1278
- target_services: z.array(z.enum(EgressResourceType)).optional(),
1246
+ target_services: z.array(z.string()).optional(),
1279
1247
  subnets: z.array(z.string()).optional(),
1280
1248
  })
1281
1249
  .transform(d => ({
@@ -1390,7 +1358,7 @@ export const marshalCreateAccountIpAccessListRequestSchema = z
1390
1358
  .object({
1391
1359
  accountId: z.string().optional(),
1392
1360
  label: z.string().optional(),
1393
- listType: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
1361
+ listType: z.string().optional(),
1394
1362
  ipAddresses: z.array(z.string()).optional(),
1395
1363
  })
1396
1364
  .transform(d => ({
@@ -1402,7 +1370,7 @@ export const marshalCreateAccountIpAccessListRequestSchema = z
1402
1370
  export const marshalCreateIpAccessListSchema = z
1403
1371
  .object({
1404
1372
  label: z.string().optional(),
1405
- listType: z.enum(IpAccessListType).optional(),
1373
+ listType: z.string().optional(),
1406
1374
  ipAddresses: z.array(z.string()).optional(),
1407
1375
  })
1408
1376
  .transform(d => ({
@@ -1456,7 +1424,7 @@ export const marshalCreatePrivateAccessSettingsRequestSchema = z
1456
1424
  privateAccessSettingsName: z.string().optional(),
1457
1425
  region: z.string().optional(),
1458
1426
  publicAccessEnabled: z.boolean().optional(),
1459
- privateAccessLevel: z.enum(PrivateAccessLevel).optional(),
1427
+ privateAccessLevel: z.string().optional(),
1460
1428
  allowedVpcEndpointIds: z.array(z.string()).optional(),
1461
1429
  })
1462
1430
  .transform(d => ({
@@ -1471,9 +1439,7 @@ export const marshalCreatePrivateEndpointRuleSchema = z
1471
1439
  .object({
1472
1440
  ruleId: z.string().optional(),
1473
1441
  networkConnectivityConfigId: z.string().optional(),
1474
- connectionState: z
1475
- .enum(NccPrivateEndpointRule_PrivateLinkConnectionState)
1476
- .optional(),
1442
+ connectionState: z.string().optional(),
1477
1443
  domainNames: z.array(z.string()).optional(),
1478
1444
  creationTime: z.bigint().optional(),
1479
1445
  updatedTime: z.bigint().optional(),
@@ -1579,9 +1545,7 @@ export const marshalCustomerFacingIngressNetworkPolicySchema = z
1579
1545
  export const marshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSchema = z
1580
1546
  .object({
1581
1547
  scopes: z.array(z.string()).optional(),
1582
- scopeQualifier: z
1583
- .enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
1584
- .optional(),
1548
+ scopeQualifier: z.string().optional(),
1585
1549
  })
1586
1550
  .transform(d => ({
1587
1551
  scopes: d.scopes,
@@ -1614,9 +1578,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationSch
1614
1578
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1615
1579
  export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema = z
1616
1580
  .object({
1617
- identityType: z
1618
- .enum(CustomerFacingIngressNetworkPolicy_Authentication_IdentityType)
1619
- .optional(),
1581
+ identityType: z.string().optional(),
1620
1582
  identities: z
1621
1583
  .array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema))
1622
1584
  .optional(),
@@ -1628,9 +1590,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema = z
1628
1590
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1629
1591
  export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema = z
1630
1592
  .object({
1631
- principalType: z
1632
- .enum(CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType)
1633
- .optional(),
1593
+ principalType: z.string().optional(),
1634
1594
  principalId: z.bigint().optional(),
1635
1595
  })
1636
1596
  .transform(d => ({
@@ -1640,9 +1600,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySch
1640
1600
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1641
1601
  export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
1642
1602
  .object({
1643
- restrictionMode: z
1644
- .enum(CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode)
1645
- .optional(),
1603
+ restrictionMode: z.string().optional(),
1646
1604
  denyRules: z
1647
1605
  .array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
1648
1606
  .optional(),
@@ -1726,9 +1684,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinatio
1726
1684
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1727
1685
  export const marshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema = z
1728
1686
  .object({
1729
- restrictionMode: z
1730
- .enum(CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode)
1731
- .optional(),
1687
+ restrictionMode: z.string().optional(),
1732
1688
  denyRules: z
1733
1689
  .array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema))
1734
1690
  .optional(),
@@ -1800,9 +1756,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSchem
1800
1756
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1801
1757
  export const marshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema = z
1802
1758
  .object({
1803
- restrictionMode: z
1804
- .enum(CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode)
1805
- .optional(),
1759
+ restrictionMode: z.string().optional(),
1806
1760
  denyRules: z
1807
1761
  .array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema))
1808
1762
  .optional(),
@@ -1903,9 +1857,7 @@ export const marshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema
1903
1857
  export const marshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSchema = z
1904
1858
  .object({
1905
1859
  scopes: z.array(z.string()).optional(),
1906
- scopeQualifier: z
1907
- .enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
1908
- .optional(),
1860
+ scopeQualifier: z.string().optional(),
1909
1861
  })
1910
1862
  .transform(d => ({
1911
1863
  scopes: d.scopes,
@@ -1936,9 +1888,7 @@ export const marshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRul
1936
1888
  domainNames: z.array(z.string()).optional(),
1937
1889
  resourceNames: z.array(z.string()).optional(),
1938
1890
  vpcEndpointId: z.string().optional(),
1939
- connectionState: z
1940
- .enum(CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState)
1941
- .optional(),
1891
+ connectionState: z.string().optional(),
1942
1892
  creationTime: z.bigint().optional(),
1943
1893
  updatedTime: z.bigint().optional(),
1944
1894
  deactivated: z.boolean().optional(),
@@ -1969,9 +1919,7 @@ export const marshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointR
1969
1919
  resourceId: z.string().optional(),
1970
1920
  groupId: z.string().optional(),
1971
1921
  endpointName: z.string().optional(),
1972
- connectionState: z
1973
- .enum(CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState)
1974
- .optional(),
1922
+ connectionState: z.string().optional(),
1975
1923
  creationTime: z.bigint().optional(),
1976
1924
  updatedTime: z.bigint().optional(),
1977
1925
  deactivated: z.boolean().optional(),
@@ -2027,7 +1975,7 @@ export const marshalCustomerFacingPrivateAccessSettingsSchema = z
2027
1975
  privateAccessSettingsName: z.string().optional(),
2028
1976
  region: z.string().optional(),
2029
1977
  publicAccessEnabled: z.boolean().optional(),
2030
- privateAccessLevel: z.enum(PrivateAccessLevel).optional(),
1978
+ privateAccessLevel: z.string().optional(),
2031
1979
  allowedVpcEndpointIds: z.array(z.string()).optional(),
2032
1980
  })
2033
1981
  .transform(d => ({
@@ -2051,9 +1999,7 @@ export const marshalEgressNetworkPolicySchema = z
2051
1999
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2052
2000
  export const marshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
2053
2001
  .object({
2054
- restrictionMode: z
2055
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode)
2056
- .optional(),
2002
+ restrictionMode: z.string().optional(),
2057
2003
  allowedInternetDestinations: z
2058
2004
  .array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
2059
2005
  .optional(),
@@ -2066,6 +2012,9 @@ export const marshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
2066
2012
  blockedInternetDestinations: z
2067
2013
  .array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
2068
2014
  .optional(),
2015
+ allowedDatabricksDestinations: z
2016
+ .array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_DatabricksDestinationSchema))
2017
+ .optional(),
2069
2018
  })
2070
2019
  .transform(d => ({
2071
2020
  restriction_mode: d.restrictionMode,
@@ -2073,14 +2022,21 @@ export const marshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
2073
2022
  allowed_storage_destinations: d.allowedStorageDestinations,
2074
2023
  policy_enforcement: d.policyEnforcement,
2075
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,
2076
2034
  }));
2077
2035
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2078
2036
  export const marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
2079
2037
  .object({
2080
2038
  destination: z.string().optional(),
2081
- internetDestinationType: z
2082
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType)
2083
- .optional(),
2039
+ internetDestinationType: z.string().optional(),
2084
2040
  })
2085
2041
  .transform(d => ({
2086
2042
  destination: d.destination,
@@ -2089,12 +2045,8 @@ export const marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationS
2089
2045
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2090
2046
  export const marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
2091
2047
  .object({
2092
- enforcementMode: z
2093
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode)
2094
- .optional(),
2095
- dryRunModeProductFilter: z
2096
- .array(z.enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter))
2097
- .optional(),
2048
+ enforcementMode: z.string().optional(),
2049
+ dryRunModeProductFilter: z.array(z.string()).optional(),
2098
2050
  })
2099
2051
  .transform(d => ({
2100
2052
  enforcement_mode: d.enforcementMode,
@@ -2105,9 +2057,7 @@ export const marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSc
2105
2057
  .object({
2106
2058
  bucketName: z.string().optional(),
2107
2059
  region: z.string().optional(),
2108
- storageDestinationType: z
2109
- .enum(EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType)
2110
- .optional(),
2060
+ storageDestinationType: z.string().optional(),
2111
2061
  azureStorageAccount: z.string().optional(),
2112
2062
  azureStorageService: z.string().optional(),
2113
2063
  })
@@ -2124,9 +2074,9 @@ export const marshalEndpointSchema = z
2124
2074
  endpointId: z.string().optional(),
2125
2075
  accountId: z.string().optional(),
2126
2076
  displayName: z.string().optional(),
2127
- useCase: z.enum(EndpointUseCase_EndpointUseCase).optional(),
2077
+ useCase: z.string().optional(),
2128
2078
  region: z.string().optional(),
2129
- state: z.enum(EndpointState).optional(),
2079
+ state: z.string().optional(),
2130
2080
  endpointInfo: z
2131
2081
  .discriminatedUnion('$case', [
2132
2082
  z.object({
@@ -2214,7 +2164,7 @@ export const marshalNetworkConnectivityConfigEgressConfig_DefaultRule_AwsStableI
2214
2164
  export const marshalNetworkConnectivityConfigEgressConfig_DefaultRule_AzureServiceEndpointRuleSchema = z
2215
2165
  .object({
2216
2166
  targetRegion: z.string().optional(),
2217
- targetServices: z.array(z.enum(EgressResourceType)).optional(),
2167
+ targetServices: z.array(z.string()).optional(),
2218
2168
  subnets: z.array(z.string()).optional(),
2219
2169
  })
2220
2170
  .transform(d => ({
@@ -2236,7 +2186,7 @@ export const marshalReplaceAccountIpAccessListRequestSchema = z
2236
2186
  accountId: z.string().optional(),
2237
2187
  listId: z.string().optional(),
2238
2188
  label: z.string().optional(),
2239
- listType: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
2189
+ listType: z.string().optional(),
2240
2190
  ipAddresses: z.array(z.string()).optional(),
2241
2191
  enabled: z.boolean().optional(),
2242
2192
  })
@@ -2252,7 +2202,7 @@ export const marshalReplaceIpAccessListSchema = z
2252
2202
  .object({
2253
2203
  listId: z.string().optional(),
2254
2204
  label: z.string().optional(),
2255
- listType: z.enum(IpAccessListType).optional(),
2205
+ listType: z.string().optional(),
2256
2206
  ipAddresses: z.array(z.string()).optional(),
2257
2207
  enabled: z.boolean().optional(),
2258
2208
  })
@@ -2268,7 +2218,7 @@ export const marshalUpdateAccountIpAccessListRequestSchema = z
2268
2218
  accountId: z.string().optional(),
2269
2219
  listId: z.string().optional(),
2270
2220
  label: z.string().optional(),
2271
- listType: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
2221
+ listType: z.string().optional(),
2272
2222
  ipAddresses: z.array(z.string()).optional(),
2273
2223
  enabled: z.boolean().optional(),
2274
2224
  })
@@ -2284,7 +2234,7 @@ export const marshalUpdateIpAccessListSchema = z
2284
2234
  .object({
2285
2235
  listId: z.string().optional(),
2286
2236
  label: z.string().optional(),
2287
- listType: z.enum(IpAccessListType).optional(),
2237
+ listType: z.string().optional(),
2288
2238
  ipAddresses: z.array(z.string()).optional(),
2289
2239
  enabled: z.boolean().optional(),
2290
2240
  })
@@ -2299,9 +2249,7 @@ export const marshalUpdatePrivateEndpointRuleSchema = z
2299
2249
  .object({
2300
2250
  ruleId: z.string().optional(),
2301
2251
  networkConnectivityConfigId: z.string().optional(),
2302
- connectionState: z
2303
- .enum(NccPrivateEndpointRule_PrivateLinkConnectionState)
2304
- .optional(),
2252
+ connectionState: z.string().optional(),
2305
2253
  domainNames: z.array(z.string()).optional(),
2306
2254
  creationTime: z.bigint().optional(),
2307
2255
  updatedTime: z.bigint().optional(),