@azure/arm-databricks 3.0.0-beta.2 → 3.0.0-beta.4

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 (133) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +13 -2
  4. package/dist/index.js +361 -115
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +31 -0
  15. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js.map +1 -0
  16. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +40 -0
  19. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  23. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  27. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +45 -0
  31. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
  35. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  36. package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +45 -0
  39. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -0
  40. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js +41 -0
  43. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/vNetPeeringDeleteSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/vNetPeeringDeleteSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js +32 -0
  47. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js.map +1 -0
  48. package/dist-esm/samples-dev/vNetPeeringGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/vNetPeeringGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/vNetPeeringGetSample.js +32 -0
  51. package/dist-esm/samples-dev/vNetPeeringGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js +45 -0
  55. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js.map +1 -0
  56. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +143 -0
  59. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/workspacesDeleteSample.js +31 -0
  63. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  64. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/workspacesGetSample.js +49 -0
  67. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  68. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +44 -0
  71. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
  72. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +43 -0
  75. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
  76. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/workspacesUpdateSample.js +32 -0
  79. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  80. package/dist-esm/src/azureDatabricksManagementClient.d.ts +2 -0
  81. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
  82. package/dist-esm/src/azureDatabricksManagementClient.js +54 -5
  83. package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
  84. package/dist-esm/src/index.d.ts +1 -0
  85. package/dist-esm/src/index.d.ts.map +1 -1
  86. package/dist-esm/src/index.js +1 -0
  87. package/dist-esm/src/index.js.map +1 -1
  88. package/dist-esm/src/models/index.d.ts +48 -6
  89. package/dist-esm/src/models/index.d.ts.map +1 -1
  90. package/dist-esm/src/models/index.js +42 -0
  91. package/dist-esm/src/models/index.js.map +1 -1
  92. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  93. package/dist-esm/src/operations/operations.js +19 -7
  94. package/dist-esm/src/operations/operations.js.map +1 -1
  95. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  96. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +1 -1
  97. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  98. package/dist-esm/src/operations/privateEndpointConnections.js +25 -9
  99. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  100. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  101. package/dist-esm/src/operations/privateLinkResources.js +19 -7
  102. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  103. package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
  104. package/dist-esm/src/operations/vNetPeering.js +25 -9
  105. package/dist-esm/src/operations/vNetPeering.js.map +1 -1
  106. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  107. package/dist-esm/src/operations/workspaces.js +46 -17
  108. package/dist-esm/src/operations/workspaces.js.map +1 -1
  109. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  110. package/dist-esm/src/pagingHelper.d.ts +13 -0
  111. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  112. package/dist-esm/src/pagingHelper.js +32 -0
  113. package/dist-esm/src/pagingHelper.js.map +1 -0
  114. package/dist-esm/test/databricks_examples.d.ts.map +1 -1
  115. package/dist-esm/test/databricks_examples.js +16 -18
  116. package/dist-esm/test/databricks_examples.js.map +1 -1
  117. package/package.json +51 -21
  118. package/review/arm-databricks.api.md +20 -59
  119. package/rollup.config.js +6 -72
  120. package/src/azureDatabricksManagementClient.ts +70 -5
  121. package/src/index.ts +1 -0
  122. package/src/models/index.ts +48 -6
  123. package/src/operations/operations.ts +21 -8
  124. package/src/operations/outboundNetworkDependenciesEndpoints.ts +1 -1
  125. package/src/operations/privateEndpointConnections.ts +32 -10
  126. package/src/operations/privateLinkResources.ts +26 -8
  127. package/src/operations/vNetPeering.ts +33 -15
  128. package/src/operations/workspaces.ts +55 -20
  129. package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +1 -1
  130. package/src/pagingHelper.ts +39 -0
  131. package/tsconfig.json +19 -5
  132. package/types/arm-databricks.d.ts +60 -7
  133. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update the status of a private endpoint connection with the specified name
15
+ *
16
+ * @summary Update the status of a private endpoint connection with the specified name
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/PrivateEndpointConnectionsUpdate.json
18
+ */
19
+ function updateAPrivateEndpointConnection() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "11111111-1111-1111-1111-111111111111";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const workspaceName = "myWorkspace";
24
+ const privateEndpointConnectionName = "myWorkspace.23456789-1111-1111-1111-111111111111";
25
+ const privateEndpointConnection = {
26
+ properties: {
27
+ privateLinkServiceConnectionState: {
28
+ description: "Approved by databricksadmin@contoso.com",
29
+ status: "Approved"
30
+ }
31
+ }
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
35
+ const result = yield client.privateEndpointConnections.beginCreateAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection);
36
+ console.log(result);
37
+ });
38
+ }
39
+ updateAPrivateEndpointConnection().catch(console.error);
40
+ //# sourceMappingURL=privateEndpointConnectionsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,6BAA6B,GACjC,kDAAkD,CAAC;QACrD,MAAM,yBAAyB,GAA8B;YAC3D,UAAU,EAAE;gBACV,iCAAiC,EAAE;oBACjC,WAAW,EAAE,yCAAyC;oBACtD,MAAM,EAAE,UAAU;iBACnB;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,aAAa,EACb,6BAA6B,EAC7B,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Remove private endpoint connection with the specified name
15
+ *
16
+ * @summary Remove private endpoint connection with the specified name
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/PrivateEndpointConnectionsDelete.json
18
+ */
19
+ function removeAPrivateEndpointConnection() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "11111111-1111-1111-1111-111111111111";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const workspaceName = "myWorkspace";
24
+ const privateEndpointConnectionName = "myWorkspace.23456789-1111-1111-1111-111111111111";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.beginDeleteAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ removeAPrivateEndpointConnection().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,6BAA6B,GACjC,kDAAkD,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,aAAa,EACb,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a private endpoint connection properties for a workspace
15
+ *
16
+ * @summary Get a private endpoint connection properties for a workspace
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/PrivateEndpointConnectionsGet.json
18
+ */
19
+ function getAPrivateEndpointConnection() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "11111111-1111-1111-1111-111111111111";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const workspaceName = "myWorkspace";
24
+ const privateEndpointConnectionName = "myWorkspace.23456789-1111-1111-1111-111111111111";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, workspaceName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAPrivateEndpointConnection().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,6BAA6B,GACjC,kDAAkD,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,aAAa,EACb,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List private endpoint connections of the workspace
15
+ *
16
+ * @summary List private endpoint connections of the workspace
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/ListPrivateEndpointConnections.json
18
+ */
19
+ function listPrivateEndpointConnections() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "11111111-1111-1111-1111-111111111111";
23
+ const resourceGroupName = "myResourceGroup";
24
+ const workspaceName = "myWorkspace";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.privateEndpointConnections.list(resourceGroupName, workspaceName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listPrivateEndpointConnections().catch(console.error);
45
+ //# sourceMappingURL=privateEndpointConnectionsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAC3D,iBAAiB,EACjB,aAAa,CACd,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get the specified private link resource for the given group id (sub-resource)
15
+ *
16
+ * @summary Get the specified private link resource for the given group id (sub-resource)
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/PrivateLinkResourcesGet.json
18
+ */
19
+ function getAPrivateLinkResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "11111111-1111-1111-1111-111111111111";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const workspaceName = "myWorkspace";
24
+ const groupId = "databricks_ui_api";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const result = yield client.privateLinkResources.get(resourceGroupName, workspaceName, groupId);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAPrivateLinkResource().catch(console.error);
32
+ //# sourceMappingURL=privateLinkResourcesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,OAAO,GAAG,mBAAmB,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAClD,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List private link resources for a given workspace
15
+ *
16
+ * @summary List private link resources for a given workspace
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/ListPrivateLinkResources.json
18
+ */
19
+ function listPrivateLinkResources() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "11111111-1111-1111-1111-111111111111";
23
+ const resourceGroupName = "myResourceGroup";
24
+ const workspaceName = "myWorkspace";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.privateLinkResources.list(resourceGroupName, workspaceName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listPrivateLinkResources().catch(console.error);
45
+ //# sourceMappingURL=privateLinkResourcesListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,IAAI,CACrD,iBAAiB,EACjB,aAAa,CACd,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=vNetPeeringCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/vNetPeeringCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates vNet Peering for workspace.
15
+ *
16
+ * @summary Creates vNet Peering for workspace.
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/WorkspaceVirtualNetworkPeeringCreateOrUpdate.json
18
+ */
19
+ function createVNetPeeringForWorkspace() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg";
23
+ const workspaceName = "myWorkspace";
24
+ const peeringName = "vNetPeeringTest";
25
+ const virtualNetworkPeeringParameters = {
26
+ allowForwardedTraffic: false,
27
+ allowGatewayTransit: false,
28
+ allowVirtualNetworkAccess: true,
29
+ remoteVirtualNetwork: {
30
+ id: "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"
31
+ },
32
+ useRemoteGateways: false
33
+ };
34
+ const credential = new DefaultAzureCredential();
35
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
36
+ const result = yield client.vNetPeering.beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters);
37
+ console.log(result);
38
+ });
39
+ }
40
+ createVNetPeeringForWorkspace().catch(console.error);
41
+ //# sourceMappingURL=vNetPeeringCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/vNetPeeringCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,IAAI,CAAC;QAC/B,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,+BAA+B,GAA0B;YAC7D,qBAAqB,EAAE,KAAK;YAC5B,mBAAmB,EAAE,KAAK;YAC1B,yBAAyB,EAAE,IAAI;YAC/B,oBAAoB,EAAE;gBACpB,EAAE,EACA,0IAA0I;aAC7I;YACD,iBAAiB,EAAE,KAAK;SACzB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,+BAA+B,CAChC,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=vNetPeeringDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/vNetPeeringDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes the workspace vNetPeering.
15
+ *
16
+ * @summary Deletes the workspace vNetPeering.
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/WorkspaceVirtualNetworkPeeringDelete.json
18
+ */
19
+ function deleteAWorkspaceVNetPeering() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg";
23
+ const workspaceName = "myWorkspace";
24
+ const peeringName = "vNetPeering";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const result = yield client.vNetPeering.beginDeleteAndWait(resourceGroupName, workspaceName, peeringName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ deleteAWorkspaceVNetPeering().catch(console.error);
32
+ //# sourceMappingURL=vNetPeeringDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/vNetPeeringDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,IAAI,CAAC;QAC/B,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,kBAAkB,CACxD,iBAAiB,EACjB,aAAa,EACb,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=vNetPeeringGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/vNetPeeringGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the workspace vNet Peering.
15
+ *
16
+ * @summary Gets the workspace vNet Peering.
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/WorkspaceVirtualNetPeeringGet.json
18
+ */
19
+ function getAWorkspaceWithVNetPeeringConfigured() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg";
23
+ const workspaceName = "myWorkspace";
24
+ const peeringName = "vNetPeering";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const result = yield client.vNetPeering.get(resourceGroupName, workspaceName, peeringName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAWorkspaceWithVNetPeeringConfigured().catch(console.error);
32
+ //# sourceMappingURL=vNetPeeringGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringGetSample.js","sourceRoot":"","sources":["../../samples-dev/vNetPeeringGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,IAAI,CAAC;QAC/B,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CACzC,iBAAiB,EACjB,aAAa,EACb,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=vNetPeeringListByWorkspaceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringListByWorkspaceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/vNetPeeringListByWorkspaceSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the workspace vNet Peerings.
15
+ *
16
+ * @summary Lists the workspace vNet Peerings.
17
+ * x-ms-original-file: specification/databricks/resource-manager/Microsoft.Databricks/preview/2021-04-01-preview/examples/WorkspaceVirtualNetPeeringList.json
18
+ */
19
+ function listAllVNetPeeringsForTheWorkspace() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const resourceGroupName = "rg";
24
+ const workspaceName = "myWorkspace";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureDatabricksManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.vNetPeering.listByWorkspace(resourceGroupName, workspaceName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listAllVNetPeeringsForTheWorkspace().catch(console.error);
45
+ //# sourceMappingURL=vNetPeeringListByWorkspaceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vNetPeeringListByWorkspaceSample.js","sourceRoot":"","sources":["../../samples-dev/vNetPeeringListByWorkspaceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,IAAI,CAAC;QAC/B,MAAM,aAAa,GAAG,aAAa,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,WAAW,CAAC,eAAe,CACvD,iBAAiB,EACjB,aAAa,CACd,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspacesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspacesCreateOrUpdateSample.ts"],"names":[],"mappings":""}