@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
@@ -3,12 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
8
+
9
9
  export * from "./workspaces";
10
10
  export * from "./operations";
11
11
  export * from "./privateLinkResources";
12
12
  export * from "./privateEndpointConnections";
13
+ export * from "./outboundNetworkDependenciesEndpoints";
13
14
  export * from "./vNetPeering";
14
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,22 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available RP operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,29 @@
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
+
9
+ import {
10
+ OutboundNetworkDependenciesEndpointsListOptionalParams,
11
+ OutboundNetworkDependenciesEndpointsListResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a OutboundNetworkDependenciesEndpoints. */
15
+ export interface OutboundNetworkDependenciesEndpoints {
16
+ /**
17
+ * Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
18
+ * must configure outbound access with these endpoints. For more information, see
19
+ * https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
20
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
21
+ * @param workspaceName The name of the workspace.
22
+ * @param options The options parameters.
23
+ */
24
+ list(
25
+ resourceGroupName: string,
26
+ workspaceName: string,
27
+ options?: OutboundNetworkDependenciesEndpointsListOptionalParams
28
+ ): Promise<OutboundNetworkDependenciesEndpointsListResponse>;
29
+ }
@@ -0,0 +1,109 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ PrivateEndpointConnection,
13
+ PrivateEndpointConnectionsListOptionalParams,
14
+ PrivateEndpointConnectionsGetOptionalParams,
15
+ PrivateEndpointConnectionsGetResponse,
16
+ PrivateEndpointConnectionsCreateOptionalParams,
17
+ PrivateEndpointConnectionsCreateResponse,
18
+ PrivateEndpointConnectionsDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a PrivateEndpointConnections. */
23
+ export interface PrivateEndpointConnections {
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(
31
+ resourceGroupName: string,
32
+ workspaceName: string,
33
+ options?: PrivateEndpointConnectionsListOptionalParams
34
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
35
+ /**
36
+ * Get a private endpoint connection properties for a workspace
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
+ * @param workspaceName The name of the workspace.
39
+ * @param privateEndpointConnectionName The name of the private endpoint connection
40
+ * @param options The options parameters.
41
+ */
42
+ get(
43
+ resourceGroupName: string,
44
+ workspaceName: string,
45
+ privateEndpointConnectionName: string,
46
+ options?: PrivateEndpointConnectionsGetOptionalParams
47
+ ): Promise<PrivateEndpointConnectionsGetResponse>;
48
+ /**
49
+ * Update the status of a private endpoint connection with the specified name
50
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
51
+ * @param workspaceName The name of the workspace.
52
+ * @param privateEndpointConnectionName The name of the private endpoint connection
53
+ * @param privateEndpointConnection The private endpoint connection with updated properties
54
+ * @param options The options parameters.
55
+ */
56
+ beginCreate(
57
+ resourceGroupName: string,
58
+ workspaceName: string,
59
+ privateEndpointConnectionName: string,
60
+ privateEndpointConnection: PrivateEndpointConnection,
61
+ options?: PrivateEndpointConnectionsCreateOptionalParams
62
+ ): Promise<
63
+ PollerLike<
64
+ PollOperationState<PrivateEndpointConnectionsCreateResponse>,
65
+ PrivateEndpointConnectionsCreateResponse
66
+ >
67
+ >;
68
+ /**
69
+ * Update the status of a private endpoint connection with the specified name
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param workspaceName The name of the workspace.
72
+ * @param privateEndpointConnectionName The name of the private endpoint connection
73
+ * @param privateEndpointConnection The private endpoint connection with updated properties
74
+ * @param options The options parameters.
75
+ */
76
+ beginCreateAndWait(
77
+ resourceGroupName: string,
78
+ workspaceName: string,
79
+ privateEndpointConnectionName: string,
80
+ privateEndpointConnection: PrivateEndpointConnection,
81
+ options?: PrivateEndpointConnectionsCreateOptionalParams
82
+ ): Promise<PrivateEndpointConnectionsCreateResponse>;
83
+ /**
84
+ * Remove private endpoint connection with the specified name
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
+ beginDelete(
91
+ resourceGroupName: string,
92
+ workspaceName: string,
93
+ privateEndpointConnectionName: string,
94
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
95
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
96
+ /**
97
+ * Remove private endpoint connection with the specified name
98
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
99
+ * @param workspaceName The name of the workspace.
100
+ * @param privateEndpointConnectionName The name of the private endpoint connection
101
+ * @param options The options parameters.
102
+ */
103
+ beginDeleteAndWait(
104
+ resourceGroupName: string,
105
+ workspaceName: string,
106
+ privateEndpointConnectionName: string,
107
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
108
+ ): Promise<void>;
109
+ }
@@ -0,0 +1,44 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ GroupIdInformation,
12
+ PrivateLinkResourcesListOptionalParams,
13
+ PrivateLinkResourcesGetOptionalParams,
14
+ PrivateLinkResourcesGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a PrivateLinkResources. */
19
+ export interface PrivateLinkResources {
20
+ /**
21
+ * List private link resources for a given workspace
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param workspaceName The name of the workspace.
24
+ * @param options The options parameters.
25
+ */
26
+ list(
27
+ resourceGroupName: string,
28
+ workspaceName: string,
29
+ options?: PrivateLinkResourcesListOptionalParams
30
+ ): PagedAsyncIterableIterator<GroupIdInformation>;
31
+ /**
32
+ * Get the specified private link resource for the given group id (sub-resource)
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param workspaceName The name of the workspace.
35
+ * @param groupId The name of the private link resource
36
+ * @param options The options parameters.
37
+ */
38
+ get(
39
+ resourceGroupName: string,
40
+ workspaceName: string,
41
+ groupId: string,
42
+ options?: PrivateLinkResourcesGetOptionalParams
43
+ ): Promise<PrivateLinkResourcesGetResponse>;
44
+ }
@@ -0,0 +1,109 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ VirtualNetworkPeering,
13
+ VNetPeeringListByWorkspaceOptionalParams,
14
+ VNetPeeringGetOptionalParams,
15
+ VNetPeeringGetResponse,
16
+ VNetPeeringDeleteOptionalParams,
17
+ VNetPeeringCreateOrUpdateOptionalParams,
18
+ VNetPeeringCreateOrUpdateResponse
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a VNetPeering. */
23
+ export interface VNetPeering {
24
+ /**
25
+ * Lists the workspace vNet Peerings.
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
+ listByWorkspace(
31
+ resourceGroupName: string,
32
+ workspaceName: string,
33
+ options?: VNetPeeringListByWorkspaceOptionalParams
34
+ ): PagedAsyncIterableIterator<VirtualNetworkPeering>;
35
+ /**
36
+ * Gets the workspace vNet Peering.
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
+ * @param workspaceName The name of the workspace.
39
+ * @param peeringName The name of the workspace vNet peering.
40
+ * @param options The options parameters.
41
+ */
42
+ get(
43
+ resourceGroupName: string,
44
+ workspaceName: string,
45
+ peeringName: string,
46
+ options?: VNetPeeringGetOptionalParams
47
+ ): Promise<VNetPeeringGetResponse>;
48
+ /**
49
+ * Deletes the workspace vNetPeering.
50
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
51
+ * @param workspaceName The name of the workspace.
52
+ * @param peeringName The name of the workspace vNet peering.
53
+ * @param options The options parameters.
54
+ */
55
+ beginDelete(
56
+ resourceGroupName: string,
57
+ workspaceName: string,
58
+ peeringName: string,
59
+ options?: VNetPeeringDeleteOptionalParams
60
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
61
+ /**
62
+ * Deletes the workspace vNetPeering.
63
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
64
+ * @param workspaceName The name of the workspace.
65
+ * @param peeringName The name of the workspace vNet peering.
66
+ * @param options The options parameters.
67
+ */
68
+ beginDeleteAndWait(
69
+ resourceGroupName: string,
70
+ workspaceName: string,
71
+ peeringName: string,
72
+ options?: VNetPeeringDeleteOptionalParams
73
+ ): Promise<void>;
74
+ /**
75
+ * Creates vNet Peering for 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 peeringName The name of the workspace vNet peering.
79
+ * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
80
+ * @param options The options parameters.
81
+ */
82
+ beginCreateOrUpdate(
83
+ resourceGroupName: string,
84
+ workspaceName: string,
85
+ peeringName: string,
86
+ virtualNetworkPeeringParameters: VirtualNetworkPeering,
87
+ options?: VNetPeeringCreateOrUpdateOptionalParams
88
+ ): Promise<
89
+ PollerLike<
90
+ PollOperationState<VNetPeeringCreateOrUpdateResponse>,
91
+ VNetPeeringCreateOrUpdateResponse
92
+ >
93
+ >;
94
+ /**
95
+ * Creates vNet Peering for workspace.
96
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
97
+ * @param workspaceName The name of the workspace.
98
+ * @param peeringName The name of the workspace vNet peering.
99
+ * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
100
+ * @param options The options parameters.
101
+ */
102
+ beginCreateOrUpdateAndWait(
103
+ resourceGroupName: string,
104
+ workspaceName: string,
105
+ peeringName: string,
106
+ virtualNetworkPeeringParameters: VirtualNetworkPeering,
107
+ options?: VNetPeeringCreateOrUpdateOptionalParams
108
+ ): Promise<VNetPeeringCreateOrUpdateResponse>;
109
+ }
@@ -0,0 +1,139 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Workspace,
13
+ WorkspacesListByResourceGroupOptionalParams,
14
+ WorkspacesListBySubscriptionOptionalParams,
15
+ WorkspacesGetOptionalParams,
16
+ WorkspacesGetResponse,
17
+ WorkspacesDeleteOptionalParams,
18
+ WorkspacesCreateOrUpdateOptionalParams,
19
+ WorkspacesCreateOrUpdateResponse,
20
+ WorkspaceUpdate,
21
+ WorkspacesUpdateOptionalParams,
22
+ WorkspacesUpdateResponse
23
+ } from "../models";
24
+
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Interface representing a Workspaces. */
27
+ export interface Workspaces {
28
+ /**
29
+ * Gets all the workspaces within a resource group.
30
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
31
+ * @param options The options parameters.
32
+ */
33
+ listByResourceGroup(
34
+ resourceGroupName: string,
35
+ options?: WorkspacesListByResourceGroupOptionalParams
36
+ ): PagedAsyncIterableIterator<Workspace>;
37
+ /**
38
+ * Gets all the workspaces within a subscription.
39
+ * @param options The options parameters.
40
+ */
41
+ listBySubscription(
42
+ options?: WorkspacesListBySubscriptionOptionalParams
43
+ ): PagedAsyncIterableIterator<Workspace>;
44
+ /**
45
+ * Gets the workspace.
46
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
+ * @param workspaceName The name of the workspace.
48
+ * @param options The options parameters.
49
+ */
50
+ get(
51
+ resourceGroupName: string,
52
+ workspaceName: string,
53
+ options?: WorkspacesGetOptionalParams
54
+ ): Promise<WorkspacesGetResponse>;
55
+ /**
56
+ * Deletes the workspace.
57
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
58
+ * @param workspaceName The name of the workspace.
59
+ * @param options The options parameters.
60
+ */
61
+ beginDelete(
62
+ resourceGroupName: string,
63
+ workspaceName: string,
64
+ options?: WorkspacesDeleteOptionalParams
65
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
66
+ /**
67
+ * Deletes the workspace.
68
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
69
+ * @param workspaceName The name of the workspace.
70
+ * @param options The options parameters.
71
+ */
72
+ beginDeleteAndWait(
73
+ resourceGroupName: string,
74
+ workspaceName: string,
75
+ options?: WorkspacesDeleteOptionalParams
76
+ ): Promise<void>;
77
+ /**
78
+ * Creates a new workspace.
79
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
+ * @param workspaceName The name of the workspace.
81
+ * @param parameters Parameters supplied to the create or update a workspace.
82
+ * @param options The options parameters.
83
+ */
84
+ beginCreateOrUpdate(
85
+ resourceGroupName: string,
86
+ workspaceName: string,
87
+ parameters: Workspace,
88
+ options?: WorkspacesCreateOrUpdateOptionalParams
89
+ ): Promise<
90
+ PollerLike<
91
+ PollOperationState<WorkspacesCreateOrUpdateResponse>,
92
+ WorkspacesCreateOrUpdateResponse
93
+ >
94
+ >;
95
+ /**
96
+ * Creates a new workspace.
97
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
98
+ * @param workspaceName The name of the workspace.
99
+ * @param parameters Parameters supplied to the create or update a workspace.
100
+ * @param options The options parameters.
101
+ */
102
+ beginCreateOrUpdateAndWait(
103
+ resourceGroupName: string,
104
+ workspaceName: string,
105
+ parameters: Workspace,
106
+ options?: WorkspacesCreateOrUpdateOptionalParams
107
+ ): Promise<WorkspacesCreateOrUpdateResponse>;
108
+ /**
109
+ * Updates a workspace.
110
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
111
+ * @param workspaceName The name of the workspace.
112
+ * @param parameters The update to the workspace.
113
+ * @param options The options parameters.
114
+ */
115
+ beginUpdate(
116
+ resourceGroupName: string,
117
+ workspaceName: string,
118
+ parameters: WorkspaceUpdate,
119
+ options?: WorkspacesUpdateOptionalParams
120
+ ): Promise<
121
+ PollerLike<
122
+ PollOperationState<WorkspacesUpdateResponse>,
123
+ WorkspacesUpdateResponse
124
+ >
125
+ >;
126
+ /**
127
+ * Updates a workspace.
128
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
129
+ * @param workspaceName The name of the workspace.
130
+ * @param parameters The update to the workspace.
131
+ * @param options The options parameters.
132
+ */
133
+ beginUpdateAndWait(
134
+ resourceGroupName: string,
135
+ workspaceName: string,
136
+ parameters: WorkspaceUpdate,
137
+ options?: WorkspacesUpdateOptionalParams
138
+ ): Promise<WorkspacesUpdateResponse>;
139
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }