@azure/arm-search 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 (209) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -78
  4. package/dist/index.js +2926 -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/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/{esm/models/adminKeysMappers.js → dist-esm/src/index.js} +5 -2
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +692 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +21 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +35 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +503 -558
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +22 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +92 -47
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/adminKeys.d.ts +33 -0
  29. package/dist-esm/src/operations/adminKeys.d.ts.map +1 -0
  30. package/dist-esm/src/operations/adminKeys.js +90 -0
  31. package/dist-esm/src/operations/adminKeys.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +1 -2
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +26 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +90 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/privateEndpointConnections.d.ts +79 -0
  41. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  42. package/dist-esm/src/operations/privateEndpointConnections.js +273 -0
  43. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  44. package/dist-esm/src/operations/privateLinkResources.d.ts +34 -0
  45. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  46. package/dist-esm/src/operations/privateLinkResources.js +103 -0
  47. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  48. package/dist-esm/src/operations/queryKeys.d.ts +66 -0
  49. package/dist-esm/src/operations/queryKeys.d.ts.map +1 -0
  50. package/dist-esm/src/operations/queryKeys.js +213 -0
  51. package/dist-esm/src/operations/queryKeys.js.map +1 -0
  52. package/dist-esm/src/operations/services.d.ts +123 -0
  53. package/dist-esm/src/operations/services.d.ts.map +1 -0
  54. package/dist-esm/src/operations/services.js +475 -0
  55. package/dist-esm/src/operations/services.js.map +1 -0
  56. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +107 -0
  57. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  58. package/dist-esm/src/operations/sharedPrivateLinkResources.js +379 -0
  59. package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +25 -0
  61. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts.map +1 -0
  62. package/{src/models/adminKeysMappers.ts → dist-esm/src/operationsInterfaces/adminKeys.js} +2 -5
  63. package/dist-esm/src/operationsInterfaces/adminKeys.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +15 -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/{src/models/queryKeysMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -6
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  74. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -7
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +37 -0
  81. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/queryKeys.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/queryKeys.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/services.d.ts +85 -0
  85. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  86. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/services.js} +2 -1
  87. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
  89. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  92. package/dist-esm/src/searchManagementClient.d.ts +25 -0
  93. package/dist-esm/src/searchManagementClient.d.ts.map +1 -0
  94. package/dist-esm/src/searchManagementClient.js +58 -0
  95. package/dist-esm/src/searchManagementClient.js.map +1 -0
  96. package/dist-esm/test/search_examples.d.ts +4 -0
  97. package/dist-esm/test/search_examples.d.ts.map +1 -0
  98. package/dist-esm/test/search_examples.js +163 -0
  99. package/dist-esm/test/search_examples.js.map +1 -0
  100. package/package.json +65 -32
  101. package/review/arm-search.api.md +600 -0
  102. package/rollup.config.js +181 -30
  103. package/{esm/models/queryKeysMappers.js → src/index.ts} +5 -2
  104. package/src/lroImpl.ts +34 -0
  105. package/src/models/index.ts +563 -1357
  106. package/src/models/mappers.ts +516 -575
  107. package/src/models/parameters.ts +122 -48
  108. package/src/operations/adminKeys.ts +65 -109
  109. package/src/operations/index.ts +1 -2
  110. package/src/operations/operations.ts +64 -39
  111. package/src/operations/privateEndpointConnections.ts +223 -235
  112. package/src/operations/privateLinkResources.ts +100 -54
  113. package/src/operations/queryKeys.ts +192 -190
  114. package/src/operations/services.ts +423 -409
  115. package/src/operations/sharedPrivateLinkResources.ts +390 -232
  116. package/src/operationsInterfaces/adminKeys.ts +48 -0
  117. package/src/operationsInterfaces/index.ts +15 -0
  118. package/src/operationsInterfaces/operations.ts +22 -0
  119. package/src/operationsInterfaces/privateEndpointConnections.ts +88 -0
  120. package/src/operationsInterfaces/privateLinkResources.ts +31 -0
  121. package/src/operationsInterfaces/queryKeys.ts +66 -0
  122. package/src/operationsInterfaces/services.ts +144 -0
  123. package/src/operationsInterfaces/sharedPrivateLinkResources.ts +131 -0
  124. package/src/searchManagementClient.ts +90 -46
  125. package/tsconfig.json +3 -3
  126. package/types/arm-search.d.ts +1104 -0
  127. package/types/tsdoc-metadata.json +11 -0
  128. package/dist/arm-search.js +0 -2737
  129. package/dist/arm-search.js.map +0 -1
  130. package/dist/arm-search.min.js +0 -1
  131. package/dist/arm-search.min.js.map +0 -1
  132. package/esm/models/adminKeysMappers.d.ts +0 -2
  133. package/esm/models/adminKeysMappers.d.ts.map +0 -1
  134. package/esm/models/adminKeysMappers.js.map +0 -1
  135. package/esm/models/index.d.ts +0 -1499
  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 -38
  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 +0 -9
  144. package/esm/models/operationsMappers.js.map +0 -1
  145. package/esm/models/parameters.d.ts +0 -14
  146. package/esm/models/parameters.d.ts.map +0 -1
  147. package/esm/models/parameters.js.map +0 -1
  148. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  149. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  150. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  151. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  152. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  153. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  154. package/esm/models/privateLinkResourcesMappers.js +0 -9
  155. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  156. package/esm/models/queryKeysMappers.d.ts +0 -2
  157. package/esm/models/queryKeysMappers.d.ts.map +0 -1
  158. package/esm/models/queryKeysMappers.js.map +0 -1
  159. package/esm/models/servicesMappers.d.ts +0 -2
  160. package/esm/models/servicesMappers.d.ts.map +0 -1
  161. package/esm/models/servicesMappers.js +0 -9
  162. package/esm/models/servicesMappers.js.map +0 -1
  163. package/esm/models/sharedPrivateLinkResourcesMappers.d.ts +0 -2
  164. package/esm/models/sharedPrivateLinkResourcesMappers.d.ts.map +0 -1
  165. package/esm/models/sharedPrivateLinkResourcesMappers.js +0 -9
  166. package/esm/models/sharedPrivateLinkResourcesMappers.js.map +0 -1
  167. package/esm/operations/adminKeys.d.ts +0 -74
  168. package/esm/operations/adminKeys.d.ts.map +0 -1
  169. package/esm/operations/adminKeys.js +0 -92
  170. package/esm/operations/adminKeys.js.map +0 -1
  171. package/esm/operations/index.d.ts.map +0 -1
  172. package/esm/operations/index.js.map +0 -1
  173. package/esm/operations/operations.d.ts +0 -28
  174. package/esm/operations/operations.d.ts.map +0 -1
  175. package/esm/operations/operations.js +0 -50
  176. package/esm/operations/operations.js.map +0 -1
  177. package/esm/operations/privateEndpointConnections.d.ts +0 -161
  178. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  179. package/esm/operations/privateEndpointConnections.js +0 -197
  180. package/esm/operations/privateEndpointConnections.js.map +0 -1
  181. package/esm/operations/privateLinkResources.d.ts +0 -40
  182. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  183. package/esm/operations/privateLinkResources.js +0 -58
  184. package/esm/operations/privateLinkResources.js.map +0 -1
  185. package/esm/operations/queryKeys.d.ts +0 -120
  186. package/esm/operations/queryKeys.d.ts.map +0 -1
  187. package/esm/operations/queryKeys.js +0 -156
  188. package/esm/operations/queryKeys.js.map +0 -1
  189. package/esm/operations/services.d.ts +0 -225
  190. package/esm/operations/services.d.ts.map +0 -1
  191. package/esm/operations/services.js +0 -355
  192. package/esm/operations/services.js.map +0 -1
  193. package/esm/operations/sharedPrivateLinkResources.d.ts +0 -147
  194. package/esm/operations/sharedPrivateLinkResources.d.ts.map +0 -1
  195. package/esm/operations/sharedPrivateLinkResources.js +0 -255
  196. package/esm/operations/sharedPrivateLinkResources.js.map +0 -1
  197. package/esm/searchManagementClient.d.ts +0 -31
  198. package/esm/searchManagementClient.d.ts.map +0 -1
  199. package/esm/searchManagementClient.js +0 -44
  200. package/esm/searchManagementClient.js.map +0 -1
  201. package/esm/searchManagementClientContext.d.ts +0 -23
  202. package/esm/searchManagementClientContext.d.ts.map +0 -1
  203. package/esm/searchManagementClientContext.js +0 -61
  204. package/esm/searchManagementClientContext.js.map +0 -1
  205. package/src/models/privateEndpointConnectionsMappers.ts +0 -33
  206. package/src/models/privateLinkResourcesMappers.ts +0 -33
  207. package/src/models/servicesMappers.ts +0 -35
  208. package/src/models/sharedPrivateLinkResourcesMappers.ts +0 -33
  209. package/src/searchManagementClientContext.ts +0 -68
@@ -3,358 +3,507 @@
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 msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/sharedPrivateLinkResourcesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SharedPrivateLinkResources } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { SearchManagementClientContext } from "../searchManagementClientContext";
14
+ import { SearchManagementClient } from "../searchManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ SharedPrivateLinkResource,
19
+ SharedPrivateLinkResourcesListByServiceNextOptionalParams,
20
+ SharedPrivateLinkResourcesListByServiceOptionalParams,
21
+ SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
22
+ SharedPrivateLinkResourcesCreateOrUpdateResponse,
23
+ SharedPrivateLinkResourcesGetOptionalParams,
24
+ SharedPrivateLinkResourcesGetResponse,
25
+ SharedPrivateLinkResourcesDeleteOptionalParams,
26
+ SharedPrivateLinkResourcesListByServiceResponse,
27
+ SharedPrivateLinkResourcesListByServiceNextResponse
28
+ } from "../models";
16
29
 
17
- /** Class representing a SharedPrivateLinkResources. */
18
- export class SharedPrivateLinkResources {
19
- private readonly client: SearchManagementClientContext;
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing SharedPrivateLinkResources operations. */
32
+ export class SharedPrivateLinkResourcesImpl
33
+ implements SharedPrivateLinkResources {
34
+ private readonly client: SearchManagementClient;
20
35
 
21
36
  /**
22
- * Create a SharedPrivateLinkResources.
23
- * @param {SearchManagementClientContext} client Reference to the service client.
37
+ * Initialize a new instance of the class SharedPrivateLinkResources class.
38
+ * @param client Reference to the service client
24
39
  */
25
- constructor(client: SearchManagementClientContext) {
40
+ constructor(client: SearchManagementClient) {
26
41
  this.client = client;
27
42
  }
28
43
 
29
44
  /**
30
- * Initiates the creation or update of a shared private link resource managed by the search service
31
- * in the given resource group.
45
+ * Gets a list of all shared private link resources managed by the given service.
32
46
  * @param resourceGroupName The name of the resource group within the current subscription. You can
33
- * obtain this value from the Azure Resource Manager API or the portal.
47
+ * obtain this value from the Azure Resource Manager API or the portal.
34
48
  * @param searchServiceName The name of the Azure Cognitive Search service associated with the
35
- * specified resource group.
36
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
37
- * Azure Cognitive Search service within the specified resource group.
38
- * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
39
- * update.
40
- * @param [options] The optional parameters
41
- * @returns Promise<Models.SharedPrivateLinkResourcesCreateOrUpdateResponse>
49
+ * specified resource group.
50
+ * @param options The options parameters.
42
51
  */
43
- createOrUpdate(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: Models.SharedPrivateLinkResource, options?: Models.SharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise<Models.SharedPrivateLinkResourcesCreateOrUpdateResponse> {
44
- return this.beginCreateOrUpdate(resourceGroupName,searchServiceName,sharedPrivateLinkResourceName,sharedPrivateLinkResource,options)
45
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SharedPrivateLinkResourcesCreateOrUpdateResponse>;
52
+ public listByService(
53
+ resourceGroupName: string,
54
+ searchServiceName: string,
55
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams
56
+ ): PagedAsyncIterableIterator<SharedPrivateLinkResource> {
57
+ const iter = this.listByServicePagingAll(
58
+ resourceGroupName,
59
+ searchServiceName,
60
+ options
61
+ );
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
68
+ },
69
+ byPage: () => {
70
+ return this.listByServicePagingPage(
71
+ resourceGroupName,
72
+ searchServiceName,
73
+ options
74
+ );
75
+ }
76
+ };
77
+ }
78
+
79
+ private async *listByServicePagingPage(
80
+ resourceGroupName: string,
81
+ searchServiceName: string,
82
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams
83
+ ): AsyncIterableIterator<SharedPrivateLinkResource[]> {
84
+ let result = await this._listByService(
85
+ resourceGroupName,
86
+ searchServiceName,
87
+ options
88
+ );
89
+ yield result.value || [];
90
+ let continuationToken = result.nextLink;
91
+ while (continuationToken) {
92
+ result = await this._listByServiceNext(
93
+ resourceGroupName,
94
+ searchServiceName,
95
+ continuationToken,
96
+ options
97
+ );
98
+ continuationToken = result.nextLink;
99
+ yield result.value || [];
100
+ }
101
+ }
102
+
103
+ private async *listByServicePagingAll(
104
+ resourceGroupName: string,
105
+ searchServiceName: string,
106
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams
107
+ ): AsyncIterableIterator<SharedPrivateLinkResource> {
108
+ for await (const page of this.listByServicePagingPage(
109
+ resourceGroupName,
110
+ searchServiceName,
111
+ options
112
+ )) {
113
+ yield* page;
114
+ }
46
115
  }
47
116
 
48
117
  /**
49
- * Gets the details of the shared private link resource managed by the search service in the given
50
- * resource group.
51
- * @param resourceGroupName The name of the resource group within the current subscription. You can
52
- * obtain this value from the Azure Resource Manager API or the portal.
53
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
54
- * specified resource group.
55
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
56
- * Azure Cognitive Search service within the specified resource group.
57
- * @param [options] The optional parameters
58
- * @returns Promise<Models.SharedPrivateLinkResourcesGetResponse>
59
- */
60
- get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: Models.SharedPrivateLinkResourcesGetOptionalParams): Promise<Models.SharedPrivateLinkResourcesGetResponse>;
61
- /**
62
- * @param resourceGroupName The name of the resource group within the current subscription. You can
63
- * obtain this value from the Azure Resource Manager API or the portal.
64
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
65
- * specified resource group.
66
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
67
- * Azure Cognitive Search service within the specified resource group.
68
- * @param callback The callback
69
- */
70
- get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResource>): void;
71
- /**
118
+ * Initiates the creation or update of a shared private link resource managed by the search service in
119
+ * the given resource group.
72
120
  * @param resourceGroupName The name of the resource group within the current subscription. You can
73
- * obtain this value from the Azure Resource Manager API or the portal.
121
+ * obtain this value from the Azure Resource Manager API or the portal.
74
122
  * @param searchServiceName The name of the Azure Cognitive Search service associated with the
75
- * specified resource group.
123
+ * specified resource group.
76
124
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
77
- * Azure Cognitive Search service within the specified resource group.
78
- * @param options The optional parameters
79
- * @param callback The callback
125
+ * Azure Cognitive Search service within the specified resource group.
126
+ * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
127
+ * update.
128
+ * @param options The options parameters.
80
129
  */
81
- get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options: Models.SharedPrivateLinkResourcesGetOptionalParams, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResource>): void;
82
- get(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: Models.SharedPrivateLinkResourcesGetOptionalParams | msRest.ServiceCallback<Models.SharedPrivateLinkResource>, callback?: msRest.ServiceCallback<Models.SharedPrivateLinkResource>): Promise<Models.SharedPrivateLinkResourcesGetResponse> {
83
- return this.client.sendOperationRequest(
130
+ async beginCreateOrUpdate(
131
+ resourceGroupName: string,
132
+ searchServiceName: string,
133
+ sharedPrivateLinkResourceName: string,
134
+ sharedPrivateLinkResource: SharedPrivateLinkResource,
135
+ options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
136
+ ): Promise<
137
+ PollerLike<
138
+ PollOperationState<SharedPrivateLinkResourcesCreateOrUpdateResponse>,
139
+ SharedPrivateLinkResourcesCreateOrUpdateResponse
140
+ >
141
+ > {
142
+ const directSendOperation = async (
143
+ args: coreClient.OperationArguments,
144
+ spec: coreClient.OperationSpec
145
+ ): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse> => {
146
+ return this.client.sendOperationRequest(args, spec);
147
+ };
148
+ const sendOperation = async (
149
+ args: coreClient.OperationArguments,
150
+ spec: coreClient.OperationSpec
151
+ ) => {
152
+ let currentRawResponse:
153
+ | coreClient.FullOperationResponse
154
+ | undefined = undefined;
155
+ const providedCallback = args.options?.onResponse;
156
+ const callback: coreClient.RawResponseCallback = (
157
+ rawResponse: coreClient.FullOperationResponse,
158
+ flatResponse: unknown
159
+ ) => {
160
+ currentRawResponse = rawResponse;
161
+ providedCallback?.(rawResponse, flatResponse);
162
+ };
163
+ const updatedArgs = {
164
+ ...args,
165
+ options: {
166
+ ...args.options,
167
+ onResponse: callback
168
+ }
169
+ };
170
+ const flatResponse = await directSendOperation(updatedArgs, spec);
171
+ return {
172
+ flatResponse,
173
+ rawResponse: {
174
+ statusCode: currentRawResponse!.status,
175
+ body: currentRawResponse!.parsedBody,
176
+ headers: currentRawResponse!.headers.toJSON()
177
+ }
178
+ };
179
+ };
180
+
181
+ const lro = new LroImpl(
182
+ sendOperation,
84
183
  {
85
184
  resourceGroupName,
86
185
  searchServiceName,
87
186
  sharedPrivateLinkResourceName,
187
+ sharedPrivateLinkResource,
88
188
  options
89
189
  },
90
- getOperationSpec,
91
- callback) as Promise<Models.SharedPrivateLinkResourcesGetResponse>;
190
+ createOrUpdateOperationSpec
191
+ );
192
+ return new LroEngine(lro, {
193
+ resumeFrom: options?.resumeFrom,
194
+ intervalInMs: options?.updateIntervalInMs,
195
+ lroResourceLocationConfig: "azure-async-operation"
196
+ });
92
197
  }
93
198
 
94
199
  /**
95
- * Initiates the deletion of the shared private link resource from the search service.
200
+ * Initiates the creation or update of a shared private link resource managed by the search service in
201
+ * the given resource group.
96
202
  * @param resourceGroupName The name of the resource group within the current subscription. You can
97
- * obtain this value from the Azure Resource Manager API or the portal.
203
+ * obtain this value from the Azure Resource Manager API or the portal.
98
204
  * @param searchServiceName The name of the Azure Cognitive Search service associated with the
99
- * specified resource group.
205
+ * specified resource group.
100
206
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
101
- * Azure Cognitive Search service within the specified resource group.
102
- * @param [options] The optional parameters
103
- * @returns Promise<msRest.RestResponse>
207
+ * Azure Cognitive Search service within the specified resource group.
208
+ * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
209
+ * update.
210
+ * @param options The options parameters.
104
211
  */
105
- deleteMethod(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: Models.SharedPrivateLinkResourcesDeleteMethodOptionalParams): Promise<msRest.RestResponse> {
106
- return this.beginDeleteMethod(resourceGroupName,searchServiceName,sharedPrivateLinkResourceName,options)
107
- .then(lroPoller => lroPoller.pollUntilFinished());
212
+ async beginCreateOrUpdateAndWait(
213
+ resourceGroupName: string,
214
+ searchServiceName: string,
215
+ sharedPrivateLinkResourceName: string,
216
+ sharedPrivateLinkResource: SharedPrivateLinkResource,
217
+ options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
218
+ ): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse> {
219
+ const poller = await this.beginCreateOrUpdate(
220
+ resourceGroupName,
221
+ searchServiceName,
222
+ sharedPrivateLinkResourceName,
223
+ sharedPrivateLinkResource,
224
+ options
225
+ );
226
+ return poller.pollUntilDone();
108
227
  }
109
228
 
110
229
  /**
111
- * Gets a list of all shared private link resources managed by the given service.
112
- * @param resourceGroupName The name of the resource group within the current subscription. You can
113
- * obtain this value from the Azure Resource Manager API or the portal.
114
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
115
- * specified resource group.
116
- * @param [options] The optional parameters
117
- * @returns Promise<Models.SharedPrivateLinkResourcesListByServiceResponse>
118
- */
119
- listByService(resourceGroupName: string, searchServiceName: string, options?: Models.SharedPrivateLinkResourcesListByServiceOptionalParams): Promise<Models.SharedPrivateLinkResourcesListByServiceResponse>;
120
- /**
121
- * @param resourceGroupName The name of the resource group within the current subscription. You can
122
- * obtain this value from the Azure Resource Manager API or the portal.
123
- * @param searchServiceName The name of the Azure Cognitive Search service associated with the
124
- * specified resource group.
125
- * @param callback The callback
126
- */
127
- listByService(resourceGroupName: string, searchServiceName: string, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): void;
128
- /**
230
+ * Gets the details of the shared private link resource managed by the search service in the given
231
+ * resource group.
129
232
  * @param resourceGroupName The name of the resource group within the current subscription. You can
130
- * obtain this value from the Azure Resource Manager API or the portal.
233
+ * obtain this value from the Azure Resource Manager API or the portal.
131
234
  * @param searchServiceName The name of the Azure Cognitive Search service associated with the
132
- * specified resource group.
133
- * @param options The optional parameters
134
- * @param callback The callback
235
+ * specified resource group.
236
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
237
+ * Azure Cognitive Search service within the specified resource group.
238
+ * @param options The options parameters.
135
239
  */
136
- listByService(resourceGroupName: string, searchServiceName: string, options: Models.SharedPrivateLinkResourcesListByServiceOptionalParams, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): void;
137
- listByService(resourceGroupName: string, searchServiceName: string, options?: Models.SharedPrivateLinkResourcesListByServiceOptionalParams | msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): Promise<Models.SharedPrivateLinkResourcesListByServiceResponse> {
240
+ get(
241
+ resourceGroupName: string,
242
+ searchServiceName: string,
243
+ sharedPrivateLinkResourceName: string,
244
+ options?: SharedPrivateLinkResourcesGetOptionalParams
245
+ ): Promise<SharedPrivateLinkResourcesGetResponse> {
138
246
  return this.client.sendOperationRequest(
139
247
  {
140
248
  resourceGroupName,
141
249
  searchServiceName,
250
+ sharedPrivateLinkResourceName,
142
251
  options
143
252
  },
144
- listByServiceOperationSpec,
145
- callback) as Promise<Models.SharedPrivateLinkResourcesListByServiceResponse>;
253
+ getOperationSpec
254
+ );
146
255
  }
147
256
 
148
257
  /**
149
- * Initiates the creation or update of a shared private link resource managed by the search service
150
- * in the given resource group.
258
+ * Initiates the deletion of the shared private link resource from the search service.
151
259
  * @param resourceGroupName The name of the resource group within the current subscription. You can
152
- * obtain this value from the Azure Resource Manager API or the portal.
260
+ * obtain this value from the Azure Resource Manager API or the portal.
153
261
  * @param searchServiceName The name of the Azure Cognitive Search service associated with the
154
- * specified resource group.
262
+ * specified resource group.
155
263
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
156
- * Azure Cognitive Search service within the specified resource group.
157
- * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
158
- * update.
159
- * @param [options] The optional parameters
160
- * @returns Promise<msRestAzure.LROPoller>
264
+ * Azure Cognitive Search service within the specified resource group.
265
+ * @param options The options parameters.
161
266
  */
162
- beginCreateOrUpdate(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: Models.SharedPrivateLinkResource, options?: Models.SharedPrivateLinkResourcesBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
163
- return this.client.sendLRORequest(
267
+ async beginDelete(
268
+ resourceGroupName: string,
269
+ searchServiceName: string,
270
+ sharedPrivateLinkResourceName: string,
271
+ options?: SharedPrivateLinkResourcesDeleteOptionalParams
272
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
273
+ const directSendOperation = async (
274
+ args: coreClient.OperationArguments,
275
+ spec: coreClient.OperationSpec
276
+ ): Promise<void> => {
277
+ return this.client.sendOperationRequest(args, spec);
278
+ };
279
+ const sendOperation = async (
280
+ args: coreClient.OperationArguments,
281
+ spec: coreClient.OperationSpec
282
+ ) => {
283
+ let currentRawResponse:
284
+ | coreClient.FullOperationResponse
285
+ | undefined = undefined;
286
+ const providedCallback = args.options?.onResponse;
287
+ const callback: coreClient.RawResponseCallback = (
288
+ rawResponse: coreClient.FullOperationResponse,
289
+ flatResponse: unknown
290
+ ) => {
291
+ currentRawResponse = rawResponse;
292
+ providedCallback?.(rawResponse, flatResponse);
293
+ };
294
+ const updatedArgs = {
295
+ ...args,
296
+ options: {
297
+ ...args.options,
298
+ onResponse: callback
299
+ }
300
+ };
301
+ const flatResponse = await directSendOperation(updatedArgs, spec);
302
+ return {
303
+ flatResponse,
304
+ rawResponse: {
305
+ statusCode: currentRawResponse!.status,
306
+ body: currentRawResponse!.parsedBody,
307
+ headers: currentRawResponse!.headers.toJSON()
308
+ }
309
+ };
310
+ };
311
+
312
+ const lro = new LroImpl(
313
+ sendOperation,
164
314
  {
165
315
  resourceGroupName,
166
316
  searchServiceName,
167
317
  sharedPrivateLinkResourceName,
168
- sharedPrivateLinkResource,
169
318
  options
170
319
  },
171
- beginCreateOrUpdateOperationSpec,
172
- options);
320
+ deleteOperationSpec
321
+ );
322
+ return new LroEngine(lro, {
323
+ resumeFrom: options?.resumeFrom,
324
+ intervalInMs: options?.updateIntervalInMs,
325
+ lroResourceLocationConfig: "azure-async-operation"
326
+ });
173
327
  }
174
328
 
175
329
  /**
176
330
  * Initiates the deletion of the shared private link resource from the search service.
177
331
  * @param resourceGroupName The name of the resource group within the current subscription. You can
178
- * obtain this value from the Azure Resource Manager API or the portal.
332
+ * obtain this value from the Azure Resource Manager API or the portal.
179
333
  * @param searchServiceName The name of the Azure Cognitive Search service associated with the
180
- * specified resource group.
334
+ * specified resource group.
181
335
  * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
182
- * Azure Cognitive Search service within the specified resource group.
183
- * @param [options] The optional parameters
184
- * @returns Promise<msRestAzure.LROPoller>
336
+ * Azure Cognitive Search service within the specified resource group.
337
+ * @param options The options parameters.
185
338
  */
186
- beginDeleteMethod(resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, options?: Models.SharedPrivateLinkResourcesBeginDeleteMethodOptionalParams): Promise<msRestAzure.LROPoller> {
187
- return this.client.sendLRORequest(
188
- {
189
- resourceGroupName,
190
- searchServiceName,
191
- sharedPrivateLinkResourceName,
192
- options
193
- },
194
- beginDeleteMethodOperationSpec,
195
- options);
339
+ async beginDeleteAndWait(
340
+ resourceGroupName: string,
341
+ searchServiceName: string,
342
+ sharedPrivateLinkResourceName: string,
343
+ options?: SharedPrivateLinkResourcesDeleteOptionalParams
344
+ ): Promise<void> {
345
+ const poller = await this.beginDelete(
346
+ resourceGroupName,
347
+ searchServiceName,
348
+ sharedPrivateLinkResourceName,
349
+ options
350
+ );
351
+ return poller.pollUntilDone();
196
352
  }
197
353
 
198
354
  /**
199
355
  * Gets a list of all shared private link resources managed by the given service.
200
- * @param nextPageLink The NextLink from the previous successful call to List operation.
201
- * @param [options] The optional parameters
202
- * @returns Promise<Models.SharedPrivateLinkResourcesListByServiceNextResponse>
203
- */
204
- listByServiceNext(nextPageLink: string, options?: Models.SharedPrivateLinkResourcesListByServiceNextOptionalParams): Promise<Models.SharedPrivateLinkResourcesListByServiceNextResponse>;
205
- /**
206
- * @param nextPageLink The NextLink from the previous successful call to List operation.
207
- * @param callback The callback
356
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
357
+ * obtain this value from the Azure Resource Manager API or the portal.
358
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
359
+ * specified resource group.
360
+ * @param options The options parameters.
208
361
  */
209
- listByServiceNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): void;
362
+ private _listByService(
363
+ resourceGroupName: string,
364
+ searchServiceName: string,
365
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams
366
+ ): Promise<SharedPrivateLinkResourcesListByServiceResponse> {
367
+ return this.client.sendOperationRequest(
368
+ { resourceGroupName, searchServiceName, options },
369
+ listByServiceOperationSpec
370
+ );
371
+ }
372
+
210
373
  /**
211
- * @param nextPageLink The NextLink from the previous successful call to List operation.
212
- * @param options The optional parameters
213
- * @param callback The callback
374
+ * ListByServiceNext
375
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
376
+ * obtain this value from the Azure Resource Manager API or the portal.
377
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
378
+ * specified resource group.
379
+ * @param nextLink The nextLink from the previous successful call to the ListByService method.
380
+ * @param options The options parameters.
214
381
  */
215
- listByServiceNext(nextPageLink: string, options: Models.SharedPrivateLinkResourcesListByServiceNextOptionalParams, callback: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): void;
216
- listByServiceNext(nextPageLink: string, options?: Models.SharedPrivateLinkResourcesListByServiceNextOptionalParams | msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.SharedPrivateLinkResourceListResult>): Promise<Models.SharedPrivateLinkResourcesListByServiceNextResponse> {
382
+ private _listByServiceNext(
383
+ resourceGroupName: string,
384
+ searchServiceName: string,
385
+ nextLink: string,
386
+ options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams
387
+ ): Promise<SharedPrivateLinkResourcesListByServiceNextResponse> {
217
388
  return this.client.sendOperationRequest(
218
- {
219
- nextPageLink,
220
- options
221
- },
222
- listByServiceNextOperationSpec,
223
- callback) as Promise<Models.SharedPrivateLinkResourcesListByServiceNextResponse>;
389
+ { resourceGroupName, searchServiceName, nextLink, options },
390
+ listByServiceNextOperationSpec
391
+ );
224
392
  }
225
393
  }
226
-
227
394
  // Operation Specifications
228
- const serializer = new msRest.Serializer(Mappers);
229
- const getOperationSpec: msRest.OperationSpec = {
230
- httpMethod: "GET",
231
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
232
- urlParameters: [
233
- Parameters.resourceGroupName,
234
- Parameters.searchServiceName,
235
- Parameters.sharedPrivateLinkResourceName,
236
- Parameters.subscriptionId
237
- ],
238
- queryParameters: [
239
- Parameters.apiVersion
240
- ],
241
- headerParameters: [
242
- Parameters.acceptLanguage,
243
- Parameters.clientRequestId
244
- ],
395
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
396
+
397
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
398
+ path:
399
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
400
+ httpMethod: "PUT",
245
401
  responses: {
246
402
  200: {
247
403
  bodyMapper: Mappers.SharedPrivateLinkResource
248
404
  },
405
+ 201: {
406
+ bodyMapper: Mappers.SharedPrivateLinkResource
407
+ },
408
+ 202: {
409
+ bodyMapper: Mappers.SharedPrivateLinkResource
410
+ },
411
+ 204: {
412
+ bodyMapper: Mappers.SharedPrivateLinkResource
413
+ },
249
414
  default: {
250
415
  bodyMapper: Mappers.CloudError
251
416
  }
252
417
  },
253
- serializer
254
- };
255
-
256
- const listByServiceOperationSpec: msRest.OperationSpec = {
257
- httpMethod: "GET",
258
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
418
+ requestBody: Parameters.sharedPrivateLinkResource,
419
+ queryParameters: [Parameters.apiVersion],
259
420
  urlParameters: [
260
- Parameters.subscriptionId,
421
+ Parameters.$host,
261
422
  Parameters.resourceGroupName,
262
- Parameters.searchServiceName
263
- ],
264
- queryParameters: [
265
- Parameters.apiVersion
423
+ Parameters.searchServiceName,
424
+ Parameters.subscriptionId,
425
+ Parameters.sharedPrivateLinkResourceName
266
426
  ],
267
427
  headerParameters: [
268
- Parameters.acceptLanguage,
269
- Parameters.clientRequestId
428
+ Parameters.accept,
429
+ Parameters.clientRequestId,
430
+ Parameters.contentType
270
431
  ],
432
+ mediaType: "json",
433
+ serializer
434
+ };
435
+ const getOperationSpec: coreClient.OperationSpec = {
436
+ path:
437
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
438
+ httpMethod: "GET",
271
439
  responses: {
272
440
  200: {
273
- bodyMapper: Mappers.SharedPrivateLinkResourceListResult
441
+ bodyMapper: Mappers.SharedPrivateLinkResource
274
442
  },
275
443
  default: {
276
444
  bodyMapper: Mappers.CloudError
277
445
  }
278
446
  },
279
- serializer
280
- };
281
-
282
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
283
- httpMethod: "PUT",
284
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
447
+ queryParameters: [Parameters.apiVersion],
285
448
  urlParameters: [
449
+ Parameters.$host,
286
450
  Parameters.resourceGroupName,
287
451
  Parameters.searchServiceName,
288
- Parameters.sharedPrivateLinkResourceName,
289
- Parameters.subscriptionId
290
- ],
291
- queryParameters: [
292
- Parameters.apiVersion
293
- ],
294
- headerParameters: [
295
- Parameters.acceptLanguage,
296
- Parameters.clientRequestId
452
+ Parameters.subscriptionId,
453
+ Parameters.sharedPrivateLinkResourceName
297
454
  ],
298
- requestBody: {
299
- parameterPath: "sharedPrivateLinkResource",
300
- mapper: {
301
- ...Mappers.SharedPrivateLinkResource,
302
- required: true
303
- }
304
- },
455
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
456
+ serializer
457
+ };
458
+ const deleteOperationSpec: coreClient.OperationSpec = {
459
+ path:
460
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
461
+ httpMethod: "DELETE",
305
462
  responses: {
306
- 200: {
307
- bodyMapper: Mappers.SharedPrivateLinkResource
308
- },
463
+ 200: {},
464
+ 201: {},
309
465
  202: {},
466
+ 204: {},
310
467
  default: {
311
468
  bodyMapper: Mappers.CloudError
312
469
  }
313
470
  },
314
- serializer
315
- };
316
-
317
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
318
- httpMethod: "DELETE",
319
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
471
+ queryParameters: [Parameters.apiVersion],
320
472
  urlParameters: [
473
+ Parameters.$host,
321
474
  Parameters.resourceGroupName,
322
475
  Parameters.searchServiceName,
323
- Parameters.sharedPrivateLinkResourceName,
324
- Parameters.subscriptionId
325
- ],
326
- queryParameters: [
327
- Parameters.apiVersion
328
- ],
329
- headerParameters: [
330
- Parameters.acceptLanguage,
331
- Parameters.clientRequestId
476
+ Parameters.subscriptionId,
477
+ Parameters.sharedPrivateLinkResourceName
332
478
  ],
479
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
480
+ serializer
481
+ };
482
+ const listByServiceOperationSpec: coreClient.OperationSpec = {
483
+ path:
484
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
485
+ httpMethod: "GET",
333
486
  responses: {
334
- 202: {},
335
- 204: {},
336
- 404: {},
487
+ 200: {
488
+ bodyMapper: Mappers.SharedPrivateLinkResourceListResult
489
+ },
337
490
  default: {
338
491
  bodyMapper: Mappers.CloudError
339
492
  }
340
493
  },
494
+ queryParameters: [Parameters.apiVersion],
495
+ urlParameters: [
496
+ Parameters.$host,
497
+ Parameters.resourceGroupName,
498
+ Parameters.searchServiceName,
499
+ Parameters.subscriptionId
500
+ ],
501
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
341
502
  serializer
342
503
  };
343
-
344
- const listByServiceNextOperationSpec: msRest.OperationSpec = {
345
- httpMethod: "GET",
346
- baseUrl: "https://management.azure.com",
504
+ const listByServiceNextOperationSpec: coreClient.OperationSpec = {
347
505
  path: "{nextLink}",
348
- urlParameters: [
349
- Parameters.nextPageLink
350
- ],
351
- queryParameters: [
352
- Parameters.apiVersion
353
- ],
354
- headerParameters: [
355
- Parameters.acceptLanguage,
356
- Parameters.clientRequestId
357
- ],
506
+ httpMethod: "GET",
358
507
  responses: {
359
508
  200: {
360
509
  bodyMapper: Mappers.SharedPrivateLinkResourceListResult
@@ -363,5 +512,14 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = {
363
512
  bodyMapper: Mappers.CloudError
364
513
  }
365
514
  },
515
+ queryParameters: [Parameters.apiVersion],
516
+ urlParameters: [
517
+ Parameters.$host,
518
+ Parameters.resourceGroupName,
519
+ Parameters.searchServiceName,
520
+ Parameters.subscriptionId,
521
+ Parameters.nextLink
522
+ ],
523
+ headerParameters: [Parameters.accept, Parameters.clientRequestId],
366
524
  serializer
367
525
  };