@azure/arm-healthcareapis 1.1.0 → 2.0.0-alpha.20220201.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +2292 -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/samples-dev/checkNameAvailability.d.ts +2 -0
  9. package/dist-esm/samples-dev/checkNameAvailability.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/checkNameAvailability.js +33 -0
  11. package/dist-esm/samples-dev/checkNameAvailability.js.map +1 -0
  12. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts +2 -0
  13. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js +62 -0
  15. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js.map +1 -0
  16. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts +2 -0
  17. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js +39 -0
  19. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js.map +1 -0
  20. package/dist-esm/samples-dev/deleteService.d.ts +2 -0
  21. package/dist-esm/samples-dev/deleteService.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/deleteService.js +31 -0
  23. package/dist-esm/samples-dev/deleteService.js.map +1 -0
  24. package/dist-esm/samples-dev/getMetadata.d.ts +2 -0
  25. package/dist-esm/samples-dev/getMetadata.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/getMetadata.js +31 -0
  27. package/dist-esm/samples-dev/getMetadata.js.map +1 -0
  28. package/dist-esm/samples-dev/getOperationResult.d.ts +2 -0
  29. package/dist-esm/samples-dev/getOperationResult.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/getOperationResult.js +31 -0
  31. package/dist-esm/samples-dev/getOperationResult.js.map +1 -0
  32. package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts +2 -0
  33. package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js +44 -0
  35. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js.map +1 -0
  36. package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts +2 -0
  37. package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/listAllServicesInSubscription.js +43 -0
  39. package/dist-esm/samples-dev/listAllServicesInSubscription.js.map +1 -0
  40. package/dist-esm/samples-dev/listOperations.d.ts +2 -0
  41. package/dist-esm/samples-dev/listOperations.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/listOperations.js +43 -0
  43. package/dist-esm/samples-dev/listOperations.js.map +1 -0
  44. package/dist-esm/samples-dev/patchService.d.ts +2 -0
  45. package/dist-esm/samples-dev/patchService.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/patchService.js +34 -0
  47. package/dist-esm/samples-dev/patchService.js.map +1 -0
  48. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts +2 -0
  49. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js +38 -0
  51. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js.map +1 -0
  52. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts +2 -0
  53. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js +32 -0
  55. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js.map +1 -0
  56. package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts +2 -0
  57. package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/privateEndpointConnectionList.js +45 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionList.js.map +1 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts +2 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js +32 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js.map +1 -0
  64. package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts +2 -0
  65. package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/privateLinkResourcesGet.js +32 -0
  67. package/dist-esm/samples-dev/privateLinkResourcesGet.js.map +1 -0
  68. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts +2 -0
  69. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js +31 -0
  71. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js.map +1 -0
  72. package/dist-esm/src/healthcareApisManagementClient.d.ts +22 -0
  73. package/dist-esm/src/healthcareApisManagementClient.d.ts.map +1 -0
  74. package/dist-esm/src/healthcareApisManagementClient.js +55 -0
  75. package/dist-esm/src/healthcareApisManagementClient.js.map +1 -0
  76. package/dist-esm/src/index.d.ts +5 -0
  77. package/dist-esm/src/index.d.ts.map +1 -0
  78. package/dist-esm/src/index.js +12 -0
  79. package/dist-esm/src/index.js.map +1 -0
  80. package/dist-esm/src/lroImpl.d.ts +16 -0
  81. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  82. package/dist-esm/src/lroImpl.js +29 -0
  83. package/dist-esm/src/lroImpl.js.map +1 -0
  84. package/dist-esm/src/models/index.d.ts +609 -0
  85. package/dist-esm/src/models/index.d.ts.map +1 -0
  86. package/dist-esm/src/models/index.js +65 -0
  87. package/dist-esm/src/models/index.js.map +1 -0
  88. package/dist-esm/src/models/mappers.d.ts +32 -0
  89. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  90. package/{esm → dist-esm/src}/models/mappers.js +335 -321
  91. package/dist-esm/src/models/mappers.js.map +1 -0
  92. package/dist-esm/src/models/parameters.d.ts +18 -0
  93. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  94. package/dist-esm/src/models/parameters.js +159 -0
  95. package/dist-esm/src/models/parameters.js.map +1 -0
  96. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  97. package/dist-esm/src/operations/index.d.ts.map +1 -0
  98. package/{esm → dist-esm/src}/operations/index.js +3 -5
  99. package/dist-esm/src/operations/index.js.map +1 -0
  100. package/dist-esm/src/operations/operationResults.d.ts +20 -0
  101. package/dist-esm/src/operations/operationResults.d.ts.map +1 -0
  102. package/dist-esm/src/operations/operationResults.js +56 -0
  103. package/dist-esm/src/operations/operationResults.js.map +1 -0
  104. package/dist-esm/src/operations/operations.d.ts +32 -0
  105. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  106. package/dist-esm/src/operations/operations.js +120 -0
  107. package/dist-esm/src/operations/operations.js.map +1 -0
  108. package/dist-esm/src/operations/privateEndpointConnections.d.ts +78 -0
  109. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  110. package/dist-esm/src/operations/privateEndpointConnections.js +314 -0
  111. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  112. package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
  113. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  114. package/dist-esm/src/operations/privateLinkResources.js +85 -0
  115. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  116. package/dist-esm/src/operations/services.d.ts +114 -0
  117. package/dist-esm/src/operations/services.d.ts.map +1 -0
  118. package/dist-esm/src/operations/services.js +527 -0
  119. package/dist-esm/src/operations/services.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  121. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  123. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/operationResults.d.ts +12 -0
  125. package/dist-esm/src/operationsInterfaces/operationResults.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/operationResults.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/operationResults.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  129. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
  133. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
  137. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/services.d.ts +78 -0
  141. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/services.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  144. package/dist-esm/test/sampleTest.d.ts +2 -0
  145. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  146. package/dist-esm/test/sampleTest.js +40 -0
  147. package/dist-esm/test/sampleTest.js.map +1 -0
  148. package/package.json +81 -22
  149. package/review/arm-healthcareapis.api.md +535 -0
  150. package/rollup.config.js +181 -30
  151. package/src/healthcareApisManagementClient.ts +82 -43
  152. package/src/index.ts +12 -0
  153. package/src/lroImpl.ts +34 -0
  154. package/src/models/index.ts +450 -739
  155. package/src/models/mappers.ts +336 -319
  156. package/src/models/parameters.ts +111 -48
  157. package/src/operations/index.ts +3 -5
  158. package/src/operations/operationResults.ts +39 -54
  159. package/src/operations/operations.ts +87 -73
  160. package/src/operations/privateEndpointConnections.ts +321 -161
  161. package/src/operations/privateLinkResources.ts +64 -97
  162. package/src/operations/services.ts +538 -362
  163. package/src/operationsInterfaces/index.ts +13 -0
  164. package/src/operationsInterfaces/operationResults.ts +27 -0
  165. package/src/operationsInterfaces/operations.ts +22 -0
  166. package/src/operationsInterfaces/privateEndpointConnections.ts +115 -0
  167. package/src/operationsInterfaces/privateLinkResources.ts +42 -0
  168. package/src/operationsInterfaces/services.ts +152 -0
  169. package/tsconfig.json +5 -4
  170. package/types/arm-healthcareapis.d.ts +885 -0
  171. package/types/tsdoc-metadata.json +11 -0
  172. package/dist/arm-healthcareapis.js +0 -2100
  173. package/dist/arm-healthcareapis.js.map +0 -1
  174. package/dist/arm-healthcareapis.min.js +0 -1
  175. package/dist/arm-healthcareapis.min.js.map +0 -1
  176. package/esm/healthcareApisManagementClient.d.ts +0 -28
  177. package/esm/healthcareApisManagementClient.d.ts.map +0 -1
  178. package/esm/healthcareApisManagementClient.js +0 -42
  179. package/esm/healthcareApisManagementClient.js.map +0 -1
  180. package/esm/healthcareApisManagementClientContext.d.ts +0 -22
  181. package/esm/healthcareApisManagementClientContext.d.ts.map +0 -1
  182. package/esm/healthcareApisManagementClientContext.js +0 -61
  183. package/esm/healthcareApisManagementClientContext.js.map +0 -1
  184. package/esm/models/index.d.ts +0 -907
  185. package/esm/models/index.d.ts.map +0 -1
  186. package/esm/models/index.js +0 -8
  187. package/esm/models/index.js.map +0 -1
  188. package/esm/models/mappers.d.ts +0 -33
  189. package/esm/models/mappers.d.ts.map +0 -1
  190. package/esm/models/mappers.js.map +0 -1
  191. package/esm/models/operationResultsMappers.d.ts +0 -2
  192. package/esm/models/operationResultsMappers.d.ts.map +0 -1
  193. package/esm/models/operationResultsMappers.js +0 -9
  194. package/esm/models/operationResultsMappers.js.map +0 -1
  195. package/esm/models/operationsMappers.d.ts +0 -2
  196. package/esm/models/operationsMappers.d.ts.map +0 -1
  197. package/esm/models/operationsMappers.js +0 -9
  198. package/esm/models/operationsMappers.js.map +0 -1
  199. package/esm/models/parameters.d.ts +0 -12
  200. package/esm/models/parameters.d.ts.map +0 -1
  201. package/esm/models/parameters.js +0 -120
  202. package/esm/models/parameters.js.map +0 -1
  203. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  204. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  205. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  206. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  207. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  208. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  209. package/esm/models/privateLinkResourcesMappers.js +0 -9
  210. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  211. package/esm/models/servicesMappers.d.ts +0 -2
  212. package/esm/models/servicesMappers.d.ts.map +0 -1
  213. package/esm/models/servicesMappers.js +0 -9
  214. package/esm/models/servicesMappers.js.map +0 -1
  215. package/esm/operations/index.d.ts.map +0 -1
  216. package/esm/operations/index.js.map +0 -1
  217. package/esm/operations/operationResults.d.ts +0 -34
  218. package/esm/operations/operationResults.d.ts.map +0 -1
  219. package/esm/operations/operationResults.js +0 -61
  220. package/esm/operations/operationResults.js.map +0 -1
  221. package/esm/operations/operations.d.ts +0 -46
  222. package/esm/operations/operations.d.ts.map +0 -1
  223. package/esm/operations/operations.js +0 -77
  224. package/esm/operations/operations.js.map +0 -1
  225. package/esm/operations/privateEndpointConnections.d.ts +0 -104
  226. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  227. package/esm/operations/privateEndpointConnections.js +0 -209
  228. package/esm/operations/privateEndpointConnections.js.map +0 -1
  229. package/esm/operations/privateLinkResources.d.ts +0 -58
  230. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  231. package/esm/operations/privateLinkResources.js +0 -91
  232. package/esm/operations/privateLinkResources.js.map +0 -1
  233. package/esm/operations/services.d.ts +0 -177
  234. package/esm/operations/services.d.ts.map +0 -1
  235. package/esm/operations/services.js +0 -362
  236. package/esm/operations/services.js.map +0 -1
  237. package/src/healthcareApisManagementClientContext.ts +0 -68
  238. package/src/models/operationResultsMappers.ts +0 -13
  239. package/src/models/operationsMappers.ts +0 -15
  240. package/src/models/privateEndpointConnectionsMappers.ts +0 -31
  241. package/src/models/privateLinkResourcesMappers.ts +0 -31
  242. package/src/models/servicesMappers.ts +0 -34
@@ -1,28 +1,32 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/privateLinkResourcesMappers";
9
+ import { PrivateLinkResources } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
14
12
  import * as Parameters from "../models/parameters";
15
- import { HealthcareApisManagementClientContext } from "../healthcareApisManagementClientContext";
13
+ import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
14
+ import {
15
+ PrivateLinkResourcesListByServiceOptionalParams,
16
+ PrivateLinkResourcesListByServiceResponse,
17
+ PrivateLinkResourcesGetOptionalParams,
18
+ PrivateLinkResourcesGetResponse
19
+ } from "../models";
16
20
 
17
- /** Class representing a PrivateLinkResources. */
18
- export class PrivateLinkResources {
19
- private readonly client: HealthcareApisManagementClientContext;
21
+ /** Class containing PrivateLinkResources operations. */
22
+ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
23
+ private readonly client: HealthcareApisManagementClient;
20
24
 
21
25
  /**
22
- * Create a PrivateLinkResources.
23
- * @param {HealthcareApisManagementClientContext} client Reference to the service client.
26
+ * Initialize a new instance of the class PrivateLinkResources class.
27
+ * @param client Reference to the service client
24
28
  */
25
- constructor(client: HealthcareApisManagementClientContext) {
29
+ constructor(client: HealthcareApisManagementClient) {
26
30
  this.client = client;
27
31
  }
28
32
 
@@ -30,32 +34,17 @@ export class PrivateLinkResources {
30
34
  * Gets the private link resources that need to be created for a service.
31
35
  * @param resourceGroupName The name of the resource group that contains the service instance.
32
36
  * @param resourceName The name of the service instance.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.PrivateLinkResourcesListByServiceResponse>
37
+ * @param options The options parameters.
35
38
  */
36
- listByService(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListByServiceResponse>;
37
- /**
38
- * @param resourceGroupName The name of the resource group that contains the service instance.
39
- * @param resourceName The name of the service instance.
40
- * @param callback The callback
41
- */
42
- listByService(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
43
- /**
44
- * @param resourceGroupName The name of the resource group that contains the service instance.
45
- * @param resourceName The name of the service instance.
46
- * @param options The optional parameters
47
- * @param callback The callback
48
- */
49
- listByService(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
50
- listByService(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): Promise<Models.PrivateLinkResourcesListByServiceResponse> {
39
+ listByService(
40
+ resourceGroupName: string,
41
+ resourceName: string,
42
+ options?: PrivateLinkResourcesListByServiceOptionalParams
43
+ ): Promise<PrivateLinkResourcesListByServiceResponse> {
51
44
  return this.client.sendOperationRequest(
52
- {
53
- resourceGroupName,
54
- resourceName,
55
- options
56
- },
57
- listByServiceOperationSpec,
58
- callback) as Promise<Models.PrivateLinkResourcesListByServiceResponse>;
45
+ { resourceGroupName, resourceName, options },
46
+ listByServiceOperationSpec
47
+ );
59
48
  }
60
49
 
61
50
  /**
@@ -63,87 +52,65 @@ export class PrivateLinkResources {
63
52
  * @param resourceGroupName The name of the resource group that contains the service instance.
64
53
  * @param resourceName The name of the service instance.
65
54
  * @param groupName The name of the private link resource group.
66
- * @param [options] The optional parameters
67
- * @returns Promise<Models.PrivateLinkResourcesGetResponse>
55
+ * @param options The options parameters.
68
56
  */
69
- get(resourceGroupName: string, resourceName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesGetResponse>;
70
- /**
71
- * @param resourceGroupName The name of the resource group that contains the service instance.
72
- * @param resourceName The name of the service instance.
73
- * @param groupName The name of the private link resource group.
74
- * @param callback The callback
75
- */
76
- get(resourceGroupName: string, resourceName: string, groupName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResource>): void;
77
- /**
78
- * @param resourceGroupName The name of the resource group that contains the service instance.
79
- * @param resourceName The name of the service instance.
80
- * @param groupName The name of the private link resource group.
81
- * @param options The optional parameters
82
- * @param callback The callback
83
- */
84
- get(resourceGroupName: string, resourceName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResource>): void;
85
- get(resourceGroupName: string, resourceName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResource>, callback?: msRest.ServiceCallback<Models.PrivateLinkResource>): Promise<Models.PrivateLinkResourcesGetResponse> {
57
+ get(
58
+ resourceGroupName: string,
59
+ resourceName: string,
60
+ groupName: string,
61
+ options?: PrivateLinkResourcesGetOptionalParams
62
+ ): Promise<PrivateLinkResourcesGetResponse> {
86
63
  return this.client.sendOperationRequest(
87
- {
88
- resourceGroupName,
89
- resourceName,
90
- groupName,
91
- options
92
- },
93
- getOperationSpec,
94
- callback) as Promise<Models.PrivateLinkResourcesGetResponse>;
64
+ { resourceGroupName, resourceName, groupName, options },
65
+ getOperationSpec
66
+ );
95
67
  }
96
68
  }
97
-
98
69
  // Operation Specifications
99
- const serializer = new msRest.Serializer(Mappers);
100
- const listByServiceOperationSpec: msRest.OperationSpec = {
70
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
71
+
72
+ const listByServiceOperationSpec: coreClient.OperationSpec = {
73
+ path:
74
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",
101
75
  httpMethod: "GET",
102
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",
103
- urlParameters: [
104
- Parameters.subscriptionId,
105
- Parameters.resourceGroupName,
106
- Parameters.resourceName
107
- ],
108
- queryParameters: [
109
- Parameters.apiVersion
110
- ],
111
- headerParameters: [
112
- Parameters.acceptLanguage
113
- ],
114
76
  responses: {
115
77
  200: {
116
- bodyMapper: Mappers.PrivateLinkResourceListResult
78
+ bodyMapper: Mappers.PrivateLinkResourceListResultDescription
117
79
  },
118
80
  default: {
119
81
  bodyMapper: Mappers.ErrorDetails
120
82
  }
121
83
  },
122
- serializer
123
- };
124
-
125
- const getOperationSpec: msRest.OperationSpec = {
126
- httpMethod: "GET",
127
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",
84
+ queryParameters: [Parameters.apiVersion],
128
85
  urlParameters: [
86
+ Parameters.$host,
129
87
  Parameters.subscriptionId,
130
88
  Parameters.resourceGroupName,
131
- Parameters.resourceName,
132
- Parameters.groupName
133
- ],
134
- queryParameters: [
135
- Parameters.apiVersion
136
- ],
137
- headerParameters: [
138
- Parameters.acceptLanguage
89
+ Parameters.resourceName
139
90
  ],
91
+ headerParameters: [Parameters.accept],
92
+ serializer
93
+ };
94
+ const getOperationSpec: coreClient.OperationSpec = {
95
+ path:
96
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",
97
+ httpMethod: "GET",
140
98
  responses: {
141
99
  200: {
142
- bodyMapper: Mappers.PrivateLinkResource
100
+ bodyMapper: Mappers.PrivateLinkResourceDescription
143
101
  },
144
102
  default: {
145
103
  bodyMapper: Mappers.ErrorDetails
146
104
  }
147
105
  },
106
+ queryParameters: [Parameters.apiVersion],
107
+ urlParameters: [
108
+ Parameters.$host,
109
+ Parameters.subscriptionId,
110
+ Parameters.resourceGroupName,
111
+ Parameters.resourceName,
112
+ Parameters.groupName
113
+ ],
114
+ headerParameters: [Parameters.accept],
148
115
  serializer
149
116
  };