@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,23 +3,33 @@
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
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/privateLinkResourcesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PrivateLinkResources } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
14
  import { AzureDatabricksManagementClientContext } from "../azureDatabricksManagementClientContext";
15
+ import {
16
+ GroupIdInformation,
17
+ PrivateLinkResourcesListNextOptionalParams,
18
+ PrivateLinkResourcesListOptionalParams,
19
+ PrivateLinkResourcesListResponse,
20
+ PrivateLinkResourcesGetOptionalParams,
21
+ PrivateLinkResourcesGetResponse,
22
+ PrivateLinkResourcesListNextResponse
23
+ } from "../models";
15
24
 
16
- /** Class representing a PrivateLinkResources. */
17
- export class PrivateLinkResources {
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Class containing PrivateLinkResources operations. */
27
+ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
18
28
  private readonly client: AzureDatabricksManagementClientContext;
19
29
 
20
30
  /**
21
- * Create a PrivateLinkResources.
22
- * @param {AzureDatabricksManagementClientContext} client Reference to the service client.
31
+ * Initialize a new instance of the class PrivateLinkResources class.
32
+ * @param client Reference to the service client
23
33
  */
24
34
  constructor(client: AzureDatabricksManagementClientContext) {
25
35
  this.client = client;
@@ -27,120 +37,125 @@ export class PrivateLinkResources {
27
37
 
28
38
  /**
29
39
  * List private link resources for a given workspace
30
- * @summary List private link resources
31
40
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
41
  * @param workspaceName The name of the workspace.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.PrivateLinkResourcesListResponse>
42
+ * @param options The options parameters.
35
43
  */
36
- list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListResponse>;
37
- /**
38
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
- * @param workspaceName The name of the workspace.
40
- * @param callback The callback
41
- */
42
- list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourcesList>): void;
43
- /**
44
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
- * @param workspaceName The name of the workspace.
46
- * @param options The optional parameters
47
- * @param callback The callback
48
- */
49
- list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourcesList>): void;
50
- list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourcesList>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourcesList>): Promise<Models.PrivateLinkResourcesListResponse> {
51
- return this.client.sendOperationRequest(
52
- {
44
+ public list(
45
+ resourceGroupName: string,
46
+ workspaceName: string,
47
+ options?: PrivateLinkResourcesListOptionalParams
48
+ ): PagedAsyncIterableIterator<GroupIdInformation> {
49
+ const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
50
+ return {
51
+ next() {
52
+ return iter.next();
53
+ },
54
+ [Symbol.asyncIterator]() {
55
+ return this;
56
+ },
57
+ byPage: () => {
58
+ return this.listPagingPage(resourceGroupName, workspaceName, options);
59
+ }
60
+ };
61
+ }
62
+
63
+ private async *listPagingPage(
64
+ resourceGroupName: string,
65
+ workspaceName: string,
66
+ options?: PrivateLinkResourcesListOptionalParams
67
+ ): AsyncIterableIterator<GroupIdInformation[]> {
68
+ let result = await this._list(resourceGroupName, workspaceName, options);
69
+ yield result.value || [];
70
+ let continuationToken = result.nextLink;
71
+ while (continuationToken) {
72
+ result = await this._listNext(
53
73
  resourceGroupName,
54
74
  workspaceName,
75
+ continuationToken,
55
76
  options
56
- },
57
- listOperationSpec,
58
- callback) as Promise<Models.PrivateLinkResourcesListResponse>;
77
+ );
78
+ continuationToken = result.nextLink;
79
+ yield result.value || [];
80
+ }
81
+ }
82
+
83
+ private async *listPagingAll(
84
+ resourceGroupName: string,
85
+ workspaceName: string,
86
+ options?: PrivateLinkResourcesListOptionalParams
87
+ ): AsyncIterableIterator<GroupIdInformation> {
88
+ for await (const page of this.listPagingPage(
89
+ resourceGroupName,
90
+ workspaceName,
91
+ options
92
+ )) {
93
+ yield* page;
94
+ }
59
95
  }
60
96
 
61
97
  /**
62
- * Get the specified private link resource for the given group id (sub-resource)
63
- * @summary Get the specified private link resource
64
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
- * @param workspaceName The name of the workspace.
66
- * @param groupId The name of the private link resource
67
- * @param [options] The optional parameters
68
- * @returns Promise<Models.PrivateLinkResourcesGetResponse>
69
- */
70
- get(resourceGroupName: string, workspaceName: string, groupId: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesGetResponse>;
71
- /**
98
+ * List private link resources for a given workspace
72
99
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
100
  * @param workspaceName The name of the workspace.
74
- * @param groupId The name of the private link resource
75
- * @param callback The callback
101
+ * @param options The options parameters.
76
102
  */
77
- get(resourceGroupName: string, workspaceName: string, groupId: string, callback: msRest.ServiceCallback<Models.GroupIdInformation>): void;
103
+ private _list(
104
+ resourceGroupName: string,
105
+ workspaceName: string,
106
+ options?: PrivateLinkResourcesListOptionalParams
107
+ ): Promise<PrivateLinkResourcesListResponse> {
108
+ return this.client.sendOperationRequest(
109
+ { resourceGroupName, workspaceName, options },
110
+ listOperationSpec
111
+ );
112
+ }
113
+
78
114
  /**
115
+ * Get the specified private link resource for the given group id (sub-resource)
79
116
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
117
  * @param workspaceName The name of the workspace.
81
118
  * @param groupId The name of the private link resource
82
- * @param options The optional parameters
83
- * @param callback The callback
119
+ * @param options The options parameters.
84
120
  */
85
- get(resourceGroupName: string, workspaceName: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.GroupIdInformation>): void;
86
- get(resourceGroupName: string, workspaceName: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.GroupIdInformation>, callback?: msRest.ServiceCallback<Models.GroupIdInformation>): Promise<Models.PrivateLinkResourcesGetResponse> {
121
+ get(
122
+ resourceGroupName: string,
123
+ workspaceName: string,
124
+ groupId: string,
125
+ options?: PrivateLinkResourcesGetOptionalParams
126
+ ): Promise<PrivateLinkResourcesGetResponse> {
87
127
  return this.client.sendOperationRequest(
88
- {
89
- resourceGroupName,
90
- workspaceName,
91
- groupId,
92
- options
93
- },
94
- getOperationSpec,
95
- callback) as Promise<Models.PrivateLinkResourcesGetResponse>;
128
+ { resourceGroupName, workspaceName, groupId, options },
129
+ getOperationSpec
130
+ );
96
131
  }
97
132
 
98
133
  /**
99
- * List private link resources for a given workspace
100
- * @summary List private link resources
101
- * @param nextPageLink The NextLink from the previous successful call to List operation.
102
- * @param [options] The optional parameters
103
- * @returns Promise<Models.PrivateLinkResourcesListNextResponse>
104
- */
105
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListNextResponse>;
106
- /**
107
- * @param nextPageLink The NextLink from the previous successful call to List operation.
108
- * @param callback The callback
109
- */
110
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourcesList>): void;
111
- /**
112
- * @param nextPageLink The NextLink from the previous successful call to List operation.
113
- * @param options The optional parameters
114
- * @param callback The callback
134
+ * ListNext
135
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
136
+ * @param workspaceName The name of the workspace.
137
+ * @param nextLink The nextLink from the previous successful call to the List method.
138
+ * @param options The options parameters.
115
139
  */
116
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourcesList>): void;
117
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourcesList>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourcesList>): Promise<Models.PrivateLinkResourcesListNextResponse> {
140
+ private _listNext(
141
+ resourceGroupName: string,
142
+ workspaceName: string,
143
+ nextLink: string,
144
+ options?: PrivateLinkResourcesListNextOptionalParams
145
+ ): Promise<PrivateLinkResourcesListNextResponse> {
118
146
  return this.client.sendOperationRequest(
119
- {
120
- nextPageLink,
121
- options
122
- },
123
- listNextOperationSpec,
124
- callback) as Promise<Models.PrivateLinkResourcesListNextResponse>;
147
+ { resourceGroupName, workspaceName, nextLink, options },
148
+ listNextOperationSpec
149
+ );
125
150
  }
126
151
  }
127
-
128
152
  // Operation Specifications
129
- const serializer = new msRest.Serializer(Mappers);
130
- const listOperationSpec: msRest.OperationSpec = {
153
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
154
+
155
+ const listOperationSpec: coreClient.OperationSpec = {
156
+ path:
157
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
131
158
  httpMethod: "GET",
132
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
133
- urlParameters: [
134
- Parameters.resourceGroupName,
135
- Parameters.workspaceName,
136
- Parameters.subscriptionId
137
- ],
138
- queryParameters: [
139
- Parameters.apiVersion0
140
- ],
141
- headerParameters: [
142
- Parameters.acceptLanguage
143
- ],
144
159
  responses: {
145
160
  200: {
146
161
  bodyMapper: Mappers.PrivateLinkResourcesList
@@ -149,24 +164,20 @@ const listOperationSpec: msRest.OperationSpec = {
149
164
  bodyMapper: Mappers.ErrorResponse
150
165
  }
151
166
  },
152
- serializer
153
- };
154
-
155
- const getOperationSpec: msRest.OperationSpec = {
156
- httpMethod: "GET",
157
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
167
+ queryParameters: [Parameters.apiVersion],
158
168
  urlParameters: [
169
+ Parameters.$host,
159
170
  Parameters.resourceGroupName,
160
171
  Parameters.workspaceName,
161
- Parameters.subscriptionId,
162
- Parameters.groupId
163
- ],
164
- queryParameters: [
165
- Parameters.apiVersion0
166
- ],
167
- headerParameters: [
168
- Parameters.acceptLanguage
172
+ Parameters.subscriptionId
169
173
  ],
174
+ headerParameters: [Parameters.accept],
175
+ serializer
176
+ };
177
+ const getOperationSpec: coreClient.OperationSpec = {
178
+ path:
179
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
180
+ httpMethod: "GET",
170
181
  responses: {
171
182
  200: {
172
183
  bodyMapper: Mappers.GroupIdInformation
@@ -175,22 +186,20 @@ const getOperationSpec: msRest.OperationSpec = {
175
186
  bodyMapper: Mappers.ErrorResponse
176
187
  }
177
188
  },
189
+ queryParameters: [Parameters.apiVersion],
190
+ urlParameters: [
191
+ Parameters.$host,
192
+ Parameters.resourceGroupName,
193
+ Parameters.workspaceName,
194
+ Parameters.subscriptionId,
195
+ Parameters.groupId
196
+ ],
197
+ headerParameters: [Parameters.accept],
178
198
  serializer
179
199
  };
180
-
181
- const listNextOperationSpec: msRest.OperationSpec = {
182
- httpMethod: "GET",
183
- baseUrl: "https://management.azure.com",
200
+ const listNextOperationSpec: coreClient.OperationSpec = {
184
201
  path: "{nextLink}",
185
- urlParameters: [
186
- Parameters.nextPageLink
187
- ],
188
- queryParameters: [
189
- Parameters.apiVersion0
190
- ],
191
- headerParameters: [
192
- Parameters.acceptLanguage
193
- ],
202
+ httpMethod: "GET",
194
203
  responses: {
195
204
  200: {
196
205
  bodyMapper: Mappers.PrivateLinkResourcesList
@@ -199,5 +208,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
199
208
  bodyMapper: Mappers.ErrorResponse
200
209
  }
201
210
  },
211
+ queryParameters: [Parameters.apiVersion],
212
+ urlParameters: [
213
+ Parameters.$host,
214
+ Parameters.resourceGroupName,
215
+ Parameters.workspaceName,
216
+ Parameters.subscriptionId,
217
+ Parameters.nextLink
218
+ ],
219
+ headerParameters: [Parameters.accept],
202
220
  serializer
203
221
  };