@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
package/dist/index.js ADDED
@@ -0,0 +1,2292 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+ var coreLro = require('@azure/core-lro');
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation.
11
+ * Licensed under the MIT License.
12
+ *
13
+ * Code generated by Microsoft (R) AutoRest Code Generator.
14
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
+ */
16
+ (function (KnownProvisioningState) {
17
+ KnownProvisioningState["Deleting"] = "Deleting";
18
+ KnownProvisioningState["Succeeded"] = "Succeeded";
19
+ KnownProvisioningState["Creating"] = "Creating";
20
+ KnownProvisioningState["Accepted"] = "Accepted";
21
+ KnownProvisioningState["Verifying"] = "Verifying";
22
+ KnownProvisioningState["Updating"] = "Updating";
23
+ KnownProvisioningState["Failed"] = "Failed";
24
+ KnownProvisioningState["Canceled"] = "Canceled";
25
+ KnownProvisioningState["Deprovisioned"] = "Deprovisioned";
26
+ })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
27
+ (function (KnownPrivateEndpointServiceConnectionStatus) {
28
+ KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
29
+ KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
30
+ KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
31
+ })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
32
+ (function (KnownPrivateEndpointConnectionProvisioningState) {
33
+ KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
34
+ KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
35
+ KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
36
+ KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
37
+ })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
38
+ (function (KnownPublicNetworkAccess) {
39
+ KnownPublicNetworkAccess["Enabled"] = "Enabled";
40
+ KnownPublicNetworkAccess["Disabled"] = "Disabled";
41
+ })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
42
+ (function (KnownCreatedByType) {
43
+ KnownCreatedByType["User"] = "User";
44
+ KnownCreatedByType["Application"] = "Application";
45
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
46
+ KnownCreatedByType["Key"] = "Key";
47
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
48
+ (function (KnownManagedServiceIdentityType) {
49
+ KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
50
+ KnownManagedServiceIdentityType["None"] = "None";
51
+ })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
52
+ (function (KnownOperationResultStatus) {
53
+ KnownOperationResultStatus["Canceled"] = "Canceled";
54
+ KnownOperationResultStatus["Succeeded"] = "Succeeded";
55
+ KnownOperationResultStatus["Failed"] = "Failed";
56
+ KnownOperationResultStatus["Requested"] = "Requested";
57
+ KnownOperationResultStatus["Running"] = "Running";
58
+ })(exports.KnownOperationResultStatus || (exports.KnownOperationResultStatus = {}));
59
+
60
+ /*
61
+ * Copyright (c) Microsoft Corporation.
62
+ * Licensed under the MIT License.
63
+ *
64
+ * Code generated by Microsoft (R) AutoRest Code Generator.
65
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
+ */
67
+ const ServicesProperties = {
68
+ type: {
69
+ name: "Composite",
70
+ className: "ServicesProperties",
71
+ modelProperties: {
72
+ provisioningState: {
73
+ serializedName: "provisioningState",
74
+ readOnly: true,
75
+ type: {
76
+ name: "String"
77
+ }
78
+ },
79
+ accessPolicies: {
80
+ serializedName: "accessPolicies",
81
+ type: {
82
+ name: "Sequence",
83
+ element: {
84
+ type: {
85
+ name: "Composite",
86
+ className: "ServiceAccessPolicyEntry"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ cosmosDbConfiguration: {
92
+ serializedName: "cosmosDbConfiguration",
93
+ type: {
94
+ name: "Composite",
95
+ className: "ServiceCosmosDbConfigurationInfo"
96
+ }
97
+ },
98
+ authenticationConfiguration: {
99
+ serializedName: "authenticationConfiguration",
100
+ type: {
101
+ name: "Composite",
102
+ className: "ServiceAuthenticationConfigurationInfo"
103
+ }
104
+ },
105
+ corsConfiguration: {
106
+ serializedName: "corsConfiguration",
107
+ type: {
108
+ name: "Composite",
109
+ className: "ServiceCorsConfigurationInfo"
110
+ }
111
+ },
112
+ exportConfiguration: {
113
+ serializedName: "exportConfiguration",
114
+ type: {
115
+ name: "Composite",
116
+ className: "ServiceExportConfigurationInfo"
117
+ }
118
+ },
119
+ privateEndpointConnections: {
120
+ serializedName: "privateEndpointConnections",
121
+ type: {
122
+ name: "Sequence",
123
+ element: {
124
+ type: {
125
+ name: "Composite",
126
+ className: "PrivateEndpointConnection"
127
+ }
128
+ }
129
+ }
130
+ },
131
+ publicNetworkAccess: {
132
+ serializedName: "publicNetworkAccess",
133
+ type: {
134
+ name: "String"
135
+ }
136
+ },
137
+ acrConfiguration: {
138
+ serializedName: "acrConfiguration",
139
+ type: {
140
+ name: "Composite",
141
+ className: "ServiceAcrConfigurationInfo"
142
+ }
143
+ }
144
+ }
145
+ }
146
+ };
147
+ const ServiceAccessPolicyEntry = {
148
+ type: {
149
+ name: "Composite",
150
+ className: "ServiceAccessPolicyEntry",
151
+ modelProperties: {
152
+ objectId: {
153
+ constraints: {
154
+ Pattern: new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")
155
+ },
156
+ serializedName: "objectId",
157
+ required: true,
158
+ type: {
159
+ name: "String"
160
+ }
161
+ }
162
+ }
163
+ }
164
+ };
165
+ const ServiceCosmosDbConfigurationInfo = {
166
+ type: {
167
+ name: "Composite",
168
+ className: "ServiceCosmosDbConfigurationInfo",
169
+ modelProperties: {
170
+ offerThroughput: {
171
+ constraints: {
172
+ InclusiveMaximum: 10000,
173
+ InclusiveMinimum: 400
174
+ },
175
+ serializedName: "offerThroughput",
176
+ type: {
177
+ name: "Number"
178
+ }
179
+ },
180
+ keyVaultKeyUri: {
181
+ serializedName: "keyVaultKeyUri",
182
+ type: {
183
+ name: "String"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ };
189
+ const ServiceAuthenticationConfigurationInfo = {
190
+ type: {
191
+ name: "Composite",
192
+ className: "ServiceAuthenticationConfigurationInfo",
193
+ modelProperties: {
194
+ authority: {
195
+ serializedName: "authority",
196
+ type: {
197
+ name: "String"
198
+ }
199
+ },
200
+ audience: {
201
+ serializedName: "audience",
202
+ type: {
203
+ name: "String"
204
+ }
205
+ },
206
+ smartProxyEnabled: {
207
+ serializedName: "smartProxyEnabled",
208
+ type: {
209
+ name: "Boolean"
210
+ }
211
+ }
212
+ }
213
+ }
214
+ };
215
+ const ServiceCorsConfigurationInfo = {
216
+ type: {
217
+ name: "Composite",
218
+ className: "ServiceCorsConfigurationInfo",
219
+ modelProperties: {
220
+ origins: {
221
+ serializedName: "origins",
222
+ type: {
223
+ name: "Sequence",
224
+ element: {
225
+ constraints: {
226
+ Pattern: new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")
227
+ },
228
+ type: {
229
+ name: "String"
230
+ }
231
+ }
232
+ }
233
+ },
234
+ headers: {
235
+ serializedName: "headers",
236
+ type: {
237
+ name: "Sequence",
238
+ element: {
239
+ type: {
240
+ name: "String"
241
+ }
242
+ }
243
+ }
244
+ },
245
+ methods: {
246
+ serializedName: "methods",
247
+ type: {
248
+ name: "Sequence",
249
+ element: {
250
+ type: {
251
+ name: "String"
252
+ }
253
+ }
254
+ }
255
+ },
256
+ maxAge: {
257
+ constraints: {
258
+ InclusiveMaximum: 99999,
259
+ InclusiveMinimum: 0
260
+ },
261
+ serializedName: "maxAge",
262
+ type: {
263
+ name: "Number"
264
+ }
265
+ },
266
+ allowCredentials: {
267
+ serializedName: "allowCredentials",
268
+ type: {
269
+ name: "Boolean"
270
+ }
271
+ }
272
+ }
273
+ }
274
+ };
275
+ const ServiceExportConfigurationInfo = {
276
+ type: {
277
+ name: "Composite",
278
+ className: "ServiceExportConfigurationInfo",
279
+ modelProperties: {
280
+ storageAccountName: {
281
+ serializedName: "storageAccountName",
282
+ type: {
283
+ name: "String"
284
+ }
285
+ }
286
+ }
287
+ }
288
+ };
289
+ const PrivateEndpoint = {
290
+ type: {
291
+ name: "Composite",
292
+ className: "PrivateEndpoint",
293
+ modelProperties: {
294
+ id: {
295
+ serializedName: "id",
296
+ readOnly: true,
297
+ type: {
298
+ name: "String"
299
+ }
300
+ }
301
+ }
302
+ }
303
+ };
304
+ const PrivateLinkServiceConnectionState = {
305
+ type: {
306
+ name: "Composite",
307
+ className: "PrivateLinkServiceConnectionState",
308
+ modelProperties: {
309
+ status: {
310
+ serializedName: "status",
311
+ type: {
312
+ name: "String"
313
+ }
314
+ },
315
+ description: {
316
+ serializedName: "description",
317
+ type: {
318
+ name: "String"
319
+ }
320
+ },
321
+ actionsRequired: {
322
+ serializedName: "actionsRequired",
323
+ type: {
324
+ name: "String"
325
+ }
326
+ }
327
+ }
328
+ }
329
+ };
330
+ const Resource = {
331
+ type: {
332
+ name: "Composite",
333
+ className: "Resource",
334
+ modelProperties: {
335
+ id: {
336
+ serializedName: "id",
337
+ readOnly: true,
338
+ type: {
339
+ name: "String"
340
+ }
341
+ },
342
+ name: {
343
+ serializedName: "name",
344
+ readOnly: true,
345
+ type: {
346
+ name: "String"
347
+ }
348
+ },
349
+ type: {
350
+ serializedName: "type",
351
+ readOnly: true,
352
+ type: {
353
+ name: "String"
354
+ }
355
+ }
356
+ }
357
+ }
358
+ };
359
+ const ServiceAcrConfigurationInfo = {
360
+ type: {
361
+ name: "Composite",
362
+ className: "ServiceAcrConfigurationInfo",
363
+ modelProperties: {
364
+ loginServers: {
365
+ serializedName: "loginServers",
366
+ type: {
367
+ name: "Sequence",
368
+ element: {
369
+ type: {
370
+ name: "String"
371
+ }
372
+ }
373
+ }
374
+ }
375
+ }
376
+ }
377
+ };
378
+ const SystemData = {
379
+ type: {
380
+ name: "Composite",
381
+ className: "SystemData",
382
+ modelProperties: {
383
+ createdBy: {
384
+ serializedName: "createdBy",
385
+ type: {
386
+ name: "String"
387
+ }
388
+ },
389
+ createdByType: {
390
+ serializedName: "createdByType",
391
+ type: {
392
+ name: "String"
393
+ }
394
+ },
395
+ createdAt: {
396
+ serializedName: "createdAt",
397
+ type: {
398
+ name: "DateTime"
399
+ }
400
+ },
401
+ lastModifiedBy: {
402
+ serializedName: "lastModifiedBy",
403
+ type: {
404
+ name: "String"
405
+ }
406
+ },
407
+ lastModifiedByType: {
408
+ serializedName: "lastModifiedByType",
409
+ type: {
410
+ name: "String"
411
+ }
412
+ },
413
+ lastModifiedAt: {
414
+ serializedName: "lastModifiedAt",
415
+ type: {
416
+ name: "DateTime"
417
+ }
418
+ }
419
+ }
420
+ }
421
+ };
422
+ const ServicesResource = {
423
+ type: {
424
+ name: "Composite",
425
+ className: "ServicesResource",
426
+ modelProperties: {
427
+ id: {
428
+ serializedName: "id",
429
+ readOnly: true,
430
+ type: {
431
+ name: "String"
432
+ }
433
+ },
434
+ name: {
435
+ constraints: {
436
+ Pattern: new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")
437
+ },
438
+ serializedName: "name",
439
+ readOnly: true,
440
+ type: {
441
+ name: "String"
442
+ }
443
+ },
444
+ type: {
445
+ serializedName: "type",
446
+ readOnly: true,
447
+ type: {
448
+ name: "String"
449
+ }
450
+ },
451
+ kind: {
452
+ serializedName: "kind",
453
+ required: true,
454
+ type: {
455
+ name: "Enum",
456
+ allowedValues: ["fhir", "fhir-Stu3", "fhir-R4"]
457
+ }
458
+ },
459
+ location: {
460
+ serializedName: "location",
461
+ required: true,
462
+ type: {
463
+ name: "String"
464
+ }
465
+ },
466
+ tags: {
467
+ serializedName: "tags",
468
+ type: {
469
+ name: "Dictionary",
470
+ value: { type: { name: "String" } }
471
+ }
472
+ },
473
+ etag: {
474
+ serializedName: "etag",
475
+ type: {
476
+ name: "String"
477
+ }
478
+ },
479
+ identity: {
480
+ serializedName: "identity",
481
+ type: {
482
+ name: "Composite",
483
+ className: "ServicesResourceIdentity"
484
+ }
485
+ }
486
+ }
487
+ }
488
+ };
489
+ const ServicesResourceIdentity = {
490
+ type: {
491
+ name: "Composite",
492
+ className: "ServicesResourceIdentity",
493
+ modelProperties: {
494
+ principalId: {
495
+ serializedName: "principalId",
496
+ readOnly: true,
497
+ type: {
498
+ name: "String"
499
+ }
500
+ },
501
+ tenantId: {
502
+ serializedName: "tenantId",
503
+ readOnly: true,
504
+ type: {
505
+ name: "String"
506
+ }
507
+ },
508
+ type: {
509
+ serializedName: "type",
510
+ type: {
511
+ name: "String"
512
+ }
513
+ }
514
+ }
515
+ }
516
+ };
517
+ const ErrorDetails = {
518
+ type: {
519
+ name: "Composite",
520
+ className: "ErrorDetails",
521
+ modelProperties: {
522
+ error: {
523
+ serializedName: "error",
524
+ type: {
525
+ name: "Composite",
526
+ className: "ErrorDetailsInternal"
527
+ }
528
+ }
529
+ }
530
+ }
531
+ };
532
+ const ErrorDetailsInternal = {
533
+ type: {
534
+ name: "Composite",
535
+ className: "ErrorDetailsInternal",
536
+ modelProperties: {
537
+ code: {
538
+ serializedName: "code",
539
+ readOnly: true,
540
+ type: {
541
+ name: "String"
542
+ }
543
+ },
544
+ message: {
545
+ serializedName: "message",
546
+ readOnly: true,
547
+ type: {
548
+ name: "String"
549
+ }
550
+ },
551
+ target: {
552
+ serializedName: "target",
553
+ readOnly: true,
554
+ type: {
555
+ name: "String"
556
+ }
557
+ }
558
+ }
559
+ }
560
+ };
561
+ const ServicesPatchDescription = {
562
+ type: {
563
+ name: "Composite",
564
+ className: "ServicesPatchDescription",
565
+ modelProperties: {
566
+ tags: {
567
+ serializedName: "tags",
568
+ type: {
569
+ name: "Dictionary",
570
+ value: { type: { name: "String" } }
571
+ }
572
+ },
573
+ publicNetworkAccess: {
574
+ serializedName: "properties.publicNetworkAccess",
575
+ type: {
576
+ name: "String"
577
+ }
578
+ }
579
+ }
580
+ }
581
+ };
582
+ const ServicesDescriptionListResult = {
583
+ type: {
584
+ name: "Composite",
585
+ className: "ServicesDescriptionListResult",
586
+ modelProperties: {
587
+ nextLink: {
588
+ serializedName: "nextLink",
589
+ type: {
590
+ name: "String"
591
+ }
592
+ },
593
+ value: {
594
+ serializedName: "value",
595
+ type: {
596
+ name: "Sequence",
597
+ element: {
598
+ type: {
599
+ name: "Composite",
600
+ className: "ServicesDescription"
601
+ }
602
+ }
603
+ }
604
+ }
605
+ }
606
+ }
607
+ };
608
+ const OperationListResult = {
609
+ type: {
610
+ name: "Composite",
611
+ className: "OperationListResult",
612
+ modelProperties: {
613
+ nextLink: {
614
+ serializedName: "nextLink",
615
+ type: {
616
+ name: "String"
617
+ }
618
+ },
619
+ value: {
620
+ serializedName: "value",
621
+ readOnly: true,
622
+ type: {
623
+ name: "Sequence",
624
+ element: {
625
+ type: {
626
+ name: "Composite",
627
+ className: "Operation"
628
+ }
629
+ }
630
+ }
631
+ }
632
+ }
633
+ }
634
+ };
635
+ const Operation = {
636
+ type: {
637
+ name: "Composite",
638
+ className: "Operation",
639
+ modelProperties: {
640
+ name: {
641
+ serializedName: "name",
642
+ readOnly: true,
643
+ type: {
644
+ name: "String"
645
+ }
646
+ },
647
+ origin: {
648
+ serializedName: "origin",
649
+ readOnly: true,
650
+ type: {
651
+ name: "String"
652
+ }
653
+ },
654
+ display: {
655
+ serializedName: "display",
656
+ type: {
657
+ name: "Composite",
658
+ className: "OperationDisplay"
659
+ }
660
+ }
661
+ }
662
+ }
663
+ };
664
+ const OperationDisplay = {
665
+ type: {
666
+ name: "Composite",
667
+ className: "OperationDisplay",
668
+ modelProperties: {
669
+ provider: {
670
+ serializedName: "provider",
671
+ readOnly: true,
672
+ type: {
673
+ name: "String"
674
+ }
675
+ },
676
+ resource: {
677
+ serializedName: "resource",
678
+ readOnly: true,
679
+ type: {
680
+ name: "String"
681
+ }
682
+ },
683
+ operation: {
684
+ serializedName: "operation",
685
+ readOnly: true,
686
+ type: {
687
+ name: "String"
688
+ }
689
+ },
690
+ description: {
691
+ serializedName: "description",
692
+ readOnly: true,
693
+ type: {
694
+ name: "String"
695
+ }
696
+ }
697
+ }
698
+ }
699
+ };
700
+ const CheckNameAvailabilityParameters = {
701
+ type: {
702
+ name: "Composite",
703
+ className: "CheckNameAvailabilityParameters",
704
+ modelProperties: {
705
+ name: {
706
+ serializedName: "name",
707
+ required: true,
708
+ type: {
709
+ name: "String"
710
+ }
711
+ },
712
+ type: {
713
+ serializedName: "type",
714
+ required: true,
715
+ type: {
716
+ name: "String"
717
+ }
718
+ }
719
+ }
720
+ }
721
+ };
722
+ const ServicesNameAvailabilityInfo = {
723
+ type: {
724
+ name: "Composite",
725
+ className: "ServicesNameAvailabilityInfo",
726
+ modelProperties: {
727
+ nameAvailable: {
728
+ serializedName: "nameAvailable",
729
+ readOnly: true,
730
+ type: {
731
+ name: "Boolean"
732
+ }
733
+ },
734
+ reason: {
735
+ serializedName: "reason",
736
+ readOnly: true,
737
+ type: {
738
+ name: "Enum",
739
+ allowedValues: ["Invalid", "AlreadyExists"]
740
+ }
741
+ },
742
+ message: {
743
+ serializedName: "message",
744
+ type: {
745
+ name: "String"
746
+ }
747
+ }
748
+ }
749
+ }
750
+ };
751
+ const OperationResultsDescription = {
752
+ type: {
753
+ name: "Composite",
754
+ className: "OperationResultsDescription",
755
+ modelProperties: {
756
+ id: {
757
+ serializedName: "id",
758
+ readOnly: true,
759
+ type: {
760
+ name: "String"
761
+ }
762
+ },
763
+ name: {
764
+ serializedName: "name",
765
+ readOnly: true,
766
+ type: {
767
+ name: "String"
768
+ }
769
+ },
770
+ status: {
771
+ serializedName: "status",
772
+ readOnly: true,
773
+ type: {
774
+ name: "String"
775
+ }
776
+ },
777
+ startTime: {
778
+ serializedName: "startTime",
779
+ readOnly: true,
780
+ type: {
781
+ name: "String"
782
+ }
783
+ },
784
+ properties: {
785
+ serializedName: "properties",
786
+ type: {
787
+ name: "any"
788
+ }
789
+ }
790
+ }
791
+ }
792
+ };
793
+ const PrivateEndpointConnectionListResultDescription = {
794
+ type: {
795
+ name: "Composite",
796
+ className: "PrivateEndpointConnectionListResultDescription",
797
+ modelProperties: {
798
+ value: {
799
+ serializedName: "value",
800
+ type: {
801
+ name: "Sequence",
802
+ element: {
803
+ type: {
804
+ name: "Composite",
805
+ className: "PrivateEndpointConnectionDescription"
806
+ }
807
+ }
808
+ }
809
+ }
810
+ }
811
+ }
812
+ };
813
+ const PrivateLinkResourceListResultDescription = {
814
+ type: {
815
+ name: "Composite",
816
+ className: "PrivateLinkResourceListResultDescription",
817
+ modelProperties: {
818
+ value: {
819
+ serializedName: "value",
820
+ type: {
821
+ name: "Sequence",
822
+ element: {
823
+ type: {
824
+ name: "Composite",
825
+ className: "PrivateLinkResourceDescription"
826
+ }
827
+ }
828
+ }
829
+ }
830
+ }
831
+ }
832
+ };
833
+ const PrivateEndpointConnection = {
834
+ type: {
835
+ name: "Composite",
836
+ className: "PrivateEndpointConnection",
837
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { privateEndpoint: {
838
+ serializedName: "properties.privateEndpoint",
839
+ type: {
840
+ name: "Composite",
841
+ className: "PrivateEndpoint"
842
+ }
843
+ }, privateLinkServiceConnectionState: {
844
+ serializedName: "properties.privateLinkServiceConnectionState",
845
+ type: {
846
+ name: "Composite",
847
+ className: "PrivateLinkServiceConnectionState"
848
+ }
849
+ }, provisioningState: {
850
+ serializedName: "properties.provisioningState",
851
+ readOnly: true,
852
+ type: {
853
+ name: "String"
854
+ }
855
+ } })
856
+ }
857
+ };
858
+ const PrivateLinkResource = {
859
+ type: {
860
+ name: "Composite",
861
+ className: "PrivateLinkResource",
862
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
863
+ serializedName: "properties.groupId",
864
+ readOnly: true,
865
+ type: {
866
+ name: "String"
867
+ }
868
+ }, requiredMembers: {
869
+ serializedName: "properties.requiredMembers",
870
+ readOnly: true,
871
+ type: {
872
+ name: "Sequence",
873
+ element: {
874
+ type: {
875
+ name: "String"
876
+ }
877
+ }
878
+ }
879
+ }, requiredZoneNames: {
880
+ serializedName: "properties.requiredZoneNames",
881
+ type: {
882
+ name: "Sequence",
883
+ element: {
884
+ type: {
885
+ name: "String"
886
+ }
887
+ }
888
+ }
889
+ } })
890
+ }
891
+ };
892
+ const ServicesDescription = {
893
+ type: {
894
+ name: "Composite",
895
+ className: "ServicesDescription",
896
+ modelProperties: Object.assign(Object.assign({}, ServicesResource.type.modelProperties), { properties: {
897
+ serializedName: "properties",
898
+ type: {
899
+ name: "Composite",
900
+ className: "ServicesProperties"
901
+ }
902
+ }, systemData: {
903
+ serializedName: "systemData",
904
+ type: {
905
+ name: "Composite",
906
+ className: "SystemData"
907
+ }
908
+ } })
909
+ }
910
+ };
911
+ const PrivateEndpointConnectionDescription = {
912
+ type: {
913
+ name: "Composite",
914
+ className: "PrivateEndpointConnectionDescription",
915
+ modelProperties: Object.assign(Object.assign({}, PrivateEndpointConnection.type.modelProperties), { systemData: {
916
+ serializedName: "systemData",
917
+ type: {
918
+ name: "Composite",
919
+ className: "SystemData"
920
+ }
921
+ } })
922
+ }
923
+ };
924
+ const PrivateLinkResourceDescription = {
925
+ type: {
926
+ name: "Composite",
927
+ className: "PrivateLinkResourceDescription",
928
+ modelProperties: Object.assign(Object.assign({}, PrivateLinkResource.type.modelProperties), { systemData: {
929
+ serializedName: "systemData",
930
+ type: {
931
+ name: "Composite",
932
+ className: "SystemData"
933
+ }
934
+ } })
935
+ }
936
+ };
937
+
938
+ var Mappers = /*#__PURE__*/Object.freeze({
939
+ __proto__: null,
940
+ ServicesProperties: ServicesProperties,
941
+ ServiceAccessPolicyEntry: ServiceAccessPolicyEntry,
942
+ ServiceCosmosDbConfigurationInfo: ServiceCosmosDbConfigurationInfo,
943
+ ServiceAuthenticationConfigurationInfo: ServiceAuthenticationConfigurationInfo,
944
+ ServiceCorsConfigurationInfo: ServiceCorsConfigurationInfo,
945
+ ServiceExportConfigurationInfo: ServiceExportConfigurationInfo,
946
+ PrivateEndpoint: PrivateEndpoint,
947
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
948
+ Resource: Resource,
949
+ ServiceAcrConfigurationInfo: ServiceAcrConfigurationInfo,
950
+ SystemData: SystemData,
951
+ ServicesResource: ServicesResource,
952
+ ServicesResourceIdentity: ServicesResourceIdentity,
953
+ ErrorDetails: ErrorDetails,
954
+ ErrorDetailsInternal: ErrorDetailsInternal,
955
+ ServicesPatchDescription: ServicesPatchDescription,
956
+ ServicesDescriptionListResult: ServicesDescriptionListResult,
957
+ OperationListResult: OperationListResult,
958
+ Operation: Operation,
959
+ OperationDisplay: OperationDisplay,
960
+ CheckNameAvailabilityParameters: CheckNameAvailabilityParameters,
961
+ ServicesNameAvailabilityInfo: ServicesNameAvailabilityInfo,
962
+ OperationResultsDescription: OperationResultsDescription,
963
+ PrivateEndpointConnectionListResultDescription: PrivateEndpointConnectionListResultDescription,
964
+ PrivateLinkResourceListResultDescription: PrivateLinkResourceListResultDescription,
965
+ PrivateEndpointConnection: PrivateEndpointConnection,
966
+ PrivateLinkResource: PrivateLinkResource,
967
+ ServicesDescription: ServicesDescription,
968
+ PrivateEndpointConnectionDescription: PrivateEndpointConnectionDescription,
969
+ PrivateLinkResourceDescription: PrivateLinkResourceDescription
970
+ });
971
+
972
+ /*
973
+ * Copyright (c) Microsoft Corporation.
974
+ * Licensed under the MIT License.
975
+ *
976
+ * Code generated by Microsoft (R) AutoRest Code Generator.
977
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
978
+ */
979
+ const accept = {
980
+ parameterPath: "accept",
981
+ mapper: {
982
+ defaultValue: "application/json",
983
+ isConstant: true,
984
+ serializedName: "Accept",
985
+ type: {
986
+ name: "String"
987
+ }
988
+ }
989
+ };
990
+ const $host = {
991
+ parameterPath: "$host",
992
+ mapper: {
993
+ serializedName: "$host",
994
+ required: true,
995
+ type: {
996
+ name: "String"
997
+ }
998
+ },
999
+ skipEncoding: true
1000
+ };
1001
+ const apiVersion = {
1002
+ parameterPath: "apiVersion",
1003
+ mapper: {
1004
+ defaultValue: "2021-01-11",
1005
+ isConstant: true,
1006
+ serializedName: "api-version",
1007
+ type: {
1008
+ name: "String"
1009
+ }
1010
+ }
1011
+ };
1012
+ const subscriptionId = {
1013
+ parameterPath: "subscriptionId",
1014
+ mapper: {
1015
+ serializedName: "subscriptionId",
1016
+ required: true,
1017
+ type: {
1018
+ name: "String"
1019
+ }
1020
+ }
1021
+ };
1022
+ const resourceGroupName = {
1023
+ parameterPath: "resourceGroupName",
1024
+ mapper: {
1025
+ constraints: {
1026
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
1027
+ MaxLength: 90,
1028
+ MinLength: 1
1029
+ },
1030
+ serializedName: "resourceGroupName",
1031
+ required: true,
1032
+ type: {
1033
+ name: "String"
1034
+ }
1035
+ }
1036
+ };
1037
+ const resourceName = {
1038
+ parameterPath: "resourceName",
1039
+ mapper: {
1040
+ constraints: {
1041
+ MaxLength: 24,
1042
+ MinLength: 3
1043
+ },
1044
+ serializedName: "resourceName",
1045
+ required: true,
1046
+ type: {
1047
+ name: "String"
1048
+ }
1049
+ }
1050
+ };
1051
+ const contentType = {
1052
+ parameterPath: ["options", "contentType"],
1053
+ mapper: {
1054
+ defaultValue: "application/json",
1055
+ isConstant: true,
1056
+ serializedName: "Content-Type",
1057
+ type: {
1058
+ name: "String"
1059
+ }
1060
+ }
1061
+ };
1062
+ const serviceDescription = {
1063
+ parameterPath: "serviceDescription",
1064
+ mapper: ServicesDescription
1065
+ };
1066
+ const servicePatchDescription = {
1067
+ parameterPath: "servicePatchDescription",
1068
+ mapper: ServicesPatchDescription
1069
+ };
1070
+ const checkNameAvailabilityInputs = {
1071
+ parameterPath: "checkNameAvailabilityInputs",
1072
+ mapper: CheckNameAvailabilityParameters
1073
+ };
1074
+ const nextLink = {
1075
+ parameterPath: "nextLink",
1076
+ mapper: {
1077
+ serializedName: "nextLink",
1078
+ required: true,
1079
+ type: {
1080
+ name: "String"
1081
+ }
1082
+ },
1083
+ skipEncoding: true
1084
+ };
1085
+ const locationName = {
1086
+ parameterPath: "locationName",
1087
+ mapper: {
1088
+ serializedName: "locationName",
1089
+ required: true,
1090
+ type: {
1091
+ name: "String"
1092
+ }
1093
+ }
1094
+ };
1095
+ const operationResultId = {
1096
+ parameterPath: "operationResultId",
1097
+ mapper: {
1098
+ serializedName: "operationResultId",
1099
+ required: true,
1100
+ type: {
1101
+ name: "String"
1102
+ }
1103
+ }
1104
+ };
1105
+ const privateEndpointConnectionName = {
1106
+ parameterPath: "privateEndpointConnectionName",
1107
+ mapper: {
1108
+ serializedName: "privateEndpointConnectionName",
1109
+ required: true,
1110
+ type: {
1111
+ name: "String"
1112
+ }
1113
+ }
1114
+ };
1115
+ const properties = {
1116
+ parameterPath: "properties",
1117
+ mapper: PrivateEndpointConnection
1118
+ };
1119
+ const groupName = {
1120
+ parameterPath: "groupName",
1121
+ mapper: {
1122
+ serializedName: "groupName",
1123
+ required: true,
1124
+ type: {
1125
+ name: "String"
1126
+ }
1127
+ }
1128
+ };
1129
+
1130
+ /*
1131
+ * Copyright (c) Microsoft Corporation.
1132
+ * Licensed under the MIT License.
1133
+ *
1134
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1135
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1136
+ */
1137
+ class LroImpl {
1138
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1139
+ this.sendOperationFn = sendOperationFn;
1140
+ this.args = args;
1141
+ this.spec = spec;
1142
+ this.requestPath = requestPath;
1143
+ this.requestMethod = requestMethod;
1144
+ }
1145
+ sendInitialRequest() {
1146
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1147
+ return this.sendOperationFn(this.args, this.spec);
1148
+ });
1149
+ }
1150
+ sendPollRequest(path) {
1151
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1152
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1153
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1154
+ });
1155
+ }
1156
+ }
1157
+
1158
+ /*
1159
+ * Copyright (c) Microsoft Corporation.
1160
+ * Licensed under the MIT License.
1161
+ *
1162
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1163
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1164
+ */
1165
+ /// <reference lib="esnext.asynciterable" />
1166
+ /** Class containing Services operations. */
1167
+ class ServicesImpl {
1168
+ /**
1169
+ * Initialize a new instance of the class Services class.
1170
+ * @param client Reference to the service client
1171
+ */
1172
+ constructor(client) {
1173
+ this.client = client;
1174
+ }
1175
+ /**
1176
+ * Get all the service instances in a subscription.
1177
+ * @param options The options parameters.
1178
+ */
1179
+ list(options) {
1180
+ const iter = this.listPagingAll(options);
1181
+ return {
1182
+ next() {
1183
+ return iter.next();
1184
+ },
1185
+ [Symbol.asyncIterator]() {
1186
+ return this;
1187
+ },
1188
+ byPage: () => {
1189
+ return this.listPagingPage(options);
1190
+ }
1191
+ };
1192
+ }
1193
+ listPagingPage(options) {
1194
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1195
+ let result = yield tslib.__await(this._list(options));
1196
+ yield yield tslib.__await(result.value || []);
1197
+ let continuationToken = result.nextLink;
1198
+ while (continuationToken) {
1199
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1200
+ continuationToken = result.nextLink;
1201
+ yield yield tslib.__await(result.value || []);
1202
+ }
1203
+ });
1204
+ }
1205
+ listPagingAll(options) {
1206
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1207
+ var e_1, _a;
1208
+ try {
1209
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1210
+ const page = _c.value;
1211
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1212
+ }
1213
+ }
1214
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1215
+ finally {
1216
+ try {
1217
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1218
+ }
1219
+ finally { if (e_1) throw e_1.error; }
1220
+ }
1221
+ });
1222
+ }
1223
+ /**
1224
+ * Get all the service instances in a resource group.
1225
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1226
+ * @param options The options parameters.
1227
+ */
1228
+ listByResourceGroup(resourceGroupName, options) {
1229
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1230
+ return {
1231
+ next() {
1232
+ return iter.next();
1233
+ },
1234
+ [Symbol.asyncIterator]() {
1235
+ return this;
1236
+ },
1237
+ byPage: () => {
1238
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
1239
+ }
1240
+ };
1241
+ }
1242
+ listByResourceGroupPagingPage(resourceGroupName, options) {
1243
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1244
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1245
+ yield yield tslib.__await(result.value || []);
1246
+ let continuationToken = result.nextLink;
1247
+ while (continuationToken) {
1248
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1249
+ continuationToken = result.nextLink;
1250
+ yield yield tslib.__await(result.value || []);
1251
+ }
1252
+ });
1253
+ }
1254
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1255
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1256
+ var e_2, _a;
1257
+ try {
1258
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1259
+ const page = _c.value;
1260
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1261
+ }
1262
+ }
1263
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1264
+ finally {
1265
+ try {
1266
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1267
+ }
1268
+ finally { if (e_2) throw e_2.error; }
1269
+ }
1270
+ });
1271
+ }
1272
+ /**
1273
+ * Get the metadata of a service instance.
1274
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1275
+ * @param resourceName The name of the service instance.
1276
+ * @param options The options parameters.
1277
+ */
1278
+ get(resourceGroupName, resourceName, options) {
1279
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
1280
+ }
1281
+ /**
1282
+ * Create or update the metadata of a service instance.
1283
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1284
+ * @param resourceName The name of the service instance.
1285
+ * @param serviceDescription The service instance metadata.
1286
+ * @param options The options parameters.
1287
+ */
1288
+ beginCreateOrUpdate(resourceGroupName, resourceName, serviceDescription, options) {
1289
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1290
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1291
+ return this.client.sendOperationRequest(args, spec);
1292
+ });
1293
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1294
+ var _a;
1295
+ let currentRawResponse = undefined;
1296
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1297
+ const callback = (rawResponse, flatResponse) => {
1298
+ currentRawResponse = rawResponse;
1299
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1300
+ };
1301
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1302
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1303
+ return {
1304
+ flatResponse,
1305
+ rawResponse: {
1306
+ statusCode: currentRawResponse.status,
1307
+ body: currentRawResponse.parsedBody,
1308
+ headers: currentRawResponse.headers.toJSON()
1309
+ }
1310
+ };
1311
+ });
1312
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, serviceDescription, options }, createOrUpdateOperationSpec);
1313
+ return new coreLro.LroEngine(lro, {
1314
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1315
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1316
+ });
1317
+ });
1318
+ }
1319
+ /**
1320
+ * Create or update the metadata of a service instance.
1321
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1322
+ * @param resourceName The name of the service instance.
1323
+ * @param serviceDescription The service instance metadata.
1324
+ * @param options The options parameters.
1325
+ */
1326
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, serviceDescription, options) {
1327
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1328
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, serviceDescription, options);
1329
+ return poller.pollUntilDone();
1330
+ });
1331
+ }
1332
+ /**
1333
+ * Update the metadata of a service instance.
1334
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1335
+ * @param resourceName The name of the service instance.
1336
+ * @param servicePatchDescription The service instance metadata and security metadata.
1337
+ * @param options The options parameters.
1338
+ */
1339
+ beginUpdate(resourceGroupName, resourceName, servicePatchDescription, options) {
1340
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1341
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1342
+ return this.client.sendOperationRequest(args, spec);
1343
+ });
1344
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1345
+ var _a;
1346
+ let currentRawResponse = undefined;
1347
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1348
+ const callback = (rawResponse, flatResponse) => {
1349
+ currentRawResponse = rawResponse;
1350
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1351
+ };
1352
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1353
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1354
+ return {
1355
+ flatResponse,
1356
+ rawResponse: {
1357
+ statusCode: currentRawResponse.status,
1358
+ body: currentRawResponse.parsedBody,
1359
+ headers: currentRawResponse.headers.toJSON()
1360
+ }
1361
+ };
1362
+ });
1363
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, servicePatchDescription, options }, updateOperationSpec);
1364
+ return new coreLro.LroEngine(lro, {
1365
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1366
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1367
+ });
1368
+ });
1369
+ }
1370
+ /**
1371
+ * Update the metadata of a service instance.
1372
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1373
+ * @param resourceName The name of the service instance.
1374
+ * @param servicePatchDescription The service instance metadata and security metadata.
1375
+ * @param options The options parameters.
1376
+ */
1377
+ beginUpdateAndWait(resourceGroupName, resourceName, servicePatchDescription, options) {
1378
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1379
+ const poller = yield this.beginUpdate(resourceGroupName, resourceName, servicePatchDescription, options);
1380
+ return poller.pollUntilDone();
1381
+ });
1382
+ }
1383
+ /**
1384
+ * Delete a service instance.
1385
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1386
+ * @param resourceName The name of the service instance.
1387
+ * @param options The options parameters.
1388
+ */
1389
+ beginDelete(resourceGroupName, resourceName, options) {
1390
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1391
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1392
+ return this.client.sendOperationRequest(args, spec);
1393
+ });
1394
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1395
+ var _a;
1396
+ let currentRawResponse = undefined;
1397
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1398
+ const callback = (rawResponse, flatResponse) => {
1399
+ currentRawResponse = rawResponse;
1400
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1401
+ };
1402
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1403
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1404
+ return {
1405
+ flatResponse,
1406
+ rawResponse: {
1407
+ statusCode: currentRawResponse.status,
1408
+ body: currentRawResponse.parsedBody,
1409
+ headers: currentRawResponse.headers.toJSON()
1410
+ }
1411
+ };
1412
+ });
1413
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec);
1414
+ return new coreLro.LroEngine(lro, {
1415
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1416
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1417
+ });
1418
+ });
1419
+ }
1420
+ /**
1421
+ * Delete a service instance.
1422
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1423
+ * @param resourceName The name of the service instance.
1424
+ * @param options The options parameters.
1425
+ */
1426
+ beginDeleteAndWait(resourceGroupName, resourceName, options) {
1427
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1428
+ const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
1429
+ return poller.pollUntilDone();
1430
+ });
1431
+ }
1432
+ /**
1433
+ * Get all the service instances in a subscription.
1434
+ * @param options The options parameters.
1435
+ */
1436
+ _list(options) {
1437
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
1438
+ }
1439
+ /**
1440
+ * Get all the service instances in a resource group.
1441
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1442
+ * @param options The options parameters.
1443
+ */
1444
+ _listByResourceGroup(resourceGroupName, options) {
1445
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1446
+ }
1447
+ /**
1448
+ * Check if a service instance name is available.
1449
+ * @param checkNameAvailabilityInputs Set the name parameter in the CheckNameAvailabilityParameters
1450
+ * structure to the name of the service instance to check.
1451
+ * @param options The options parameters.
1452
+ */
1453
+ checkNameAvailability(checkNameAvailabilityInputs, options) {
1454
+ return this.client.sendOperationRequest({ checkNameAvailabilityInputs, options }, checkNameAvailabilityOperationSpec);
1455
+ }
1456
+ /**
1457
+ * ListNext
1458
+ * @param nextLink The nextLink from the previous successful call to the List method.
1459
+ * @param options The options parameters.
1460
+ */
1461
+ _listNext(nextLink, options) {
1462
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1463
+ }
1464
+ /**
1465
+ * ListByResourceGroupNext
1466
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1467
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1468
+ * @param options The options parameters.
1469
+ */
1470
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1471
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1472
+ }
1473
+ }
1474
+ // Operation Specifications
1475
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1476
+ const getOperationSpec = {
1477
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
1478
+ httpMethod: "GET",
1479
+ responses: {
1480
+ 200: {
1481
+ bodyMapper: ServicesDescription
1482
+ },
1483
+ default: {
1484
+ bodyMapper: ErrorDetails
1485
+ }
1486
+ },
1487
+ queryParameters: [apiVersion],
1488
+ urlParameters: [
1489
+ $host,
1490
+ subscriptionId,
1491
+ resourceGroupName,
1492
+ resourceName
1493
+ ],
1494
+ headerParameters: [accept],
1495
+ serializer
1496
+ };
1497
+ const createOrUpdateOperationSpec = {
1498
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
1499
+ httpMethod: "PUT",
1500
+ responses: {
1501
+ 200: {
1502
+ bodyMapper: ServicesDescription
1503
+ },
1504
+ 201: {
1505
+ bodyMapper: ServicesDescription
1506
+ },
1507
+ 202: {
1508
+ bodyMapper: ServicesDescription
1509
+ },
1510
+ 204: {
1511
+ bodyMapper: ServicesDescription
1512
+ },
1513
+ default: {
1514
+ bodyMapper: ErrorDetails
1515
+ }
1516
+ },
1517
+ requestBody: serviceDescription,
1518
+ queryParameters: [apiVersion],
1519
+ urlParameters: [
1520
+ $host,
1521
+ subscriptionId,
1522
+ resourceGroupName,
1523
+ resourceName
1524
+ ],
1525
+ headerParameters: [accept, contentType],
1526
+ mediaType: "json",
1527
+ serializer
1528
+ };
1529
+ const updateOperationSpec = {
1530
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
1531
+ httpMethod: "PATCH",
1532
+ responses: {
1533
+ 200: {
1534
+ bodyMapper: ServicesDescription
1535
+ },
1536
+ 201: {
1537
+ bodyMapper: ServicesDescription
1538
+ },
1539
+ 202: {
1540
+ bodyMapper: ServicesDescription
1541
+ },
1542
+ 204: {
1543
+ bodyMapper: ServicesDescription
1544
+ },
1545
+ default: {
1546
+ bodyMapper: ErrorDetails
1547
+ }
1548
+ },
1549
+ requestBody: servicePatchDescription,
1550
+ queryParameters: [apiVersion],
1551
+ urlParameters: [
1552
+ $host,
1553
+ subscriptionId,
1554
+ resourceGroupName,
1555
+ resourceName
1556
+ ],
1557
+ headerParameters: [accept, contentType],
1558
+ mediaType: "json",
1559
+ serializer
1560
+ };
1561
+ const deleteOperationSpec = {
1562
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
1563
+ httpMethod: "DELETE",
1564
+ responses: {
1565
+ 200: {},
1566
+ 201: {},
1567
+ 202: {},
1568
+ 204: {},
1569
+ default: {
1570
+ bodyMapper: ErrorDetails
1571
+ }
1572
+ },
1573
+ queryParameters: [apiVersion],
1574
+ urlParameters: [
1575
+ $host,
1576
+ subscriptionId,
1577
+ resourceGroupName,
1578
+ resourceName
1579
+ ],
1580
+ headerParameters: [accept],
1581
+ serializer
1582
+ };
1583
+ const listOperationSpec = {
1584
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",
1585
+ httpMethod: "GET",
1586
+ responses: {
1587
+ 200: {
1588
+ bodyMapper: ServicesDescriptionListResult
1589
+ },
1590
+ default: {
1591
+ bodyMapper: ErrorDetails
1592
+ }
1593
+ },
1594
+ queryParameters: [apiVersion],
1595
+ urlParameters: [$host, subscriptionId],
1596
+ headerParameters: [accept],
1597
+ serializer
1598
+ };
1599
+ const listByResourceGroupOperationSpec = {
1600
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",
1601
+ httpMethod: "GET",
1602
+ responses: {
1603
+ 200: {
1604
+ bodyMapper: ServicesDescriptionListResult
1605
+ },
1606
+ default: {
1607
+ bodyMapper: ErrorDetails
1608
+ }
1609
+ },
1610
+ queryParameters: [apiVersion],
1611
+ urlParameters: [
1612
+ $host,
1613
+ subscriptionId,
1614
+ resourceGroupName
1615
+ ],
1616
+ headerParameters: [accept],
1617
+ serializer
1618
+ };
1619
+ const checkNameAvailabilityOperationSpec = {
1620
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",
1621
+ httpMethod: "POST",
1622
+ responses: {
1623
+ 200: {
1624
+ bodyMapper: ServicesNameAvailabilityInfo
1625
+ },
1626
+ default: {
1627
+ bodyMapper: ErrorDetails
1628
+ }
1629
+ },
1630
+ requestBody: checkNameAvailabilityInputs,
1631
+ queryParameters: [apiVersion],
1632
+ urlParameters: [$host, subscriptionId],
1633
+ headerParameters: [accept, contentType],
1634
+ mediaType: "json",
1635
+ serializer
1636
+ };
1637
+ const listNextOperationSpec = {
1638
+ path: "{nextLink}",
1639
+ httpMethod: "GET",
1640
+ responses: {
1641
+ 200: {
1642
+ bodyMapper: ServicesDescriptionListResult
1643
+ },
1644
+ default: {
1645
+ bodyMapper: ErrorDetails
1646
+ }
1647
+ },
1648
+ queryParameters: [apiVersion],
1649
+ urlParameters: [
1650
+ $host,
1651
+ subscriptionId,
1652
+ nextLink
1653
+ ],
1654
+ headerParameters: [accept],
1655
+ serializer
1656
+ };
1657
+ const listByResourceGroupNextOperationSpec = {
1658
+ path: "{nextLink}",
1659
+ httpMethod: "GET",
1660
+ responses: {
1661
+ 200: {
1662
+ bodyMapper: ServicesDescriptionListResult
1663
+ },
1664
+ default: {
1665
+ bodyMapper: ErrorDetails
1666
+ }
1667
+ },
1668
+ queryParameters: [apiVersion],
1669
+ urlParameters: [
1670
+ $host,
1671
+ subscriptionId,
1672
+ resourceGroupName,
1673
+ nextLink
1674
+ ],
1675
+ headerParameters: [accept],
1676
+ serializer
1677
+ };
1678
+
1679
+ /*
1680
+ * Copyright (c) Microsoft Corporation.
1681
+ * Licensed under the MIT License.
1682
+ *
1683
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1684
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1685
+ */
1686
+ /// <reference lib="esnext.asynciterable" />
1687
+ /** Class containing Operations operations. */
1688
+ class OperationsImpl {
1689
+ /**
1690
+ * Initialize a new instance of the class Operations class.
1691
+ * @param client Reference to the service client
1692
+ */
1693
+ constructor(client) {
1694
+ this.client = client;
1695
+ }
1696
+ /**
1697
+ * Lists all of the available Healthcare service REST API operations.
1698
+ * @param options The options parameters.
1699
+ */
1700
+ list(options) {
1701
+ const iter = this.listPagingAll(options);
1702
+ return {
1703
+ next() {
1704
+ return iter.next();
1705
+ },
1706
+ [Symbol.asyncIterator]() {
1707
+ return this;
1708
+ },
1709
+ byPage: () => {
1710
+ return this.listPagingPage(options);
1711
+ }
1712
+ };
1713
+ }
1714
+ listPagingPage(options) {
1715
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1716
+ let result = yield tslib.__await(this._list(options));
1717
+ yield yield tslib.__await(result.value || []);
1718
+ let continuationToken = result.nextLink;
1719
+ while (continuationToken) {
1720
+ result = yield tslib.__await(this._listNext(continuationToken, options));
1721
+ continuationToken = result.nextLink;
1722
+ yield yield tslib.__await(result.value || []);
1723
+ }
1724
+ });
1725
+ }
1726
+ listPagingAll(options) {
1727
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1728
+ var e_1, _a;
1729
+ try {
1730
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1731
+ const page = _c.value;
1732
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1733
+ }
1734
+ }
1735
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1736
+ finally {
1737
+ try {
1738
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1739
+ }
1740
+ finally { if (e_1) throw e_1.error; }
1741
+ }
1742
+ });
1743
+ }
1744
+ /**
1745
+ * Lists all of the available Healthcare service REST API operations.
1746
+ * @param options The options parameters.
1747
+ */
1748
+ _list(options) {
1749
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1750
+ }
1751
+ /**
1752
+ * ListNext
1753
+ * @param nextLink The nextLink from the previous successful call to the List method.
1754
+ * @param options The options parameters.
1755
+ */
1756
+ _listNext(nextLink, options) {
1757
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1758
+ }
1759
+ }
1760
+ // Operation Specifications
1761
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1762
+ const listOperationSpec$1 = {
1763
+ path: "/providers/Microsoft.HealthcareApis/operations",
1764
+ httpMethod: "GET",
1765
+ responses: {
1766
+ 200: {
1767
+ bodyMapper: OperationListResult
1768
+ },
1769
+ default: {
1770
+ bodyMapper: ErrorDetails
1771
+ }
1772
+ },
1773
+ queryParameters: [apiVersion],
1774
+ urlParameters: [$host],
1775
+ headerParameters: [accept],
1776
+ serializer: serializer$1
1777
+ };
1778
+ const listNextOperationSpec$1 = {
1779
+ path: "{nextLink}",
1780
+ httpMethod: "GET",
1781
+ responses: {
1782
+ 200: {
1783
+ bodyMapper: OperationListResult
1784
+ },
1785
+ default: {
1786
+ bodyMapper: ErrorDetails
1787
+ }
1788
+ },
1789
+ queryParameters: [apiVersion],
1790
+ urlParameters: [$host, nextLink],
1791
+ headerParameters: [accept],
1792
+ serializer: serializer$1
1793
+ };
1794
+
1795
+ /*
1796
+ * Copyright (c) Microsoft Corporation.
1797
+ * Licensed under the MIT License.
1798
+ *
1799
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1800
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1801
+ */
1802
+ /** Class containing OperationResults operations. */
1803
+ class OperationResultsImpl {
1804
+ /**
1805
+ * Initialize a new instance of the class OperationResults class.
1806
+ * @param client Reference to the service client
1807
+ */
1808
+ constructor(client) {
1809
+ this.client = client;
1810
+ }
1811
+ /**
1812
+ * Get the operation result for a long running operation.
1813
+ * @param locationName The location of the operation.
1814
+ * @param operationResultId The ID of the operation result to get.
1815
+ * @param options The options parameters.
1816
+ */
1817
+ get(locationName, operationResultId, options) {
1818
+ return this.client.sendOperationRequest({ locationName, operationResultId, options }, getOperationSpec$1);
1819
+ }
1820
+ }
1821
+ // Operation Specifications
1822
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1823
+ const getOperationSpec$1 = {
1824
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",
1825
+ httpMethod: "GET",
1826
+ responses: {
1827
+ 200: {
1828
+ bodyMapper: OperationResultsDescription
1829
+ },
1830
+ 404: {
1831
+ bodyMapper: ErrorDetails
1832
+ },
1833
+ default: {
1834
+ bodyMapper: ErrorDetails
1835
+ }
1836
+ },
1837
+ queryParameters: [apiVersion],
1838
+ urlParameters: [
1839
+ $host,
1840
+ subscriptionId,
1841
+ locationName,
1842
+ operationResultId
1843
+ ],
1844
+ headerParameters: [accept],
1845
+ serializer: serializer$2
1846
+ };
1847
+
1848
+ /*
1849
+ * Copyright (c) Microsoft Corporation.
1850
+ * Licensed under the MIT License.
1851
+ *
1852
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1853
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1854
+ */
1855
+ /// <reference lib="esnext.asynciterable" />
1856
+ /** Class containing PrivateEndpointConnections operations. */
1857
+ class PrivateEndpointConnectionsImpl {
1858
+ /**
1859
+ * Initialize a new instance of the class PrivateEndpointConnections class.
1860
+ * @param client Reference to the service client
1861
+ */
1862
+ constructor(client) {
1863
+ this.client = client;
1864
+ }
1865
+ /**
1866
+ * Lists all private endpoint connections for a service.
1867
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1868
+ * @param resourceName The name of the service instance.
1869
+ * @param options The options parameters.
1870
+ */
1871
+ listByService(resourceGroupName, resourceName, options) {
1872
+ const iter = this.listByServicePagingAll(resourceGroupName, resourceName, options);
1873
+ return {
1874
+ next() {
1875
+ return iter.next();
1876
+ },
1877
+ [Symbol.asyncIterator]() {
1878
+ return this;
1879
+ },
1880
+ byPage: () => {
1881
+ return this.listByServicePagingPage(resourceGroupName, resourceName, options);
1882
+ }
1883
+ };
1884
+ }
1885
+ listByServicePagingPage(resourceGroupName, resourceName, options) {
1886
+ return tslib.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
1887
+ let result = yield tslib.__await(this._listByService(resourceGroupName, resourceName, options));
1888
+ yield yield tslib.__await(result.value || []);
1889
+ });
1890
+ }
1891
+ listByServicePagingAll(resourceGroupName, resourceName, options) {
1892
+ return tslib.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
1893
+ var e_1, _a;
1894
+ try {
1895
+ for (var _b = tslib.__asyncValues(this.listByServicePagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1896
+ const page = _c.value;
1897
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1898
+ }
1899
+ }
1900
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1901
+ finally {
1902
+ try {
1903
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1904
+ }
1905
+ finally { if (e_1) throw e_1.error; }
1906
+ }
1907
+ });
1908
+ }
1909
+ /**
1910
+ * Lists all private endpoint connections for a service.
1911
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1912
+ * @param resourceName The name of the service instance.
1913
+ * @param options The options parameters.
1914
+ */
1915
+ _listByService(resourceGroupName, resourceName, options) {
1916
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByServiceOperationSpec);
1917
+ }
1918
+ /**
1919
+ * Gets the specified private endpoint connection associated with the service.
1920
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1921
+ * @param resourceName The name of the service instance.
1922
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
1923
+ * Azure resource
1924
+ * @param options The options parameters.
1925
+ */
1926
+ get(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
1927
+ return this.client.sendOperationRequest({
1928
+ resourceGroupName,
1929
+ resourceName,
1930
+ privateEndpointConnectionName,
1931
+ options
1932
+ }, getOperationSpec$2);
1933
+ }
1934
+ /**
1935
+ * Update the state of the specified private endpoint connection associated with the service.
1936
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1937
+ * @param resourceName The name of the service instance.
1938
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
1939
+ * Azure resource
1940
+ * @param properties The private endpoint connection properties.
1941
+ * @param options The options parameters.
1942
+ */
1943
+ beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options) {
1944
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1945
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1946
+ return this.client.sendOperationRequest(args, spec);
1947
+ });
1948
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1949
+ var _a;
1950
+ let currentRawResponse = undefined;
1951
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1952
+ const callback = (rawResponse, flatResponse) => {
1953
+ currentRawResponse = rawResponse;
1954
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1955
+ };
1956
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1957
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1958
+ return {
1959
+ flatResponse,
1960
+ rawResponse: {
1961
+ statusCode: currentRawResponse.status,
1962
+ body: currentRawResponse.parsedBody,
1963
+ headers: currentRawResponse.headers.toJSON()
1964
+ }
1965
+ };
1966
+ });
1967
+ const lro = new LroImpl(sendOperation, {
1968
+ resourceGroupName,
1969
+ resourceName,
1970
+ privateEndpointConnectionName,
1971
+ properties,
1972
+ options
1973
+ }, createOrUpdateOperationSpec$1);
1974
+ return new coreLro.LroEngine(lro, {
1975
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1976
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1977
+ });
1978
+ });
1979
+ }
1980
+ /**
1981
+ * Update the state of the specified private endpoint connection associated with the service.
1982
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1983
+ * @param resourceName The name of the service instance.
1984
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
1985
+ * Azure resource
1986
+ * @param properties The private endpoint connection properties.
1987
+ * @param options The options parameters.
1988
+ */
1989
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options) {
1990
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1991
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options);
1992
+ return poller.pollUntilDone();
1993
+ });
1994
+ }
1995
+ /**
1996
+ * Deletes a private endpoint connection.
1997
+ * @param resourceGroupName The name of the resource group that contains the service instance.
1998
+ * @param resourceName The name of the service instance.
1999
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
2000
+ * Azure resource
2001
+ * @param options The options parameters.
2002
+ */
2003
+ beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
2004
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2005
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2006
+ return this.client.sendOperationRequest(args, spec);
2007
+ });
2008
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2009
+ var _a;
2010
+ let currentRawResponse = undefined;
2011
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2012
+ const callback = (rawResponse, flatResponse) => {
2013
+ currentRawResponse = rawResponse;
2014
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2015
+ };
2016
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2017
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2018
+ return {
2019
+ flatResponse,
2020
+ rawResponse: {
2021
+ statusCode: currentRawResponse.status,
2022
+ body: currentRawResponse.parsedBody,
2023
+ headers: currentRawResponse.headers.toJSON()
2024
+ }
2025
+ };
2026
+ });
2027
+ const lro = new LroImpl(sendOperation, {
2028
+ resourceGroupName,
2029
+ resourceName,
2030
+ privateEndpointConnectionName,
2031
+ options
2032
+ }, deleteOperationSpec$1);
2033
+ return new coreLro.LroEngine(lro, {
2034
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2035
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2036
+ });
2037
+ });
2038
+ }
2039
+ /**
2040
+ * Deletes a private endpoint connection.
2041
+ * @param resourceGroupName The name of the resource group that contains the service instance.
2042
+ * @param resourceName The name of the service instance.
2043
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
2044
+ * Azure resource
2045
+ * @param options The options parameters.
2046
+ */
2047
+ beginDeleteAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
2048
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2049
+ const poller = yield this.beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options);
2050
+ return poller.pollUntilDone();
2051
+ });
2052
+ }
2053
+ }
2054
+ // Operation Specifications
2055
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2056
+ const listByServiceOperationSpec = {
2057
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections",
2058
+ httpMethod: "GET",
2059
+ responses: {
2060
+ 200: {
2061
+ bodyMapper: PrivateEndpointConnectionListResultDescription
2062
+ },
2063
+ default: {
2064
+ bodyMapper: ErrorDetails
2065
+ }
2066
+ },
2067
+ queryParameters: [apiVersion],
2068
+ urlParameters: [
2069
+ $host,
2070
+ subscriptionId,
2071
+ resourceGroupName,
2072
+ resourceName
2073
+ ],
2074
+ headerParameters: [accept],
2075
+ serializer: serializer$3
2076
+ };
2077
+ const getOperationSpec$2 = {
2078
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2079
+ httpMethod: "GET",
2080
+ responses: {
2081
+ 200: {
2082
+ bodyMapper: PrivateEndpointConnectionDescription
2083
+ },
2084
+ default: {
2085
+ bodyMapper: ErrorDetails
2086
+ }
2087
+ },
2088
+ queryParameters: [apiVersion],
2089
+ urlParameters: [
2090
+ $host,
2091
+ subscriptionId,
2092
+ resourceGroupName,
2093
+ resourceName,
2094
+ privateEndpointConnectionName
2095
+ ],
2096
+ headerParameters: [accept],
2097
+ serializer: serializer$3
2098
+ };
2099
+ const createOrUpdateOperationSpec$1 = {
2100
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2101
+ httpMethod: "PUT",
2102
+ responses: {
2103
+ 200: {
2104
+ bodyMapper: PrivateEndpointConnectionDescription
2105
+ },
2106
+ 201: {
2107
+ bodyMapper: PrivateEndpointConnectionDescription
2108
+ },
2109
+ 202: {
2110
+ bodyMapper: PrivateEndpointConnectionDescription
2111
+ },
2112
+ 204: {
2113
+ bodyMapper: PrivateEndpointConnectionDescription
2114
+ },
2115
+ default: {
2116
+ bodyMapper: ErrorDetails
2117
+ }
2118
+ },
2119
+ requestBody: properties,
2120
+ queryParameters: [apiVersion],
2121
+ urlParameters: [
2122
+ $host,
2123
+ subscriptionId,
2124
+ resourceGroupName,
2125
+ resourceName,
2126
+ privateEndpointConnectionName
2127
+ ],
2128
+ headerParameters: [accept, contentType],
2129
+ mediaType: "json",
2130
+ serializer: serializer$3
2131
+ };
2132
+ const deleteOperationSpec$1 = {
2133
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2134
+ httpMethod: "DELETE",
2135
+ responses: {
2136
+ 200: {},
2137
+ 201: {},
2138
+ 202: {},
2139
+ 204: {},
2140
+ default: {
2141
+ bodyMapper: ErrorDetails
2142
+ }
2143
+ },
2144
+ queryParameters: [apiVersion],
2145
+ urlParameters: [
2146
+ $host,
2147
+ subscriptionId,
2148
+ resourceGroupName,
2149
+ resourceName,
2150
+ privateEndpointConnectionName
2151
+ ],
2152
+ headerParameters: [accept],
2153
+ serializer: serializer$3
2154
+ };
2155
+
2156
+ /*
2157
+ * Copyright (c) Microsoft Corporation.
2158
+ * Licensed under the MIT License.
2159
+ *
2160
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2161
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2162
+ */
2163
+ /** Class containing PrivateLinkResources operations. */
2164
+ class PrivateLinkResourcesImpl {
2165
+ /**
2166
+ * Initialize a new instance of the class PrivateLinkResources class.
2167
+ * @param client Reference to the service client
2168
+ */
2169
+ constructor(client) {
2170
+ this.client = client;
2171
+ }
2172
+ /**
2173
+ * Gets the private link resources that need to be created for a service.
2174
+ * @param resourceGroupName The name of the resource group that contains the service instance.
2175
+ * @param resourceName The name of the service instance.
2176
+ * @param options The options parameters.
2177
+ */
2178
+ listByService(resourceGroupName, resourceName, options) {
2179
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByServiceOperationSpec$1);
2180
+ }
2181
+ /**
2182
+ * Gets a private link resource that need to be created for a service.
2183
+ * @param resourceGroupName The name of the resource group that contains the service instance.
2184
+ * @param resourceName The name of the service instance.
2185
+ * @param groupName The name of the private link resource group.
2186
+ * @param options The options parameters.
2187
+ */
2188
+ get(resourceGroupName, resourceName, groupName, options) {
2189
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, groupName, options }, getOperationSpec$3);
2190
+ }
2191
+ }
2192
+ // Operation Specifications
2193
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
2194
+ const listByServiceOperationSpec$1 = {
2195
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",
2196
+ httpMethod: "GET",
2197
+ responses: {
2198
+ 200: {
2199
+ bodyMapper: PrivateLinkResourceListResultDescription
2200
+ },
2201
+ default: {
2202
+ bodyMapper: ErrorDetails
2203
+ }
2204
+ },
2205
+ queryParameters: [apiVersion],
2206
+ urlParameters: [
2207
+ $host,
2208
+ subscriptionId,
2209
+ resourceGroupName,
2210
+ resourceName
2211
+ ],
2212
+ headerParameters: [accept],
2213
+ serializer: serializer$4
2214
+ };
2215
+ const getOperationSpec$3 = {
2216
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",
2217
+ httpMethod: "GET",
2218
+ responses: {
2219
+ 200: {
2220
+ bodyMapper: PrivateLinkResourceDescription
2221
+ },
2222
+ default: {
2223
+ bodyMapper: ErrorDetails
2224
+ }
2225
+ },
2226
+ queryParameters: [apiVersion],
2227
+ urlParameters: [
2228
+ $host,
2229
+ subscriptionId,
2230
+ resourceGroupName,
2231
+ resourceName,
2232
+ groupName
2233
+ ],
2234
+ headerParameters: [accept],
2235
+ serializer: serializer$4
2236
+ };
2237
+
2238
+ /*
2239
+ * Copyright (c) Microsoft Corporation.
2240
+ * Licensed under the MIT License.
2241
+ *
2242
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2243
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2244
+ */
2245
+ class HealthcareApisManagementClient extends coreClient.ServiceClient {
2246
+ /**
2247
+ * Initializes a new instance of the HealthcareApisManagementClient class.
2248
+ * @param credentials Subscription credentials which uniquely identify client subscription.
2249
+ * @param subscriptionId The subscription identifier.
2250
+ * @param options The parameter options
2251
+ */
2252
+ constructor(credentials, subscriptionId, options) {
2253
+ if (credentials === undefined) {
2254
+ throw new Error("'credentials' cannot be null");
2255
+ }
2256
+ if (subscriptionId === undefined) {
2257
+ throw new Error("'subscriptionId' cannot be null");
2258
+ }
2259
+ // Initializing default values for options
2260
+ if (!options) {
2261
+ options = {};
2262
+ }
2263
+ const defaults = {
2264
+ requestContentType: "application/json; charset=utf-8",
2265
+ credential: credentials
2266
+ };
2267
+ const packageDetails = `azsdk-js-arm-healthcareapis/2.0.0`;
2268
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2269
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2270
+ : `${packageDetails}`;
2271
+ if (!options.credentialScopes) {
2272
+ options.credentialScopes = ["https://management.azure.com/.default"];
2273
+ }
2274
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2275
+ userAgentPrefix
2276
+ }, baseUri: options.endpoint || "https://management.azure.com" });
2277
+ super(optionsWithDefaults);
2278
+ // Parameter assignments
2279
+ this.subscriptionId = subscriptionId;
2280
+ // Assigning values to Constant parameters
2281
+ this.$host = options.$host || "https://management.azure.com";
2282
+ this.apiVersion = options.apiVersion || "2021-01-11";
2283
+ this.services = new ServicesImpl(this);
2284
+ this.operations = new OperationsImpl(this);
2285
+ this.operationResults = new OperationResultsImpl(this);
2286
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
2287
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
2288
+ }
2289
+ }
2290
+
2291
+ exports.HealthcareApisManagementClient = HealthcareApisManagementClient;
2292
+ //# sourceMappingURL=index.js.map