@azure/arm-databricks 0.1.0 → 3.0.0-alpha.20211103.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +71 -77
  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/dist-esm/src/models/mappers.js +1298 -0
  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/dist-esm/src/models/parameters.js +149 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/index.d.ts +7 -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/dist-esm/src/operationsInterfaces/operations.js +9 -0
  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/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +9 -0
  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/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  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 +72 -25
  97. package/review/arm-databricks.api.md +742 -0
  98. package/rollup.config.js +184 -27
  99. package/src/azureDatabricksManagementClient.ts +58 -0
  100. package/src/azureDatabricksManagementClientContext.ts +70 -0
  101. package/src/index.ts +13 -0
  102. package/src/lroImpl.ts +34 -0
  103. package/src/models/index.ts +960 -0
  104. package/src/models/mappers.ts +1368 -0
  105. package/src/models/parameters.ts +174 -0
  106. package/src/operations/index.ts +14 -0
  107. package/src/operations/operations.ts +137 -0
  108. package/src/operations/outboundNetworkDependenciesEndpoints.ts +85 -0
  109. package/src/operations/privateEndpointConnections.ts +481 -0
  110. package/src/operations/privateLinkResources.ts +221 -0
  111. package/src/operations/vNetPeering.ts +483 -0
  112. package/src/operations/workspaces.ts +674 -0
  113. package/src/operationsInterfaces/index.ts +14 -0
  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 +4 -4
  121. package/types/arm-databricks.d.ts +1198 -0
  122. package/types/tsdoc-metadata.json +11 -0
  123. package/dist/arm-databricks.js +0 -1078
  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/databricksClient.d.ts +0 -19
  128. package/esm/databricksClient.d.ts.map +0 -1
  129. package/esm/databricksClient.js +0 -34
  130. package/esm/databricksClient.js.map +0 -1
  131. package/esm/databricksClientContext.d.ts +0 -16
  132. package/esm/databricksClientContext.d.ts.map +0 -1
  133. package/esm/databricksClientContext.js +0 -56
  134. package/esm/databricksClientContext.js.map +0 -1
  135. package/esm/models/index.d.ts +0 -486
  136. package/esm/models/index.d.ts.map +0 -1
  137. package/esm/models/index.js +0 -10
  138. package/esm/models/index.js.map +0 -1
  139. package/esm/models/mappers.d.ts +0 -17
  140. package/esm/models/mappers.d.ts.map +0 -1
  141. package/esm/models/mappers.js +0 -370
  142. package/esm/models/mappers.js.map +0 -1
  143. package/esm/models/operationsMappers.d.ts +0 -2
  144. package/esm/models/operationsMappers.d.ts.map +0 -1
  145. package/esm/models/operationsMappers.js +0 -11
  146. package/esm/models/operationsMappers.js.map +0 -1
  147. package/esm/models/parameters.d.ts +0 -8
  148. package/esm/models/parameters.d.ts.map +0 -1
  149. package/esm/models/parameters.js +0 -80
  150. package/esm/models/parameters.js.map +0 -1
  151. package/esm/models/workspacesMappers.d.ts +0 -2
  152. package/esm/models/workspacesMappers.d.ts.map +0 -1
  153. package/esm/models/workspacesMappers.js +0 -11
  154. package/esm/models/workspacesMappers.js.map +0 -1
  155. package/esm/operations/index.d.ts +0 -3
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js +0 -12
  158. package/esm/operations/index.js.map +0 -1
  159. package/esm/operations/operations.d.ts +0 -46
  160. package/esm/operations/operations.d.ts.map +0 -1
  161. package/esm/operations/operations.js +0 -77
  162. package/esm/operations/operations.js.map +0 -1
  163. package/esm/operations/workspaces.d.ts +0 -156
  164. package/esm/operations/workspaces.d.ts.map +0 -1
  165. package/esm/operations/workspaces.js +0 -332
  166. package/esm/operations/workspaces.js.map +0 -1
  167. package/lib/databricksClient.ts +0 -44
  168. package/lib/databricksClientContext.ts +0 -62
  169. package/lib/models/index.ts +0 -520
  170. package/lib/models/mappers.ts +0 -396
  171. package/lib/models/operationsMappers.ts +0 -19
  172. package/lib/models/parameters.ts +0 -82
  173. package/lib/models/workspacesMappers.ts +0 -24
  174. package/lib/operations/index.ts +0 -12
  175. package/lib/operations/operations.ts +0 -123
  176. package/lib/operations/workspaces.ts +0 -474
@@ -0,0 +1,347 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing PrivateEndpointConnections operations. */
16
+ export class PrivateEndpointConnectionsImpl {
17
+ /**
18
+ * Initialize a new instance of the class PrivateEndpointConnections class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List private endpoint connections of the workspace
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param workspaceName The name of the workspace.
28
+ * @param options The options parameters.
29
+ */
30
+ list(resourceGroupName, workspaceName, options) {
31
+ const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listPagingPage(resourceGroupName, workspaceName, options);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(resourceGroupName, workspaceName, options) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result = yield __await(this._list(resourceGroupName, workspaceName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listPagingAll(resourceGroupName, workspaceName, options) {
57
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * List private endpoint connections of the workspace
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param workspaceName The name of the workspace.
78
+ * @param options The options parameters.
79
+ */
80
+ _list(resourceGroupName, workspaceName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec);
82
+ }
83
+ /**
84
+ * Get a private endpoint connection properties for a workspace
85
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
86
+ * @param workspaceName The name of the workspace.
87
+ * @param privateEndpointConnectionName The name of the private endpoint connection
88
+ * @param options The options parameters.
89
+ */
90
+ get(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
91
+ return this.client.sendOperationRequest({
92
+ resourceGroupName,
93
+ workspaceName,
94
+ privateEndpointConnectionName,
95
+ options
96
+ }, getOperationSpec);
97
+ }
98
+ /**
99
+ * Update the status of a private endpoint connection with the specified name
100
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
101
+ * @param workspaceName The name of the workspace.
102
+ * @param privateEndpointConnectionName The name of the private endpoint connection
103
+ * @param privateEndpointConnection The private endpoint connection with updated properties
104
+ * @param options The options parameters.
105
+ */
106
+ beginCreate(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
109
+ return this.client.sendOperationRequest(args, spec);
110
+ });
111
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
112
+ var _a;
113
+ let currentRawResponse = undefined;
114
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
115
+ const callback = (rawResponse, flatResponse) => {
116
+ currentRawResponse = rawResponse;
117
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
118
+ };
119
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
120
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
121
+ return {
122
+ flatResponse,
123
+ rawResponse: {
124
+ statusCode: currentRawResponse.status,
125
+ body: currentRawResponse.parsedBody,
126
+ headers: currentRawResponse.headers.toJSON()
127
+ }
128
+ };
129
+ });
130
+ const lro = new LroImpl(sendOperation, {
131
+ resourceGroupName,
132
+ workspaceName,
133
+ privateEndpointConnectionName,
134
+ privateEndpointConnection,
135
+ options
136
+ }, createOperationSpec);
137
+ return new LroEngine(lro, {
138
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
139
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
140
+ });
141
+ });
142
+ }
143
+ /**
144
+ * Update the status of a private endpoint connection with the specified name
145
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
146
+ * @param workspaceName The name of the workspace.
147
+ * @param privateEndpointConnectionName The name of the private endpoint connection
148
+ * @param privateEndpointConnection The private endpoint connection with updated properties
149
+ * @param options The options parameters.
150
+ */
151
+ beginCreateAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ const poller = yield this.beginCreate(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options);
154
+ return poller.pollUntilDone();
155
+ });
156
+ }
157
+ /**
158
+ * Remove private endpoint connection with the specified name
159
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
160
+ * @param workspaceName The name of the workspace.
161
+ * @param privateEndpointConnectionName The name of the private endpoint connection
162
+ * @param options The options parameters.
163
+ */
164
+ beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
167
+ return this.client.sendOperationRequest(args, spec);
168
+ });
169
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
170
+ var _a;
171
+ let currentRawResponse = undefined;
172
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
173
+ const callback = (rawResponse, flatResponse) => {
174
+ currentRawResponse = rawResponse;
175
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
176
+ };
177
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
178
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
179
+ return {
180
+ flatResponse,
181
+ rawResponse: {
182
+ statusCode: currentRawResponse.status,
183
+ body: currentRawResponse.parsedBody,
184
+ headers: currentRawResponse.headers.toJSON()
185
+ }
186
+ };
187
+ });
188
+ const lro = new LroImpl(sendOperation, {
189
+ resourceGroupName,
190
+ workspaceName,
191
+ privateEndpointConnectionName,
192
+ options
193
+ }, deleteOperationSpec);
194
+ return new LroEngine(lro, {
195
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
196
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
197
+ });
198
+ });
199
+ }
200
+ /**
201
+ * Remove private endpoint connection with the specified name
202
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
203
+ * @param workspaceName The name of the workspace.
204
+ * @param privateEndpointConnectionName The name of the private endpoint connection
205
+ * @param options The options parameters.
206
+ */
207
+ beginDeleteAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ const poller = yield this.beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options);
210
+ return poller.pollUntilDone();
211
+ });
212
+ }
213
+ /**
214
+ * ListNext
215
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
216
+ * @param workspaceName The name of the workspace.
217
+ * @param nextLink The nextLink from the previous successful call to the List method.
218
+ * @param options The options parameters.
219
+ */
220
+ _listNext(resourceGroupName, workspaceName, nextLink, options) {
221
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec);
222
+ }
223
+ }
224
+ // Operation Specifications
225
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
226
+ const listOperationSpec = {
227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
228
+ httpMethod: "GET",
229
+ responses: {
230
+ 200: {
231
+ bodyMapper: Mappers.PrivateEndpointConnectionsList
232
+ },
233
+ default: {
234
+ bodyMapper: Mappers.ErrorResponse
235
+ }
236
+ },
237
+ queryParameters: [Parameters.apiVersion],
238
+ urlParameters: [
239
+ Parameters.$host,
240
+ Parameters.resourceGroupName,
241
+ Parameters.workspaceName,
242
+ Parameters.subscriptionId
243
+ ],
244
+ headerParameters: [Parameters.accept],
245
+ serializer
246
+ };
247
+ const getOperationSpec = {
248
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
249
+ httpMethod: "GET",
250
+ responses: {
251
+ 200: {
252
+ bodyMapper: Mappers.PrivateEndpointConnection
253
+ },
254
+ default: {
255
+ bodyMapper: Mappers.ErrorResponse
256
+ }
257
+ },
258
+ queryParameters: [Parameters.apiVersion],
259
+ urlParameters: [
260
+ Parameters.$host,
261
+ Parameters.resourceGroupName,
262
+ Parameters.workspaceName,
263
+ Parameters.subscriptionId,
264
+ Parameters.privateEndpointConnectionName
265
+ ],
266
+ headerParameters: [Parameters.accept],
267
+ serializer
268
+ };
269
+ const createOperationSpec = {
270
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
271
+ httpMethod: "PUT",
272
+ responses: {
273
+ 200: {
274
+ bodyMapper: Mappers.PrivateEndpointConnection
275
+ },
276
+ 201: {
277
+ bodyMapper: Mappers.PrivateEndpointConnection
278
+ },
279
+ 202: {
280
+ bodyMapper: Mappers.PrivateEndpointConnection
281
+ },
282
+ 204: {
283
+ bodyMapper: Mappers.PrivateEndpointConnection
284
+ },
285
+ default: {
286
+ bodyMapper: Mappers.ErrorResponse
287
+ }
288
+ },
289
+ requestBody: Parameters.privateEndpointConnection,
290
+ queryParameters: [Parameters.apiVersion],
291
+ urlParameters: [
292
+ Parameters.$host,
293
+ Parameters.resourceGroupName,
294
+ Parameters.workspaceName,
295
+ Parameters.subscriptionId,
296
+ Parameters.privateEndpointConnectionName
297
+ ],
298
+ headerParameters: [Parameters.accept, Parameters.contentType],
299
+ mediaType: "json",
300
+ serializer
301
+ };
302
+ const deleteOperationSpec = {
303
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
304
+ httpMethod: "DELETE",
305
+ responses: {
306
+ 200: {},
307
+ 201: {},
308
+ 202: {},
309
+ 204: {},
310
+ default: {
311
+ bodyMapper: Mappers.ErrorResponse
312
+ }
313
+ },
314
+ queryParameters: [Parameters.apiVersion],
315
+ urlParameters: [
316
+ Parameters.$host,
317
+ Parameters.resourceGroupName,
318
+ Parameters.workspaceName,
319
+ Parameters.subscriptionId,
320
+ Parameters.privateEndpointConnectionName
321
+ ],
322
+ headerParameters: [Parameters.accept],
323
+ serializer
324
+ };
325
+ const listNextOperationSpec = {
326
+ path: "{nextLink}",
327
+ httpMethod: "GET",
328
+ responses: {
329
+ 200: {
330
+ bodyMapper: Mappers.PrivateEndpointConnectionsList
331
+ },
332
+ default: {
333
+ bodyMapper: Mappers.ErrorResponse
334
+ }
335
+ },
336
+ queryParameters: [Parameters.apiVersion],
337
+ urlParameters: [
338
+ Parameters.$host,
339
+ Parameters.resourceGroupName,
340
+ Parameters.workspaceName,
341
+ Parameters.subscriptionId,
342
+ Parameters.nextLink
343
+ ],
344
+ headerParameters: [Parameters.accept],
345
+ serializer
346
+ };
347
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAcrC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,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ACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateLinkResources } from "../operationsInterfaces";
3
+ import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
4
+ import { GroupIdInformation, PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models";
5
+ /** Class containing PrivateLinkResources operations. */
6
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PrivateLinkResources class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureDatabricksManagementClientContext);
13
+ /**
14
+ * List private link resources for a given workspace
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param workspaceName The name of the workspace.
17
+ * @param options The options parameters.
18
+ */
19
+ list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator<GroupIdInformation>;
20
+ private listPagingPage;
21
+ private listPagingAll;
22
+ /**
23
+ * List private link resources for a given workspace
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param workspaceName The name of the workspace.
26
+ * @param options The options parameters.
27
+ */
28
+ private _list;
29
+ /**
30
+ * Get the specified private link resource for the given group id (sub-resource)
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param workspaceName The name of the workspace.
33
+ * @param groupId The name of the private link resource
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, workspaceName: string, groupId: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
37
+ /**
38
+ * ListNext
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param workspaceName The name of the workspace.
41
+ * @param nextLink The nextLink from the previous successful call to the List method.
42
+ * @param options The options parameters.
43
+ */
44
+ private _listNext;
45
+ }
46
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,sCAAsC,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EACL,kBAAkB,EAElB,sCAAsC,EAEtC,qCAAqC,EACrC,+BAA+B,EAEhC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE;;;OAGG;gBACS,MAAM,EAAE,sCAAsC;IAI1D;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,kBAAkB,CAAC;YAelC,cAAc;YAoBd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,169 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PrivateLinkResources operations. */
14
+ export class PrivateLinkResourcesImpl {
15
+ /**
16
+ * Initialize a new instance of the class PrivateLinkResources class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * List private link resources for a given workspace
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param workspaceName The name of the workspace.
26
+ * @param options The options parameters.
27
+ */
28
+ list(resourceGroupName, workspaceName, options) {
29
+ const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listPagingPage(resourceGroupName, workspaceName, options);
39
+ }
40
+ };
41
+ }
42
+ listPagingPage(resourceGroupName, workspaceName, options) {
43
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
44
+ let result = yield __await(this._list(resourceGroupName, workspaceName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listPagingAll(resourceGroupName, workspaceName, options) {
55
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * List private link resources for a given workspace
74
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
+ * @param workspaceName The name of the workspace.
76
+ * @param options The options parameters.
77
+ */
78
+ _list(resourceGroupName, workspaceName, options) {
79
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec);
80
+ }
81
+ /**
82
+ * Get the specified private link resource for the given group id (sub-resource)
83
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
84
+ * @param workspaceName The name of the workspace.
85
+ * @param groupId The name of the private link resource
86
+ * @param options The options parameters.
87
+ */
88
+ get(resourceGroupName, workspaceName, groupId, options) {
89
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec);
90
+ }
91
+ /**
92
+ * ListNext
93
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
94
+ * @param workspaceName The name of the workspace.
95
+ * @param nextLink The nextLink from the previous successful call to the List method.
96
+ * @param options The options parameters.
97
+ */
98
+ _listNext(resourceGroupName, workspaceName, nextLink, options) {
99
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec);
100
+ }
101
+ }
102
+ // Operation Specifications
103
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
104
+ const listOperationSpec = {
105
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.PrivateLinkResourcesList
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [
117
+ Parameters.$host,
118
+ Parameters.resourceGroupName,
119
+ Parameters.workspaceName,
120
+ Parameters.subscriptionId
121
+ ],
122
+ headerParameters: [Parameters.accept],
123
+ serializer
124
+ };
125
+ const getOperationSpec = {
126
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
127
+ httpMethod: "GET",
128
+ responses: {
129
+ 200: {
130
+ bodyMapper: Mappers.GroupIdInformation
131
+ },
132
+ default: {
133
+ bodyMapper: Mappers.ErrorResponse
134
+ }
135
+ },
136
+ queryParameters: [Parameters.apiVersion],
137
+ urlParameters: [
138
+ Parameters.$host,
139
+ Parameters.resourceGroupName,
140
+ Parameters.workspaceName,
141
+ Parameters.subscriptionId,
142
+ Parameters.groupId
143
+ ],
144
+ headerParameters: [Parameters.accept],
145
+ serializer
146
+ };
147
+ const listNextOperationSpec = {
148
+ path: "{nextLink}",
149
+ httpMethod: "GET",
150
+ responses: {
151
+ 200: {
152
+ bodyMapper: Mappers.PrivateLinkResourcesList
153
+ },
154
+ default: {
155
+ bodyMapper: Mappers.ErrorResponse
156
+ }
157
+ },
158
+ queryParameters: [Parameters.apiVersion],
159
+ urlParameters: [
160
+ Parameters.$host,
161
+ Parameters.resourceGroupName,
162
+ Parameters.workspaceName,
163
+ Parameters.subscriptionId,
164
+ Parameters.nextLink
165
+ ],
166
+ headerParameters: [Parameters.accept],
167
+ serializer
168
+ };
169
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,aAAqB,EACrB,OAAgD;;YAEhD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA,CAAC;YACzE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAC3B,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,OAAO,CACR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;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { VNetPeering } from "../operationsInterfaces";
3
+ import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { VirtualNetworkPeering, VNetPeeringListByWorkspaceOptionalParams, VNetPeeringGetOptionalParams, VNetPeeringGetResponse, VNetPeeringDeleteOptionalParams, VNetPeeringCreateOrUpdateOptionalParams, VNetPeeringCreateOrUpdateResponse } from "../models";
6
+ /** Class containing VNetPeering operations. */
7
+ export declare class VNetPeeringImpl implements VNetPeering {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class VNetPeering class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: AzureDatabricksManagementClientContext);
14
+ /**
15
+ * Lists the workspace vNet Peerings.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param workspaceName The name of the workspace.
18
+ * @param options The options parameters.
19
+ */
20
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: VNetPeeringListByWorkspaceOptionalParams): PagedAsyncIterableIterator<VirtualNetworkPeering>;
21
+ private listByWorkspacePagingPage;
22
+ private listByWorkspacePagingAll;
23
+ /**
24
+ * Gets the workspace vNet Peering.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param workspaceName The name of the workspace.
27
+ * @param peeringName The name of the workspace vNet peering.
28
+ * @param options The options parameters.
29
+ */
30
+ get(resourceGroupName: string, workspaceName: string, peeringName: string, options?: VNetPeeringGetOptionalParams): Promise<VNetPeeringGetResponse>;
31
+ /**
32
+ * Deletes the workspace vNetPeering.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param workspaceName The name of the workspace.
35
+ * @param peeringName The name of the workspace vNet peering.
36
+ * @param options The options parameters.
37
+ */
38
+ beginDelete(resourceGroupName: string, workspaceName: string, peeringName: string, options?: VNetPeeringDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
39
+ /**
40
+ * Deletes the workspace vNetPeering.
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
+ * @param workspaceName The name of the workspace.
43
+ * @param peeringName The name of the workspace vNet peering.
44
+ * @param options The options parameters.
45
+ */
46
+ beginDeleteAndWait(resourceGroupName: string, workspaceName: string, peeringName: string, options?: VNetPeeringDeleteOptionalParams): Promise<void>;
47
+ /**
48
+ * Creates vNet Peering for workspace.
49
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
50
+ * @param workspaceName The name of the workspace.
51
+ * @param peeringName The name of the workspace vNet peering.
52
+ * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
53
+ * @param options The options parameters.
54
+ */
55
+ beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, peeringName: string, virtualNetworkPeeringParameters: VirtualNetworkPeering, options?: VNetPeeringCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VNetPeeringCreateOrUpdateResponse>, VNetPeeringCreateOrUpdateResponse>>;
56
+ /**
57
+ * Creates vNet Peering for workspace.
58
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
59
+ * @param workspaceName The name of the workspace.
60
+ * @param peeringName The name of the workspace vNet peering.
61
+ * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
62
+ * @param options The options parameters.
63
+ */
64
+ beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, peeringName: string, virtualNetworkPeeringParameters: VirtualNetworkPeering, options?: VNetPeeringCreateOrUpdateOptionalParams): Promise<VNetPeeringCreateOrUpdateResponse>;
65
+ /**
66
+ * Lists the workspace vNet Peerings.
67
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
68
+ * @param workspaceName The name of the workspace.
69
+ * @param options The options parameters.
70
+ */
71
+ private _listByWorkspace;
72
+ /**
73
+ * ListByWorkspaceNext
74
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
+ * @param workspaceName The name of the workspace.
76
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
77
+ * @param options The options parameters.
78
+ */
79
+ private _listByWorkspaceNext;
80
+ }
81
+ //# sourceMappingURL=vNetPeering.d.ts.map