@databricks/sdk-networking 0.0.0-dev → 0.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +203 -0
- package/dist/v1/client.d.ts +266 -0
- package/dist/v1/client.d.ts.map +1 -0
- package/dist/v1/client.js +1270 -0
- package/dist/v1/client.js.map +1 -0
- package/dist/v1/index.d.ts +5 -0
- package/dist/v1/index.d.ts.map +1 -0
- package/dist/v1/index.js +5 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/model.d.ts +1641 -0
- package/dist/v1/model.d.ts.map +1 -0
- package/dist/v1/model.js +2401 -0
- package/dist/v1/model.js.map +1 -0
- package/dist/v1/transport.d.ts +5 -0
- package/dist/v1/transport.d.ts.map +1 -0
- package/dist/v1/transport.js +57 -0
- package/dist/v1/transport.js.map +1 -0
- package/dist/v1/utils.d.ts +21 -0
- package/dist/v1/utils.d.ts.map +1 -0
- package/dist/v1/utils.js +113 -0
- package/dist/v1/utils.js.map +1 -0
- package/package.json +38 -4
- package/src/v1/client.ts +1704 -0
- package/src/v1/index.ts +155 -0
- package/src/v1/model.ts +4519 -0
- package/src/v1/transport.ts +73 -0
- package/src/v1/utils.ts +156 -0
- package/README.md +0 -1
- package/index.js +0 -1
package/dist/v1/model.js
ADDED
|
@@ -0,0 +1,2401 @@
|
|
|
1
|
+
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { FieldMask } from '@databricks/sdk-core/wkt';
|
|
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";
|
|
9
|
+
/** General access, replaces WORKSPACE_ACCESS in customer-facing API. */
|
|
10
|
+
CustomerFacingVpcEndpointUseCase["GENERAL_ACCESS"] = "GENERAL_ACCESS";
|
|
11
|
+
})(CustomerFacingVpcEndpointUseCase || (CustomerFacingVpcEndpointUseCase = {}));
|
|
12
|
+
/**
|
|
13
|
+
* The target resources that are supported by Network Connectivity Config.
|
|
14
|
+
* Note: some egress types can support general types that are not defined in EgressResourceType.
|
|
15
|
+
* E.g.: Azure private endpoint supports private link enabled Azure services.
|
|
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) {
|
|
24
|
+
/** The endpoint is pending approval. */
|
|
25
|
+
EndpointState["PENDING"] = "PENDING";
|
|
26
|
+
/** The endpoint has been approved and is ready for use. */
|
|
27
|
+
EndpointState["APPROVED"] = "APPROVED";
|
|
28
|
+
/** The endpoint encountered some issues during setup. */
|
|
29
|
+
EndpointState["FAILED"] = "FAILED";
|
|
30
|
+
/** The endpoint was once established but later disconnected. This endpoint doesn't provide connectivity. */
|
|
31
|
+
EndpointState["DISCONNECTED"] = "DISCONNECTED";
|
|
32
|
+
})(EndpointState || (EndpointState = {}));
|
|
33
|
+
/**
|
|
34
|
+
* Type of IP access list. Valid values are as follows and are case-sensitive:
|
|
35
|
+
*
|
|
36
|
+
* * `ALLOW`: An allow list. Include this IP or range.
|
|
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
|
+
*/
|
|
39
|
+
export var IpAccessListType;
|
|
40
|
+
(function (IpAccessListType) {
|
|
41
|
+
IpAccessListType["ALLOW"] = "ALLOW";
|
|
42
|
+
/** Blocks the associated CIDRs. */
|
|
43
|
+
IpAccessListType["BLOCK"] = "BLOCK";
|
|
44
|
+
})(IpAccessListType || (IpAccessListType = {}));
|
|
45
|
+
export var PrivateAccessLevel;
|
|
46
|
+
(function (PrivateAccessLevel) {
|
|
47
|
+
/** Only specifically listed endpoints can access my workspace */
|
|
48
|
+
PrivateAccessLevel["ENDPOINT"] = "ENDPOINT";
|
|
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";
|
|
57
|
+
/** Some optional tests are failing for this Vpc, see NetworkWarning for more information */
|
|
58
|
+
VpcStatus["WARNED"] = "WARNED";
|
|
59
|
+
})(VpcStatus || (VpcStatus = {}));
|
|
60
|
+
/**
|
|
61
|
+
* Type of IP access list. Valid values are as follows and are case-sensitive:
|
|
62
|
+
*
|
|
63
|
+
* * `ALLOW`: An allow list. Include this IP or range.
|
|
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
|
+
*/
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
67
|
+
export var AccountIpAccessListType_IpAccessListType;
|
|
68
|
+
(function (AccountIpAccessListType_IpAccessListType) {
|
|
69
|
+
/** Allows the associated CIDRs. */
|
|
70
|
+
AccountIpAccessListType_IpAccessListType["ALLOW"] = "ALLOW";
|
|
71
|
+
/** Blocks the associated CIDRs. */
|
|
72
|
+
AccountIpAccessListType_IpAccessListType["BLOCK"] = "BLOCK";
|
|
73
|
+
})(AccountIpAccessListType_IpAccessListType || (AccountIpAccessListType_IpAccessListType = {}));
|
|
74
|
+
/**
|
|
75
|
+
* Qualifies the breadth of API access permitted by an ingress network policy rule.
|
|
76
|
+
* API_SCOPE_QUALIFIER_READ narrows matching to read-only variants of the listed scopes;
|
|
77
|
+
* API_SCOPE_QUALIFIER_ALL matches any scope. When unset, scopes match exactly as listed.
|
|
78
|
+
*/
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
80
|
+
export var CustomerFacingIngressNetworkPolicy_ApiScopeQualifier;
|
|
81
|
+
(function (CustomerFacingIngressNetworkPolicy_ApiScopeQualifier) {
|
|
82
|
+
/** 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";
|
|
84
|
+
/** 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";
|
|
124
|
+
/** The endpoint has been approved and is ready to use in your serverless compute resources. */
|
|
125
|
+
CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["ESTABLISHED"] = "ESTABLISHED";
|
|
126
|
+
/** Connection was rejected by the private link resource owner. */
|
|
127
|
+
CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["REJECTED"] = "REJECTED";
|
|
128
|
+
/**
|
|
129
|
+
* Connection was removed by the private link resource owner, the private endpoint becomes informative and should
|
|
130
|
+
* be deleted for clean-up.
|
|
131
|
+
*/
|
|
132
|
+
CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["DISCONNECTED"] = "DISCONNECTED";
|
|
133
|
+
/** If the endpoint is created but not approved in 14 days, it is EXPIRED. */
|
|
134
|
+
CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["EXPIRED"] = "EXPIRED";
|
|
135
|
+
/** The endpoint has been created and pending approval. */
|
|
136
|
+
CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["PENDING"] = "PENDING";
|
|
137
|
+
/** The endpoint creation is in progress. */
|
|
138
|
+
CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState["CREATING"] = "CREATING";
|
|
139
|
+
/** 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";
|
|
146
|
+
/** The endpoint has been created and pending approval. */
|
|
147
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["INIT"] = "INIT";
|
|
148
|
+
/** The endpoint has been approved and is ready to use in your serverless compute resources. */
|
|
149
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["ESTABLISHED"] = "ESTABLISHED";
|
|
150
|
+
/** Connection was rejected by the private link resource owner. */
|
|
151
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["REJECTED"] = "REJECTED";
|
|
152
|
+
/**
|
|
153
|
+
* Connection was removed by the private link resource owner, the private endpoint becomes informative and should
|
|
154
|
+
* be deleted for clean-up.
|
|
155
|
+
*/
|
|
156
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["DISCONNECTED"] = "DISCONNECTED";
|
|
157
|
+
/** If the endpoint was created but not approved in 14 days, it will be EXPIRED. */
|
|
158
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["EXPIRED"] = "EXPIRED";
|
|
159
|
+
/** The endpoint has been created and pending approval. */
|
|
160
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["PENDING"] = "PENDING";
|
|
161
|
+
/** The endpoint creation is in progress. */
|
|
162
|
+
CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState["CREATING"] = "CREATING";
|
|
163
|
+
/** 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";
|
|
170
|
+
/** 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 = {}));
|
|
173
|
+
/** 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";
|
|
178
|
+
/** SQL Warehouse product */
|
|
179
|
+
EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter["DBSQL"] = "DBSQL";
|
|
180
|
+
/** 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";
|
|
187
|
+
/** Blocks traffic that violates network policy. This is the default mode. */
|
|
188
|
+
EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode["ENFORCED"] = "ENFORCED";
|
|
189
|
+
/** 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 = {}));
|
|
192
|
+
/**
|
|
193
|
+
* At which level can <Databricks> and <Databricks> managed compute access Internet.
|
|
194
|
+
* FULL_ACCESS: <Databricks> can access Internet. No blocking rules will apply.
|
|
195
|
+
* RESTRICTED_ACCESS: <Databricks> can only access explicitly allowed internet and storage destinations,
|
|
196
|
+
* as well as UC connections and external locations.
|
|
197
|
+
*/
|
|
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";
|
|
209
|
+
/**
|
|
210
|
+
* AWS_S3 can be used both for direct AWS S3 access and for cross-cloud access from Azure and GCP
|
|
211
|
+
* When used in an Azure/GCP context, this indicates cross-cloud access from Azure/GCP to the specified S3 bucket
|
|
212
|
+
*/
|
|
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) {
|
|
220
|
+
/** 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";
|
|
227
|
+
/** The endpoint has been approved and is ready to use in your serverless compute resources. */
|
|
228
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["ESTABLISHED"] = "ESTABLISHED";
|
|
229
|
+
/** Connection was rejected by the private link resource owner. */
|
|
230
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["REJECTED"] = "REJECTED";
|
|
231
|
+
/**
|
|
232
|
+
* Connection was removed by the private link resource owner, the private endpoint becomes informative and should
|
|
233
|
+
* be deleted for clean-up.
|
|
234
|
+
*/
|
|
235
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["DISCONNECTED"] = "DISCONNECTED";
|
|
236
|
+
/** If the endpoint was created but not approved in 14 days, it will be EXPIRED. */
|
|
237
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["EXPIRED"] = "EXPIRED";
|
|
238
|
+
/** The endpoint has been created and pending approval. */
|
|
239
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["PENDING"] = "PENDING";
|
|
240
|
+
/** The endpoint creation is in progress. */
|
|
241
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["CREATING"] = "CREATING";
|
|
242
|
+
/** The endpoint creation failed. */
|
|
243
|
+
NccPrivateEndpointRule_PrivateLinkConnectionState["CREATE_FAILED"] = "CREATE_FAILED";
|
|
244
|
+
})(NccPrivateEndpointRule_PrivateLinkConnectionState || (NccPrivateEndpointRule_PrivateLinkConnectionState = {}));
|
|
245
|
+
export const unmarshalAccountIpAccessListSchema = z
|
|
246
|
+
.object({
|
|
247
|
+
list_id: z.string().optional(),
|
|
248
|
+
label: z.string().optional(),
|
|
249
|
+
ip_addresses: z.array(z.string()).optional(),
|
|
250
|
+
address_count: z.number().optional(),
|
|
251
|
+
list_type: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
|
|
252
|
+
created_at: z
|
|
253
|
+
.union([z.number(), z.bigint()])
|
|
254
|
+
.transform(v => BigInt(v))
|
|
255
|
+
.optional(),
|
|
256
|
+
created_by: z
|
|
257
|
+
.union([z.number(), z.bigint()])
|
|
258
|
+
.transform(v => BigInt(v))
|
|
259
|
+
.optional(),
|
|
260
|
+
updated_at: z
|
|
261
|
+
.union([z.number(), z.bigint()])
|
|
262
|
+
.transform(v => BigInt(v))
|
|
263
|
+
.optional(),
|
|
264
|
+
updated_by: z
|
|
265
|
+
.union([z.number(), z.bigint()])
|
|
266
|
+
.transform(v => BigInt(v))
|
|
267
|
+
.optional(),
|
|
268
|
+
enabled: z.boolean().optional(),
|
|
269
|
+
})
|
|
270
|
+
.transform(d => ({
|
|
271
|
+
listId: d.list_id,
|
|
272
|
+
label: d.label,
|
|
273
|
+
ipAddresses: d.ip_addresses,
|
|
274
|
+
addressCount: d.address_count,
|
|
275
|
+
listType: d.list_type,
|
|
276
|
+
createdAt: d.created_at,
|
|
277
|
+
createdBy: d.created_by,
|
|
278
|
+
updatedAt: d.updated_at,
|
|
279
|
+
updatedBy: d.updated_by,
|
|
280
|
+
enabled: d.enabled,
|
|
281
|
+
}));
|
|
282
|
+
export const unmarshalAccountNetworkPolicySchema = z
|
|
283
|
+
.object({
|
|
284
|
+
network_policy_id: z.string().optional(),
|
|
285
|
+
account_id: z.string().optional(),
|
|
286
|
+
egress: z.lazy(() => unmarshalEgressNetworkPolicySchema).optional(),
|
|
287
|
+
ingress: z
|
|
288
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicySchema)
|
|
289
|
+
.optional(),
|
|
290
|
+
ingress_dry_run: z
|
|
291
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicySchema)
|
|
292
|
+
.optional(),
|
|
293
|
+
})
|
|
294
|
+
.transform(d => ({
|
|
295
|
+
networkPolicyId: d.network_policy_id,
|
|
296
|
+
accountId: d.account_id,
|
|
297
|
+
egress: d.egress,
|
|
298
|
+
ingress: d.ingress,
|
|
299
|
+
ingressDryRun: d.ingress_dry_run,
|
|
300
|
+
}));
|
|
301
|
+
export const unmarshalAzurePrivateEndpointInfoSchema = z
|
|
302
|
+
.object({
|
|
303
|
+
private_endpoint_name: z.string().optional(),
|
|
304
|
+
private_endpoint_resource_guid: z.string().optional(),
|
|
305
|
+
private_endpoint_resource_id: z.string().optional(),
|
|
306
|
+
private_link_service_id: z.string().optional(),
|
|
307
|
+
})
|
|
308
|
+
.transform(d => ({
|
|
309
|
+
privateEndpointName: d.private_endpoint_name,
|
|
310
|
+
privateEndpointResourceGuid: d.private_endpoint_resource_guid,
|
|
311
|
+
privateEndpointResourceId: d.private_endpoint_resource_id,
|
|
312
|
+
privateLinkServiceId: d.private_link_service_id,
|
|
313
|
+
}));
|
|
314
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
315
|
+
export const unmarshalCreateAccountIpAccessListRequest_ResponseSchema = z
|
|
316
|
+
.object({
|
|
317
|
+
ip_access_list: z
|
|
318
|
+
.lazy(() => unmarshalAccountIpAccessListSchema)
|
|
319
|
+
.optional(),
|
|
320
|
+
})
|
|
321
|
+
.transform(d => ({
|
|
322
|
+
ipAccessList: d.ip_access_list,
|
|
323
|
+
}));
|
|
324
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
325
|
+
export const unmarshalCreateIpAccessList_ResponseSchema = z
|
|
326
|
+
.object({
|
|
327
|
+
ip_access_list: z.lazy(() => unmarshalIpAccessListSchema).optional(),
|
|
328
|
+
})
|
|
329
|
+
.transform(d => ({
|
|
330
|
+
ipAccessList: d.ip_access_list,
|
|
331
|
+
}));
|
|
332
|
+
export const unmarshalCustomerFacingGcpVpcEndpointInfoSchema = z
|
|
333
|
+
.object({
|
|
334
|
+
psc_connection_id: z.string().optional(),
|
|
335
|
+
project_id: z.string().optional(),
|
|
336
|
+
psc_endpoint_name: z.string().optional(),
|
|
337
|
+
endpoint_region: z.string().optional(),
|
|
338
|
+
service_attachment_id: z.string().optional(),
|
|
339
|
+
})
|
|
340
|
+
.transform(d => ({
|
|
341
|
+
pscConnectionId: d.psc_connection_id,
|
|
342
|
+
projectId: d.project_id,
|
|
343
|
+
pscEndpointName: d.psc_endpoint_name,
|
|
344
|
+
endpointRegion: d.endpoint_region,
|
|
345
|
+
serviceAttachmentId: d.service_attachment_id,
|
|
346
|
+
}));
|
|
347
|
+
export const unmarshalCustomerFacingIngressNetworkPolicySchema = z
|
|
348
|
+
.object({
|
|
349
|
+
public_access: z
|
|
350
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema)
|
|
351
|
+
.optional(),
|
|
352
|
+
private_access: z
|
|
353
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema)
|
|
354
|
+
.optional(),
|
|
355
|
+
cross_workspace_access: z
|
|
356
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema)
|
|
357
|
+
.optional(),
|
|
358
|
+
})
|
|
359
|
+
.transform(d => ({
|
|
360
|
+
publicAccess: d.public_access,
|
|
361
|
+
privateAccess: d.private_access,
|
|
362
|
+
crossWorkspaceAccess: d.cross_workspace_access,
|
|
363
|
+
}));
|
|
364
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
365
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSchema = z
|
|
366
|
+
.object({
|
|
367
|
+
scopes: z.array(z.string()).optional(),
|
|
368
|
+
scope_qualifier: z
|
|
369
|
+
.enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
|
|
370
|
+
.optional(),
|
|
371
|
+
})
|
|
372
|
+
.transform(d => ({
|
|
373
|
+
scopes: d.scopes,
|
|
374
|
+
scopeQualifier: d.scope_qualifier,
|
|
375
|
+
}));
|
|
376
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
377
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_AccountDatabricksOneDestinationSchema = z
|
|
378
|
+
.object({
|
|
379
|
+
all_destinations: z.boolean().optional(),
|
|
380
|
+
})
|
|
381
|
+
.transform(d => ({
|
|
382
|
+
allDestinations: d.all_destinations,
|
|
383
|
+
}));
|
|
384
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
385
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_AccountUiDestinationSchema = z
|
|
386
|
+
.object({
|
|
387
|
+
all_destinations: z.boolean().optional(),
|
|
388
|
+
})
|
|
389
|
+
.transform(d => ({
|
|
390
|
+
allDestinations: d.all_destinations,
|
|
391
|
+
}));
|
|
392
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
393
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationSchema = z
|
|
394
|
+
.object({
|
|
395
|
+
all_destinations: z.boolean().optional(),
|
|
396
|
+
})
|
|
397
|
+
.transform(d => ({
|
|
398
|
+
allDestinations: d.all_destinations,
|
|
399
|
+
}));
|
|
400
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
401
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema = z
|
|
402
|
+
.object({
|
|
403
|
+
identity_type: z
|
|
404
|
+
.enum(CustomerFacingIngressNetworkPolicy_Authentication_IdentityType)
|
|
405
|
+
.optional(),
|
|
406
|
+
identities: z
|
|
407
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema))
|
|
408
|
+
.optional(),
|
|
409
|
+
})
|
|
410
|
+
.transform(d => ({
|
|
411
|
+
identityType: d.identity_type,
|
|
412
|
+
identities: d.identities,
|
|
413
|
+
}));
|
|
414
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
415
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema = z
|
|
416
|
+
.object({
|
|
417
|
+
principal_type: z
|
|
418
|
+
.enum(CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType)
|
|
419
|
+
.optional(),
|
|
420
|
+
principal_id: z
|
|
421
|
+
.union([z.number(), z.bigint()])
|
|
422
|
+
.transform(v => BigInt(v))
|
|
423
|
+
.optional(),
|
|
424
|
+
})
|
|
425
|
+
.transform(d => ({
|
|
426
|
+
principalType: d.principal_type,
|
|
427
|
+
principalId: d.principal_id,
|
|
428
|
+
}));
|
|
429
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
430
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
|
|
431
|
+
.object({
|
|
432
|
+
restriction_mode: z
|
|
433
|
+
.enum(CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode)
|
|
434
|
+
.optional(),
|
|
435
|
+
deny_rules: z
|
|
436
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
437
|
+
.optional(),
|
|
438
|
+
allow_rules: z
|
|
439
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
440
|
+
.optional(),
|
|
441
|
+
})
|
|
442
|
+
.transform(d => ({
|
|
443
|
+
restrictionMode: d.restriction_mode,
|
|
444
|
+
denyRules: d.deny_rules,
|
|
445
|
+
allowRules: d.allow_rules,
|
|
446
|
+
}));
|
|
447
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
448
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema = z
|
|
449
|
+
.object({
|
|
450
|
+
origin: z
|
|
451
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema)
|
|
452
|
+
.optional(),
|
|
453
|
+
destination: z
|
|
454
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema)
|
|
455
|
+
.optional(),
|
|
456
|
+
authentication: z
|
|
457
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema)
|
|
458
|
+
.optional(),
|
|
459
|
+
label: z.string().optional(),
|
|
460
|
+
})
|
|
461
|
+
.transform(d => ({
|
|
462
|
+
origin: d.origin,
|
|
463
|
+
destination: d.destination,
|
|
464
|
+
authentication: d.authentication,
|
|
465
|
+
label: d.label,
|
|
466
|
+
}));
|
|
467
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
468
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema = z
|
|
469
|
+
.object({
|
|
470
|
+
all_source_workspaces: z.boolean().optional(),
|
|
471
|
+
selected_workspaces: z
|
|
472
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceIdListSchema)
|
|
473
|
+
.optional(),
|
|
474
|
+
})
|
|
475
|
+
.transform(d => ({
|
|
476
|
+
source: d.all_source_workspaces !== undefined
|
|
477
|
+
? {
|
|
478
|
+
$case: 'allSourceWorkspaces',
|
|
479
|
+
allSourceWorkspaces: d.all_source_workspaces,
|
|
480
|
+
}
|
|
481
|
+
: d.selected_workspaces !== undefined
|
|
482
|
+
? {
|
|
483
|
+
$case: 'selectedWorkspaces',
|
|
484
|
+
selectedWorkspaces: d.selected_workspaces,
|
|
485
|
+
}
|
|
486
|
+
: undefined,
|
|
487
|
+
}));
|
|
488
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
489
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_EndpointsSchema = z
|
|
490
|
+
.object({
|
|
491
|
+
endpoint_ids: z.array(z.string()).optional(),
|
|
492
|
+
})
|
|
493
|
+
.transform(d => ({
|
|
494
|
+
endpointIds: d.endpoint_ids,
|
|
495
|
+
}));
|
|
496
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
497
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_IpRangesSchema = z
|
|
498
|
+
.object({
|
|
499
|
+
ip_ranges: z.array(z.string()).optional(),
|
|
500
|
+
})
|
|
501
|
+
.transform(d => ({
|
|
502
|
+
ipRanges: d.ip_ranges,
|
|
503
|
+
}));
|
|
504
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
505
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinationSchema = z
|
|
506
|
+
.object({
|
|
507
|
+
all_destinations: z.boolean().optional(),
|
|
508
|
+
})
|
|
509
|
+
.transform(d => ({
|
|
510
|
+
allDestinations: d.all_destinations,
|
|
511
|
+
}));
|
|
512
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
513
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema = z
|
|
514
|
+
.object({
|
|
515
|
+
restriction_mode: z
|
|
516
|
+
.enum(CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode)
|
|
517
|
+
.optional(),
|
|
518
|
+
deny_rules: z
|
|
519
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
520
|
+
.optional(),
|
|
521
|
+
allow_rules: z
|
|
522
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
523
|
+
.optional(),
|
|
524
|
+
})
|
|
525
|
+
.transform(d => ({
|
|
526
|
+
restrictionMode: d.restriction_mode,
|
|
527
|
+
denyRules: d.deny_rules,
|
|
528
|
+
allowRules: d.allow_rules,
|
|
529
|
+
}));
|
|
530
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
531
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema = z
|
|
532
|
+
.object({
|
|
533
|
+
origin: z
|
|
534
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSchema)
|
|
535
|
+
.optional(),
|
|
536
|
+
destination: z
|
|
537
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema)
|
|
538
|
+
.optional(),
|
|
539
|
+
authentication: z
|
|
540
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema)
|
|
541
|
+
.optional(),
|
|
542
|
+
label: z.string().optional(),
|
|
543
|
+
})
|
|
544
|
+
.transform(d => ({
|
|
545
|
+
origin: d.origin,
|
|
546
|
+
destination: d.destination,
|
|
547
|
+
authentication: d.authentication,
|
|
548
|
+
label: d.label,
|
|
549
|
+
}));
|
|
550
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
551
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSchema = z
|
|
552
|
+
.object({
|
|
553
|
+
endpoints: z
|
|
554
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_EndpointsSchema)
|
|
555
|
+
.optional(),
|
|
556
|
+
all_registered_endpoints: z.boolean().optional(),
|
|
557
|
+
azure_workspace_private_link: z.boolean().optional(),
|
|
558
|
+
all_private_access: z.boolean().optional(),
|
|
559
|
+
})
|
|
560
|
+
.transform(d => ({
|
|
561
|
+
source: d.endpoints !== undefined
|
|
562
|
+
? { $case: 'endpoints', endpoints: d.endpoints }
|
|
563
|
+
: d.all_registered_endpoints !== undefined
|
|
564
|
+
? {
|
|
565
|
+
$case: 'allRegisteredEndpoints',
|
|
566
|
+
allRegisteredEndpoints: d.all_registered_endpoints,
|
|
567
|
+
}
|
|
568
|
+
: d.azure_workspace_private_link !== undefined
|
|
569
|
+
? {
|
|
570
|
+
$case: 'azureWorkspacePrivateLink',
|
|
571
|
+
azureWorkspacePrivateLink: d.azure_workspace_private_link,
|
|
572
|
+
}
|
|
573
|
+
: d.all_private_access !== undefined
|
|
574
|
+
? {
|
|
575
|
+
$case: 'allPrivateAccess',
|
|
576
|
+
allPrivateAccess: d.all_private_access,
|
|
577
|
+
}
|
|
578
|
+
: undefined,
|
|
579
|
+
}));
|
|
580
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
581
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema = z
|
|
582
|
+
.object({
|
|
583
|
+
restriction_mode: z
|
|
584
|
+
.enum(CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode)
|
|
585
|
+
.optional(),
|
|
586
|
+
deny_rules: z
|
|
587
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
588
|
+
.optional(),
|
|
589
|
+
allow_rules: z
|
|
590
|
+
.array(z.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
591
|
+
.optional(),
|
|
592
|
+
})
|
|
593
|
+
.transform(d => ({
|
|
594
|
+
restrictionMode: d.restriction_mode,
|
|
595
|
+
denyRules: d.deny_rules,
|
|
596
|
+
allowRules: d.allow_rules,
|
|
597
|
+
}));
|
|
598
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
599
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema = z
|
|
600
|
+
.object({
|
|
601
|
+
origin: z
|
|
602
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_PublicRequestOriginSchema)
|
|
603
|
+
.optional(),
|
|
604
|
+
destination: z
|
|
605
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema)
|
|
606
|
+
.optional(),
|
|
607
|
+
authentication: z
|
|
608
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema)
|
|
609
|
+
.optional(),
|
|
610
|
+
label: z.string().optional(),
|
|
611
|
+
})
|
|
612
|
+
.transform(d => ({
|
|
613
|
+
origin: d.origin,
|
|
614
|
+
destination: d.destination,
|
|
615
|
+
authentication: d.authentication,
|
|
616
|
+
label: d.label,
|
|
617
|
+
}));
|
|
618
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
619
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_PublicRequestOriginSchema = z
|
|
620
|
+
.object({
|
|
621
|
+
all_ip_ranges: z.boolean().optional(),
|
|
622
|
+
included_ip_ranges: z
|
|
623
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_IpRangesSchema)
|
|
624
|
+
.optional(),
|
|
625
|
+
excluded_ip_ranges: z
|
|
626
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_IpRangesSchema)
|
|
627
|
+
.optional(),
|
|
628
|
+
})
|
|
629
|
+
.transform(d => ({
|
|
630
|
+
source: d.all_ip_ranges !== undefined
|
|
631
|
+
? { $case: 'allIpRanges', allIpRanges: d.all_ip_ranges }
|
|
632
|
+
: d.included_ip_ranges !== undefined
|
|
633
|
+
? {
|
|
634
|
+
$case: 'includedIpRanges',
|
|
635
|
+
includedIpRanges: d.included_ip_ranges,
|
|
636
|
+
}
|
|
637
|
+
: d.excluded_ip_ranges !== undefined
|
|
638
|
+
? {
|
|
639
|
+
$case: 'excludedIpRanges',
|
|
640
|
+
excludedIpRanges: d.excluded_ip_ranges,
|
|
641
|
+
}
|
|
642
|
+
: undefined,
|
|
643
|
+
}));
|
|
644
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
645
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema = z
|
|
646
|
+
.object({
|
|
647
|
+
all_destinations: z.boolean().optional(),
|
|
648
|
+
workspace_ui: z
|
|
649
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceUiDestinationSchema)
|
|
650
|
+
.optional(),
|
|
651
|
+
workspace_api: z
|
|
652
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSchema)
|
|
653
|
+
.optional(),
|
|
654
|
+
apps_runtime: z
|
|
655
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationSchema)
|
|
656
|
+
.optional(),
|
|
657
|
+
lakebase_runtime: z
|
|
658
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinationSchema)
|
|
659
|
+
.optional(),
|
|
660
|
+
account_ui: z
|
|
661
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AccountUiDestinationSchema)
|
|
662
|
+
.optional(),
|
|
663
|
+
account_api: z
|
|
664
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSchema)
|
|
665
|
+
.optional(),
|
|
666
|
+
account_databricks_one: z
|
|
667
|
+
.lazy(() => unmarshalCustomerFacingIngressNetworkPolicy_AccountDatabricksOneDestinationSchema)
|
|
668
|
+
.optional(),
|
|
669
|
+
})
|
|
670
|
+
.transform(d => ({
|
|
671
|
+
allDestinations: d.all_destinations,
|
|
672
|
+
workspaceUi: d.workspace_ui,
|
|
673
|
+
workspaceApi: d.workspace_api,
|
|
674
|
+
appsRuntime: d.apps_runtime,
|
|
675
|
+
lakebaseRuntime: d.lakebase_runtime,
|
|
676
|
+
accountUi: d.account_ui,
|
|
677
|
+
accountApi: d.account_api,
|
|
678
|
+
accountDatabricksOne: d.account_databricks_one,
|
|
679
|
+
}));
|
|
680
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
681
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSchema = z
|
|
682
|
+
.object({
|
|
683
|
+
scopes: z.array(z.string()).optional(),
|
|
684
|
+
scope_qualifier: z
|
|
685
|
+
.enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
|
|
686
|
+
.optional(),
|
|
687
|
+
})
|
|
688
|
+
.transform(d => ({
|
|
689
|
+
scopes: d.scopes,
|
|
690
|
+
scopeQualifier: d.scope_qualifier,
|
|
691
|
+
}));
|
|
692
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
693
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceIdListSchema = z
|
|
694
|
+
.object({
|
|
695
|
+
workspace_ids: z
|
|
696
|
+
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
697
|
+
.optional(),
|
|
698
|
+
})
|
|
699
|
+
.transform(d => ({
|
|
700
|
+
workspaceIds: d.workspace_ids,
|
|
701
|
+
}));
|
|
702
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
703
|
+
export const unmarshalCustomerFacingIngressNetworkPolicy_WorkspaceUiDestinationSchema = z
|
|
704
|
+
.object({
|
|
705
|
+
all_destinations: z.boolean().optional(),
|
|
706
|
+
})
|
|
707
|
+
.transform(d => ({
|
|
708
|
+
allDestinations: d.all_destinations,
|
|
709
|
+
}));
|
|
710
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigSchema = z
|
|
711
|
+
.object({
|
|
712
|
+
network_connectivity_config_id: z.string().optional(),
|
|
713
|
+
account_id: z.string().optional(),
|
|
714
|
+
name: z.string().optional(),
|
|
715
|
+
region: z.string().optional(),
|
|
716
|
+
egress_config: z
|
|
717
|
+
.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema)
|
|
718
|
+
.optional(),
|
|
719
|
+
updated_time: z
|
|
720
|
+
.union([z.number(), z.bigint()])
|
|
721
|
+
.transform(v => BigInt(v))
|
|
722
|
+
.optional(),
|
|
723
|
+
creation_time: z
|
|
724
|
+
.union([z.number(), z.bigint()])
|
|
725
|
+
.transform(v => BigInt(v))
|
|
726
|
+
.optional(),
|
|
727
|
+
})
|
|
728
|
+
.transform(d => ({
|
|
729
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
730
|
+
accountId: d.account_id,
|
|
731
|
+
name: d.name,
|
|
732
|
+
region: d.region,
|
|
733
|
+
egressConfig: d.egress_config,
|
|
734
|
+
updatedTime: d.updated_time,
|
|
735
|
+
creationTime: d.creation_time,
|
|
736
|
+
}));
|
|
737
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema = z
|
|
738
|
+
.object({
|
|
739
|
+
rule_id: z.string().optional(),
|
|
740
|
+
network_connectivity_config_id: z.string().optional(),
|
|
741
|
+
account_id: z.string().optional(),
|
|
742
|
+
endpoint_service: z.string().optional(),
|
|
743
|
+
domain_names: z.array(z.string()).optional(),
|
|
744
|
+
resource_names: z.array(z.string()).optional(),
|
|
745
|
+
vpc_endpoint_id: z.string().optional(),
|
|
746
|
+
connection_state: z
|
|
747
|
+
.enum(CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState)
|
|
748
|
+
.optional(),
|
|
749
|
+
creation_time: z
|
|
750
|
+
.union([z.number(), z.bigint()])
|
|
751
|
+
.transform(v => BigInt(v))
|
|
752
|
+
.optional(),
|
|
753
|
+
updated_time: z
|
|
754
|
+
.union([z.number(), z.bigint()])
|
|
755
|
+
.transform(v => BigInt(v))
|
|
756
|
+
.optional(),
|
|
757
|
+
deactivated: z.boolean().optional(),
|
|
758
|
+
deactivated_at: z
|
|
759
|
+
.union([z.number(), z.bigint()])
|
|
760
|
+
.transform(v => BigInt(v))
|
|
761
|
+
.optional(),
|
|
762
|
+
enabled: z.boolean().optional(),
|
|
763
|
+
error_message: z.string().optional(),
|
|
764
|
+
})
|
|
765
|
+
.transform(d => ({
|
|
766
|
+
ruleId: d.rule_id,
|
|
767
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
768
|
+
accountId: d.account_id,
|
|
769
|
+
endpointService: d.endpoint_service,
|
|
770
|
+
domainNames: d.domain_names,
|
|
771
|
+
resourceNames: d.resource_names,
|
|
772
|
+
vpcEndpointId: d.vpc_endpoint_id,
|
|
773
|
+
connectionState: d.connection_state,
|
|
774
|
+
creationTime: d.creation_time,
|
|
775
|
+
updatedTime: d.updated_time,
|
|
776
|
+
deactivated: d.deactivated,
|
|
777
|
+
deactivatedAt: d.deactivated_at,
|
|
778
|
+
enabled: d.enabled,
|
|
779
|
+
errorMessage: d.error_message,
|
|
780
|
+
}));
|
|
781
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRuleSchema = z
|
|
782
|
+
.object({
|
|
783
|
+
rule_id: z.string().optional(),
|
|
784
|
+
network_connectivity_config_id: z.string().optional(),
|
|
785
|
+
resource_id: z.string().optional(),
|
|
786
|
+
group_id: z.string().optional(),
|
|
787
|
+
endpoint_name: z.string().optional(),
|
|
788
|
+
connection_state: z
|
|
789
|
+
.enum(CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState)
|
|
790
|
+
.optional(),
|
|
791
|
+
creation_time: z
|
|
792
|
+
.union([z.number(), z.bigint()])
|
|
793
|
+
.transform(v => BigInt(v))
|
|
794
|
+
.optional(),
|
|
795
|
+
updated_time: z
|
|
796
|
+
.union([z.number(), z.bigint()])
|
|
797
|
+
.transform(v => BigInt(v))
|
|
798
|
+
.optional(),
|
|
799
|
+
deactivated: z.boolean().optional(),
|
|
800
|
+
deactivated_at: z
|
|
801
|
+
.union([z.number(), z.bigint()])
|
|
802
|
+
.transform(v => BigInt(v))
|
|
803
|
+
.optional(),
|
|
804
|
+
domain_names: z.array(z.string()).optional(),
|
|
805
|
+
error_message: z.string().optional(),
|
|
806
|
+
})
|
|
807
|
+
.transform(d => ({
|
|
808
|
+
ruleId: d.rule_id,
|
|
809
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
810
|
+
resourceId: d.resource_id,
|
|
811
|
+
groupId: d.group_id,
|
|
812
|
+
endpointName: d.endpoint_name,
|
|
813
|
+
connectionState: d.connection_state,
|
|
814
|
+
creationTime: d.creation_time,
|
|
815
|
+
updatedTime: d.updated_time,
|
|
816
|
+
deactivated: d.deactivated,
|
|
817
|
+
deactivatedAt: d.deactivated_at,
|
|
818
|
+
domainNames: d.domain_names,
|
|
819
|
+
errorMessage: d.error_message,
|
|
820
|
+
}));
|
|
821
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema = z
|
|
822
|
+
.object({
|
|
823
|
+
default_rules: z
|
|
824
|
+
.lazy(() => unmarshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema)
|
|
825
|
+
.optional(),
|
|
826
|
+
target_rules: z
|
|
827
|
+
.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema)
|
|
828
|
+
.optional(),
|
|
829
|
+
})
|
|
830
|
+
.transform(d => ({
|
|
831
|
+
defaultRules: d.default_rules,
|
|
832
|
+
targetRules: d.target_rules,
|
|
833
|
+
}));
|
|
834
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
835
|
+
export const unmarshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema = z
|
|
836
|
+
.object({
|
|
837
|
+
azure_private_endpoint_rules: z
|
|
838
|
+
.array(z.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRuleSchema))
|
|
839
|
+
.optional(),
|
|
840
|
+
aws_private_endpoint_rules: z
|
|
841
|
+
.array(z.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema))
|
|
842
|
+
.optional(),
|
|
843
|
+
})
|
|
844
|
+
.transform(d => ({
|
|
845
|
+
azurePrivateEndpointRules: d.azure_private_endpoint_rules,
|
|
846
|
+
awsPrivateEndpointRules: d.aws_private_endpoint_rules,
|
|
847
|
+
}));
|
|
848
|
+
export const unmarshalCustomerFacingPrivateAccessSettingsSchema = z
|
|
849
|
+
.object({
|
|
850
|
+
private_access_settings_id: z.string().optional(),
|
|
851
|
+
account_id: z.string().optional(),
|
|
852
|
+
private_access_settings_name: z.string().optional(),
|
|
853
|
+
region: z.string().optional(),
|
|
854
|
+
public_access_enabled: z.boolean().optional(),
|
|
855
|
+
private_access_level: z.enum(PrivateAccessLevel).optional(),
|
|
856
|
+
allowed_vpc_endpoint_ids: z.array(z.string()).optional(),
|
|
857
|
+
})
|
|
858
|
+
.transform(d => ({
|
|
859
|
+
privateAccessSettingsId: d.private_access_settings_id,
|
|
860
|
+
accountId: d.account_id,
|
|
861
|
+
privateAccessSettingsName: d.private_access_settings_name,
|
|
862
|
+
region: d.region,
|
|
863
|
+
publicAccessEnabled: d.public_access_enabled,
|
|
864
|
+
privateAccessLevel: d.private_access_level,
|
|
865
|
+
allowedVpcEndpointIds: d.allowed_vpc_endpoint_ids,
|
|
866
|
+
}));
|
|
867
|
+
export const unmarshalCustomerFacingVpcEndpointSchema = z
|
|
868
|
+
.object({
|
|
869
|
+
vpc_endpoint_id: z.string().optional(),
|
|
870
|
+
account_id: z.string().optional(),
|
|
871
|
+
vpc_endpoint_name: z.string().optional(),
|
|
872
|
+
aws_vpc_endpoint_id: z.string().optional(),
|
|
873
|
+
aws_endpoint_service_id: z.string().optional(),
|
|
874
|
+
use_case: z.enum(CustomerFacingVpcEndpointUseCase).optional(),
|
|
875
|
+
region: z.string().optional(),
|
|
876
|
+
aws_account_id: z.string().optional(),
|
|
877
|
+
state: z.string().optional(),
|
|
878
|
+
gcp_vpc_endpoint_info: z
|
|
879
|
+
.lazy(() => unmarshalCustomerFacingGcpVpcEndpointInfoSchema)
|
|
880
|
+
.optional(),
|
|
881
|
+
})
|
|
882
|
+
.transform(d => ({
|
|
883
|
+
vpcEndpointId: d.vpc_endpoint_id,
|
|
884
|
+
accountId: d.account_id,
|
|
885
|
+
vpcEndpointName: d.vpc_endpoint_name,
|
|
886
|
+
awsVpcEndpointId: d.aws_vpc_endpoint_id,
|
|
887
|
+
awsEndpointServiceId: d.aws_endpoint_service_id,
|
|
888
|
+
useCase: d.use_case,
|
|
889
|
+
region: d.region,
|
|
890
|
+
awsAccountId: d.aws_account_id,
|
|
891
|
+
state: d.state,
|
|
892
|
+
vpcEndpointInfo: d.gcp_vpc_endpoint_info !== undefined
|
|
893
|
+
? {
|
|
894
|
+
$case: 'gcpVpcEndpointInfo',
|
|
895
|
+
gcpVpcEndpointInfo: d.gcp_vpc_endpoint_info,
|
|
896
|
+
}
|
|
897
|
+
: undefined,
|
|
898
|
+
}));
|
|
899
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
900
|
+
export const unmarshalDeleteAccountIpAccessListRequest_ResponseSchema = z.object({});
|
|
901
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
902
|
+
export const unmarshalDeleteIpAccessList_ResponseSchema = z.object({});
|
|
903
|
+
export const unmarshalEgressNetworkPolicySchema = z
|
|
904
|
+
.object({
|
|
905
|
+
network_access: z
|
|
906
|
+
.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema)
|
|
907
|
+
.optional(),
|
|
908
|
+
})
|
|
909
|
+
.transform(d => ({
|
|
910
|
+
networkAccess: d.network_access,
|
|
911
|
+
}));
|
|
912
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
913
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
|
|
914
|
+
.object({
|
|
915
|
+
restriction_mode: z
|
|
916
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode)
|
|
917
|
+
.optional(),
|
|
918
|
+
allowed_internet_destinations: z
|
|
919
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
920
|
+
.optional(),
|
|
921
|
+
allowed_storage_destinations: z
|
|
922
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema))
|
|
923
|
+
.optional(),
|
|
924
|
+
policy_enforcement: z
|
|
925
|
+
.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema)
|
|
926
|
+
.optional(),
|
|
927
|
+
blocked_internet_destinations: z
|
|
928
|
+
.array(z.lazy(() => unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
929
|
+
.optional(),
|
|
930
|
+
})
|
|
931
|
+
.transform(d => ({
|
|
932
|
+
restrictionMode: d.restriction_mode,
|
|
933
|
+
allowedInternetDestinations: d.allowed_internet_destinations,
|
|
934
|
+
allowedStorageDestinations: d.allowed_storage_destinations,
|
|
935
|
+
policyEnforcement: d.policy_enforcement,
|
|
936
|
+
blockedInternetDestinations: d.blocked_internet_destinations,
|
|
937
|
+
}));
|
|
938
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
939
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
|
|
940
|
+
.object({
|
|
941
|
+
destination: z.string().optional(),
|
|
942
|
+
internet_destination_type: z
|
|
943
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType)
|
|
944
|
+
.optional(),
|
|
945
|
+
})
|
|
946
|
+
.transform(d => ({
|
|
947
|
+
destination: d.destination,
|
|
948
|
+
internetDestinationType: d.internet_destination_type,
|
|
949
|
+
}));
|
|
950
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
951
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
|
|
952
|
+
.object({
|
|
953
|
+
enforcement_mode: z
|
|
954
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode)
|
|
955
|
+
.optional(),
|
|
956
|
+
dry_run_mode_product_filter: z
|
|
957
|
+
.array(z.enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter))
|
|
958
|
+
.optional(),
|
|
959
|
+
})
|
|
960
|
+
.transform(d => ({
|
|
961
|
+
enforcementMode: d.enforcement_mode,
|
|
962
|
+
dryRunModeProductFilter: d.dry_run_mode_product_filter,
|
|
963
|
+
}));
|
|
964
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
965
|
+
export const unmarshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema = z
|
|
966
|
+
.object({
|
|
967
|
+
bucket_name: z.string().optional(),
|
|
968
|
+
region: z.string().optional(),
|
|
969
|
+
storage_destination_type: z
|
|
970
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType)
|
|
971
|
+
.optional(),
|
|
972
|
+
azure_storage_account: z.string().optional(),
|
|
973
|
+
azure_storage_service: z.string().optional(),
|
|
974
|
+
})
|
|
975
|
+
.transform(d => ({
|
|
976
|
+
bucketName: d.bucket_name,
|
|
977
|
+
region: d.region,
|
|
978
|
+
storageDestinationType: d.storage_destination_type,
|
|
979
|
+
azureStorageAccount: d.azure_storage_account,
|
|
980
|
+
azureStorageService: d.azure_storage_service,
|
|
981
|
+
}));
|
|
982
|
+
export const unmarshalEndpointSchema = z
|
|
983
|
+
.object({
|
|
984
|
+
name: z.string().optional(),
|
|
985
|
+
endpoint_id: z.string().optional(),
|
|
986
|
+
account_id: z.string().optional(),
|
|
987
|
+
display_name: z.string().optional(),
|
|
988
|
+
use_case: z.enum(EndpointUseCase_EndpointUseCase).optional(),
|
|
989
|
+
region: z.string().optional(),
|
|
990
|
+
state: z.enum(EndpointState).optional(),
|
|
991
|
+
azure_private_endpoint_info: z
|
|
992
|
+
.lazy(() => unmarshalAzurePrivateEndpointInfoSchema)
|
|
993
|
+
.optional(),
|
|
994
|
+
create_time: z
|
|
995
|
+
.string()
|
|
996
|
+
.transform(s => Temporal.Instant.from(s))
|
|
997
|
+
.optional(),
|
|
998
|
+
})
|
|
999
|
+
.transform(d => ({
|
|
1000
|
+
name: d.name,
|
|
1001
|
+
endpointId: d.endpoint_id,
|
|
1002
|
+
accountId: d.account_id,
|
|
1003
|
+
displayName: d.display_name,
|
|
1004
|
+
useCase: d.use_case,
|
|
1005
|
+
region: d.region,
|
|
1006
|
+
state: d.state,
|
|
1007
|
+
endpointInfo: d.azure_private_endpoint_info !== undefined
|
|
1008
|
+
? {
|
|
1009
|
+
$case: 'azurePrivateEndpointInfo',
|
|
1010
|
+
azurePrivateEndpointInfo: d.azure_private_endpoint_info,
|
|
1011
|
+
}
|
|
1012
|
+
: undefined,
|
|
1013
|
+
createTime: d.create_time,
|
|
1014
|
+
}));
|
|
1015
|
+
export const unmarshalGcpEndpointSchema = z
|
|
1016
|
+
.object({
|
|
1017
|
+
psc_endpoint_uri: z.string().optional(),
|
|
1018
|
+
service_attachment: z.string().optional(),
|
|
1019
|
+
})
|
|
1020
|
+
.transform(d => ({
|
|
1021
|
+
pscEndpointUri: d.psc_endpoint_uri,
|
|
1022
|
+
targetServices: d.service_attachment !== undefined
|
|
1023
|
+
? {
|
|
1024
|
+
$case: 'serviceAttachment',
|
|
1025
|
+
serviceAttachment: d.service_attachment,
|
|
1026
|
+
}
|
|
1027
|
+
: undefined,
|
|
1028
|
+
}));
|
|
1029
|
+
export const unmarshalGcpNetworkInfoSchema = z
|
|
1030
|
+
.object({
|
|
1031
|
+
network_project_id: z.string().optional(),
|
|
1032
|
+
vpc_id: z.string().optional(),
|
|
1033
|
+
subnet_id: z.string().optional(),
|
|
1034
|
+
subnet_region: z.string().optional(),
|
|
1035
|
+
pod_ip_range_name: z.string().optional(),
|
|
1036
|
+
service_ip_range_name: z.string().optional(),
|
|
1037
|
+
})
|
|
1038
|
+
.transform(d => ({
|
|
1039
|
+
networkProjectId: d.network_project_id,
|
|
1040
|
+
vpcId: d.vpc_id,
|
|
1041
|
+
subnetId: d.subnet_id,
|
|
1042
|
+
subnetRegion: d.subnet_region,
|
|
1043
|
+
podIpRangeName: d.pod_ip_range_name,
|
|
1044
|
+
serviceIpRangeName: d.service_ip_range_name,
|
|
1045
|
+
}));
|
|
1046
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1047
|
+
export const unmarshalGetAccountIpAccessListRequest_ResponseSchema = z
|
|
1048
|
+
.object({
|
|
1049
|
+
ip_access_list: z
|
|
1050
|
+
.lazy(() => unmarshalAccountIpAccessListSchema)
|
|
1051
|
+
.optional(),
|
|
1052
|
+
})
|
|
1053
|
+
.transform(d => ({
|
|
1054
|
+
ipAccessList: d.ip_access_list,
|
|
1055
|
+
}));
|
|
1056
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1057
|
+
export const unmarshalGetIpAccessList_ResponseSchema = z
|
|
1058
|
+
.object({
|
|
1059
|
+
ip_access_list: z.lazy(() => unmarshalIpAccessListSchema).optional(),
|
|
1060
|
+
})
|
|
1061
|
+
.transform(d => ({
|
|
1062
|
+
ipAccessList: d.ip_access_list,
|
|
1063
|
+
}));
|
|
1064
|
+
export const unmarshalIpAccessListSchema = z
|
|
1065
|
+
.object({
|
|
1066
|
+
list_id: z.string().optional(),
|
|
1067
|
+
label: z.string().optional(),
|
|
1068
|
+
ip_addresses: z.array(z.string()).optional(),
|
|
1069
|
+
address_count: z.number().optional(),
|
|
1070
|
+
list_type: z.enum(IpAccessListType).optional(),
|
|
1071
|
+
created_at: z
|
|
1072
|
+
.union([z.number(), z.bigint()])
|
|
1073
|
+
.transform(v => BigInt(v))
|
|
1074
|
+
.optional(),
|
|
1075
|
+
created_by: z
|
|
1076
|
+
.union([z.number(), z.bigint()])
|
|
1077
|
+
.transform(v => BigInt(v))
|
|
1078
|
+
.optional(),
|
|
1079
|
+
updated_at: z
|
|
1080
|
+
.union([z.number(), z.bigint()])
|
|
1081
|
+
.transform(v => BigInt(v))
|
|
1082
|
+
.optional(),
|
|
1083
|
+
updated_by: z
|
|
1084
|
+
.union([z.number(), z.bigint()])
|
|
1085
|
+
.transform(v => BigInt(v))
|
|
1086
|
+
.optional(),
|
|
1087
|
+
enabled: z.boolean().optional(),
|
|
1088
|
+
})
|
|
1089
|
+
.transform(d => ({
|
|
1090
|
+
listId: d.list_id,
|
|
1091
|
+
label: d.label,
|
|
1092
|
+
ipAddresses: d.ip_addresses,
|
|
1093
|
+
addressCount: d.address_count,
|
|
1094
|
+
listType: d.list_type,
|
|
1095
|
+
createdAt: d.created_at,
|
|
1096
|
+
createdBy: d.created_by,
|
|
1097
|
+
updatedAt: d.updated_at,
|
|
1098
|
+
updatedBy: d.updated_by,
|
|
1099
|
+
enabled: d.enabled,
|
|
1100
|
+
}));
|
|
1101
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1102
|
+
export const unmarshalListAccountIpAccessListsRequest_ResponseSchema = z
|
|
1103
|
+
.object({
|
|
1104
|
+
ip_access_lists: z
|
|
1105
|
+
.array(z.lazy(() => unmarshalAccountIpAccessListSchema))
|
|
1106
|
+
.optional(),
|
|
1107
|
+
})
|
|
1108
|
+
.transform(d => ({
|
|
1109
|
+
ipAccessLists: d.ip_access_lists,
|
|
1110
|
+
}));
|
|
1111
|
+
export const unmarshalListEndpointsResponseSchema = z
|
|
1112
|
+
.object({
|
|
1113
|
+
items: z.array(z.lazy(() => unmarshalEndpointSchema)).optional(),
|
|
1114
|
+
next_page_token: z.string().optional(),
|
|
1115
|
+
})
|
|
1116
|
+
.transform(d => ({
|
|
1117
|
+
items: d.items,
|
|
1118
|
+
nextPageToken: d.next_page_token,
|
|
1119
|
+
}));
|
|
1120
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1121
|
+
export const unmarshalListIpAccessLists_ResponseSchema = z
|
|
1122
|
+
.object({
|
|
1123
|
+
ip_access_lists: z
|
|
1124
|
+
.array(z.lazy(() => unmarshalIpAccessListSchema))
|
|
1125
|
+
.optional(),
|
|
1126
|
+
})
|
|
1127
|
+
.transform(d => ({
|
|
1128
|
+
ipAccessLists: d.ip_access_lists,
|
|
1129
|
+
}));
|
|
1130
|
+
export const unmarshalListNccPrivateEndpointRulesResponseSchema = z
|
|
1131
|
+
.object({
|
|
1132
|
+
items: z
|
|
1133
|
+
.array(z.lazy(() => unmarshalNccPrivateEndpointRuleSchema))
|
|
1134
|
+
.optional(),
|
|
1135
|
+
next_page_token: z.string().optional(),
|
|
1136
|
+
})
|
|
1137
|
+
.transform(d => ({
|
|
1138
|
+
items: d.items,
|
|
1139
|
+
nextPageToken: d.next_page_token,
|
|
1140
|
+
}));
|
|
1141
|
+
export const unmarshalListNetworkConnectivityConfigsResponseSchema = z
|
|
1142
|
+
.object({
|
|
1143
|
+
items: z
|
|
1144
|
+
.array(z.lazy(() => unmarshalCustomerFacingNetworkConnectivityConfigSchema))
|
|
1145
|
+
.optional(),
|
|
1146
|
+
next_page_token: z.string().optional(),
|
|
1147
|
+
})
|
|
1148
|
+
.transform(d => ({
|
|
1149
|
+
items: d.items,
|
|
1150
|
+
nextPageToken: d.next_page_token,
|
|
1151
|
+
}));
|
|
1152
|
+
export const unmarshalListNetworkPoliciesResponseSchema = z
|
|
1153
|
+
.object({
|
|
1154
|
+
items: z
|
|
1155
|
+
.array(z.lazy(() => unmarshalAccountNetworkPolicySchema))
|
|
1156
|
+
.optional(),
|
|
1157
|
+
next_page_token: z.string().optional(),
|
|
1158
|
+
})
|
|
1159
|
+
.transform(d => ({
|
|
1160
|
+
items: d.items,
|
|
1161
|
+
nextPageToken: d.next_page_token,
|
|
1162
|
+
}));
|
|
1163
|
+
export const unmarshalNccPrivateEndpointRuleSchema = z
|
|
1164
|
+
.object({
|
|
1165
|
+
rule_id: z.string().optional(),
|
|
1166
|
+
network_connectivity_config_id: z.string().optional(),
|
|
1167
|
+
connection_state: z
|
|
1168
|
+
.enum(NccPrivateEndpointRule_PrivateLinkConnectionState)
|
|
1169
|
+
.optional(),
|
|
1170
|
+
domain_names: z.array(z.string()).optional(),
|
|
1171
|
+
creation_time: z
|
|
1172
|
+
.union([z.number(), z.bigint()])
|
|
1173
|
+
.transform(v => BigInt(v))
|
|
1174
|
+
.optional(),
|
|
1175
|
+
updated_time: z
|
|
1176
|
+
.union([z.number(), z.bigint()])
|
|
1177
|
+
.transform(v => BigInt(v))
|
|
1178
|
+
.optional(),
|
|
1179
|
+
deactivated: z.boolean().optional(),
|
|
1180
|
+
deactivated_at: z
|
|
1181
|
+
.union([z.number(), z.bigint()])
|
|
1182
|
+
.transform(v => BigInt(v))
|
|
1183
|
+
.optional(),
|
|
1184
|
+
error_message: z.string().optional(),
|
|
1185
|
+
resource_id: z.string().optional(),
|
|
1186
|
+
group_id: z.string().optional(),
|
|
1187
|
+
endpoint_name: z.string().optional(),
|
|
1188
|
+
account_id: z.string().optional(),
|
|
1189
|
+
endpoint_service: z.string().optional(),
|
|
1190
|
+
resource_names: z.array(z.string()).optional(),
|
|
1191
|
+
vpc_endpoint_id: z.string().optional(),
|
|
1192
|
+
enabled: z.boolean().optional(),
|
|
1193
|
+
gcp_endpoint: z.lazy(() => unmarshalGcpEndpointSchema).optional(),
|
|
1194
|
+
})
|
|
1195
|
+
.transform(d => ({
|
|
1196
|
+
ruleId: d.rule_id,
|
|
1197
|
+
networkConnectivityConfigId: d.network_connectivity_config_id,
|
|
1198
|
+
connectionState: d.connection_state,
|
|
1199
|
+
domainNames: d.domain_names,
|
|
1200
|
+
creationTime: d.creation_time,
|
|
1201
|
+
updatedTime: d.updated_time,
|
|
1202
|
+
deactivated: d.deactivated,
|
|
1203
|
+
deactivatedAt: d.deactivated_at,
|
|
1204
|
+
errorMessage: d.error_message,
|
|
1205
|
+
resourceId: d.resource_id,
|
|
1206
|
+
groupId: d.group_id,
|
|
1207
|
+
endpointName: d.endpoint_name,
|
|
1208
|
+
accountId: d.account_id,
|
|
1209
|
+
endpointService: d.endpoint_service,
|
|
1210
|
+
resourceNames: d.resource_names,
|
|
1211
|
+
vpcEndpointId: d.vpc_endpoint_id,
|
|
1212
|
+
enabled: d.enabled,
|
|
1213
|
+
endpoint: d.gcp_endpoint !== undefined
|
|
1214
|
+
? { $case: 'gcpEndpoint', gcpEndpoint: d.gcp_endpoint }
|
|
1215
|
+
: undefined,
|
|
1216
|
+
}));
|
|
1217
|
+
export const unmarshalNetworkSchema = z
|
|
1218
|
+
.object({
|
|
1219
|
+
network_id: z.string().optional(),
|
|
1220
|
+
account_id: z.string().optional(),
|
|
1221
|
+
workspace_id: z
|
|
1222
|
+
.union([z.number(), z.bigint()])
|
|
1223
|
+
.transform(v => BigInt(v))
|
|
1224
|
+
.optional(),
|
|
1225
|
+
vpc_id: z.string().optional(),
|
|
1226
|
+
subnet_ids: z.array(z.string()).optional(),
|
|
1227
|
+
security_group_ids: z.array(z.string()).optional(),
|
|
1228
|
+
vpc_status: z.enum(VpcStatus).optional(),
|
|
1229
|
+
error_messages: z
|
|
1230
|
+
.array(z.lazy(() => unmarshalNetworkHealthSchema))
|
|
1231
|
+
.optional(),
|
|
1232
|
+
network_name: z.string().optional(),
|
|
1233
|
+
creation_time: z
|
|
1234
|
+
.union([z.number(), z.bigint()])
|
|
1235
|
+
.transform(v => BigInt(v))
|
|
1236
|
+
.optional(),
|
|
1237
|
+
warning_messages: z
|
|
1238
|
+
.array(z.lazy(() => unmarshalNetworkWarningSchema))
|
|
1239
|
+
.optional(),
|
|
1240
|
+
vpc_endpoints: z.lazy(() => unmarshalNetworkVpcEndpointsSchema).optional(),
|
|
1241
|
+
gcp_network_info: z.lazy(() => unmarshalGcpNetworkInfoSchema).optional(),
|
|
1242
|
+
})
|
|
1243
|
+
.transform(d => ({
|
|
1244
|
+
networkId: d.network_id,
|
|
1245
|
+
accountId: d.account_id,
|
|
1246
|
+
workspaceId: d.workspace_id,
|
|
1247
|
+
vpcId: d.vpc_id,
|
|
1248
|
+
subnetIds: d.subnet_ids,
|
|
1249
|
+
securityGroupIds: d.security_group_ids,
|
|
1250
|
+
vpcStatus: d.vpc_status,
|
|
1251
|
+
errorMessages: d.error_messages,
|
|
1252
|
+
networkName: d.network_name,
|
|
1253
|
+
creationTime: d.creation_time,
|
|
1254
|
+
warningMessages: d.warning_messages,
|
|
1255
|
+
vpcEndpoints: d.vpc_endpoints,
|
|
1256
|
+
networkInfo: d.gcp_network_info !== undefined
|
|
1257
|
+
? { $case: 'gcpNetworkInfo', gcpNetworkInfo: d.gcp_network_info }
|
|
1258
|
+
: undefined,
|
|
1259
|
+
}));
|
|
1260
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1261
|
+
export const unmarshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema = z
|
|
1262
|
+
.object({
|
|
1263
|
+
azure_service_endpoint_rule: z
|
|
1264
|
+
.lazy(() => unmarshalNetworkConnectivityConfigEgressConfig_DefaultRule_AzureServiceEndpointRuleSchema)
|
|
1265
|
+
.optional(),
|
|
1266
|
+
aws_stable_ip_rule: z
|
|
1267
|
+
.lazy(() => unmarshalNetworkConnectivityConfigEgressConfig_DefaultRule_AwsStableIpRuleSchema)
|
|
1268
|
+
.optional(),
|
|
1269
|
+
})
|
|
1270
|
+
.transform(d => ({
|
|
1271
|
+
azureServiceEndpointRule: d.azure_service_endpoint_rule,
|
|
1272
|
+
awsStableIpRule: d.aws_stable_ip_rule,
|
|
1273
|
+
}));
|
|
1274
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1275
|
+
export const unmarshalNetworkConnectivityConfigEgressConfig_DefaultRule_AwsStableIpRuleSchema = z
|
|
1276
|
+
.object({
|
|
1277
|
+
cidr_blocks: z.array(z.string()).optional(),
|
|
1278
|
+
})
|
|
1279
|
+
.transform(d => ({
|
|
1280
|
+
cidrBlocks: d.cidr_blocks,
|
|
1281
|
+
}));
|
|
1282
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1283
|
+
export const unmarshalNetworkConnectivityConfigEgressConfig_DefaultRule_AzureServiceEndpointRuleSchema = z
|
|
1284
|
+
.object({
|
|
1285
|
+
target_region: z.string().optional(),
|
|
1286
|
+
target_services: z.array(z.enum(EgressResourceType)).optional(),
|
|
1287
|
+
subnets: z.array(z.string()).optional(),
|
|
1288
|
+
})
|
|
1289
|
+
.transform(d => ({
|
|
1290
|
+
targetRegion: d.target_region,
|
|
1291
|
+
targetServices: d.target_services,
|
|
1292
|
+
subnets: d.subnets,
|
|
1293
|
+
}));
|
|
1294
|
+
export const unmarshalNetworkHealthSchema = z
|
|
1295
|
+
.object({
|
|
1296
|
+
error_type: z.string().optional(),
|
|
1297
|
+
error_message: z.string().optional(),
|
|
1298
|
+
})
|
|
1299
|
+
.transform(d => ({
|
|
1300
|
+
errorType: d.error_type,
|
|
1301
|
+
errorMessage: d.error_message,
|
|
1302
|
+
}));
|
|
1303
|
+
export const unmarshalNetworkVpcEndpointsSchema = z
|
|
1304
|
+
.object({
|
|
1305
|
+
rest_api: z.array(z.string()).optional(),
|
|
1306
|
+
dataplane_relay: z.array(z.string()).optional(),
|
|
1307
|
+
})
|
|
1308
|
+
.transform(d => ({
|
|
1309
|
+
restApi: d.rest_api,
|
|
1310
|
+
dataplaneRelay: d.dataplane_relay,
|
|
1311
|
+
}));
|
|
1312
|
+
export const unmarshalNetworkWarningSchema = z
|
|
1313
|
+
.object({
|
|
1314
|
+
warning_type: z.string().optional(),
|
|
1315
|
+
warning_message: z.string().optional(),
|
|
1316
|
+
})
|
|
1317
|
+
.transform(d => ({
|
|
1318
|
+
warningType: d.warning_type,
|
|
1319
|
+
warningMessage: d.warning_message,
|
|
1320
|
+
}));
|
|
1321
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1322
|
+
export const unmarshalReplaceAccountIpAccessListRequest_ResponseSchema = z
|
|
1323
|
+
.object({
|
|
1324
|
+
ip_access_list: z
|
|
1325
|
+
.lazy(() => unmarshalAccountIpAccessListSchema)
|
|
1326
|
+
.optional(),
|
|
1327
|
+
})
|
|
1328
|
+
.transform(d => ({
|
|
1329
|
+
ipAccessList: d.ip_access_list,
|
|
1330
|
+
}));
|
|
1331
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1332
|
+
export const unmarshalReplaceIpAccessList_ResponseSchema = z
|
|
1333
|
+
.object({
|
|
1334
|
+
ip_access_list: z.lazy(() => unmarshalIpAccessListSchema).optional(),
|
|
1335
|
+
})
|
|
1336
|
+
.transform(d => ({
|
|
1337
|
+
ipAccessList: d.ip_access_list,
|
|
1338
|
+
}));
|
|
1339
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1340
|
+
export const unmarshalUpdateAccountIpAccessListRequest_ResponseSchema = z
|
|
1341
|
+
.object({
|
|
1342
|
+
ip_access_list: z
|
|
1343
|
+
.lazy(() => unmarshalAccountIpAccessListSchema)
|
|
1344
|
+
.optional(),
|
|
1345
|
+
})
|
|
1346
|
+
.transform(d => ({
|
|
1347
|
+
ipAccessList: d.ip_access_list,
|
|
1348
|
+
}));
|
|
1349
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1350
|
+
export const unmarshalUpdateIpAccessList_ResponseSchema = z
|
|
1351
|
+
.object({
|
|
1352
|
+
ip_access_list: z.lazy(() => unmarshalIpAccessListSchema).optional(),
|
|
1353
|
+
})
|
|
1354
|
+
.transform(d => ({
|
|
1355
|
+
ipAccessList: d.ip_access_list,
|
|
1356
|
+
}));
|
|
1357
|
+
export const unmarshalWorkspaceNetworkOptionSchema = z
|
|
1358
|
+
.object({
|
|
1359
|
+
network_policy_id: z.string().optional(),
|
|
1360
|
+
workspace_id: z
|
|
1361
|
+
.union([z.number(), z.bigint()])
|
|
1362
|
+
.transform(v => BigInt(v))
|
|
1363
|
+
.optional(),
|
|
1364
|
+
})
|
|
1365
|
+
.transform(d => ({
|
|
1366
|
+
networkPolicyId: d.network_policy_id,
|
|
1367
|
+
workspaceId: d.workspace_id,
|
|
1368
|
+
}));
|
|
1369
|
+
export const marshalAccountNetworkPolicySchema = z
|
|
1370
|
+
.object({
|
|
1371
|
+
networkPolicyId: z.string().optional(),
|
|
1372
|
+
accountId: z.string().optional(),
|
|
1373
|
+
egress: z.lazy(() => marshalEgressNetworkPolicySchema).optional(),
|
|
1374
|
+
ingress: z
|
|
1375
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicySchema)
|
|
1376
|
+
.optional(),
|
|
1377
|
+
ingressDryRun: z
|
|
1378
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicySchema)
|
|
1379
|
+
.optional(),
|
|
1380
|
+
})
|
|
1381
|
+
.transform(d => ({
|
|
1382
|
+
network_policy_id: d.networkPolicyId,
|
|
1383
|
+
account_id: d.accountId,
|
|
1384
|
+
egress: d.egress,
|
|
1385
|
+
ingress: d.ingress,
|
|
1386
|
+
ingress_dry_run: d.ingressDryRun,
|
|
1387
|
+
}));
|
|
1388
|
+
export const marshalAzurePrivateEndpointInfoSchema = z
|
|
1389
|
+
.object({
|
|
1390
|
+
privateEndpointName: z.string().optional(),
|
|
1391
|
+
privateEndpointResourceGuid: z.string().optional(),
|
|
1392
|
+
privateEndpointResourceId: z.string().optional(),
|
|
1393
|
+
privateLinkServiceId: z.string().optional(),
|
|
1394
|
+
})
|
|
1395
|
+
.transform(d => ({
|
|
1396
|
+
private_endpoint_name: d.privateEndpointName,
|
|
1397
|
+
private_endpoint_resource_guid: d.privateEndpointResourceGuid,
|
|
1398
|
+
private_endpoint_resource_id: d.privateEndpointResourceId,
|
|
1399
|
+
private_link_service_id: d.privateLinkServiceId,
|
|
1400
|
+
}));
|
|
1401
|
+
export const marshalCreateAccountIpAccessListRequestSchema = z
|
|
1402
|
+
.object({
|
|
1403
|
+
accountId: z.string().optional(),
|
|
1404
|
+
label: z.string().optional(),
|
|
1405
|
+
listType: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
|
|
1406
|
+
ipAddresses: z.array(z.string()).optional(),
|
|
1407
|
+
})
|
|
1408
|
+
.transform(d => ({
|
|
1409
|
+
account_id: d.accountId,
|
|
1410
|
+
label: d.label,
|
|
1411
|
+
list_type: d.listType,
|
|
1412
|
+
ip_addresses: d.ipAddresses,
|
|
1413
|
+
}));
|
|
1414
|
+
export const marshalCreateIpAccessListSchema = z
|
|
1415
|
+
.object({
|
|
1416
|
+
label: z.string().optional(),
|
|
1417
|
+
listType: z.enum(IpAccessListType).optional(),
|
|
1418
|
+
ipAddresses: z.array(z.string()).optional(),
|
|
1419
|
+
})
|
|
1420
|
+
.transform(d => ({
|
|
1421
|
+
label: d.label,
|
|
1422
|
+
list_type: d.listType,
|
|
1423
|
+
ip_addresses: d.ipAddresses,
|
|
1424
|
+
}));
|
|
1425
|
+
export const marshalCreateNetworkConnectivityConfigurationSchema = z
|
|
1426
|
+
.object({
|
|
1427
|
+
networkConnectivityConfigId: z.string().optional(),
|
|
1428
|
+
accountId: z.string().optional(),
|
|
1429
|
+
name: z.string().optional(),
|
|
1430
|
+
region: z.string().optional(),
|
|
1431
|
+
egressConfig: z
|
|
1432
|
+
.lazy(() => marshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema)
|
|
1433
|
+
.optional(),
|
|
1434
|
+
updatedTime: z.bigint().optional(),
|
|
1435
|
+
creationTime: z.bigint().optional(),
|
|
1436
|
+
})
|
|
1437
|
+
.transform(d => ({
|
|
1438
|
+
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
1439
|
+
account_id: d.accountId,
|
|
1440
|
+
name: d.name,
|
|
1441
|
+
region: d.region,
|
|
1442
|
+
egress_config: d.egressConfig,
|
|
1443
|
+
updated_time: d.updatedTime,
|
|
1444
|
+
creation_time: d.creationTime,
|
|
1445
|
+
}));
|
|
1446
|
+
export const marshalCreateNetworkRequestSchema = z
|
|
1447
|
+
.object({
|
|
1448
|
+
accountId: z.string().optional(),
|
|
1449
|
+
networkName: z.string().optional(),
|
|
1450
|
+
vpcId: z.string().optional(),
|
|
1451
|
+
subnetIds: z.array(z.string()).optional(),
|
|
1452
|
+
securityGroupIds: z.array(z.string()).optional(),
|
|
1453
|
+
vpcEndpoints: z.lazy(() => marshalNetworkVpcEndpointsSchema).optional(),
|
|
1454
|
+
gcpNetworkInfo: z.lazy(() => marshalGcpNetworkInfoSchema).optional(),
|
|
1455
|
+
})
|
|
1456
|
+
.transform(d => ({
|
|
1457
|
+
account_id: d.accountId,
|
|
1458
|
+
network_name: d.networkName,
|
|
1459
|
+
vpc_id: d.vpcId,
|
|
1460
|
+
subnet_ids: d.subnetIds,
|
|
1461
|
+
security_group_ids: d.securityGroupIds,
|
|
1462
|
+
vpc_endpoints: d.vpcEndpoints,
|
|
1463
|
+
gcp_network_info: d.gcpNetworkInfo,
|
|
1464
|
+
}));
|
|
1465
|
+
export const marshalCreatePrivateAccessSettingsRequestSchema = z
|
|
1466
|
+
.object({
|
|
1467
|
+
accountId: z.string().optional(),
|
|
1468
|
+
privateAccessSettingsName: z.string().optional(),
|
|
1469
|
+
region: z.string().optional(),
|
|
1470
|
+
publicAccessEnabled: z.boolean().optional(),
|
|
1471
|
+
privateAccessLevel: z.enum(PrivateAccessLevel).optional(),
|
|
1472
|
+
allowedVpcEndpointIds: z.array(z.string()).optional(),
|
|
1473
|
+
})
|
|
1474
|
+
.transform(d => ({
|
|
1475
|
+
account_id: d.accountId,
|
|
1476
|
+
private_access_settings_name: d.privateAccessSettingsName,
|
|
1477
|
+
region: d.region,
|
|
1478
|
+
public_access_enabled: d.publicAccessEnabled,
|
|
1479
|
+
private_access_level: d.privateAccessLevel,
|
|
1480
|
+
allowed_vpc_endpoint_ids: d.allowedVpcEndpointIds,
|
|
1481
|
+
}));
|
|
1482
|
+
export const marshalCreatePrivateEndpointRuleSchema = z
|
|
1483
|
+
.object({
|
|
1484
|
+
ruleId: z.string().optional(),
|
|
1485
|
+
networkConnectivityConfigId: z.string().optional(),
|
|
1486
|
+
connectionState: z
|
|
1487
|
+
.enum(NccPrivateEndpointRule_PrivateLinkConnectionState)
|
|
1488
|
+
.optional(),
|
|
1489
|
+
domainNames: z.array(z.string()).optional(),
|
|
1490
|
+
creationTime: z.bigint().optional(),
|
|
1491
|
+
updatedTime: z.bigint().optional(),
|
|
1492
|
+
deactivated: z.boolean().optional(),
|
|
1493
|
+
deactivatedAt: z.bigint().optional(),
|
|
1494
|
+
errorMessage: z.string().optional(),
|
|
1495
|
+
resourceId: z.string().optional(),
|
|
1496
|
+
groupId: z.string().optional(),
|
|
1497
|
+
endpointName: z.string().optional(),
|
|
1498
|
+
accountId: z.string().optional(),
|
|
1499
|
+
endpointService: z.string().optional(),
|
|
1500
|
+
resourceNames: z.array(z.string()).optional(),
|
|
1501
|
+
vpcEndpointId: z.string().optional(),
|
|
1502
|
+
enabled: z.boolean().optional(),
|
|
1503
|
+
endpoint: z
|
|
1504
|
+
.discriminatedUnion('$case', [
|
|
1505
|
+
z.object({
|
|
1506
|
+
$case: z.literal('gcpEndpoint'),
|
|
1507
|
+
gcpEndpoint: z.lazy(() => marshalGcpEndpointSchema),
|
|
1508
|
+
}),
|
|
1509
|
+
])
|
|
1510
|
+
.optional(),
|
|
1511
|
+
})
|
|
1512
|
+
.transform(d => ({
|
|
1513
|
+
rule_id: d.ruleId,
|
|
1514
|
+
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
1515
|
+
connection_state: d.connectionState,
|
|
1516
|
+
domain_names: d.domainNames,
|
|
1517
|
+
creation_time: d.creationTime,
|
|
1518
|
+
updated_time: d.updatedTime,
|
|
1519
|
+
deactivated: d.deactivated,
|
|
1520
|
+
deactivated_at: d.deactivatedAt,
|
|
1521
|
+
error_message: d.errorMessage,
|
|
1522
|
+
resource_id: d.resourceId,
|
|
1523
|
+
group_id: d.groupId,
|
|
1524
|
+
endpoint_name: d.endpointName,
|
|
1525
|
+
account_id: d.accountId,
|
|
1526
|
+
endpoint_service: d.endpointService,
|
|
1527
|
+
resource_names: d.resourceNames,
|
|
1528
|
+
vpc_endpoint_id: d.vpcEndpointId,
|
|
1529
|
+
enabled: d.enabled,
|
|
1530
|
+
...(d.endpoint?.$case === 'gcpEndpoint' && {
|
|
1531
|
+
gcp_endpoint: d.endpoint.gcpEndpoint,
|
|
1532
|
+
}),
|
|
1533
|
+
}));
|
|
1534
|
+
export const marshalCreateVpcEndpointRequestSchema = z
|
|
1535
|
+
.object({
|
|
1536
|
+
accountId: z.string().optional(),
|
|
1537
|
+
vpcEndpointName: z.string().optional(),
|
|
1538
|
+
region: z.string().optional(),
|
|
1539
|
+
awsVpcEndpointId: z.string().optional(),
|
|
1540
|
+
vpcEndpointInfo: z
|
|
1541
|
+
.discriminatedUnion('$case', [
|
|
1542
|
+
z.object({
|
|
1543
|
+
$case: z.literal('gcpVpcEndpointInfo'),
|
|
1544
|
+
gcpVpcEndpointInfo: z.lazy(() => marshalCustomerFacingGcpVpcEndpointInfoSchema),
|
|
1545
|
+
}),
|
|
1546
|
+
])
|
|
1547
|
+
.optional(),
|
|
1548
|
+
})
|
|
1549
|
+
.transform(d => ({
|
|
1550
|
+
account_id: d.accountId,
|
|
1551
|
+
vpc_endpoint_name: d.vpcEndpointName,
|
|
1552
|
+
region: d.region,
|
|
1553
|
+
aws_vpc_endpoint_id: d.awsVpcEndpointId,
|
|
1554
|
+
...(d.vpcEndpointInfo?.$case === 'gcpVpcEndpointInfo' && {
|
|
1555
|
+
gcp_vpc_endpoint_info: d.vpcEndpointInfo.gcpVpcEndpointInfo,
|
|
1556
|
+
}),
|
|
1557
|
+
}));
|
|
1558
|
+
export const marshalCustomerFacingGcpVpcEndpointInfoSchema = z
|
|
1559
|
+
.object({
|
|
1560
|
+
pscConnectionId: z.string().optional(),
|
|
1561
|
+
projectId: z.string().optional(),
|
|
1562
|
+
pscEndpointName: z.string().optional(),
|
|
1563
|
+
endpointRegion: z.string().optional(),
|
|
1564
|
+
serviceAttachmentId: z.string().optional(),
|
|
1565
|
+
})
|
|
1566
|
+
.transform(d => ({
|
|
1567
|
+
psc_connection_id: d.pscConnectionId,
|
|
1568
|
+
project_id: d.projectId,
|
|
1569
|
+
psc_endpoint_name: d.pscEndpointName,
|
|
1570
|
+
endpoint_region: d.endpointRegion,
|
|
1571
|
+
service_attachment_id: d.serviceAttachmentId,
|
|
1572
|
+
}));
|
|
1573
|
+
export const marshalCustomerFacingIngressNetworkPolicySchema = z
|
|
1574
|
+
.object({
|
|
1575
|
+
publicAccess: z
|
|
1576
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema)
|
|
1577
|
+
.optional(),
|
|
1578
|
+
privateAccess: z
|
|
1579
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema)
|
|
1580
|
+
.optional(),
|
|
1581
|
+
crossWorkspaceAccess: z
|
|
1582
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema)
|
|
1583
|
+
.optional(),
|
|
1584
|
+
})
|
|
1585
|
+
.transform(d => ({
|
|
1586
|
+
public_access: d.publicAccess,
|
|
1587
|
+
private_access: d.privateAccess,
|
|
1588
|
+
cross_workspace_access: d.crossWorkspaceAccess,
|
|
1589
|
+
}));
|
|
1590
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1591
|
+
export const marshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSchema = z
|
|
1592
|
+
.object({
|
|
1593
|
+
scopes: z.array(z.string()).optional(),
|
|
1594
|
+
scopeQualifier: z
|
|
1595
|
+
.enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
|
|
1596
|
+
.optional(),
|
|
1597
|
+
})
|
|
1598
|
+
.transform(d => ({
|
|
1599
|
+
scopes: d.scopes,
|
|
1600
|
+
scope_qualifier: d.scopeQualifier,
|
|
1601
|
+
}));
|
|
1602
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1603
|
+
export const marshalCustomerFacingIngressNetworkPolicy_AccountDatabricksOneDestinationSchema = z
|
|
1604
|
+
.object({
|
|
1605
|
+
allDestinations: z.boolean().optional(),
|
|
1606
|
+
})
|
|
1607
|
+
.transform(d => ({
|
|
1608
|
+
all_destinations: d.allDestinations,
|
|
1609
|
+
}));
|
|
1610
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1611
|
+
export const marshalCustomerFacingIngressNetworkPolicy_AccountUiDestinationSchema = z
|
|
1612
|
+
.object({
|
|
1613
|
+
allDestinations: z.boolean().optional(),
|
|
1614
|
+
})
|
|
1615
|
+
.transform(d => ({
|
|
1616
|
+
all_destinations: d.allDestinations,
|
|
1617
|
+
}));
|
|
1618
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1619
|
+
export const marshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationSchema = z
|
|
1620
|
+
.object({
|
|
1621
|
+
allDestinations: z.boolean().optional(),
|
|
1622
|
+
})
|
|
1623
|
+
.transform(d => ({
|
|
1624
|
+
all_destinations: d.allDestinations,
|
|
1625
|
+
}));
|
|
1626
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1627
|
+
export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema = z
|
|
1628
|
+
.object({
|
|
1629
|
+
identityType: z
|
|
1630
|
+
.enum(CustomerFacingIngressNetworkPolicy_Authentication_IdentityType)
|
|
1631
|
+
.optional(),
|
|
1632
|
+
identities: z
|
|
1633
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema))
|
|
1634
|
+
.optional(),
|
|
1635
|
+
})
|
|
1636
|
+
.transform(d => ({
|
|
1637
|
+
identity_type: d.identityType,
|
|
1638
|
+
identities: d.identities,
|
|
1639
|
+
}));
|
|
1640
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1641
|
+
export const marshalCustomerFacingIngressNetworkPolicy_AuthenticationIdentitySchema = z
|
|
1642
|
+
.object({
|
|
1643
|
+
principalType: z
|
|
1644
|
+
.enum(CustomerFacingIngressNetworkPolicy_AuthenticationIdentity_PrincipalType)
|
|
1645
|
+
.optional(),
|
|
1646
|
+
principalId: z.bigint().optional(),
|
|
1647
|
+
})
|
|
1648
|
+
.transform(d => ({
|
|
1649
|
+
principal_type: d.principalType,
|
|
1650
|
+
principal_id: d.principalId,
|
|
1651
|
+
}));
|
|
1652
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1653
|
+
export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceAccessSchema = z
|
|
1654
|
+
.object({
|
|
1655
|
+
restrictionMode: z
|
|
1656
|
+
.enum(CustomerFacingIngressNetworkPolicy_CrossWorkspaceAccess_RestrictionMode)
|
|
1657
|
+
.optional(),
|
|
1658
|
+
denyRules: z
|
|
1659
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
1660
|
+
.optional(),
|
|
1661
|
+
allowRules: z
|
|
1662
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema))
|
|
1663
|
+
.optional(),
|
|
1664
|
+
})
|
|
1665
|
+
.transform(d => ({
|
|
1666
|
+
restriction_mode: d.restrictionMode,
|
|
1667
|
+
deny_rules: d.denyRules,
|
|
1668
|
+
allow_rules: d.allowRules,
|
|
1669
|
+
}));
|
|
1670
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1671
|
+
export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceIngressRuleSchema = z
|
|
1672
|
+
.object({
|
|
1673
|
+
origin: z
|
|
1674
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema)
|
|
1675
|
+
.optional(),
|
|
1676
|
+
destination: z
|
|
1677
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema)
|
|
1678
|
+
.optional(),
|
|
1679
|
+
authentication: z
|
|
1680
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema)
|
|
1681
|
+
.optional(),
|
|
1682
|
+
label: z.string().optional(),
|
|
1683
|
+
})
|
|
1684
|
+
.transform(d => ({
|
|
1685
|
+
origin: d.origin,
|
|
1686
|
+
destination: d.destination,
|
|
1687
|
+
authentication: d.authentication,
|
|
1688
|
+
label: d.label,
|
|
1689
|
+
}));
|
|
1690
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1691
|
+
export const marshalCustomerFacingIngressNetworkPolicy_CrossWorkspaceRequestOriginSchema = z
|
|
1692
|
+
.object({
|
|
1693
|
+
source: z
|
|
1694
|
+
.discriminatedUnion('$case', [
|
|
1695
|
+
z.object({
|
|
1696
|
+
$case: z.literal('allSourceWorkspaces'),
|
|
1697
|
+
allSourceWorkspaces: z.boolean(),
|
|
1698
|
+
}),
|
|
1699
|
+
z.object({
|
|
1700
|
+
$case: z.literal('selectedWorkspaces'),
|
|
1701
|
+
selectedWorkspaces: z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_WorkspaceIdListSchema),
|
|
1702
|
+
}),
|
|
1703
|
+
])
|
|
1704
|
+
.optional(),
|
|
1705
|
+
})
|
|
1706
|
+
.transform(d => ({
|
|
1707
|
+
...(d.source?.$case === 'allSourceWorkspaces' && {
|
|
1708
|
+
all_source_workspaces: d.source.allSourceWorkspaces,
|
|
1709
|
+
}),
|
|
1710
|
+
...(d.source?.$case === 'selectedWorkspaces' && {
|
|
1711
|
+
selected_workspaces: d.source.selectedWorkspaces,
|
|
1712
|
+
}),
|
|
1713
|
+
}));
|
|
1714
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1715
|
+
export const marshalCustomerFacingIngressNetworkPolicy_EndpointsSchema = z
|
|
1716
|
+
.object({
|
|
1717
|
+
endpointIds: z.array(z.string()).optional(),
|
|
1718
|
+
})
|
|
1719
|
+
.transform(d => ({
|
|
1720
|
+
endpoint_ids: d.endpointIds,
|
|
1721
|
+
}));
|
|
1722
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1723
|
+
export const marshalCustomerFacingIngressNetworkPolicy_IpRangesSchema = z
|
|
1724
|
+
.object({
|
|
1725
|
+
ipRanges: z.array(z.string()).optional(),
|
|
1726
|
+
})
|
|
1727
|
+
.transform(d => ({
|
|
1728
|
+
ip_ranges: d.ipRanges,
|
|
1729
|
+
}));
|
|
1730
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1731
|
+
export const marshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinationSchema = z
|
|
1732
|
+
.object({
|
|
1733
|
+
allDestinations: z.boolean().optional(),
|
|
1734
|
+
})
|
|
1735
|
+
.transform(d => ({
|
|
1736
|
+
all_destinations: d.allDestinations,
|
|
1737
|
+
}));
|
|
1738
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1739
|
+
export const marshalCustomerFacingIngressNetworkPolicy_PrivateAccessSchema = z
|
|
1740
|
+
.object({
|
|
1741
|
+
restrictionMode: z
|
|
1742
|
+
.enum(CustomerFacingIngressNetworkPolicy_PrivateAccess_RestrictionMode)
|
|
1743
|
+
.optional(),
|
|
1744
|
+
denyRules: z
|
|
1745
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
1746
|
+
.optional(),
|
|
1747
|
+
allowRules: z
|
|
1748
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema))
|
|
1749
|
+
.optional(),
|
|
1750
|
+
})
|
|
1751
|
+
.transform(d => ({
|
|
1752
|
+
restriction_mode: d.restrictionMode,
|
|
1753
|
+
deny_rules: d.denyRules,
|
|
1754
|
+
allow_rules: d.allowRules,
|
|
1755
|
+
}));
|
|
1756
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1757
|
+
export const marshalCustomerFacingIngressNetworkPolicy_PrivateIngressRuleSchema = z
|
|
1758
|
+
.object({
|
|
1759
|
+
origin: z
|
|
1760
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSchema)
|
|
1761
|
+
.optional(),
|
|
1762
|
+
destination: z
|
|
1763
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema)
|
|
1764
|
+
.optional(),
|
|
1765
|
+
authentication: z
|
|
1766
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema)
|
|
1767
|
+
.optional(),
|
|
1768
|
+
label: z.string().optional(),
|
|
1769
|
+
})
|
|
1770
|
+
.transform(d => ({
|
|
1771
|
+
origin: d.origin,
|
|
1772
|
+
destination: d.destination,
|
|
1773
|
+
authentication: d.authentication,
|
|
1774
|
+
label: d.label,
|
|
1775
|
+
}));
|
|
1776
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1777
|
+
export const marshalCustomerFacingIngressNetworkPolicy_PrivateRequestOriginSchema = z
|
|
1778
|
+
.object({
|
|
1779
|
+
source: z
|
|
1780
|
+
.discriminatedUnion('$case', [
|
|
1781
|
+
z.object({
|
|
1782
|
+
$case: z.literal('endpoints'),
|
|
1783
|
+
endpoints: z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_EndpointsSchema),
|
|
1784
|
+
}),
|
|
1785
|
+
z.object({
|
|
1786
|
+
$case: z.literal('allRegisteredEndpoints'),
|
|
1787
|
+
allRegisteredEndpoints: z.boolean(),
|
|
1788
|
+
}),
|
|
1789
|
+
z.object({
|
|
1790
|
+
$case: z.literal('azureWorkspacePrivateLink'),
|
|
1791
|
+
azureWorkspacePrivateLink: z.boolean(),
|
|
1792
|
+
}),
|
|
1793
|
+
z.object({
|
|
1794
|
+
$case: z.literal('allPrivateAccess'),
|
|
1795
|
+
allPrivateAccess: z.boolean(),
|
|
1796
|
+
}),
|
|
1797
|
+
])
|
|
1798
|
+
.optional(),
|
|
1799
|
+
})
|
|
1800
|
+
.transform(d => ({
|
|
1801
|
+
...(d.source?.$case === 'endpoints' && { endpoints: d.source.endpoints }),
|
|
1802
|
+
...(d.source?.$case === 'allRegisteredEndpoints' && {
|
|
1803
|
+
all_registered_endpoints: d.source.allRegisteredEndpoints,
|
|
1804
|
+
}),
|
|
1805
|
+
...(d.source?.$case === 'azureWorkspacePrivateLink' && {
|
|
1806
|
+
azure_workspace_private_link: d.source.azureWorkspacePrivateLink,
|
|
1807
|
+
}),
|
|
1808
|
+
...(d.source?.$case === 'allPrivateAccess' && {
|
|
1809
|
+
all_private_access: d.source.allPrivateAccess,
|
|
1810
|
+
}),
|
|
1811
|
+
}));
|
|
1812
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1813
|
+
export const marshalCustomerFacingIngressNetworkPolicy_PublicAccessSchema = z
|
|
1814
|
+
.object({
|
|
1815
|
+
restrictionMode: z
|
|
1816
|
+
.enum(CustomerFacingIngressNetworkPolicy_PublicAccess_RestrictionMode)
|
|
1817
|
+
.optional(),
|
|
1818
|
+
denyRules: z
|
|
1819
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
1820
|
+
.optional(),
|
|
1821
|
+
allowRules: z
|
|
1822
|
+
.array(z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema))
|
|
1823
|
+
.optional(),
|
|
1824
|
+
})
|
|
1825
|
+
.transform(d => ({
|
|
1826
|
+
restriction_mode: d.restrictionMode,
|
|
1827
|
+
deny_rules: d.denyRules,
|
|
1828
|
+
allow_rules: d.allowRules,
|
|
1829
|
+
}));
|
|
1830
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1831
|
+
export const marshalCustomerFacingIngressNetworkPolicy_PublicIngressRuleSchema = z
|
|
1832
|
+
.object({
|
|
1833
|
+
origin: z
|
|
1834
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_PublicRequestOriginSchema)
|
|
1835
|
+
.optional(),
|
|
1836
|
+
destination: z
|
|
1837
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema)
|
|
1838
|
+
.optional(),
|
|
1839
|
+
authentication: z
|
|
1840
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AuthenticationSchema)
|
|
1841
|
+
.optional(),
|
|
1842
|
+
label: z.string().optional(),
|
|
1843
|
+
})
|
|
1844
|
+
.transform(d => ({
|
|
1845
|
+
origin: d.origin,
|
|
1846
|
+
destination: d.destination,
|
|
1847
|
+
authentication: d.authentication,
|
|
1848
|
+
label: d.label,
|
|
1849
|
+
}));
|
|
1850
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1851
|
+
export const marshalCustomerFacingIngressNetworkPolicy_PublicRequestOriginSchema = z
|
|
1852
|
+
.object({
|
|
1853
|
+
source: z
|
|
1854
|
+
.discriminatedUnion('$case', [
|
|
1855
|
+
z.object({ $case: z.literal('allIpRanges'), allIpRanges: z.boolean() }),
|
|
1856
|
+
z.object({
|
|
1857
|
+
$case: z.literal('includedIpRanges'),
|
|
1858
|
+
includedIpRanges: z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_IpRangesSchema),
|
|
1859
|
+
}),
|
|
1860
|
+
z.object({
|
|
1861
|
+
$case: z.literal('excludedIpRanges'),
|
|
1862
|
+
excludedIpRanges: z.lazy(() => marshalCustomerFacingIngressNetworkPolicy_IpRangesSchema),
|
|
1863
|
+
}),
|
|
1864
|
+
])
|
|
1865
|
+
.optional(),
|
|
1866
|
+
})
|
|
1867
|
+
.transform(d => ({
|
|
1868
|
+
...(d.source?.$case === 'allIpRanges' && {
|
|
1869
|
+
all_ip_ranges: d.source.allIpRanges,
|
|
1870
|
+
}),
|
|
1871
|
+
...(d.source?.$case === 'includedIpRanges' && {
|
|
1872
|
+
included_ip_ranges: d.source.includedIpRanges,
|
|
1873
|
+
}),
|
|
1874
|
+
...(d.source?.$case === 'excludedIpRanges' && {
|
|
1875
|
+
excluded_ip_ranges: d.source.excludedIpRanges,
|
|
1876
|
+
}),
|
|
1877
|
+
}));
|
|
1878
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1879
|
+
export const marshalCustomerFacingIngressNetworkPolicy_RequestDestinationSchema = z
|
|
1880
|
+
.object({
|
|
1881
|
+
allDestinations: z.boolean().optional(),
|
|
1882
|
+
workspaceUi: z
|
|
1883
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_WorkspaceUiDestinationSchema)
|
|
1884
|
+
.optional(),
|
|
1885
|
+
workspaceApi: z
|
|
1886
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSchema)
|
|
1887
|
+
.optional(),
|
|
1888
|
+
appsRuntime: z
|
|
1889
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AppsRuntimeDestinationSchema)
|
|
1890
|
+
.optional(),
|
|
1891
|
+
lakebaseRuntime: z
|
|
1892
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_LakebaseRuntimeDestinationSchema)
|
|
1893
|
+
.optional(),
|
|
1894
|
+
accountUi: z
|
|
1895
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AccountUiDestinationSchema)
|
|
1896
|
+
.optional(),
|
|
1897
|
+
accountApi: z
|
|
1898
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AccountApiDestinationSchema)
|
|
1899
|
+
.optional(),
|
|
1900
|
+
accountDatabricksOne: z
|
|
1901
|
+
.lazy(() => marshalCustomerFacingIngressNetworkPolicy_AccountDatabricksOneDestinationSchema)
|
|
1902
|
+
.optional(),
|
|
1903
|
+
})
|
|
1904
|
+
.transform(d => ({
|
|
1905
|
+
all_destinations: d.allDestinations,
|
|
1906
|
+
workspace_ui: d.workspaceUi,
|
|
1907
|
+
workspace_api: d.workspaceApi,
|
|
1908
|
+
apps_runtime: d.appsRuntime,
|
|
1909
|
+
lakebase_runtime: d.lakebaseRuntime,
|
|
1910
|
+
account_ui: d.accountUi,
|
|
1911
|
+
account_api: d.accountApi,
|
|
1912
|
+
account_databricks_one: d.accountDatabricksOne,
|
|
1913
|
+
}));
|
|
1914
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1915
|
+
export const marshalCustomerFacingIngressNetworkPolicy_WorkspaceApiDestinationSchema = z
|
|
1916
|
+
.object({
|
|
1917
|
+
scopes: z.array(z.string()).optional(),
|
|
1918
|
+
scopeQualifier: z
|
|
1919
|
+
.enum(CustomerFacingIngressNetworkPolicy_ApiScopeQualifier)
|
|
1920
|
+
.optional(),
|
|
1921
|
+
})
|
|
1922
|
+
.transform(d => ({
|
|
1923
|
+
scopes: d.scopes,
|
|
1924
|
+
scope_qualifier: d.scopeQualifier,
|
|
1925
|
+
}));
|
|
1926
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1927
|
+
export const marshalCustomerFacingIngressNetworkPolicy_WorkspaceIdListSchema = z
|
|
1928
|
+
.object({
|
|
1929
|
+
workspaceIds: z.array(z.bigint()).optional(),
|
|
1930
|
+
})
|
|
1931
|
+
.transform(d => ({
|
|
1932
|
+
workspace_ids: d.workspaceIds,
|
|
1933
|
+
}));
|
|
1934
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1935
|
+
export const marshalCustomerFacingIngressNetworkPolicy_WorkspaceUiDestinationSchema = z
|
|
1936
|
+
.object({
|
|
1937
|
+
allDestinations: z.boolean().optional(),
|
|
1938
|
+
})
|
|
1939
|
+
.transform(d => ({
|
|
1940
|
+
all_destinations: d.allDestinations,
|
|
1941
|
+
}));
|
|
1942
|
+
export const marshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema = z
|
|
1943
|
+
.object({
|
|
1944
|
+
ruleId: z.string().optional(),
|
|
1945
|
+
networkConnectivityConfigId: z.string().optional(),
|
|
1946
|
+
accountId: z.string().optional(),
|
|
1947
|
+
endpointService: z.string().optional(),
|
|
1948
|
+
domainNames: z.array(z.string()).optional(),
|
|
1949
|
+
resourceNames: z.array(z.string()).optional(),
|
|
1950
|
+
vpcEndpointId: z.string().optional(),
|
|
1951
|
+
connectionState: z
|
|
1952
|
+
.enum(CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRule_PrivateLinkConnectionState)
|
|
1953
|
+
.optional(),
|
|
1954
|
+
creationTime: z.bigint().optional(),
|
|
1955
|
+
updatedTime: z.bigint().optional(),
|
|
1956
|
+
deactivated: z.boolean().optional(),
|
|
1957
|
+
deactivatedAt: z.bigint().optional(),
|
|
1958
|
+
enabled: z.boolean().optional(),
|
|
1959
|
+
errorMessage: z.string().optional(),
|
|
1960
|
+
})
|
|
1961
|
+
.transform(d => ({
|
|
1962
|
+
rule_id: d.ruleId,
|
|
1963
|
+
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
1964
|
+
account_id: d.accountId,
|
|
1965
|
+
endpoint_service: d.endpointService,
|
|
1966
|
+
domain_names: d.domainNames,
|
|
1967
|
+
resource_names: d.resourceNames,
|
|
1968
|
+
vpc_endpoint_id: d.vpcEndpointId,
|
|
1969
|
+
connection_state: d.connectionState,
|
|
1970
|
+
creation_time: d.creationTime,
|
|
1971
|
+
updated_time: d.updatedTime,
|
|
1972
|
+
deactivated: d.deactivated,
|
|
1973
|
+
deactivated_at: d.deactivatedAt,
|
|
1974
|
+
enabled: d.enabled,
|
|
1975
|
+
error_message: d.errorMessage,
|
|
1976
|
+
}));
|
|
1977
|
+
export const marshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRuleSchema = z
|
|
1978
|
+
.object({
|
|
1979
|
+
ruleId: z.string().optional(),
|
|
1980
|
+
networkConnectivityConfigId: z.string().optional(),
|
|
1981
|
+
resourceId: z.string().optional(),
|
|
1982
|
+
groupId: z.string().optional(),
|
|
1983
|
+
endpointName: z.string().optional(),
|
|
1984
|
+
connectionState: z
|
|
1985
|
+
.enum(CustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRule_PrivateLinkConnectionState)
|
|
1986
|
+
.optional(),
|
|
1987
|
+
creationTime: z.bigint().optional(),
|
|
1988
|
+
updatedTime: z.bigint().optional(),
|
|
1989
|
+
deactivated: z.boolean().optional(),
|
|
1990
|
+
deactivatedAt: z.bigint().optional(),
|
|
1991
|
+
domainNames: z.array(z.string()).optional(),
|
|
1992
|
+
errorMessage: z.string().optional(),
|
|
1993
|
+
})
|
|
1994
|
+
.transform(d => ({
|
|
1995
|
+
rule_id: d.ruleId,
|
|
1996
|
+
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
1997
|
+
resource_id: d.resourceId,
|
|
1998
|
+
group_id: d.groupId,
|
|
1999
|
+
endpoint_name: d.endpointName,
|
|
2000
|
+
connection_state: d.connectionState,
|
|
2001
|
+
creation_time: d.creationTime,
|
|
2002
|
+
updated_time: d.updatedTime,
|
|
2003
|
+
deactivated: d.deactivated,
|
|
2004
|
+
deactivated_at: d.deactivatedAt,
|
|
2005
|
+
domain_names: d.domainNames,
|
|
2006
|
+
error_message: d.errorMessage,
|
|
2007
|
+
}));
|
|
2008
|
+
export const marshalCustomerFacingNetworkConnectivityConfigEgressConfigSchema = z
|
|
2009
|
+
.object({
|
|
2010
|
+
defaultRules: z
|
|
2011
|
+
.lazy(() => marshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema)
|
|
2012
|
+
.optional(),
|
|
2013
|
+
targetRules: z
|
|
2014
|
+
.lazy(() => marshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema)
|
|
2015
|
+
.optional(),
|
|
2016
|
+
})
|
|
2017
|
+
.transform(d => ({
|
|
2018
|
+
default_rules: d.defaultRules,
|
|
2019
|
+
target_rules: d.targetRules,
|
|
2020
|
+
}));
|
|
2021
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2022
|
+
export const marshalCustomerFacingNetworkConnectivityConfigEgressConfig_CustomerFacingTargetRuleSchema = z
|
|
2023
|
+
.object({
|
|
2024
|
+
azurePrivateEndpointRules: z
|
|
2025
|
+
.array(z.lazy(() => marshalCustomerFacingNetworkConnectivityConfigAzurePrivateEndpointRuleSchema))
|
|
2026
|
+
.optional(),
|
|
2027
|
+
awsPrivateEndpointRules: z
|
|
2028
|
+
.array(z.lazy(() => marshalCustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRuleSchema))
|
|
2029
|
+
.optional(),
|
|
2030
|
+
})
|
|
2031
|
+
.transform(d => ({
|
|
2032
|
+
azure_private_endpoint_rules: d.azurePrivateEndpointRules,
|
|
2033
|
+
aws_private_endpoint_rules: d.awsPrivateEndpointRules,
|
|
2034
|
+
}));
|
|
2035
|
+
export const marshalCustomerFacingPrivateAccessSettingsSchema = z
|
|
2036
|
+
.object({
|
|
2037
|
+
privateAccessSettingsId: z.string().optional(),
|
|
2038
|
+
accountId: z.string().optional(),
|
|
2039
|
+
privateAccessSettingsName: z.string().optional(),
|
|
2040
|
+
region: z.string().optional(),
|
|
2041
|
+
publicAccessEnabled: z.boolean().optional(),
|
|
2042
|
+
privateAccessLevel: z.enum(PrivateAccessLevel).optional(),
|
|
2043
|
+
allowedVpcEndpointIds: z.array(z.string()).optional(),
|
|
2044
|
+
})
|
|
2045
|
+
.transform(d => ({
|
|
2046
|
+
private_access_settings_id: d.privateAccessSettingsId,
|
|
2047
|
+
account_id: d.accountId,
|
|
2048
|
+
private_access_settings_name: d.privateAccessSettingsName,
|
|
2049
|
+
region: d.region,
|
|
2050
|
+
public_access_enabled: d.publicAccessEnabled,
|
|
2051
|
+
private_access_level: d.privateAccessLevel,
|
|
2052
|
+
allowed_vpc_endpoint_ids: d.allowedVpcEndpointIds,
|
|
2053
|
+
}));
|
|
2054
|
+
export const marshalEgressNetworkPolicySchema = z
|
|
2055
|
+
.object({
|
|
2056
|
+
networkAccess: z
|
|
2057
|
+
.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicySchema)
|
|
2058
|
+
.optional(),
|
|
2059
|
+
})
|
|
2060
|
+
.transform(d => ({
|
|
2061
|
+
network_access: d.networkAccess,
|
|
2062
|
+
}));
|
|
2063
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2064
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicySchema = z
|
|
2065
|
+
.object({
|
|
2066
|
+
restrictionMode: z
|
|
2067
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_RestrictionMode)
|
|
2068
|
+
.optional(),
|
|
2069
|
+
allowedInternetDestinations: z
|
|
2070
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
2071
|
+
.optional(),
|
|
2072
|
+
allowedStorageDestinations: z
|
|
2073
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema))
|
|
2074
|
+
.optional(),
|
|
2075
|
+
policyEnforcement: z
|
|
2076
|
+
.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema)
|
|
2077
|
+
.optional(),
|
|
2078
|
+
blockedInternetDestinations: z
|
|
2079
|
+
.array(z.lazy(() => marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema))
|
|
2080
|
+
.optional(),
|
|
2081
|
+
})
|
|
2082
|
+
.transform(d => ({
|
|
2083
|
+
restriction_mode: d.restrictionMode,
|
|
2084
|
+
allowed_internet_destinations: d.allowedInternetDestinations,
|
|
2085
|
+
allowed_storage_destinations: d.allowedStorageDestinations,
|
|
2086
|
+
policy_enforcement: d.policyEnforcement,
|
|
2087
|
+
blocked_internet_destinations: d.blockedInternetDestinations,
|
|
2088
|
+
}));
|
|
2089
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2090
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_InternetDestinationSchema = z
|
|
2091
|
+
.object({
|
|
2092
|
+
destination: z.string().optional(),
|
|
2093
|
+
internetDestinationType: z
|
|
2094
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_InternetDestination_InternetDestinationType)
|
|
2095
|
+
.optional(),
|
|
2096
|
+
})
|
|
2097
|
+
.transform(d => ({
|
|
2098
|
+
destination: d.destination,
|
|
2099
|
+
internet_destination_type: d.internetDestinationType,
|
|
2100
|
+
}));
|
|
2101
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2102
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcementSchema = z
|
|
2103
|
+
.object({
|
|
2104
|
+
enforcementMode: z
|
|
2105
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_EnforcementMode)
|
|
2106
|
+
.optional(),
|
|
2107
|
+
dryRunModeProductFilter: z
|
|
2108
|
+
.array(z.enum(EgressNetworkPolicy_NetworkAccessPolicy_PolicyEnforcement_DryRunModeProductFilter))
|
|
2109
|
+
.optional(),
|
|
2110
|
+
})
|
|
2111
|
+
.transform(d => ({
|
|
2112
|
+
enforcement_mode: d.enforcementMode,
|
|
2113
|
+
dry_run_mode_product_filter: d.dryRunModeProductFilter,
|
|
2114
|
+
}));
|
|
2115
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2116
|
+
export const marshalEgressNetworkPolicy_NetworkAccessPolicy_StorageDestinationSchema = z
|
|
2117
|
+
.object({
|
|
2118
|
+
bucketName: z.string().optional(),
|
|
2119
|
+
region: z.string().optional(),
|
|
2120
|
+
storageDestinationType: z
|
|
2121
|
+
.enum(EgressNetworkPolicy_NetworkAccessPolicy_StorageDestination_StorageDestinationType)
|
|
2122
|
+
.optional(),
|
|
2123
|
+
azureStorageAccount: z.string().optional(),
|
|
2124
|
+
azureStorageService: z.string().optional(),
|
|
2125
|
+
})
|
|
2126
|
+
.transform(d => ({
|
|
2127
|
+
bucket_name: d.bucketName,
|
|
2128
|
+
region: d.region,
|
|
2129
|
+
storage_destination_type: d.storageDestinationType,
|
|
2130
|
+
azure_storage_account: d.azureStorageAccount,
|
|
2131
|
+
azure_storage_service: d.azureStorageService,
|
|
2132
|
+
}));
|
|
2133
|
+
export const marshalEndpointSchema = z
|
|
2134
|
+
.object({
|
|
2135
|
+
name: z.string().optional(),
|
|
2136
|
+
endpointId: z.string().optional(),
|
|
2137
|
+
accountId: z.string().optional(),
|
|
2138
|
+
displayName: z.string().optional(),
|
|
2139
|
+
useCase: z.enum(EndpointUseCase_EndpointUseCase).optional(),
|
|
2140
|
+
region: z.string().optional(),
|
|
2141
|
+
state: z.enum(EndpointState).optional(),
|
|
2142
|
+
endpointInfo: z
|
|
2143
|
+
.discriminatedUnion('$case', [
|
|
2144
|
+
z.object({
|
|
2145
|
+
$case: z.literal('azurePrivateEndpointInfo'),
|
|
2146
|
+
azurePrivateEndpointInfo: z.lazy(() => marshalAzurePrivateEndpointInfoSchema),
|
|
2147
|
+
}),
|
|
2148
|
+
])
|
|
2149
|
+
.optional(),
|
|
2150
|
+
createTime: z
|
|
2151
|
+
.any()
|
|
2152
|
+
.transform((d) => d.toString())
|
|
2153
|
+
.optional(),
|
|
2154
|
+
})
|
|
2155
|
+
.transform(d => ({
|
|
2156
|
+
name: d.name,
|
|
2157
|
+
endpoint_id: d.endpointId,
|
|
2158
|
+
account_id: d.accountId,
|
|
2159
|
+
display_name: d.displayName,
|
|
2160
|
+
use_case: d.useCase,
|
|
2161
|
+
region: d.region,
|
|
2162
|
+
state: d.state,
|
|
2163
|
+
...(d.endpointInfo?.$case === 'azurePrivateEndpointInfo' && {
|
|
2164
|
+
azure_private_endpoint_info: d.endpointInfo.azurePrivateEndpointInfo,
|
|
2165
|
+
}),
|
|
2166
|
+
create_time: d.createTime,
|
|
2167
|
+
}));
|
|
2168
|
+
export const marshalGcpEndpointSchema = z
|
|
2169
|
+
.object({
|
|
2170
|
+
pscEndpointUri: z.string().optional(),
|
|
2171
|
+
targetServices: z
|
|
2172
|
+
.discriminatedUnion('$case', [
|
|
2173
|
+
z.object({
|
|
2174
|
+
$case: z.literal('serviceAttachment'),
|
|
2175
|
+
serviceAttachment: z.string(),
|
|
2176
|
+
}),
|
|
2177
|
+
])
|
|
2178
|
+
.optional(),
|
|
2179
|
+
})
|
|
2180
|
+
.transform(d => ({
|
|
2181
|
+
psc_endpoint_uri: d.pscEndpointUri,
|
|
2182
|
+
...(d.targetServices?.$case === 'serviceAttachment' && {
|
|
2183
|
+
service_attachment: d.targetServices.serviceAttachment,
|
|
2184
|
+
}),
|
|
2185
|
+
}));
|
|
2186
|
+
export const marshalGcpNetworkInfoSchema = z
|
|
2187
|
+
.object({
|
|
2188
|
+
networkProjectId: z.string().optional(),
|
|
2189
|
+
vpcId: z.string().optional(),
|
|
2190
|
+
subnetId: z.string().optional(),
|
|
2191
|
+
subnetRegion: z.string().optional(),
|
|
2192
|
+
podIpRangeName: z.string().optional(),
|
|
2193
|
+
serviceIpRangeName: z.string().optional(),
|
|
2194
|
+
})
|
|
2195
|
+
.transform(d => ({
|
|
2196
|
+
network_project_id: d.networkProjectId,
|
|
2197
|
+
vpc_id: d.vpcId,
|
|
2198
|
+
subnet_id: d.subnetId,
|
|
2199
|
+
subnet_region: d.subnetRegion,
|
|
2200
|
+
pod_ip_range_name: d.podIpRangeName,
|
|
2201
|
+
service_ip_range_name: d.serviceIpRangeName,
|
|
2202
|
+
}));
|
|
2203
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2204
|
+
export const marshalNetworkConnectivityConfigEgressConfig_DefaultRuleSchema = z
|
|
2205
|
+
.object({
|
|
2206
|
+
azureServiceEndpointRule: z
|
|
2207
|
+
.lazy(() => marshalNetworkConnectivityConfigEgressConfig_DefaultRule_AzureServiceEndpointRuleSchema)
|
|
2208
|
+
.optional(),
|
|
2209
|
+
awsStableIpRule: z
|
|
2210
|
+
.lazy(() => marshalNetworkConnectivityConfigEgressConfig_DefaultRule_AwsStableIpRuleSchema)
|
|
2211
|
+
.optional(),
|
|
2212
|
+
})
|
|
2213
|
+
.transform(d => ({
|
|
2214
|
+
azure_service_endpoint_rule: d.azureServiceEndpointRule,
|
|
2215
|
+
aws_stable_ip_rule: d.awsStableIpRule,
|
|
2216
|
+
}));
|
|
2217
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2218
|
+
export const marshalNetworkConnectivityConfigEgressConfig_DefaultRule_AwsStableIpRuleSchema = z
|
|
2219
|
+
.object({
|
|
2220
|
+
cidrBlocks: z.array(z.string()).optional(),
|
|
2221
|
+
})
|
|
2222
|
+
.transform(d => ({
|
|
2223
|
+
cidr_blocks: d.cidrBlocks,
|
|
2224
|
+
}));
|
|
2225
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2226
|
+
export const marshalNetworkConnectivityConfigEgressConfig_DefaultRule_AzureServiceEndpointRuleSchema = z
|
|
2227
|
+
.object({
|
|
2228
|
+
targetRegion: z.string().optional(),
|
|
2229
|
+
targetServices: z.array(z.enum(EgressResourceType)).optional(),
|
|
2230
|
+
subnets: z.array(z.string()).optional(),
|
|
2231
|
+
})
|
|
2232
|
+
.transform(d => ({
|
|
2233
|
+
target_region: d.targetRegion,
|
|
2234
|
+
target_services: d.targetServices,
|
|
2235
|
+
subnets: d.subnets,
|
|
2236
|
+
}));
|
|
2237
|
+
export const marshalNetworkVpcEndpointsSchema = z
|
|
2238
|
+
.object({
|
|
2239
|
+
restApi: z.array(z.string()).optional(),
|
|
2240
|
+
dataplaneRelay: z.array(z.string()).optional(),
|
|
2241
|
+
})
|
|
2242
|
+
.transform(d => ({
|
|
2243
|
+
rest_api: d.restApi,
|
|
2244
|
+
dataplane_relay: d.dataplaneRelay,
|
|
2245
|
+
}));
|
|
2246
|
+
export const marshalReplaceAccountIpAccessListRequestSchema = z
|
|
2247
|
+
.object({
|
|
2248
|
+
accountId: z.string().optional(),
|
|
2249
|
+
listId: z.string().optional(),
|
|
2250
|
+
label: z.string().optional(),
|
|
2251
|
+
listType: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
|
|
2252
|
+
ipAddresses: z.array(z.string()).optional(),
|
|
2253
|
+
enabled: z.boolean().optional(),
|
|
2254
|
+
})
|
|
2255
|
+
.transform(d => ({
|
|
2256
|
+
account_id: d.accountId,
|
|
2257
|
+
list_id: d.listId,
|
|
2258
|
+
label: d.label,
|
|
2259
|
+
list_type: d.listType,
|
|
2260
|
+
ip_addresses: d.ipAddresses,
|
|
2261
|
+
enabled: d.enabled,
|
|
2262
|
+
}));
|
|
2263
|
+
export const marshalReplaceIpAccessListSchema = z
|
|
2264
|
+
.object({
|
|
2265
|
+
listId: z.string().optional(),
|
|
2266
|
+
label: z.string().optional(),
|
|
2267
|
+
listType: z.enum(IpAccessListType).optional(),
|
|
2268
|
+
ipAddresses: z.array(z.string()).optional(),
|
|
2269
|
+
enabled: z.boolean().optional(),
|
|
2270
|
+
})
|
|
2271
|
+
.transform(d => ({
|
|
2272
|
+
list_id: d.listId,
|
|
2273
|
+
label: d.label,
|
|
2274
|
+
list_type: d.listType,
|
|
2275
|
+
ip_addresses: d.ipAddresses,
|
|
2276
|
+
enabled: d.enabled,
|
|
2277
|
+
}));
|
|
2278
|
+
export const marshalUpdateAccountIpAccessListRequestSchema = z
|
|
2279
|
+
.object({
|
|
2280
|
+
accountId: z.string().optional(),
|
|
2281
|
+
listId: z.string().optional(),
|
|
2282
|
+
label: z.string().optional(),
|
|
2283
|
+
listType: z.enum(AccountIpAccessListType_IpAccessListType).optional(),
|
|
2284
|
+
ipAddresses: z.array(z.string()).optional(),
|
|
2285
|
+
enabled: z.boolean().optional(),
|
|
2286
|
+
})
|
|
2287
|
+
.transform(d => ({
|
|
2288
|
+
account_id: d.accountId,
|
|
2289
|
+
list_id: d.listId,
|
|
2290
|
+
label: d.label,
|
|
2291
|
+
list_type: d.listType,
|
|
2292
|
+
ip_addresses: d.ipAddresses,
|
|
2293
|
+
enabled: d.enabled,
|
|
2294
|
+
}));
|
|
2295
|
+
export const marshalUpdateIpAccessListSchema = z
|
|
2296
|
+
.object({
|
|
2297
|
+
listId: z.string().optional(),
|
|
2298
|
+
label: z.string().optional(),
|
|
2299
|
+
listType: z.enum(IpAccessListType).optional(),
|
|
2300
|
+
ipAddresses: z.array(z.string()).optional(),
|
|
2301
|
+
enabled: z.boolean().optional(),
|
|
2302
|
+
})
|
|
2303
|
+
.transform(d => ({
|
|
2304
|
+
list_id: d.listId,
|
|
2305
|
+
label: d.label,
|
|
2306
|
+
list_type: d.listType,
|
|
2307
|
+
ip_addresses: d.ipAddresses,
|
|
2308
|
+
enabled: d.enabled,
|
|
2309
|
+
}));
|
|
2310
|
+
export const marshalUpdatePrivateEndpointRuleSchema = z
|
|
2311
|
+
.object({
|
|
2312
|
+
ruleId: z.string().optional(),
|
|
2313
|
+
networkConnectivityConfigId: z.string().optional(),
|
|
2314
|
+
connectionState: z
|
|
2315
|
+
.enum(NccPrivateEndpointRule_PrivateLinkConnectionState)
|
|
2316
|
+
.optional(),
|
|
2317
|
+
domainNames: z.array(z.string()).optional(),
|
|
2318
|
+
creationTime: z.bigint().optional(),
|
|
2319
|
+
updatedTime: z.bigint().optional(),
|
|
2320
|
+
deactivated: z.boolean().optional(),
|
|
2321
|
+
deactivatedAt: z.bigint().optional(),
|
|
2322
|
+
errorMessage: z.string().optional(),
|
|
2323
|
+
resourceId: z.string().optional(),
|
|
2324
|
+
groupId: z.string().optional(),
|
|
2325
|
+
endpointName: z.string().optional(),
|
|
2326
|
+
accountId: z.string().optional(),
|
|
2327
|
+
endpointService: z.string().optional(),
|
|
2328
|
+
resourceNames: z.array(z.string()).optional(),
|
|
2329
|
+
vpcEndpointId: z.string().optional(),
|
|
2330
|
+
enabled: z.boolean().optional(),
|
|
2331
|
+
endpoint: z
|
|
2332
|
+
.discriminatedUnion('$case', [
|
|
2333
|
+
z.object({
|
|
2334
|
+
$case: z.literal('gcpEndpoint'),
|
|
2335
|
+
gcpEndpoint: z.lazy(() => marshalGcpEndpointSchema),
|
|
2336
|
+
}),
|
|
2337
|
+
])
|
|
2338
|
+
.optional(),
|
|
2339
|
+
})
|
|
2340
|
+
.transform(d => ({
|
|
2341
|
+
rule_id: d.ruleId,
|
|
2342
|
+
network_connectivity_config_id: d.networkConnectivityConfigId,
|
|
2343
|
+
connection_state: d.connectionState,
|
|
2344
|
+
domain_names: d.domainNames,
|
|
2345
|
+
creation_time: d.creationTime,
|
|
2346
|
+
updated_time: d.updatedTime,
|
|
2347
|
+
deactivated: d.deactivated,
|
|
2348
|
+
deactivated_at: d.deactivatedAt,
|
|
2349
|
+
error_message: d.errorMessage,
|
|
2350
|
+
resource_id: d.resourceId,
|
|
2351
|
+
group_id: d.groupId,
|
|
2352
|
+
endpoint_name: d.endpointName,
|
|
2353
|
+
account_id: d.accountId,
|
|
2354
|
+
endpoint_service: d.endpointService,
|
|
2355
|
+
resource_names: d.resourceNames,
|
|
2356
|
+
vpc_endpoint_id: d.vpcEndpointId,
|
|
2357
|
+
enabled: d.enabled,
|
|
2358
|
+
...(d.endpoint?.$case === 'gcpEndpoint' && {
|
|
2359
|
+
gcp_endpoint: d.endpoint.gcpEndpoint,
|
|
2360
|
+
}),
|
|
2361
|
+
}));
|
|
2362
|
+
export const marshalWorkspaceNetworkOptionSchema = z
|
|
2363
|
+
.object({
|
|
2364
|
+
networkPolicyId: z.string().optional(),
|
|
2365
|
+
workspaceId: z.bigint().optional(),
|
|
2366
|
+
})
|
|
2367
|
+
.transform(d => ({
|
|
2368
|
+
network_policy_id: d.networkPolicyId,
|
|
2369
|
+
workspace_id: d.workspaceId,
|
|
2370
|
+
}));
|
|
2371
|
+
const gcpEndpointFieldMaskSchema = {
|
|
2372
|
+
pscEndpointUri: { wire: 'psc_endpoint_uri' },
|
|
2373
|
+
serviceAttachment: { wire: 'service_attachment' },
|
|
2374
|
+
};
|
|
2375
|
+
const updatePrivateEndpointRuleFieldMaskSchema = {
|
|
2376
|
+
accountId: { wire: 'account_id' },
|
|
2377
|
+
connectionState: { wire: 'connection_state' },
|
|
2378
|
+
creationTime: { wire: 'creation_time' },
|
|
2379
|
+
deactivated: { wire: 'deactivated' },
|
|
2380
|
+
deactivatedAt: { wire: 'deactivated_at' },
|
|
2381
|
+
domainNames: { wire: 'domain_names' },
|
|
2382
|
+
enabled: { wire: 'enabled' },
|
|
2383
|
+
endpointName: { wire: 'endpoint_name' },
|
|
2384
|
+
endpointService: { wire: 'endpoint_service' },
|
|
2385
|
+
errorMessage: { wire: 'error_message' },
|
|
2386
|
+
gcpEndpoint: {
|
|
2387
|
+
wire: 'gcp_endpoint',
|
|
2388
|
+
children: () => gcpEndpointFieldMaskSchema,
|
|
2389
|
+
},
|
|
2390
|
+
groupId: { wire: 'group_id' },
|
|
2391
|
+
networkConnectivityConfigId: { wire: 'network_connectivity_config_id' },
|
|
2392
|
+
resourceId: { wire: 'resource_id' },
|
|
2393
|
+
resourceNames: { wire: 'resource_names' },
|
|
2394
|
+
ruleId: { wire: 'rule_id' },
|
|
2395
|
+
updatedTime: { wire: 'updated_time' },
|
|
2396
|
+
vpcEndpointId: { wire: 'vpc_endpoint_id' },
|
|
2397
|
+
};
|
|
2398
|
+
export function updatePrivateEndpointRuleFieldMask(...paths) {
|
|
2399
|
+
return FieldMask.build(paths, updatePrivateEndpointRuleFieldMaskSchema);
|
|
2400
|
+
}
|
|
2401
|
+
//# sourceMappingURL=model.js.map
|