@azure/arm-databricks 2.0.0 → 3.0.0-beta.1

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.
Files changed (188) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +66 -82
  4. package/dist/index.js +3186 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureDatabricksManagementClient.d.ts +20 -0
  9. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureDatabricksManagementClient.js +27 -0
  11. package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -0
  12. package/dist-esm/src/azureDatabricksManagementClientContext.d.ts +16 -0
  13. package/dist-esm/src/azureDatabricksManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/azureDatabricksManagementClientContext.js +49 -0
  15. package/dist-esm/src/azureDatabricksManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +839 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +94 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +44 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +578 -549
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +17 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/models/parameters.js +77 -51
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/dist-esm/src/operations/index.js +14 -0
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +22 -0
  45. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  46. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +65 -0
  47. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
  48. package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.js +347 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  52. package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateLinkResources.js +169 -0
  55. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  56. package/dist-esm/src/operations/vNetPeering.d.ts +81 -0
  57. package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -0
  58. package/dist-esm/src/operations/vNetPeering.js +338 -0
  59. package/dist-esm/src/operations/vNetPeering.js.map +1 -0
  60. package/dist-esm/src/operations/workspaces.d.ts +107 -0
  61. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  62. package/dist-esm/src/operations/workspaces.js +500 -0
  63. package/dist-esm/src/operations/workspaces.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +14 -0
  73. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  74. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js} +2 -9
  75. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  77. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  78. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -2
  79. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  81. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts +56 -0
  85. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/vNetPeering.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/vNetPeering.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +71 -0
  89. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  92. package/dist-esm/test/databricks_examples.d.ts +2 -0
  93. package/dist-esm/test/databricks_examples.d.ts.map +1 -0
  94. package/dist-esm/test/databricks_examples.js +100 -0
  95. package/dist-esm/test/databricks_examples.js.map +1 -0
  96. package/package.json +65 -32
  97. package/review/arm-databricks.api.md +742 -0
  98. package/rollup.config.js +181 -30
  99. package/src/azureDatabricksManagementClient.ts +42 -39
  100. package/src/azureDatabricksManagementClientContext.ts +45 -40
  101. package/src/index.ts +13 -0
  102. package/src/lroImpl.ts +34 -0
  103. package/src/models/index.ts +712 -1127
  104. package/src/models/mappers.ts +585 -552
  105. package/src/models/parameters.ts +101 -52
  106. package/src/operations/index.ts +2 -2
  107. package/src/operations/operations.ts +82 -70
  108. package/src/operations/outboundNetworkDependenciesEndpoints.ts +85 -0
  109. package/src/operations/privateEndpointConnections.ts +326 -184
  110. package/src/operations/privateLinkResources.ts +141 -123
  111. package/src/operations/vNetPeering.ts +349 -199
  112. package/src/operations/workspaces.ts +503 -308
  113. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +3 -3
  114. package/src/operationsInterfaces/operations.ts +22 -0
  115. package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +29 -0
  116. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  117. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  118. package/src/operationsInterfaces/vNetPeering.ts +109 -0
  119. package/src/operationsInterfaces/workspaces.ts +139 -0
  120. package/tsconfig.json +3 -3
  121. package/types/arm-databricks.d.ts +1198 -0
  122. package/types/tsdoc-metadata.json +11 -0
  123. package/dist/arm-databricks.js +0 -2791
  124. package/dist/arm-databricks.js.map +0 -1
  125. package/dist/arm-databricks.min.js +0 -1
  126. package/dist/arm-databricks.min.js.map +0 -1
  127. package/esm/azureDatabricksManagementClient.d.ts +0 -28
  128. package/esm/azureDatabricksManagementClient.d.ts.map +0 -1
  129. package/esm/azureDatabricksManagementClient.js +0 -41
  130. package/esm/azureDatabricksManagementClient.js.map +0 -1
  131. package/esm/azureDatabricksManagementClientContext.d.ts +0 -21
  132. package/esm/azureDatabricksManagementClientContext.d.ts.map +0 -1
  133. package/esm/azureDatabricksManagementClientContext.js +0 -59
  134. package/esm/azureDatabricksManagementClientContext.js.map +0 -1
  135. package/esm/models/index.d.ts +0 -1273
  136. package/esm/models/index.d.ts.map +0 -1
  137. package/esm/models/index.js.map +0 -1
  138. package/esm/models/mappers.d.ts +0 -43
  139. package/esm/models/mappers.d.ts.map +0 -1
  140. package/esm/models/mappers.js.map +0 -1
  141. package/esm/models/operationsMappers.d.ts +0 -2
  142. package/esm/models/operationsMappers.d.ts.map +0 -1
  143. package/esm/models/operationsMappers.js.map +0 -1
  144. package/esm/models/parameters.d.ts +0 -12
  145. package/esm/models/parameters.d.ts.map +0 -1
  146. package/esm/models/parameters.js.map +0 -1
  147. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  148. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  149. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  150. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  151. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  152. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  153. package/esm/models/privateLinkResourcesMappers.js +0 -9
  154. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  155. package/esm/models/vNetPeeringMappers.d.ts +0 -2
  156. package/esm/models/vNetPeeringMappers.d.ts.map +0 -1
  157. package/esm/models/vNetPeeringMappers.js +0 -9
  158. package/esm/models/vNetPeeringMappers.js.map +0 -1
  159. package/esm/models/workspacesMappers.d.ts +0 -2
  160. package/esm/models/workspacesMappers.d.ts.map +0 -1
  161. package/esm/models/workspacesMappers.js +0 -9
  162. package/esm/models/workspacesMappers.js.map +0 -1
  163. package/esm/operations/index.d.ts.map +0 -1
  164. package/esm/operations/index.js.map +0 -1
  165. package/esm/operations/operations.d.ts +0 -46
  166. package/esm/operations/operations.d.ts.map +0 -1
  167. package/esm/operations/operations.js +0 -79
  168. package/esm/operations/operations.js.map +0 -1
  169. package/esm/operations/privateEndpointConnections.d.ts +0 -122
  170. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  171. package/esm/operations/privateEndpointConnections.js +0 -240
  172. package/esm/operations/privateEndpointConnections.js.map +0 -1
  173. package/esm/operations/privateLinkResources.d.ts +0 -79
  174. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  175. package/esm/operations/privateLinkResources.js +0 -119
  176. package/esm/operations/privateLinkResources.js.map +0 -1
  177. package/esm/operations/vNetPeering.d.ts +0 -115
  178. package/esm/operations/vNetPeering.d.ts.map +0 -1
  179. package/esm/operations/vNetPeering.js +0 -237
  180. package/esm/operations/vNetPeering.js.map +0 -1
  181. package/esm/operations/workspaces.d.ts +0 -156
  182. package/esm/operations/workspaces.d.ts.map +0 -1
  183. package/esm/operations/workspaces.js +0 -337
  184. package/esm/operations/workspaces.js.map +0 -1
  185. package/src/models/privateEndpointConnectionsMappers.ts +0 -43
  186. package/src/models/privateLinkResourcesMappers.ts +0 -43
  187. package/src/models/vNetPeeringMappers.ts +0 -43
  188. package/src/models/workspacesMappers.ts +0 -44
package/dist/index.js ADDED
@@ -0,0 +1,3186 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var coreClient = require('@azure/core-client');
7
+ var coreLro = require('@azure/core-lro');
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation.
11
+ * Licensed under the MIT License.
12
+ *
13
+ * Code generated by Microsoft (R) AutoRest Code Generator.
14
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
+ */
16
+ (function (KnownCustomParameterType) {
17
+ KnownCustomParameterType["Bool"] = "Bool";
18
+ KnownCustomParameterType["Object"] = "Object";
19
+ KnownCustomParameterType["String"] = "String";
20
+ })(exports.KnownCustomParameterType || (exports.KnownCustomParameterType = {}));
21
+ (function (KnownKeySource) {
22
+ KnownKeySource["Default"] = "Default";
23
+ KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
24
+ })(exports.KnownKeySource || (exports.KnownKeySource = {}));
25
+ (function (KnownProvisioningState) {
26
+ KnownProvisioningState["Accepted"] = "Accepted";
27
+ KnownProvisioningState["Running"] = "Running";
28
+ KnownProvisioningState["Ready"] = "Ready";
29
+ KnownProvisioningState["Creating"] = "Creating";
30
+ KnownProvisioningState["Created"] = "Created";
31
+ KnownProvisioningState["Deleting"] = "Deleting";
32
+ KnownProvisioningState["Deleted"] = "Deleted";
33
+ KnownProvisioningState["Canceled"] = "Canceled";
34
+ KnownProvisioningState["Failed"] = "Failed";
35
+ KnownProvisioningState["Succeeded"] = "Succeeded";
36
+ KnownProvisioningState["Updating"] = "Updating";
37
+ })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
38
+ (function (KnownEncryptionKeySource) {
39
+ KnownEncryptionKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
40
+ })(exports.KnownEncryptionKeySource || (exports.KnownEncryptionKeySource = {}));
41
+ (function (KnownPrivateLinkServiceConnectionStatus) {
42
+ KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
43
+ KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
44
+ KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
45
+ KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
46
+ })(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
47
+ (function (KnownPrivateEndpointConnectionProvisioningState) {
48
+ KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
49
+ KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
50
+ KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
51
+ KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
52
+ KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
53
+ })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
54
+ (function (KnownPublicNetworkAccess) {
55
+ KnownPublicNetworkAccess["Enabled"] = "Enabled";
56
+ KnownPublicNetworkAccess["Disabled"] = "Disabled";
57
+ })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
58
+ (function (KnownRequiredNsgRules) {
59
+ KnownRequiredNsgRules["AllRules"] = "AllRules";
60
+ KnownRequiredNsgRules["NoAzureDatabricksRules"] = "NoAzureDatabricksRules";
61
+ KnownRequiredNsgRules["NoAzureServiceRules"] = "NoAzureServiceRules";
62
+ })(exports.KnownRequiredNsgRules || (exports.KnownRequiredNsgRules = {}));
63
+ (function (KnownCreatedByType) {
64
+ KnownCreatedByType["User"] = "User";
65
+ KnownCreatedByType["Application"] = "Application";
66
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
67
+ KnownCreatedByType["Key"] = "Key";
68
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
69
+ (function (KnownPeeringState) {
70
+ KnownPeeringState["Initiated"] = "Initiated";
71
+ KnownPeeringState["Connected"] = "Connected";
72
+ KnownPeeringState["Disconnected"] = "Disconnected";
73
+ })(exports.KnownPeeringState || (exports.KnownPeeringState = {}));
74
+ (function (KnownPeeringProvisioningState) {
75
+ KnownPeeringProvisioningState["Succeeded"] = "Succeeded";
76
+ KnownPeeringProvisioningState["Updating"] = "Updating";
77
+ KnownPeeringProvisioningState["Deleting"] = "Deleting";
78
+ KnownPeeringProvisioningState["Failed"] = "Failed";
79
+ })(exports.KnownPeeringProvisioningState || (exports.KnownPeeringProvisioningState = {}));
80
+
81
+ /*
82
+ * Copyright (c) Microsoft Corporation.
83
+ * Licensed under the MIT License.
84
+ *
85
+ * Code generated by Microsoft (R) AutoRest Code Generator.
86
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
87
+ */
88
+ const Resource = {
89
+ type: {
90
+ name: "Composite",
91
+ className: "Resource",
92
+ modelProperties: {
93
+ id: {
94
+ serializedName: "id",
95
+ readOnly: true,
96
+ type: {
97
+ name: "String"
98
+ }
99
+ },
100
+ name: {
101
+ serializedName: "name",
102
+ readOnly: true,
103
+ type: {
104
+ name: "String"
105
+ }
106
+ },
107
+ type: {
108
+ serializedName: "type",
109
+ readOnly: true,
110
+ type: {
111
+ name: "String"
112
+ }
113
+ }
114
+ }
115
+ }
116
+ };
117
+ const WorkspaceCustomParameters = {
118
+ type: {
119
+ name: "Composite",
120
+ className: "WorkspaceCustomParameters",
121
+ modelProperties: {
122
+ amlWorkspaceId: {
123
+ serializedName: "amlWorkspaceId",
124
+ type: {
125
+ name: "Composite",
126
+ className: "WorkspaceCustomStringParameter"
127
+ }
128
+ },
129
+ customVirtualNetworkId: {
130
+ serializedName: "customVirtualNetworkId",
131
+ type: {
132
+ name: "Composite",
133
+ className: "WorkspaceCustomStringParameter"
134
+ }
135
+ },
136
+ customPublicSubnetName: {
137
+ serializedName: "customPublicSubnetName",
138
+ type: {
139
+ name: "Composite",
140
+ className: "WorkspaceCustomStringParameter"
141
+ }
142
+ },
143
+ customPrivateSubnetName: {
144
+ serializedName: "customPrivateSubnetName",
145
+ type: {
146
+ name: "Composite",
147
+ className: "WorkspaceCustomStringParameter"
148
+ }
149
+ },
150
+ enableNoPublicIp: {
151
+ serializedName: "enableNoPublicIp",
152
+ type: {
153
+ name: "Composite",
154
+ className: "WorkspaceCustomBooleanParameter"
155
+ }
156
+ },
157
+ loadBalancerBackendPoolName: {
158
+ serializedName: "loadBalancerBackendPoolName",
159
+ type: {
160
+ name: "Composite",
161
+ className: "WorkspaceCustomStringParameter"
162
+ }
163
+ },
164
+ loadBalancerId: {
165
+ serializedName: "loadBalancerId",
166
+ type: {
167
+ name: "Composite",
168
+ className: "WorkspaceCustomStringParameter"
169
+ }
170
+ },
171
+ natGatewayName: {
172
+ serializedName: "natGatewayName",
173
+ type: {
174
+ name: "Composite",
175
+ className: "WorkspaceCustomStringParameter"
176
+ }
177
+ },
178
+ publicIpName: {
179
+ serializedName: "publicIpName",
180
+ type: {
181
+ name: "Composite",
182
+ className: "WorkspaceCustomStringParameter"
183
+ }
184
+ },
185
+ prepareEncryption: {
186
+ serializedName: "prepareEncryption",
187
+ type: {
188
+ name: "Composite",
189
+ className: "WorkspaceCustomBooleanParameter"
190
+ }
191
+ },
192
+ encryption: {
193
+ serializedName: "encryption",
194
+ type: {
195
+ name: "Composite",
196
+ className: "WorkspaceEncryptionParameter"
197
+ }
198
+ },
199
+ requireInfrastructureEncryption: {
200
+ serializedName: "requireInfrastructureEncryption",
201
+ type: {
202
+ name: "Composite",
203
+ className: "WorkspaceCustomBooleanParameter"
204
+ }
205
+ },
206
+ storageAccountName: {
207
+ serializedName: "storageAccountName",
208
+ type: {
209
+ name: "Composite",
210
+ className: "WorkspaceCustomStringParameter"
211
+ }
212
+ },
213
+ storageAccountSkuName: {
214
+ serializedName: "storageAccountSkuName",
215
+ type: {
216
+ name: "Composite",
217
+ className: "WorkspaceCustomStringParameter"
218
+ }
219
+ },
220
+ vnetAddressPrefix: {
221
+ serializedName: "vnetAddressPrefix",
222
+ type: {
223
+ name: "Composite",
224
+ className: "WorkspaceCustomStringParameter"
225
+ }
226
+ },
227
+ resourceTags: {
228
+ serializedName: "resourceTags",
229
+ type: {
230
+ name: "Composite",
231
+ className: "WorkspaceCustomObjectParameter"
232
+ }
233
+ }
234
+ }
235
+ }
236
+ };
237
+ const WorkspaceCustomStringParameter = {
238
+ type: {
239
+ name: "Composite",
240
+ className: "WorkspaceCustomStringParameter",
241
+ modelProperties: {
242
+ type: {
243
+ serializedName: "type",
244
+ readOnly: true,
245
+ type: {
246
+ name: "String"
247
+ }
248
+ },
249
+ value: {
250
+ serializedName: "value",
251
+ required: true,
252
+ type: {
253
+ name: "String"
254
+ }
255
+ }
256
+ }
257
+ }
258
+ };
259
+ const WorkspaceCustomBooleanParameter = {
260
+ type: {
261
+ name: "Composite",
262
+ className: "WorkspaceCustomBooleanParameter",
263
+ modelProperties: {
264
+ type: {
265
+ serializedName: "type",
266
+ readOnly: true,
267
+ type: {
268
+ name: "String"
269
+ }
270
+ },
271
+ value: {
272
+ serializedName: "value",
273
+ required: true,
274
+ type: {
275
+ name: "Boolean"
276
+ }
277
+ }
278
+ }
279
+ }
280
+ };
281
+ const WorkspaceEncryptionParameter = {
282
+ type: {
283
+ name: "Composite",
284
+ className: "WorkspaceEncryptionParameter",
285
+ modelProperties: {
286
+ type: {
287
+ serializedName: "type",
288
+ readOnly: true,
289
+ type: {
290
+ name: "String"
291
+ }
292
+ },
293
+ value: {
294
+ serializedName: "value",
295
+ type: {
296
+ name: "Composite",
297
+ className: "Encryption"
298
+ }
299
+ }
300
+ }
301
+ }
302
+ };
303
+ const Encryption = {
304
+ type: {
305
+ name: "Composite",
306
+ className: "Encryption",
307
+ modelProperties: {
308
+ keySource: {
309
+ defaultValue: "Default",
310
+ serializedName: "keySource",
311
+ type: {
312
+ name: "String"
313
+ }
314
+ },
315
+ keyName: {
316
+ serializedName: "KeyName",
317
+ type: {
318
+ name: "String"
319
+ }
320
+ },
321
+ keyVersion: {
322
+ serializedName: "keyversion",
323
+ type: {
324
+ name: "String"
325
+ }
326
+ },
327
+ keyVaultUri: {
328
+ serializedName: "keyvaulturi",
329
+ type: {
330
+ name: "String"
331
+ }
332
+ }
333
+ }
334
+ }
335
+ };
336
+ const WorkspaceCustomObjectParameter = {
337
+ type: {
338
+ name: "Composite",
339
+ className: "WorkspaceCustomObjectParameter",
340
+ modelProperties: {
341
+ type: {
342
+ serializedName: "type",
343
+ readOnly: true,
344
+ type: {
345
+ name: "String"
346
+ }
347
+ },
348
+ value: {
349
+ serializedName: "value",
350
+ required: true,
351
+ type: {
352
+ name: "Dictionary",
353
+ value: { type: { name: "any" } }
354
+ }
355
+ }
356
+ }
357
+ }
358
+ };
359
+ const WorkspaceProviderAuthorization = {
360
+ type: {
361
+ name: "Composite",
362
+ className: "WorkspaceProviderAuthorization",
363
+ modelProperties: {
364
+ principalId: {
365
+ serializedName: "principalId",
366
+ required: true,
367
+ type: {
368
+ name: "Uuid"
369
+ }
370
+ },
371
+ roleDefinitionId: {
372
+ serializedName: "roleDefinitionId",
373
+ required: true,
374
+ type: {
375
+ name: "Uuid"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ };
381
+ const CreatedBy = {
382
+ type: {
383
+ name: "Composite",
384
+ className: "CreatedBy",
385
+ modelProperties: {
386
+ oid: {
387
+ serializedName: "oid",
388
+ readOnly: true,
389
+ type: {
390
+ name: "Uuid"
391
+ }
392
+ },
393
+ puid: {
394
+ serializedName: "puid",
395
+ readOnly: true,
396
+ type: {
397
+ name: "String"
398
+ }
399
+ },
400
+ applicationId: {
401
+ serializedName: "applicationId",
402
+ readOnly: true,
403
+ type: {
404
+ name: "Uuid"
405
+ }
406
+ }
407
+ }
408
+ }
409
+ };
410
+ const ManagedIdentityConfiguration = {
411
+ type: {
412
+ name: "Composite",
413
+ className: "ManagedIdentityConfiguration",
414
+ modelProperties: {
415
+ principalId: {
416
+ serializedName: "principalId",
417
+ readOnly: true,
418
+ type: {
419
+ name: "Uuid"
420
+ }
421
+ },
422
+ tenantId: {
423
+ serializedName: "tenantId",
424
+ readOnly: true,
425
+ type: {
426
+ name: "Uuid"
427
+ }
428
+ },
429
+ type: {
430
+ serializedName: "type",
431
+ readOnly: true,
432
+ type: {
433
+ name: "String"
434
+ }
435
+ }
436
+ }
437
+ }
438
+ };
439
+ const WorkspacePropertiesEncryption = {
440
+ type: {
441
+ name: "Composite",
442
+ className: "WorkspacePropertiesEncryption",
443
+ modelProperties: {
444
+ entities: {
445
+ serializedName: "entities",
446
+ type: {
447
+ name: "Composite",
448
+ className: "EncryptionEntitiesDefinition"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ };
454
+ const EncryptionEntitiesDefinition = {
455
+ type: {
456
+ name: "Composite",
457
+ className: "EncryptionEntitiesDefinition",
458
+ modelProperties: {
459
+ managedServices: {
460
+ serializedName: "managedServices",
461
+ type: {
462
+ name: "Composite",
463
+ className: "EncryptionV2"
464
+ }
465
+ }
466
+ }
467
+ }
468
+ };
469
+ const EncryptionV2 = {
470
+ type: {
471
+ name: "Composite",
472
+ className: "EncryptionV2",
473
+ modelProperties: {
474
+ keySource: {
475
+ serializedName: "keySource",
476
+ required: true,
477
+ type: {
478
+ name: "String"
479
+ }
480
+ },
481
+ keyVaultProperties: {
482
+ serializedName: "keyVaultProperties",
483
+ type: {
484
+ name: "Composite",
485
+ className: "EncryptionV2KeyVaultProperties"
486
+ }
487
+ }
488
+ }
489
+ }
490
+ };
491
+ const EncryptionV2KeyVaultProperties = {
492
+ type: {
493
+ name: "Composite",
494
+ className: "EncryptionV2KeyVaultProperties",
495
+ modelProperties: {
496
+ keyVaultUri: {
497
+ serializedName: "keyVaultUri",
498
+ required: true,
499
+ type: {
500
+ name: "String"
501
+ }
502
+ },
503
+ keyName: {
504
+ serializedName: "keyName",
505
+ required: true,
506
+ type: {
507
+ name: "String"
508
+ }
509
+ },
510
+ keyVersion: {
511
+ serializedName: "keyVersion",
512
+ required: true,
513
+ type: {
514
+ name: "String"
515
+ }
516
+ }
517
+ }
518
+ }
519
+ };
520
+ const PrivateEndpointConnection = {
521
+ type: {
522
+ name: "Composite",
523
+ className: "PrivateEndpointConnection",
524
+ modelProperties: {
525
+ id: {
526
+ serializedName: "id",
527
+ readOnly: true,
528
+ type: {
529
+ name: "String"
530
+ }
531
+ },
532
+ name: {
533
+ serializedName: "name",
534
+ readOnly: true,
535
+ type: {
536
+ name: "String"
537
+ }
538
+ },
539
+ type: {
540
+ serializedName: "type",
541
+ readOnly: true,
542
+ type: {
543
+ name: "String"
544
+ }
545
+ },
546
+ properties: {
547
+ serializedName: "properties",
548
+ type: {
549
+ name: "Composite",
550
+ className: "PrivateEndpointConnectionProperties"
551
+ }
552
+ }
553
+ }
554
+ }
555
+ };
556
+ const PrivateEndpointConnectionProperties = {
557
+ type: {
558
+ name: "Composite",
559
+ className: "PrivateEndpointConnectionProperties",
560
+ modelProperties: {
561
+ privateEndpoint: {
562
+ serializedName: "privateEndpoint",
563
+ type: {
564
+ name: "Composite",
565
+ className: "PrivateEndpoint"
566
+ }
567
+ },
568
+ privateLinkServiceConnectionState: {
569
+ serializedName: "privateLinkServiceConnectionState",
570
+ type: {
571
+ name: "Composite",
572
+ className: "PrivateLinkServiceConnectionState"
573
+ }
574
+ },
575
+ provisioningState: {
576
+ serializedName: "provisioningState",
577
+ readOnly: true,
578
+ type: {
579
+ name: "String"
580
+ }
581
+ }
582
+ }
583
+ }
584
+ };
585
+ const PrivateEndpoint = {
586
+ type: {
587
+ name: "Composite",
588
+ className: "PrivateEndpoint",
589
+ modelProperties: {
590
+ id: {
591
+ serializedName: "id",
592
+ readOnly: true,
593
+ type: {
594
+ name: "String"
595
+ }
596
+ }
597
+ }
598
+ }
599
+ };
600
+ const PrivateLinkServiceConnectionState = {
601
+ type: {
602
+ name: "Composite",
603
+ className: "PrivateLinkServiceConnectionState",
604
+ modelProperties: {
605
+ status: {
606
+ serializedName: "status",
607
+ required: true,
608
+ type: {
609
+ name: "String"
610
+ }
611
+ },
612
+ description: {
613
+ serializedName: "description",
614
+ type: {
615
+ name: "String"
616
+ }
617
+ },
618
+ actionRequired: {
619
+ serializedName: "actionRequired",
620
+ type: {
621
+ name: "String"
622
+ }
623
+ }
624
+ }
625
+ }
626
+ };
627
+ const Sku = {
628
+ type: {
629
+ name: "Composite",
630
+ className: "Sku",
631
+ modelProperties: {
632
+ name: {
633
+ serializedName: "name",
634
+ required: true,
635
+ type: {
636
+ name: "String"
637
+ }
638
+ },
639
+ tier: {
640
+ serializedName: "tier",
641
+ type: {
642
+ name: "String"
643
+ }
644
+ }
645
+ }
646
+ }
647
+ };
648
+ const SystemData = {
649
+ type: {
650
+ name: "Composite",
651
+ className: "SystemData",
652
+ modelProperties: {
653
+ createdBy: {
654
+ serializedName: "createdBy",
655
+ type: {
656
+ name: "String"
657
+ }
658
+ },
659
+ createdByType: {
660
+ serializedName: "createdByType",
661
+ type: {
662
+ name: "String"
663
+ }
664
+ },
665
+ createdAt: {
666
+ serializedName: "createdAt",
667
+ type: {
668
+ name: "DateTime"
669
+ }
670
+ },
671
+ lastModifiedBy: {
672
+ serializedName: "lastModifiedBy",
673
+ type: {
674
+ name: "String"
675
+ }
676
+ },
677
+ lastModifiedByType: {
678
+ serializedName: "lastModifiedByType",
679
+ type: {
680
+ name: "String"
681
+ }
682
+ },
683
+ lastModifiedAt: {
684
+ serializedName: "lastModifiedAt",
685
+ type: {
686
+ name: "DateTime"
687
+ }
688
+ }
689
+ }
690
+ }
691
+ };
692
+ const ErrorResponse = {
693
+ type: {
694
+ name: "Composite",
695
+ className: "ErrorResponse",
696
+ modelProperties: {
697
+ error: {
698
+ serializedName: "error",
699
+ type: {
700
+ name: "Composite",
701
+ className: "ErrorInfo"
702
+ }
703
+ }
704
+ }
705
+ }
706
+ };
707
+ const ErrorInfo = {
708
+ type: {
709
+ name: "Composite",
710
+ className: "ErrorInfo",
711
+ modelProperties: {
712
+ code: {
713
+ serializedName: "code",
714
+ required: true,
715
+ type: {
716
+ name: "String"
717
+ }
718
+ },
719
+ message: {
720
+ serializedName: "message",
721
+ required: true,
722
+ type: {
723
+ name: "String"
724
+ }
725
+ },
726
+ details: {
727
+ serializedName: "details",
728
+ type: {
729
+ name: "Sequence",
730
+ element: {
731
+ type: {
732
+ name: "Composite",
733
+ className: "ErrorDetail"
734
+ }
735
+ }
736
+ }
737
+ },
738
+ innererror: {
739
+ serializedName: "innererror",
740
+ type: {
741
+ name: "String"
742
+ }
743
+ }
744
+ }
745
+ }
746
+ };
747
+ const ErrorDetail = {
748
+ type: {
749
+ name: "Composite",
750
+ className: "ErrorDetail",
751
+ modelProperties: {
752
+ code: {
753
+ serializedName: "code",
754
+ required: true,
755
+ type: {
756
+ name: "String"
757
+ }
758
+ },
759
+ message: {
760
+ serializedName: "message",
761
+ required: true,
762
+ type: {
763
+ name: "String"
764
+ }
765
+ },
766
+ target: {
767
+ serializedName: "target",
768
+ type: {
769
+ name: "String"
770
+ }
771
+ }
772
+ }
773
+ }
774
+ };
775
+ const WorkspaceUpdate = {
776
+ type: {
777
+ name: "Composite",
778
+ className: "WorkspaceUpdate",
779
+ modelProperties: {
780
+ tags: {
781
+ serializedName: "tags",
782
+ type: {
783
+ name: "Dictionary",
784
+ value: { type: { name: "String" } }
785
+ }
786
+ }
787
+ }
788
+ }
789
+ };
790
+ const WorkspaceListResult = {
791
+ type: {
792
+ name: "Composite",
793
+ className: "WorkspaceListResult",
794
+ modelProperties: {
795
+ value: {
796
+ serializedName: "value",
797
+ type: {
798
+ name: "Sequence",
799
+ element: {
800
+ type: {
801
+ name: "Composite",
802
+ className: "Workspace"
803
+ }
804
+ }
805
+ }
806
+ },
807
+ nextLink: {
808
+ serializedName: "nextLink",
809
+ type: {
810
+ name: "String"
811
+ }
812
+ }
813
+ }
814
+ }
815
+ };
816
+ const OperationListResult = {
817
+ type: {
818
+ name: "Composite",
819
+ className: "OperationListResult",
820
+ modelProperties: {
821
+ value: {
822
+ serializedName: "value",
823
+ type: {
824
+ name: "Sequence",
825
+ element: {
826
+ type: {
827
+ name: "Composite",
828
+ className: "Operation"
829
+ }
830
+ }
831
+ }
832
+ },
833
+ nextLink: {
834
+ serializedName: "nextLink",
835
+ type: {
836
+ name: "String"
837
+ }
838
+ }
839
+ }
840
+ }
841
+ };
842
+ const Operation = {
843
+ type: {
844
+ name: "Composite",
845
+ className: "Operation",
846
+ modelProperties: {
847
+ name: {
848
+ serializedName: "name",
849
+ type: {
850
+ name: "String"
851
+ }
852
+ },
853
+ display: {
854
+ serializedName: "display",
855
+ type: {
856
+ name: "Composite",
857
+ className: "OperationDisplay"
858
+ }
859
+ }
860
+ }
861
+ }
862
+ };
863
+ const OperationDisplay = {
864
+ type: {
865
+ name: "Composite",
866
+ className: "OperationDisplay",
867
+ modelProperties: {
868
+ provider: {
869
+ serializedName: "provider",
870
+ type: {
871
+ name: "String"
872
+ }
873
+ },
874
+ resource: {
875
+ serializedName: "resource",
876
+ type: {
877
+ name: "String"
878
+ }
879
+ },
880
+ operation: {
881
+ serializedName: "operation",
882
+ type: {
883
+ name: "String"
884
+ }
885
+ }
886
+ }
887
+ }
888
+ };
889
+ const PrivateLinkResourcesList = {
890
+ type: {
891
+ name: "Composite",
892
+ className: "PrivateLinkResourcesList",
893
+ modelProperties: {
894
+ value: {
895
+ serializedName: "value",
896
+ type: {
897
+ name: "Sequence",
898
+ element: {
899
+ type: {
900
+ name: "Composite",
901
+ className: "GroupIdInformation"
902
+ }
903
+ }
904
+ }
905
+ },
906
+ nextLink: {
907
+ serializedName: "nextLink",
908
+ type: {
909
+ name: "String"
910
+ }
911
+ }
912
+ }
913
+ }
914
+ };
915
+ const GroupIdInformationProperties = {
916
+ type: {
917
+ name: "Composite",
918
+ className: "GroupIdInformationProperties",
919
+ modelProperties: {
920
+ groupId: {
921
+ serializedName: "groupId",
922
+ type: {
923
+ name: "String"
924
+ }
925
+ },
926
+ requiredMembers: {
927
+ serializedName: "requiredMembers",
928
+ type: {
929
+ name: "Sequence",
930
+ element: {
931
+ type: {
932
+ name: "String"
933
+ }
934
+ }
935
+ }
936
+ },
937
+ requiredZoneNames: {
938
+ serializedName: "requiredZoneNames",
939
+ type: {
940
+ name: "Sequence",
941
+ element: {
942
+ type: {
943
+ name: "String"
944
+ }
945
+ }
946
+ }
947
+ }
948
+ }
949
+ }
950
+ };
951
+ const PrivateEndpointConnectionsList = {
952
+ type: {
953
+ name: "Composite",
954
+ className: "PrivateEndpointConnectionsList",
955
+ modelProperties: {
956
+ value: {
957
+ serializedName: "value",
958
+ type: {
959
+ name: "Sequence",
960
+ element: {
961
+ type: {
962
+ name: "Composite",
963
+ className: "PrivateEndpointConnection"
964
+ }
965
+ }
966
+ }
967
+ },
968
+ nextLink: {
969
+ serializedName: "nextLink",
970
+ type: {
971
+ name: "String"
972
+ }
973
+ }
974
+ }
975
+ }
976
+ };
977
+ const OutboundEnvironmentEndpoint = {
978
+ type: {
979
+ name: "Composite",
980
+ className: "OutboundEnvironmentEndpoint",
981
+ modelProperties: {
982
+ category: {
983
+ serializedName: "category",
984
+ type: {
985
+ name: "String"
986
+ }
987
+ },
988
+ endpoints: {
989
+ serializedName: "endpoints",
990
+ type: {
991
+ name: "Sequence",
992
+ element: {
993
+ type: {
994
+ name: "Composite",
995
+ className: "EndpointDependency"
996
+ }
997
+ }
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ };
1003
+ const EndpointDependency = {
1004
+ type: {
1005
+ name: "Composite",
1006
+ className: "EndpointDependency",
1007
+ modelProperties: {
1008
+ domainName: {
1009
+ serializedName: "domainName",
1010
+ type: {
1011
+ name: "String"
1012
+ }
1013
+ },
1014
+ endpointDetails: {
1015
+ serializedName: "endpointDetails",
1016
+ type: {
1017
+ name: "Sequence",
1018
+ element: {
1019
+ type: {
1020
+ name: "Composite",
1021
+ className: "EndpointDetail"
1022
+ }
1023
+ }
1024
+ }
1025
+ }
1026
+ }
1027
+ }
1028
+ };
1029
+ const EndpointDetail = {
1030
+ type: {
1031
+ name: "Composite",
1032
+ className: "EndpointDetail",
1033
+ modelProperties: {
1034
+ ipAddress: {
1035
+ serializedName: "ipAddress",
1036
+ type: {
1037
+ name: "String"
1038
+ }
1039
+ },
1040
+ port: {
1041
+ serializedName: "port",
1042
+ type: {
1043
+ name: "Number"
1044
+ }
1045
+ },
1046
+ latency: {
1047
+ serializedName: "latency",
1048
+ type: {
1049
+ name: "Number"
1050
+ }
1051
+ },
1052
+ isAccessible: {
1053
+ serializedName: "isAccessible",
1054
+ type: {
1055
+ name: "Boolean"
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+ };
1061
+ const VirtualNetworkPeering = {
1062
+ type: {
1063
+ name: "Composite",
1064
+ className: "VirtualNetworkPeering",
1065
+ modelProperties: {
1066
+ name: {
1067
+ serializedName: "name",
1068
+ readOnly: true,
1069
+ type: {
1070
+ name: "String"
1071
+ }
1072
+ },
1073
+ id: {
1074
+ serializedName: "id",
1075
+ readOnly: true,
1076
+ type: {
1077
+ name: "String"
1078
+ }
1079
+ },
1080
+ type: {
1081
+ serializedName: "type",
1082
+ readOnly: true,
1083
+ type: {
1084
+ name: "String"
1085
+ }
1086
+ },
1087
+ allowVirtualNetworkAccess: {
1088
+ serializedName: "properties.allowVirtualNetworkAccess",
1089
+ type: {
1090
+ name: "Boolean"
1091
+ }
1092
+ },
1093
+ allowForwardedTraffic: {
1094
+ serializedName: "properties.allowForwardedTraffic",
1095
+ type: {
1096
+ name: "Boolean"
1097
+ }
1098
+ },
1099
+ allowGatewayTransit: {
1100
+ serializedName: "properties.allowGatewayTransit",
1101
+ type: {
1102
+ name: "Boolean"
1103
+ }
1104
+ },
1105
+ useRemoteGateways: {
1106
+ serializedName: "properties.useRemoteGateways",
1107
+ type: {
1108
+ name: "Boolean"
1109
+ }
1110
+ },
1111
+ databricksVirtualNetwork: {
1112
+ serializedName: "properties.databricksVirtualNetwork",
1113
+ type: {
1114
+ name: "Composite",
1115
+ className: "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork"
1116
+ }
1117
+ },
1118
+ databricksAddressSpace: {
1119
+ serializedName: "properties.databricksAddressSpace",
1120
+ type: {
1121
+ name: "Composite",
1122
+ className: "AddressSpace"
1123
+ }
1124
+ },
1125
+ remoteVirtualNetwork: {
1126
+ serializedName: "properties.remoteVirtualNetwork",
1127
+ type: {
1128
+ name: "Composite",
1129
+ className: "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork"
1130
+ }
1131
+ },
1132
+ remoteAddressSpace: {
1133
+ serializedName: "properties.remoteAddressSpace",
1134
+ type: {
1135
+ name: "Composite",
1136
+ className: "AddressSpace"
1137
+ }
1138
+ },
1139
+ peeringState: {
1140
+ serializedName: "properties.peeringState",
1141
+ readOnly: true,
1142
+ type: {
1143
+ name: "String"
1144
+ }
1145
+ },
1146
+ provisioningState: {
1147
+ serializedName: "properties.provisioningState",
1148
+ readOnly: true,
1149
+ type: {
1150
+ name: "String"
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ };
1156
+ const VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork = {
1157
+ type: {
1158
+ name: "Composite",
1159
+ className: "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork",
1160
+ modelProperties: {
1161
+ id: {
1162
+ serializedName: "id",
1163
+ type: {
1164
+ name: "String"
1165
+ }
1166
+ }
1167
+ }
1168
+ }
1169
+ };
1170
+ const AddressSpace = {
1171
+ type: {
1172
+ name: "Composite",
1173
+ className: "AddressSpace",
1174
+ modelProperties: {
1175
+ addressPrefixes: {
1176
+ serializedName: "addressPrefixes",
1177
+ type: {
1178
+ name: "Sequence",
1179
+ element: {
1180
+ type: {
1181
+ name: "String"
1182
+ }
1183
+ }
1184
+ }
1185
+ }
1186
+ }
1187
+ }
1188
+ };
1189
+ const VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork = {
1190
+ type: {
1191
+ name: "Composite",
1192
+ className: "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork",
1193
+ modelProperties: {
1194
+ id: {
1195
+ serializedName: "id",
1196
+ type: {
1197
+ name: "String"
1198
+ }
1199
+ }
1200
+ }
1201
+ }
1202
+ };
1203
+ const VirtualNetworkPeeringList = {
1204
+ type: {
1205
+ name: "Composite",
1206
+ className: "VirtualNetworkPeeringList",
1207
+ modelProperties: {
1208
+ value: {
1209
+ serializedName: "value",
1210
+ type: {
1211
+ name: "Sequence",
1212
+ element: {
1213
+ type: {
1214
+ name: "Composite",
1215
+ className: "VirtualNetworkPeering"
1216
+ }
1217
+ }
1218
+ }
1219
+ },
1220
+ nextLink: {
1221
+ serializedName: "nextLink",
1222
+ type: {
1223
+ name: "String"
1224
+ }
1225
+ }
1226
+ }
1227
+ }
1228
+ };
1229
+ const TrackedResource = {
1230
+ type: {
1231
+ name: "Composite",
1232
+ className: "TrackedResource",
1233
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1234
+ serializedName: "tags",
1235
+ type: {
1236
+ name: "Dictionary",
1237
+ value: { type: { name: "String" } }
1238
+ }
1239
+ }, location: {
1240
+ serializedName: "location",
1241
+ required: true,
1242
+ type: {
1243
+ name: "String"
1244
+ }
1245
+ } })
1246
+ }
1247
+ };
1248
+ const GroupIdInformation = {
1249
+ type: {
1250
+ name: "Composite",
1251
+ className: "GroupIdInformation",
1252
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1253
+ serializedName: "properties",
1254
+ type: {
1255
+ name: "Composite",
1256
+ className: "GroupIdInformationProperties"
1257
+ }
1258
+ } })
1259
+ }
1260
+ };
1261
+ const Workspace = {
1262
+ type: {
1263
+ name: "Composite",
1264
+ className: "Workspace",
1265
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1266
+ serializedName: "sku",
1267
+ type: {
1268
+ name: "Composite",
1269
+ className: "Sku"
1270
+ }
1271
+ }, systemData: {
1272
+ serializedName: "systemData",
1273
+ type: {
1274
+ name: "Composite",
1275
+ className: "SystemData"
1276
+ }
1277
+ }, managedResourceGroupId: {
1278
+ serializedName: "properties.managedResourceGroupId",
1279
+ required: true,
1280
+ type: {
1281
+ name: "String"
1282
+ }
1283
+ }, parameters: {
1284
+ serializedName: "properties.parameters",
1285
+ type: {
1286
+ name: "Composite",
1287
+ className: "WorkspaceCustomParameters"
1288
+ }
1289
+ }, provisioningState: {
1290
+ serializedName: "properties.provisioningState",
1291
+ readOnly: true,
1292
+ type: {
1293
+ name: "String"
1294
+ }
1295
+ }, uiDefinitionUri: {
1296
+ serializedName: "properties.uiDefinitionUri",
1297
+ type: {
1298
+ name: "String"
1299
+ }
1300
+ }, authorizations: {
1301
+ serializedName: "properties.authorizations",
1302
+ type: {
1303
+ name: "Sequence",
1304
+ element: {
1305
+ type: {
1306
+ name: "Composite",
1307
+ className: "WorkspaceProviderAuthorization"
1308
+ }
1309
+ }
1310
+ }
1311
+ }, createdBy: {
1312
+ serializedName: "properties.createdBy",
1313
+ type: {
1314
+ name: "Composite",
1315
+ className: "CreatedBy"
1316
+ }
1317
+ }, updatedBy: {
1318
+ serializedName: "properties.updatedBy",
1319
+ type: {
1320
+ name: "Composite",
1321
+ className: "CreatedBy"
1322
+ }
1323
+ }, createdDateTime: {
1324
+ serializedName: "properties.createdDateTime",
1325
+ readOnly: true,
1326
+ type: {
1327
+ name: "DateTime"
1328
+ }
1329
+ }, workspaceId: {
1330
+ serializedName: "properties.workspaceId",
1331
+ readOnly: true,
1332
+ type: {
1333
+ name: "String"
1334
+ }
1335
+ }, workspaceUrl: {
1336
+ serializedName: "properties.workspaceUrl",
1337
+ readOnly: true,
1338
+ type: {
1339
+ name: "String"
1340
+ }
1341
+ }, storageAccountIdentity: {
1342
+ serializedName: "properties.storageAccountIdentity",
1343
+ type: {
1344
+ name: "Composite",
1345
+ className: "ManagedIdentityConfiguration"
1346
+ }
1347
+ }, encryption: {
1348
+ serializedName: "properties.encryption",
1349
+ type: {
1350
+ name: "Composite",
1351
+ className: "WorkspacePropertiesEncryption"
1352
+ }
1353
+ }, privateEndpointConnections: {
1354
+ serializedName: "properties.privateEndpointConnections",
1355
+ readOnly: true,
1356
+ type: {
1357
+ name: "Sequence",
1358
+ element: {
1359
+ type: {
1360
+ name: "Composite",
1361
+ className: "PrivateEndpointConnection"
1362
+ }
1363
+ }
1364
+ }
1365
+ }, publicNetworkAccess: {
1366
+ serializedName: "properties.publicNetworkAccess",
1367
+ type: {
1368
+ name: "String"
1369
+ }
1370
+ }, requiredNsgRules: {
1371
+ serializedName: "properties.requiredNsgRules",
1372
+ type: {
1373
+ name: "String"
1374
+ }
1375
+ } })
1376
+ }
1377
+ };
1378
+
1379
+ var Mappers = /*#__PURE__*/Object.freeze({
1380
+ __proto__: null,
1381
+ Resource: Resource,
1382
+ WorkspaceCustomParameters: WorkspaceCustomParameters,
1383
+ WorkspaceCustomStringParameter: WorkspaceCustomStringParameter,
1384
+ WorkspaceCustomBooleanParameter: WorkspaceCustomBooleanParameter,
1385
+ WorkspaceEncryptionParameter: WorkspaceEncryptionParameter,
1386
+ Encryption: Encryption,
1387
+ WorkspaceCustomObjectParameter: WorkspaceCustomObjectParameter,
1388
+ WorkspaceProviderAuthorization: WorkspaceProviderAuthorization,
1389
+ CreatedBy: CreatedBy,
1390
+ ManagedIdentityConfiguration: ManagedIdentityConfiguration,
1391
+ WorkspacePropertiesEncryption: WorkspacePropertiesEncryption,
1392
+ EncryptionEntitiesDefinition: EncryptionEntitiesDefinition,
1393
+ EncryptionV2: EncryptionV2,
1394
+ EncryptionV2KeyVaultProperties: EncryptionV2KeyVaultProperties,
1395
+ PrivateEndpointConnection: PrivateEndpointConnection,
1396
+ PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
1397
+ PrivateEndpoint: PrivateEndpoint,
1398
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1399
+ Sku: Sku,
1400
+ SystemData: SystemData,
1401
+ ErrorResponse: ErrorResponse,
1402
+ ErrorInfo: ErrorInfo,
1403
+ ErrorDetail: ErrorDetail,
1404
+ WorkspaceUpdate: WorkspaceUpdate,
1405
+ WorkspaceListResult: WorkspaceListResult,
1406
+ OperationListResult: OperationListResult,
1407
+ Operation: Operation,
1408
+ OperationDisplay: OperationDisplay,
1409
+ PrivateLinkResourcesList: PrivateLinkResourcesList,
1410
+ GroupIdInformationProperties: GroupIdInformationProperties,
1411
+ PrivateEndpointConnectionsList: PrivateEndpointConnectionsList,
1412
+ OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
1413
+ EndpointDependency: EndpointDependency,
1414
+ EndpointDetail: EndpointDetail,
1415
+ VirtualNetworkPeering: VirtualNetworkPeering,
1416
+ VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork: VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork,
1417
+ AddressSpace: AddressSpace,
1418
+ VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork: VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork,
1419
+ VirtualNetworkPeeringList: VirtualNetworkPeeringList,
1420
+ TrackedResource: TrackedResource,
1421
+ GroupIdInformation: GroupIdInformation,
1422
+ Workspace: Workspace
1423
+ });
1424
+
1425
+ /*
1426
+ * Copyright (c) Microsoft Corporation.
1427
+ * Licensed under the MIT License.
1428
+ *
1429
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1430
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1431
+ */
1432
+ const accept = {
1433
+ parameterPath: "accept",
1434
+ mapper: {
1435
+ defaultValue: "application/json",
1436
+ isConstant: true,
1437
+ serializedName: "Accept",
1438
+ type: {
1439
+ name: "String"
1440
+ }
1441
+ }
1442
+ };
1443
+ const $host = {
1444
+ parameterPath: "$host",
1445
+ mapper: {
1446
+ serializedName: "$host",
1447
+ required: true,
1448
+ type: {
1449
+ name: "String"
1450
+ }
1451
+ },
1452
+ skipEncoding: true
1453
+ };
1454
+ const resourceGroupName = {
1455
+ parameterPath: "resourceGroupName",
1456
+ mapper: {
1457
+ constraints: {
1458
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
1459
+ MaxLength: 90,
1460
+ MinLength: 1
1461
+ },
1462
+ serializedName: "resourceGroupName",
1463
+ required: true,
1464
+ type: {
1465
+ name: "String"
1466
+ }
1467
+ }
1468
+ };
1469
+ const workspaceName = {
1470
+ parameterPath: "workspaceName",
1471
+ mapper: {
1472
+ constraints: {
1473
+ MaxLength: 64,
1474
+ MinLength: 3
1475
+ },
1476
+ serializedName: "workspaceName",
1477
+ required: true,
1478
+ type: {
1479
+ name: "String"
1480
+ }
1481
+ }
1482
+ };
1483
+ const apiVersion = {
1484
+ parameterPath: "apiVersion",
1485
+ mapper: {
1486
+ defaultValue: "2021-04-01-preview",
1487
+ isConstant: true,
1488
+ serializedName: "api-version",
1489
+ type: {
1490
+ name: "String"
1491
+ }
1492
+ }
1493
+ };
1494
+ const subscriptionId = {
1495
+ parameterPath: "subscriptionId",
1496
+ mapper: {
1497
+ serializedName: "subscriptionId",
1498
+ required: true,
1499
+ type: {
1500
+ name: "String"
1501
+ }
1502
+ }
1503
+ };
1504
+ const contentType = {
1505
+ parameterPath: ["options", "contentType"],
1506
+ mapper: {
1507
+ defaultValue: "application/json",
1508
+ isConstant: true,
1509
+ serializedName: "Content-Type",
1510
+ type: {
1511
+ name: "String"
1512
+ }
1513
+ }
1514
+ };
1515
+ const parameters = {
1516
+ parameterPath: "parameters",
1517
+ mapper: Workspace
1518
+ };
1519
+ const parameters1 = {
1520
+ parameterPath: "parameters",
1521
+ mapper: WorkspaceUpdate
1522
+ };
1523
+ const nextLink = {
1524
+ parameterPath: "nextLink",
1525
+ mapper: {
1526
+ serializedName: "nextLink",
1527
+ required: true,
1528
+ type: {
1529
+ name: "String"
1530
+ }
1531
+ },
1532
+ skipEncoding: true
1533
+ };
1534
+ const groupId = {
1535
+ parameterPath: "groupId",
1536
+ mapper: {
1537
+ serializedName: "groupId",
1538
+ required: true,
1539
+ type: {
1540
+ name: "String"
1541
+ }
1542
+ }
1543
+ };
1544
+ const privateEndpointConnectionName = {
1545
+ parameterPath: "privateEndpointConnectionName",
1546
+ mapper: {
1547
+ serializedName: "privateEndpointConnectionName",
1548
+ required: true,
1549
+ type: {
1550
+ name: "String"
1551
+ }
1552
+ }
1553
+ };
1554
+ const privateEndpointConnection = {
1555
+ parameterPath: "privateEndpointConnection",
1556
+ mapper: PrivateEndpointConnection
1557
+ };
1558
+ const peeringName = {
1559
+ parameterPath: "peeringName",
1560
+ mapper: {
1561
+ serializedName: "peeringName",
1562
+ required: true,
1563
+ type: {
1564
+ name: "String"
1565
+ }
1566
+ }
1567
+ };
1568
+ const virtualNetworkPeeringParameters = {
1569
+ parameterPath: "virtualNetworkPeeringParameters",
1570
+ mapper: VirtualNetworkPeering
1571
+ };
1572
+
1573
+ /*
1574
+ * Copyright (c) Microsoft Corporation.
1575
+ * Licensed under the MIT License.
1576
+ *
1577
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1578
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1579
+ */
1580
+ class LroImpl {
1581
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1582
+ this.sendOperationFn = sendOperationFn;
1583
+ this.args = args;
1584
+ this.spec = spec;
1585
+ this.requestPath = requestPath;
1586
+ this.requestMethod = requestMethod;
1587
+ }
1588
+ sendInitialRequest() {
1589
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1590
+ return this.sendOperationFn(this.args, this.spec);
1591
+ });
1592
+ }
1593
+ sendPollRequest(path) {
1594
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1595
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1596
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1597
+ });
1598
+ }
1599
+ }
1600
+
1601
+ /*
1602
+ * Copyright (c) Microsoft Corporation.
1603
+ * Licensed under the MIT License.
1604
+ *
1605
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1606
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1607
+ */
1608
+ /// <reference lib="esnext.asynciterable" />
1609
+ /** Class containing Workspaces operations. */
1610
+ class WorkspacesImpl {
1611
+ /**
1612
+ * Initialize a new instance of the class Workspaces class.
1613
+ * @param client Reference to the service client
1614
+ */
1615
+ constructor(client) {
1616
+ this.client = client;
1617
+ }
1618
+ /**
1619
+ * Gets all the workspaces within a resource group.
1620
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1621
+ * @param options The options parameters.
1622
+ */
1623
+ listByResourceGroup(resourceGroupName, options) {
1624
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1625
+ return {
1626
+ next() {
1627
+ return iter.next();
1628
+ },
1629
+ [Symbol.asyncIterator]() {
1630
+ return this;
1631
+ },
1632
+ byPage: () => {
1633
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
1634
+ }
1635
+ };
1636
+ }
1637
+ listByResourceGroupPagingPage(resourceGroupName, options) {
1638
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1639
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1640
+ yield yield tslib.__await(result.value || []);
1641
+ let continuationToken = result.nextLink;
1642
+ while (continuationToken) {
1643
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1644
+ continuationToken = result.nextLink;
1645
+ yield yield tslib.__await(result.value || []);
1646
+ }
1647
+ });
1648
+ }
1649
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1650
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1651
+ var e_1, _a;
1652
+ try {
1653
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1654
+ const page = _c.value;
1655
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1656
+ }
1657
+ }
1658
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1659
+ finally {
1660
+ try {
1661
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1662
+ }
1663
+ finally { if (e_1) throw e_1.error; }
1664
+ }
1665
+ });
1666
+ }
1667
+ /**
1668
+ * Gets all the workspaces within a subscription.
1669
+ * @param options The options parameters.
1670
+ */
1671
+ listBySubscription(options) {
1672
+ const iter = this.listBySubscriptionPagingAll(options);
1673
+ return {
1674
+ next() {
1675
+ return iter.next();
1676
+ },
1677
+ [Symbol.asyncIterator]() {
1678
+ return this;
1679
+ },
1680
+ byPage: () => {
1681
+ return this.listBySubscriptionPagingPage(options);
1682
+ }
1683
+ };
1684
+ }
1685
+ listBySubscriptionPagingPage(options) {
1686
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1687
+ let result = yield tslib.__await(this._listBySubscription(options));
1688
+ yield yield tslib.__await(result.value || []);
1689
+ let continuationToken = result.nextLink;
1690
+ while (continuationToken) {
1691
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1692
+ continuationToken = result.nextLink;
1693
+ yield yield tslib.__await(result.value || []);
1694
+ }
1695
+ });
1696
+ }
1697
+ listBySubscriptionPagingAll(options) {
1698
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1699
+ var e_2, _a;
1700
+ try {
1701
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1702
+ const page = _c.value;
1703
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1704
+ }
1705
+ }
1706
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1707
+ finally {
1708
+ try {
1709
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1710
+ }
1711
+ finally { if (e_2) throw e_2.error; }
1712
+ }
1713
+ });
1714
+ }
1715
+ /**
1716
+ * Gets the workspace.
1717
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1718
+ * @param workspaceName The name of the workspace.
1719
+ * @param options The options parameters.
1720
+ */
1721
+ get(resourceGroupName, workspaceName, options) {
1722
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
1723
+ }
1724
+ /**
1725
+ * Deletes the workspace.
1726
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1727
+ * @param workspaceName The name of the workspace.
1728
+ * @param options The options parameters.
1729
+ */
1730
+ beginDelete(resourceGroupName, workspaceName, options) {
1731
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1732
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1733
+ return this.client.sendOperationRequest(args, spec);
1734
+ });
1735
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1736
+ var _a;
1737
+ let currentRawResponse = undefined;
1738
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1739
+ const callback = (rawResponse, flatResponse) => {
1740
+ currentRawResponse = rawResponse;
1741
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1742
+ };
1743
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1744
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1745
+ return {
1746
+ flatResponse,
1747
+ rawResponse: {
1748
+ statusCode: currentRawResponse.status,
1749
+ body: currentRawResponse.parsedBody,
1750
+ headers: currentRawResponse.headers.toJSON()
1751
+ }
1752
+ };
1753
+ });
1754
+ const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec);
1755
+ return new coreLro.LroEngine(lro, {
1756
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1757
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1758
+ });
1759
+ });
1760
+ }
1761
+ /**
1762
+ * Deletes the workspace.
1763
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1764
+ * @param workspaceName The name of the workspace.
1765
+ * @param options The options parameters.
1766
+ */
1767
+ beginDeleteAndWait(resourceGroupName, workspaceName, options) {
1768
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1769
+ const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
1770
+ return poller.pollUntilDone();
1771
+ });
1772
+ }
1773
+ /**
1774
+ * Creates a new workspace.
1775
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1776
+ * @param workspaceName The name of the workspace.
1777
+ * @param parameters Parameters supplied to the create or update a workspace.
1778
+ * @param options The options parameters.
1779
+ */
1780
+ beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, options) {
1781
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1782
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1783
+ return this.client.sendOperationRequest(args, spec);
1784
+ });
1785
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1786
+ var _a;
1787
+ let currentRawResponse = undefined;
1788
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1789
+ const callback = (rawResponse, flatResponse) => {
1790
+ currentRawResponse = rawResponse;
1791
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1792
+ };
1793
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1794
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1795
+ return {
1796
+ flatResponse,
1797
+ rawResponse: {
1798
+ statusCode: currentRawResponse.status,
1799
+ body: currentRawResponse.parsedBody,
1800
+ headers: currentRawResponse.headers.toJSON()
1801
+ }
1802
+ };
1803
+ });
1804
+ const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
1805
+ return new coreLro.LroEngine(lro, {
1806
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1807
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1808
+ });
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Creates a new workspace.
1813
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1814
+ * @param workspaceName The name of the workspace.
1815
+ * @param parameters Parameters supplied to the create or update a workspace.
1816
+ * @param options The options parameters.
1817
+ */
1818
+ beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, parameters, options) {
1819
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1820
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, options);
1821
+ return poller.pollUntilDone();
1822
+ });
1823
+ }
1824
+ /**
1825
+ * Updates a workspace.
1826
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1827
+ * @param workspaceName The name of the workspace.
1828
+ * @param parameters The update to the workspace.
1829
+ * @param options The options parameters.
1830
+ */
1831
+ beginUpdate(resourceGroupName, workspaceName, parameters, options) {
1832
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1833
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1834
+ return this.client.sendOperationRequest(args, spec);
1835
+ });
1836
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1837
+ var _a;
1838
+ let currentRawResponse = undefined;
1839
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1840
+ const callback = (rawResponse, flatResponse) => {
1841
+ currentRawResponse = rawResponse;
1842
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1843
+ };
1844
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1845
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1846
+ return {
1847
+ flatResponse,
1848
+ rawResponse: {
1849
+ statusCode: currentRawResponse.status,
1850
+ body: currentRawResponse.parsedBody,
1851
+ headers: currentRawResponse.headers.toJSON()
1852
+ }
1853
+ };
1854
+ });
1855
+ const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
1856
+ return new coreLro.LroEngine(lro, {
1857
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1858
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1859
+ });
1860
+ });
1861
+ }
1862
+ /**
1863
+ * Updates a workspace.
1864
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1865
+ * @param workspaceName The name of the workspace.
1866
+ * @param parameters The update to the workspace.
1867
+ * @param options The options parameters.
1868
+ */
1869
+ beginUpdateAndWait(resourceGroupName, workspaceName, parameters, options) {
1870
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1871
+ const poller = yield this.beginUpdate(resourceGroupName, workspaceName, parameters, options);
1872
+ return poller.pollUntilDone();
1873
+ });
1874
+ }
1875
+ /**
1876
+ * Gets all the workspaces within a resource group.
1877
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1878
+ * @param options The options parameters.
1879
+ */
1880
+ _listByResourceGroup(resourceGroupName, options) {
1881
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1882
+ }
1883
+ /**
1884
+ * Gets all the workspaces within a subscription.
1885
+ * @param options The options parameters.
1886
+ */
1887
+ _listBySubscription(options) {
1888
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1889
+ }
1890
+ /**
1891
+ * ListByResourceGroupNext
1892
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1893
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1894
+ * @param options The options parameters.
1895
+ */
1896
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1897
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1898
+ }
1899
+ /**
1900
+ * ListBySubscriptionNext
1901
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1902
+ * @param options The options parameters.
1903
+ */
1904
+ _listBySubscriptionNext(nextLink, options) {
1905
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1906
+ }
1907
+ }
1908
+ // Operation Specifications
1909
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1910
+ const getOperationSpec = {
1911
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
1912
+ httpMethod: "GET",
1913
+ responses: {
1914
+ 200: {
1915
+ bodyMapper: Workspace
1916
+ },
1917
+ default: {
1918
+ bodyMapper: ErrorResponse
1919
+ }
1920
+ },
1921
+ queryParameters: [apiVersion],
1922
+ urlParameters: [
1923
+ $host,
1924
+ resourceGroupName,
1925
+ workspaceName,
1926
+ subscriptionId
1927
+ ],
1928
+ headerParameters: [accept],
1929
+ serializer
1930
+ };
1931
+ const deleteOperationSpec = {
1932
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
1933
+ httpMethod: "DELETE",
1934
+ responses: {
1935
+ 200: {},
1936
+ 201: {},
1937
+ 202: {},
1938
+ 204: {},
1939
+ default: {
1940
+ bodyMapper: ErrorResponse
1941
+ }
1942
+ },
1943
+ queryParameters: [apiVersion],
1944
+ urlParameters: [
1945
+ $host,
1946
+ resourceGroupName,
1947
+ workspaceName,
1948
+ subscriptionId
1949
+ ],
1950
+ headerParameters: [accept],
1951
+ serializer
1952
+ };
1953
+ const createOrUpdateOperationSpec = {
1954
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
1955
+ httpMethod: "PUT",
1956
+ responses: {
1957
+ 200: {
1958
+ bodyMapper: Workspace
1959
+ },
1960
+ 201: {
1961
+ bodyMapper: Workspace
1962
+ },
1963
+ 202: {
1964
+ bodyMapper: Workspace
1965
+ },
1966
+ 204: {
1967
+ bodyMapper: Workspace
1968
+ },
1969
+ default: {
1970
+ bodyMapper: ErrorResponse
1971
+ }
1972
+ },
1973
+ requestBody: parameters,
1974
+ queryParameters: [apiVersion],
1975
+ urlParameters: [
1976
+ $host,
1977
+ resourceGroupName,
1978
+ workspaceName,
1979
+ subscriptionId
1980
+ ],
1981
+ headerParameters: [accept, contentType],
1982
+ mediaType: "json",
1983
+ serializer
1984
+ };
1985
+ const updateOperationSpec = {
1986
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
1987
+ httpMethod: "PATCH",
1988
+ responses: {
1989
+ 200: {
1990
+ bodyMapper: Workspace
1991
+ },
1992
+ 201: {
1993
+ bodyMapper: Workspace
1994
+ },
1995
+ 202: {
1996
+ bodyMapper: Workspace
1997
+ },
1998
+ 204: {
1999
+ bodyMapper: Workspace
2000
+ },
2001
+ default: {
2002
+ bodyMapper: ErrorResponse
2003
+ }
2004
+ },
2005
+ requestBody: parameters1,
2006
+ queryParameters: [apiVersion],
2007
+ urlParameters: [
2008
+ $host,
2009
+ resourceGroupName,
2010
+ workspaceName,
2011
+ subscriptionId
2012
+ ],
2013
+ headerParameters: [accept, contentType],
2014
+ mediaType: "json",
2015
+ serializer
2016
+ };
2017
+ const listByResourceGroupOperationSpec = {
2018
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
2019
+ httpMethod: "GET",
2020
+ responses: {
2021
+ 200: {
2022
+ bodyMapper: WorkspaceListResult
2023
+ },
2024
+ default: {
2025
+ bodyMapper: ErrorResponse
2026
+ }
2027
+ },
2028
+ queryParameters: [apiVersion],
2029
+ urlParameters: [
2030
+ $host,
2031
+ resourceGroupName,
2032
+ subscriptionId
2033
+ ],
2034
+ headerParameters: [accept],
2035
+ serializer
2036
+ };
2037
+ const listBySubscriptionOperationSpec = {
2038
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
2039
+ httpMethod: "GET",
2040
+ responses: {
2041
+ 200: {
2042
+ bodyMapper: WorkspaceListResult
2043
+ },
2044
+ default: {
2045
+ bodyMapper: ErrorResponse
2046
+ }
2047
+ },
2048
+ queryParameters: [apiVersion],
2049
+ urlParameters: [$host, subscriptionId],
2050
+ headerParameters: [accept],
2051
+ serializer
2052
+ };
2053
+ const listByResourceGroupNextOperationSpec = {
2054
+ path: "{nextLink}",
2055
+ httpMethod: "GET",
2056
+ responses: {
2057
+ 200: {
2058
+ bodyMapper: WorkspaceListResult
2059
+ },
2060
+ default: {
2061
+ bodyMapper: ErrorResponse
2062
+ }
2063
+ },
2064
+ queryParameters: [apiVersion],
2065
+ urlParameters: [
2066
+ $host,
2067
+ resourceGroupName,
2068
+ subscriptionId,
2069
+ nextLink
2070
+ ],
2071
+ headerParameters: [accept],
2072
+ serializer
2073
+ };
2074
+ const listBySubscriptionNextOperationSpec = {
2075
+ path: "{nextLink}",
2076
+ httpMethod: "GET",
2077
+ responses: {
2078
+ 200: {
2079
+ bodyMapper: WorkspaceListResult
2080
+ },
2081
+ default: {
2082
+ bodyMapper: ErrorResponse
2083
+ }
2084
+ },
2085
+ queryParameters: [apiVersion],
2086
+ urlParameters: [
2087
+ $host,
2088
+ subscriptionId,
2089
+ nextLink
2090
+ ],
2091
+ headerParameters: [accept],
2092
+ serializer
2093
+ };
2094
+
2095
+ /*
2096
+ * Copyright (c) Microsoft Corporation.
2097
+ * Licensed under the MIT License.
2098
+ *
2099
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2100
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2101
+ */
2102
+ /// <reference lib="esnext.asynciterable" />
2103
+ /** Class containing Operations operations. */
2104
+ class OperationsImpl {
2105
+ /**
2106
+ * Initialize a new instance of the class Operations class.
2107
+ * @param client Reference to the service client
2108
+ */
2109
+ constructor(client) {
2110
+ this.client = client;
2111
+ }
2112
+ /**
2113
+ * Lists all of the available RP operations.
2114
+ * @param options The options parameters.
2115
+ */
2116
+ list(options) {
2117
+ const iter = this.listPagingAll(options);
2118
+ return {
2119
+ next() {
2120
+ return iter.next();
2121
+ },
2122
+ [Symbol.asyncIterator]() {
2123
+ return this;
2124
+ },
2125
+ byPage: () => {
2126
+ return this.listPagingPage(options);
2127
+ }
2128
+ };
2129
+ }
2130
+ listPagingPage(options) {
2131
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2132
+ let result = yield tslib.__await(this._list(options));
2133
+ yield yield tslib.__await(result.value || []);
2134
+ let continuationToken = result.nextLink;
2135
+ while (continuationToken) {
2136
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2137
+ continuationToken = result.nextLink;
2138
+ yield yield tslib.__await(result.value || []);
2139
+ }
2140
+ });
2141
+ }
2142
+ listPagingAll(options) {
2143
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2144
+ var e_1, _a;
2145
+ try {
2146
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2147
+ const page = _c.value;
2148
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2149
+ }
2150
+ }
2151
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2152
+ finally {
2153
+ try {
2154
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2155
+ }
2156
+ finally { if (e_1) throw e_1.error; }
2157
+ }
2158
+ });
2159
+ }
2160
+ /**
2161
+ * Lists all of the available RP operations.
2162
+ * @param options The options parameters.
2163
+ */
2164
+ _list(options) {
2165
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
2166
+ }
2167
+ /**
2168
+ * ListNext
2169
+ * @param nextLink The nextLink from the previous successful call to the List method.
2170
+ * @param options The options parameters.
2171
+ */
2172
+ _listNext(nextLink, options) {
2173
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
2174
+ }
2175
+ }
2176
+ // Operation Specifications
2177
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
2178
+ const listOperationSpec = {
2179
+ path: "/providers/Microsoft.Databricks/operations",
2180
+ httpMethod: "GET",
2181
+ responses: {
2182
+ 200: {
2183
+ bodyMapper: OperationListResult
2184
+ },
2185
+ default: {
2186
+ bodyMapper: ErrorResponse
2187
+ }
2188
+ },
2189
+ queryParameters: [apiVersion],
2190
+ urlParameters: [$host],
2191
+ headerParameters: [accept],
2192
+ serializer: serializer$1
2193
+ };
2194
+ const listNextOperationSpec = {
2195
+ path: "{nextLink}",
2196
+ httpMethod: "GET",
2197
+ responses: {
2198
+ 200: {
2199
+ bodyMapper: OperationListResult
2200
+ },
2201
+ default: {
2202
+ bodyMapper: ErrorResponse
2203
+ }
2204
+ },
2205
+ queryParameters: [apiVersion],
2206
+ urlParameters: [$host, nextLink],
2207
+ headerParameters: [accept],
2208
+ serializer: serializer$1
2209
+ };
2210
+
2211
+ /*
2212
+ * Copyright (c) Microsoft Corporation.
2213
+ * Licensed under the MIT License.
2214
+ *
2215
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2216
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2217
+ */
2218
+ /// <reference lib="esnext.asynciterable" />
2219
+ /** Class containing PrivateLinkResources operations. */
2220
+ class PrivateLinkResourcesImpl {
2221
+ /**
2222
+ * Initialize a new instance of the class PrivateLinkResources class.
2223
+ * @param client Reference to the service client
2224
+ */
2225
+ constructor(client) {
2226
+ this.client = client;
2227
+ }
2228
+ /**
2229
+ * List private link resources for a given workspace
2230
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2231
+ * @param workspaceName The name of the workspace.
2232
+ * @param options The options parameters.
2233
+ */
2234
+ list(resourceGroupName, workspaceName, options) {
2235
+ const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
2236
+ return {
2237
+ next() {
2238
+ return iter.next();
2239
+ },
2240
+ [Symbol.asyncIterator]() {
2241
+ return this;
2242
+ },
2243
+ byPage: () => {
2244
+ return this.listPagingPage(resourceGroupName, workspaceName, options);
2245
+ }
2246
+ };
2247
+ }
2248
+ listPagingPage(resourceGroupName, workspaceName, options) {
2249
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2250
+ let result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
2251
+ yield yield tslib.__await(result.value || []);
2252
+ let continuationToken = result.nextLink;
2253
+ while (continuationToken) {
2254
+ result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
2255
+ continuationToken = result.nextLink;
2256
+ yield yield tslib.__await(result.value || []);
2257
+ }
2258
+ });
2259
+ }
2260
+ listPagingAll(resourceGroupName, workspaceName, options) {
2261
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2262
+ var e_1, _a;
2263
+ try {
2264
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2265
+ const page = _c.value;
2266
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2267
+ }
2268
+ }
2269
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2270
+ finally {
2271
+ try {
2272
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2273
+ }
2274
+ finally { if (e_1) throw e_1.error; }
2275
+ }
2276
+ });
2277
+ }
2278
+ /**
2279
+ * List private link resources for a given workspace
2280
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2281
+ * @param workspaceName The name of the workspace.
2282
+ * @param options The options parameters.
2283
+ */
2284
+ _list(resourceGroupName, workspaceName, options) {
2285
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$1);
2286
+ }
2287
+ /**
2288
+ * Get the specified private link resource for the given group id (sub-resource)
2289
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2290
+ * @param workspaceName The name of the workspace.
2291
+ * @param groupId The name of the private link resource
2292
+ * @param options The options parameters.
2293
+ */
2294
+ get(resourceGroupName, workspaceName, groupId, options) {
2295
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$1);
2296
+ }
2297
+ /**
2298
+ * ListNext
2299
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2300
+ * @param workspaceName The name of the workspace.
2301
+ * @param nextLink The nextLink from the previous successful call to the List method.
2302
+ * @param options The options parameters.
2303
+ */
2304
+ _listNext(resourceGroupName, workspaceName, nextLink, options) {
2305
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec$1);
2306
+ }
2307
+ }
2308
+ // Operation Specifications
2309
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
2310
+ const listOperationSpec$1 = {
2311
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
2312
+ httpMethod: "GET",
2313
+ responses: {
2314
+ 200: {
2315
+ bodyMapper: PrivateLinkResourcesList
2316
+ },
2317
+ default: {
2318
+ bodyMapper: ErrorResponse
2319
+ }
2320
+ },
2321
+ queryParameters: [apiVersion],
2322
+ urlParameters: [
2323
+ $host,
2324
+ resourceGroupName,
2325
+ workspaceName,
2326
+ subscriptionId
2327
+ ],
2328
+ headerParameters: [accept],
2329
+ serializer: serializer$2
2330
+ };
2331
+ const getOperationSpec$1 = {
2332
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
2333
+ httpMethod: "GET",
2334
+ responses: {
2335
+ 200: {
2336
+ bodyMapper: GroupIdInformation
2337
+ },
2338
+ default: {
2339
+ bodyMapper: ErrorResponse
2340
+ }
2341
+ },
2342
+ queryParameters: [apiVersion],
2343
+ urlParameters: [
2344
+ $host,
2345
+ resourceGroupName,
2346
+ workspaceName,
2347
+ subscriptionId,
2348
+ groupId
2349
+ ],
2350
+ headerParameters: [accept],
2351
+ serializer: serializer$2
2352
+ };
2353
+ const listNextOperationSpec$1 = {
2354
+ path: "{nextLink}",
2355
+ httpMethod: "GET",
2356
+ responses: {
2357
+ 200: {
2358
+ bodyMapper: PrivateLinkResourcesList
2359
+ },
2360
+ default: {
2361
+ bodyMapper: ErrorResponse
2362
+ }
2363
+ },
2364
+ queryParameters: [apiVersion],
2365
+ urlParameters: [
2366
+ $host,
2367
+ resourceGroupName,
2368
+ workspaceName,
2369
+ subscriptionId,
2370
+ nextLink
2371
+ ],
2372
+ headerParameters: [accept],
2373
+ serializer: serializer$2
2374
+ };
2375
+
2376
+ /*
2377
+ * Copyright (c) Microsoft Corporation.
2378
+ * Licensed under the MIT License.
2379
+ *
2380
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2381
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2382
+ */
2383
+ /// <reference lib="esnext.asynciterable" />
2384
+ /** Class containing PrivateEndpointConnections operations. */
2385
+ class PrivateEndpointConnectionsImpl {
2386
+ /**
2387
+ * Initialize a new instance of the class PrivateEndpointConnections class.
2388
+ * @param client Reference to the service client
2389
+ */
2390
+ constructor(client) {
2391
+ this.client = client;
2392
+ }
2393
+ /**
2394
+ * List private endpoint connections of the workspace
2395
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2396
+ * @param workspaceName The name of the workspace.
2397
+ * @param options The options parameters.
2398
+ */
2399
+ list(resourceGroupName, workspaceName, options) {
2400
+ const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
2401
+ return {
2402
+ next() {
2403
+ return iter.next();
2404
+ },
2405
+ [Symbol.asyncIterator]() {
2406
+ return this;
2407
+ },
2408
+ byPage: () => {
2409
+ return this.listPagingPage(resourceGroupName, workspaceName, options);
2410
+ }
2411
+ };
2412
+ }
2413
+ listPagingPage(resourceGroupName, workspaceName, options) {
2414
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2415
+ let result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
2416
+ yield yield tslib.__await(result.value || []);
2417
+ let continuationToken = result.nextLink;
2418
+ while (continuationToken) {
2419
+ result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
2420
+ continuationToken = result.nextLink;
2421
+ yield yield tslib.__await(result.value || []);
2422
+ }
2423
+ });
2424
+ }
2425
+ listPagingAll(resourceGroupName, workspaceName, options) {
2426
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2427
+ var e_1, _a;
2428
+ try {
2429
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2430
+ const page = _c.value;
2431
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2432
+ }
2433
+ }
2434
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2435
+ finally {
2436
+ try {
2437
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2438
+ }
2439
+ finally { if (e_1) throw e_1.error; }
2440
+ }
2441
+ });
2442
+ }
2443
+ /**
2444
+ * List private endpoint connections of the workspace
2445
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2446
+ * @param workspaceName The name of the workspace.
2447
+ * @param options The options parameters.
2448
+ */
2449
+ _list(resourceGroupName, workspaceName, options) {
2450
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$2);
2451
+ }
2452
+ /**
2453
+ * Get a private endpoint connection properties for a workspace
2454
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2455
+ * @param workspaceName The name of the workspace.
2456
+ * @param privateEndpointConnectionName The name of the private endpoint connection
2457
+ * @param options The options parameters.
2458
+ */
2459
+ get(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
2460
+ return this.client.sendOperationRequest({
2461
+ resourceGroupName,
2462
+ workspaceName,
2463
+ privateEndpointConnectionName,
2464
+ options
2465
+ }, getOperationSpec$2);
2466
+ }
2467
+ /**
2468
+ * Update the status of a private endpoint connection with the specified name
2469
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2470
+ * @param workspaceName The name of the workspace.
2471
+ * @param privateEndpointConnectionName The name of the private endpoint connection
2472
+ * @param privateEndpointConnection The private endpoint connection with updated properties
2473
+ * @param options The options parameters.
2474
+ */
2475
+ beginCreate(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options) {
2476
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2477
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2478
+ return this.client.sendOperationRequest(args, spec);
2479
+ });
2480
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2481
+ var _a;
2482
+ let currentRawResponse = undefined;
2483
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2484
+ const callback = (rawResponse, flatResponse) => {
2485
+ currentRawResponse = rawResponse;
2486
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2487
+ };
2488
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2489
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2490
+ return {
2491
+ flatResponse,
2492
+ rawResponse: {
2493
+ statusCode: currentRawResponse.status,
2494
+ body: currentRawResponse.parsedBody,
2495
+ headers: currentRawResponse.headers.toJSON()
2496
+ }
2497
+ };
2498
+ });
2499
+ const lro = new LroImpl(sendOperation, {
2500
+ resourceGroupName,
2501
+ workspaceName,
2502
+ privateEndpointConnectionName,
2503
+ privateEndpointConnection,
2504
+ options
2505
+ }, createOperationSpec);
2506
+ return new coreLro.LroEngine(lro, {
2507
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2508
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2509
+ });
2510
+ });
2511
+ }
2512
+ /**
2513
+ * Update the status of a private endpoint connection with the specified name
2514
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2515
+ * @param workspaceName The name of the workspace.
2516
+ * @param privateEndpointConnectionName The name of the private endpoint connection
2517
+ * @param privateEndpointConnection The private endpoint connection with updated properties
2518
+ * @param options The options parameters.
2519
+ */
2520
+ beginCreateAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options) {
2521
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2522
+ const poller = yield this.beginCreate(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options);
2523
+ return poller.pollUntilDone();
2524
+ });
2525
+ }
2526
+ /**
2527
+ * Remove private endpoint connection with the specified name
2528
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2529
+ * @param workspaceName The name of the workspace.
2530
+ * @param privateEndpointConnectionName The name of the private endpoint connection
2531
+ * @param options The options parameters.
2532
+ */
2533
+ beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
2534
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2535
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2536
+ return this.client.sendOperationRequest(args, spec);
2537
+ });
2538
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2539
+ var _a;
2540
+ let currentRawResponse = undefined;
2541
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2542
+ const callback = (rawResponse, flatResponse) => {
2543
+ currentRawResponse = rawResponse;
2544
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2545
+ };
2546
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2547
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2548
+ return {
2549
+ flatResponse,
2550
+ rawResponse: {
2551
+ statusCode: currentRawResponse.status,
2552
+ body: currentRawResponse.parsedBody,
2553
+ headers: currentRawResponse.headers.toJSON()
2554
+ }
2555
+ };
2556
+ });
2557
+ const lro = new LroImpl(sendOperation, {
2558
+ resourceGroupName,
2559
+ workspaceName,
2560
+ privateEndpointConnectionName,
2561
+ options
2562
+ }, deleteOperationSpec$1);
2563
+ return new coreLro.LroEngine(lro, {
2564
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2565
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2566
+ });
2567
+ });
2568
+ }
2569
+ /**
2570
+ * Remove private endpoint connection with the specified name
2571
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2572
+ * @param workspaceName The name of the workspace.
2573
+ * @param privateEndpointConnectionName The name of the private endpoint connection
2574
+ * @param options The options parameters.
2575
+ */
2576
+ beginDeleteAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
2577
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2578
+ const poller = yield this.beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options);
2579
+ return poller.pollUntilDone();
2580
+ });
2581
+ }
2582
+ /**
2583
+ * ListNext
2584
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2585
+ * @param workspaceName The name of the workspace.
2586
+ * @param nextLink The nextLink from the previous successful call to the List method.
2587
+ * @param options The options parameters.
2588
+ */
2589
+ _listNext(resourceGroupName, workspaceName, nextLink, options) {
2590
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec$2);
2591
+ }
2592
+ }
2593
+ // Operation Specifications
2594
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2595
+ const listOperationSpec$2 = {
2596
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
2597
+ httpMethod: "GET",
2598
+ responses: {
2599
+ 200: {
2600
+ bodyMapper: PrivateEndpointConnectionsList
2601
+ },
2602
+ default: {
2603
+ bodyMapper: ErrorResponse
2604
+ }
2605
+ },
2606
+ queryParameters: [apiVersion],
2607
+ urlParameters: [
2608
+ $host,
2609
+ resourceGroupName,
2610
+ workspaceName,
2611
+ subscriptionId
2612
+ ],
2613
+ headerParameters: [accept],
2614
+ serializer: serializer$3
2615
+ };
2616
+ const getOperationSpec$2 = {
2617
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2618
+ httpMethod: "GET",
2619
+ responses: {
2620
+ 200: {
2621
+ bodyMapper: PrivateEndpointConnection
2622
+ },
2623
+ default: {
2624
+ bodyMapper: ErrorResponse
2625
+ }
2626
+ },
2627
+ queryParameters: [apiVersion],
2628
+ urlParameters: [
2629
+ $host,
2630
+ resourceGroupName,
2631
+ workspaceName,
2632
+ subscriptionId,
2633
+ privateEndpointConnectionName
2634
+ ],
2635
+ headerParameters: [accept],
2636
+ serializer: serializer$3
2637
+ };
2638
+ const createOperationSpec = {
2639
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2640
+ httpMethod: "PUT",
2641
+ responses: {
2642
+ 200: {
2643
+ bodyMapper: PrivateEndpointConnection
2644
+ },
2645
+ 201: {
2646
+ bodyMapper: PrivateEndpointConnection
2647
+ },
2648
+ 202: {
2649
+ bodyMapper: PrivateEndpointConnection
2650
+ },
2651
+ 204: {
2652
+ bodyMapper: PrivateEndpointConnection
2653
+ },
2654
+ default: {
2655
+ bodyMapper: ErrorResponse
2656
+ }
2657
+ },
2658
+ requestBody: privateEndpointConnection,
2659
+ queryParameters: [apiVersion],
2660
+ urlParameters: [
2661
+ $host,
2662
+ resourceGroupName,
2663
+ workspaceName,
2664
+ subscriptionId,
2665
+ privateEndpointConnectionName
2666
+ ],
2667
+ headerParameters: [accept, contentType],
2668
+ mediaType: "json",
2669
+ serializer: serializer$3
2670
+ };
2671
+ const deleteOperationSpec$1 = {
2672
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2673
+ httpMethod: "DELETE",
2674
+ responses: {
2675
+ 200: {},
2676
+ 201: {},
2677
+ 202: {},
2678
+ 204: {},
2679
+ default: {
2680
+ bodyMapper: ErrorResponse
2681
+ }
2682
+ },
2683
+ queryParameters: [apiVersion],
2684
+ urlParameters: [
2685
+ $host,
2686
+ resourceGroupName,
2687
+ workspaceName,
2688
+ subscriptionId,
2689
+ privateEndpointConnectionName
2690
+ ],
2691
+ headerParameters: [accept],
2692
+ serializer: serializer$3
2693
+ };
2694
+ const listNextOperationSpec$2 = {
2695
+ path: "{nextLink}",
2696
+ httpMethod: "GET",
2697
+ responses: {
2698
+ 200: {
2699
+ bodyMapper: PrivateEndpointConnectionsList
2700
+ },
2701
+ default: {
2702
+ bodyMapper: ErrorResponse
2703
+ }
2704
+ },
2705
+ queryParameters: [apiVersion],
2706
+ urlParameters: [
2707
+ $host,
2708
+ resourceGroupName,
2709
+ workspaceName,
2710
+ subscriptionId,
2711
+ nextLink
2712
+ ],
2713
+ headerParameters: [accept],
2714
+ serializer: serializer$3
2715
+ };
2716
+
2717
+ /*
2718
+ * Copyright (c) Microsoft Corporation.
2719
+ * Licensed under the MIT License.
2720
+ *
2721
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2722
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2723
+ */
2724
+ /** Class containing OutboundNetworkDependenciesEndpoints operations. */
2725
+ class OutboundNetworkDependenciesEndpointsImpl {
2726
+ /**
2727
+ * Initialize a new instance of the class OutboundNetworkDependenciesEndpoints class.
2728
+ * @param client Reference to the service client
2729
+ */
2730
+ constructor(client) {
2731
+ this.client = client;
2732
+ }
2733
+ /**
2734
+ * Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
2735
+ * must configure outbound access with these endpoints. For more information, see
2736
+ * https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
2737
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2738
+ * @param workspaceName The name of the workspace.
2739
+ * @param options The options parameters.
2740
+ */
2741
+ list(resourceGroupName, workspaceName, options) {
2742
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$3);
2743
+ }
2744
+ }
2745
+ // Operation Specifications
2746
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
2747
+ const listOperationSpec$3 = {
2748
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
2749
+ httpMethod: "GET",
2750
+ responses: {
2751
+ 200: {
2752
+ bodyMapper: {
2753
+ type: {
2754
+ name: "Sequence",
2755
+ element: {
2756
+ type: {
2757
+ name: "Composite",
2758
+ className: "OutboundEnvironmentEndpoint"
2759
+ }
2760
+ }
2761
+ }
2762
+ }
2763
+ },
2764
+ default: {
2765
+ bodyMapper: ErrorResponse
2766
+ }
2767
+ },
2768
+ queryParameters: [apiVersion],
2769
+ urlParameters: [
2770
+ $host,
2771
+ resourceGroupName,
2772
+ workspaceName,
2773
+ subscriptionId
2774
+ ],
2775
+ headerParameters: [accept],
2776
+ serializer: serializer$4
2777
+ };
2778
+
2779
+ /*
2780
+ * Copyright (c) Microsoft Corporation.
2781
+ * Licensed under the MIT License.
2782
+ *
2783
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2784
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2785
+ */
2786
+ /// <reference lib="esnext.asynciterable" />
2787
+ /** Class containing VNetPeering operations. */
2788
+ class VNetPeeringImpl {
2789
+ /**
2790
+ * Initialize a new instance of the class VNetPeering class.
2791
+ * @param client Reference to the service client
2792
+ */
2793
+ constructor(client) {
2794
+ this.client = client;
2795
+ }
2796
+ /**
2797
+ * Lists the workspace vNet Peerings.
2798
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2799
+ * @param workspaceName The name of the workspace.
2800
+ * @param options The options parameters.
2801
+ */
2802
+ listByWorkspace(resourceGroupName, workspaceName, options) {
2803
+ const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
2804
+ return {
2805
+ next() {
2806
+ return iter.next();
2807
+ },
2808
+ [Symbol.asyncIterator]() {
2809
+ return this;
2810
+ },
2811
+ byPage: () => {
2812
+ return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options);
2813
+ }
2814
+ };
2815
+ }
2816
+ listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
2817
+ return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
2818
+ let result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
2819
+ yield yield tslib.__await(result.value || []);
2820
+ let continuationToken = result.nextLink;
2821
+ while (continuationToken) {
2822
+ result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
2823
+ continuationToken = result.nextLink;
2824
+ yield yield tslib.__await(result.value || []);
2825
+ }
2826
+ });
2827
+ }
2828
+ listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
2829
+ return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
2830
+ var e_1, _a;
2831
+ try {
2832
+ for (var _b = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2833
+ const page = _c.value;
2834
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2835
+ }
2836
+ }
2837
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2838
+ finally {
2839
+ try {
2840
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2841
+ }
2842
+ finally { if (e_1) throw e_1.error; }
2843
+ }
2844
+ });
2845
+ }
2846
+ /**
2847
+ * Gets the workspace vNet Peering.
2848
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2849
+ * @param workspaceName The name of the workspace.
2850
+ * @param peeringName The name of the workspace vNet peering.
2851
+ * @param options The options parameters.
2852
+ */
2853
+ get(resourceGroupName, workspaceName, peeringName, options) {
2854
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec$3);
2855
+ }
2856
+ /**
2857
+ * Deletes the workspace vNetPeering.
2858
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2859
+ * @param workspaceName The name of the workspace.
2860
+ * @param peeringName The name of the workspace vNet peering.
2861
+ * @param options The options parameters.
2862
+ */
2863
+ beginDelete(resourceGroupName, workspaceName, peeringName, options) {
2864
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2865
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2866
+ return this.client.sendOperationRequest(args, spec);
2867
+ });
2868
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2869
+ var _a;
2870
+ let currentRawResponse = undefined;
2871
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2872
+ const callback = (rawResponse, flatResponse) => {
2873
+ currentRawResponse = rawResponse;
2874
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2875
+ };
2876
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2877
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2878
+ return {
2879
+ flatResponse,
2880
+ rawResponse: {
2881
+ statusCode: currentRawResponse.status,
2882
+ body: currentRawResponse.parsedBody,
2883
+ headers: currentRawResponse.headers.toJSON()
2884
+ }
2885
+ };
2886
+ });
2887
+ const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec$2);
2888
+ return new coreLro.LroEngine(lro, {
2889
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2890
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2891
+ });
2892
+ });
2893
+ }
2894
+ /**
2895
+ * Deletes the workspace vNetPeering.
2896
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2897
+ * @param workspaceName The name of the workspace.
2898
+ * @param peeringName The name of the workspace vNet peering.
2899
+ * @param options The options parameters.
2900
+ */
2901
+ beginDeleteAndWait(resourceGroupName, workspaceName, peeringName, options) {
2902
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2903
+ const poller = yield this.beginDelete(resourceGroupName, workspaceName, peeringName, options);
2904
+ return poller.pollUntilDone();
2905
+ });
2906
+ }
2907
+ /**
2908
+ * Creates vNet Peering for workspace.
2909
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2910
+ * @param workspaceName The name of the workspace.
2911
+ * @param peeringName The name of the workspace vNet peering.
2912
+ * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
2913
+ * @param options The options parameters.
2914
+ */
2915
+ beginCreateOrUpdate(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters, options) {
2916
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2917
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2918
+ return this.client.sendOperationRequest(args, spec);
2919
+ });
2920
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2921
+ var _a;
2922
+ let currentRawResponse = undefined;
2923
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2924
+ const callback = (rawResponse, flatResponse) => {
2925
+ currentRawResponse = rawResponse;
2926
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2927
+ };
2928
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2929
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2930
+ return {
2931
+ flatResponse,
2932
+ rawResponse: {
2933
+ statusCode: currentRawResponse.status,
2934
+ body: currentRawResponse.parsedBody,
2935
+ headers: currentRawResponse.headers.toJSON()
2936
+ }
2937
+ };
2938
+ });
2939
+ const lro = new LroImpl(sendOperation, {
2940
+ resourceGroupName,
2941
+ workspaceName,
2942
+ peeringName,
2943
+ virtualNetworkPeeringParameters,
2944
+ options
2945
+ }, createOrUpdateOperationSpec$1);
2946
+ return new coreLro.LroEngine(lro, {
2947
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2948
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2949
+ });
2950
+ });
2951
+ }
2952
+ /**
2953
+ * Creates vNet Peering for workspace.
2954
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2955
+ * @param workspaceName The name of the workspace.
2956
+ * @param peeringName The name of the workspace vNet peering.
2957
+ * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
2958
+ * @param options The options parameters.
2959
+ */
2960
+ beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters, options) {
2961
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2962
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters, options);
2963
+ return poller.pollUntilDone();
2964
+ });
2965
+ }
2966
+ /**
2967
+ * Lists the workspace vNet Peerings.
2968
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2969
+ * @param workspaceName The name of the workspace.
2970
+ * @param options The options parameters.
2971
+ */
2972
+ _listByWorkspace(resourceGroupName, workspaceName, options) {
2973
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
2974
+ }
2975
+ /**
2976
+ * ListByWorkspaceNext
2977
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2978
+ * @param workspaceName The name of the workspace.
2979
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
2980
+ * @param options The options parameters.
2981
+ */
2982
+ _listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
2983
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
2984
+ }
2985
+ }
2986
+ // Operation Specifications
2987
+ const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
2988
+ const getOperationSpec$3 = {
2989
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
2990
+ httpMethod: "GET",
2991
+ responses: {
2992
+ 200: {
2993
+ bodyMapper: VirtualNetworkPeering
2994
+ },
2995
+ 204: {},
2996
+ default: {
2997
+ bodyMapper: ErrorResponse
2998
+ }
2999
+ },
3000
+ queryParameters: [apiVersion],
3001
+ urlParameters: [
3002
+ $host,
3003
+ resourceGroupName,
3004
+ workspaceName,
3005
+ subscriptionId,
3006
+ peeringName
3007
+ ],
3008
+ headerParameters: [accept],
3009
+ serializer: serializer$5
3010
+ };
3011
+ const deleteOperationSpec$2 = {
3012
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3013
+ httpMethod: "DELETE",
3014
+ responses: {
3015
+ 200: {},
3016
+ 201: {},
3017
+ 202: {},
3018
+ 204: {},
3019
+ default: {
3020
+ bodyMapper: ErrorResponse
3021
+ }
3022
+ },
3023
+ queryParameters: [apiVersion],
3024
+ urlParameters: [
3025
+ $host,
3026
+ resourceGroupName,
3027
+ workspaceName,
3028
+ subscriptionId,
3029
+ peeringName
3030
+ ],
3031
+ headerParameters: [accept],
3032
+ serializer: serializer$5
3033
+ };
3034
+ const createOrUpdateOperationSpec$1 = {
3035
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3036
+ httpMethod: "PUT",
3037
+ responses: {
3038
+ 200: {
3039
+ bodyMapper: VirtualNetworkPeering
3040
+ },
3041
+ 201: {
3042
+ bodyMapper: VirtualNetworkPeering
3043
+ },
3044
+ 202: {
3045
+ bodyMapper: VirtualNetworkPeering
3046
+ },
3047
+ 204: {
3048
+ bodyMapper: VirtualNetworkPeering
3049
+ },
3050
+ default: {
3051
+ bodyMapper: ErrorResponse
3052
+ }
3053
+ },
3054
+ requestBody: virtualNetworkPeeringParameters,
3055
+ queryParameters: [apiVersion],
3056
+ urlParameters: [
3057
+ $host,
3058
+ resourceGroupName,
3059
+ workspaceName,
3060
+ subscriptionId,
3061
+ peeringName
3062
+ ],
3063
+ headerParameters: [accept, contentType],
3064
+ mediaType: "json",
3065
+ serializer: serializer$5
3066
+ };
3067
+ const listByWorkspaceOperationSpec = {
3068
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
3069
+ httpMethod: "GET",
3070
+ responses: {
3071
+ 200: {
3072
+ bodyMapper: VirtualNetworkPeeringList
3073
+ },
3074
+ default: {
3075
+ bodyMapper: ErrorResponse
3076
+ }
3077
+ },
3078
+ queryParameters: [apiVersion],
3079
+ urlParameters: [
3080
+ $host,
3081
+ resourceGroupName,
3082
+ workspaceName,
3083
+ subscriptionId
3084
+ ],
3085
+ headerParameters: [accept],
3086
+ serializer: serializer$5
3087
+ };
3088
+ const listByWorkspaceNextOperationSpec = {
3089
+ path: "{nextLink}",
3090
+ httpMethod: "GET",
3091
+ responses: {
3092
+ 200: {
3093
+ bodyMapper: VirtualNetworkPeeringList
3094
+ },
3095
+ default: {
3096
+ bodyMapper: ErrorResponse
3097
+ }
3098
+ },
3099
+ queryParameters: [apiVersion],
3100
+ urlParameters: [
3101
+ $host,
3102
+ resourceGroupName,
3103
+ workspaceName,
3104
+ subscriptionId,
3105
+ nextLink
3106
+ ],
3107
+ headerParameters: [accept],
3108
+ serializer: serializer$5
3109
+ };
3110
+
3111
+ /*
3112
+ * Copyright (c) Microsoft Corporation.
3113
+ * Licensed under the MIT License.
3114
+ *
3115
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3116
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3117
+ */
3118
+ class AzureDatabricksManagementClientContext extends coreClient.ServiceClient {
3119
+ /**
3120
+ * Initializes a new instance of the AzureDatabricksManagementClientContext class.
3121
+ * @param credentials Subscription credentials which uniquely identify client subscription.
3122
+ * @param subscriptionId The ID of the target subscription.
3123
+ * @param options The parameter options
3124
+ */
3125
+ constructor(credentials, subscriptionId, options) {
3126
+ if (credentials === undefined) {
3127
+ throw new Error("'credentials' cannot be null");
3128
+ }
3129
+ if (subscriptionId === undefined) {
3130
+ throw new Error("'subscriptionId' cannot be null");
3131
+ }
3132
+ // Initializing default values for options
3133
+ if (!options) {
3134
+ options = {};
3135
+ }
3136
+ const defaults = {
3137
+ requestContentType: "application/json; charset=utf-8",
3138
+ credential: credentials
3139
+ };
3140
+ const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.1`;
3141
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3142
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3143
+ : `${packageDetails}`;
3144
+ if (!options.credentialScopes) {
3145
+ options.credentialScopes = ["https://management.azure.com/.default"];
3146
+ }
3147
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3148
+ userAgentPrefix
3149
+ }, baseUri: options.endpoint || "https://management.azure.com" });
3150
+ super(optionsWithDefaults);
3151
+ // Parameter assignments
3152
+ this.subscriptionId = subscriptionId;
3153
+ // Assigning values to Constant parameters
3154
+ this.$host = options.$host || "https://management.azure.com";
3155
+ this.apiVersion = options.apiVersion || "2021-04-01-preview";
3156
+ }
3157
+ }
3158
+
3159
+ /*
3160
+ * Copyright (c) Microsoft Corporation.
3161
+ * Licensed under the MIT License.
3162
+ *
3163
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3164
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3165
+ */
3166
+ class AzureDatabricksManagementClient extends AzureDatabricksManagementClientContext {
3167
+ /**
3168
+ * Initializes a new instance of the AzureDatabricksManagementClient class.
3169
+ * @param credentials Subscription credentials which uniquely identify client subscription.
3170
+ * @param subscriptionId The ID of the target subscription.
3171
+ * @param options The parameter options
3172
+ */
3173
+ constructor(credentials, subscriptionId, options) {
3174
+ super(credentials, subscriptionId, options);
3175
+ this.workspaces = new WorkspacesImpl(this);
3176
+ this.operations = new OperationsImpl(this);
3177
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
3178
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3179
+ this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(this);
3180
+ this.vNetPeering = new VNetPeeringImpl(this);
3181
+ }
3182
+ }
3183
+
3184
+ exports.AzureDatabricksManagementClient = AzureDatabricksManagementClient;
3185
+ exports.AzureDatabricksManagementClientContext = AzureDatabricksManagementClientContext;
3186
+ //# sourceMappingURL=index.js.map