@azure/arm-healthcareapis 1.1.1 → 2.0.0

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 +80 -33
  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
@@ -0,0 +1,314 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing PrivateEndpointConnections operations. */
16
+ export class PrivateEndpointConnectionsImpl {
17
+ /**
18
+ * Initialize a new instance of the class PrivateEndpointConnections class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Lists all private endpoint connections for a service.
26
+ * @param resourceGroupName The name of the resource group that contains the service instance.
27
+ * @param resourceName The name of the service instance.
28
+ * @param options The options parameters.
29
+ */
30
+ listByService(resourceGroupName, resourceName, options) {
31
+ const iter = this.listByServicePagingAll(resourceGroupName, resourceName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByServicePagingPage(resourceGroupName, resourceName, options);
41
+ }
42
+ };
43
+ }
44
+ listByServicePagingPage(resourceGroupName, resourceName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
46
+ let result = yield __await(this._listByService(resourceGroupName, resourceName, options));
47
+ yield yield __await(result.value || []);
48
+ });
49
+ }
50
+ listByServicePagingAll(resourceGroupName, resourceName, options) {
51
+ return __asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
52
+ var e_1, _a;
53
+ try {
54
+ for (var _b = __asyncValues(this.listByServicePagingPage(resourceGroupName, resourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
55
+ const page = _c.value;
56
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
57
+ }
58
+ }
59
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
60
+ finally {
61
+ try {
62
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
63
+ }
64
+ finally { if (e_1) throw e_1.error; }
65
+ }
66
+ });
67
+ }
68
+ /**
69
+ * Lists all private endpoint connections for a service.
70
+ * @param resourceGroupName The name of the resource group that contains the service instance.
71
+ * @param resourceName The name of the service instance.
72
+ * @param options The options parameters.
73
+ */
74
+ _listByService(resourceGroupName, resourceName, options) {
75
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByServiceOperationSpec);
76
+ }
77
+ /**
78
+ * Gets the specified private endpoint connection associated with the service.
79
+ * @param resourceGroupName The name of the resource group that contains the service instance.
80
+ * @param resourceName The name of the service instance.
81
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
82
+ * Azure resource
83
+ * @param options The options parameters.
84
+ */
85
+ get(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
86
+ return this.client.sendOperationRequest({
87
+ resourceGroupName,
88
+ resourceName,
89
+ privateEndpointConnectionName,
90
+ options
91
+ }, getOperationSpec);
92
+ }
93
+ /**
94
+ * Update the state of the specified private endpoint connection associated with the service.
95
+ * @param resourceGroupName The name of the resource group that contains the service instance.
96
+ * @param resourceName The name of the service instance.
97
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
98
+ * Azure resource
99
+ * @param properties The private endpoint connection properties.
100
+ * @param options The options parameters.
101
+ */
102
+ beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
105
+ return this.client.sendOperationRequest(args, spec);
106
+ });
107
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
108
+ var _a;
109
+ let currentRawResponse = undefined;
110
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
111
+ const callback = (rawResponse, flatResponse) => {
112
+ currentRawResponse = rawResponse;
113
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
114
+ };
115
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
116
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
117
+ return {
118
+ flatResponse,
119
+ rawResponse: {
120
+ statusCode: currentRawResponse.status,
121
+ body: currentRawResponse.parsedBody,
122
+ headers: currentRawResponse.headers.toJSON()
123
+ }
124
+ };
125
+ });
126
+ const lro = new LroImpl(sendOperation, {
127
+ resourceGroupName,
128
+ resourceName,
129
+ privateEndpointConnectionName,
130
+ properties,
131
+ options
132
+ }, createOrUpdateOperationSpec);
133
+ return new LroEngine(lro, {
134
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
135
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
136
+ });
137
+ });
138
+ }
139
+ /**
140
+ * Update the state of the specified private endpoint connection associated with the service.
141
+ * @param resourceGroupName The name of the resource group that contains the service instance.
142
+ * @param resourceName The name of the service instance.
143
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
144
+ * Azure resource
145
+ * @param properties The private endpoint connection properties.
146
+ * @param options The options parameters.
147
+ */
148
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options);
151
+ return poller.pollUntilDone();
152
+ });
153
+ }
154
+ /**
155
+ * Deletes a private endpoint connection.
156
+ * @param resourceGroupName The name of the resource group that contains the service instance.
157
+ * @param resourceName The name of the service instance.
158
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
159
+ * Azure resource
160
+ * @param options The options parameters.
161
+ */
162
+ beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
165
+ return this.client.sendOperationRequest(args, spec);
166
+ });
167
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
168
+ var _a;
169
+ let currentRawResponse = undefined;
170
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
171
+ const callback = (rawResponse, flatResponse) => {
172
+ currentRawResponse = rawResponse;
173
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
174
+ };
175
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
176
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
177
+ return {
178
+ flatResponse,
179
+ rawResponse: {
180
+ statusCode: currentRawResponse.status,
181
+ body: currentRawResponse.parsedBody,
182
+ headers: currentRawResponse.headers.toJSON()
183
+ }
184
+ };
185
+ });
186
+ const lro = new LroImpl(sendOperation, {
187
+ resourceGroupName,
188
+ resourceName,
189
+ privateEndpointConnectionName,
190
+ options
191
+ }, deleteOperationSpec);
192
+ return new LroEngine(lro, {
193
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
194
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
195
+ });
196
+ });
197
+ }
198
+ /**
199
+ * Deletes a private endpoint connection.
200
+ * @param resourceGroupName The name of the resource group that contains the service instance.
201
+ * @param resourceName The name of the service instance.
202
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
203
+ * Azure resource
204
+ * @param options The options parameters.
205
+ */
206
+ beginDeleteAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const poller = yield this.beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options);
209
+ return poller.pollUntilDone();
210
+ });
211
+ }
212
+ }
213
+ // Operation Specifications
214
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
215
+ const listByServiceOperationSpec = {
216
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections",
217
+ httpMethod: "GET",
218
+ responses: {
219
+ 200: {
220
+ bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription
221
+ },
222
+ default: {
223
+ bodyMapper: Mappers.ErrorDetails
224
+ }
225
+ },
226
+ queryParameters: [Parameters.apiVersion],
227
+ urlParameters: [
228
+ Parameters.$host,
229
+ Parameters.subscriptionId,
230
+ Parameters.resourceGroupName,
231
+ Parameters.resourceName
232
+ ],
233
+ headerParameters: [Parameters.accept],
234
+ serializer
235
+ };
236
+ const getOperationSpec = {
237
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
238
+ httpMethod: "GET",
239
+ responses: {
240
+ 200: {
241
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
242
+ },
243
+ default: {
244
+ bodyMapper: Mappers.ErrorDetails
245
+ }
246
+ },
247
+ queryParameters: [Parameters.apiVersion],
248
+ urlParameters: [
249
+ Parameters.$host,
250
+ Parameters.subscriptionId,
251
+ Parameters.resourceGroupName,
252
+ Parameters.resourceName,
253
+ Parameters.privateEndpointConnectionName
254
+ ],
255
+ headerParameters: [Parameters.accept],
256
+ serializer
257
+ };
258
+ const createOrUpdateOperationSpec = {
259
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
260
+ httpMethod: "PUT",
261
+ responses: {
262
+ 200: {
263
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
264
+ },
265
+ 201: {
266
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
267
+ },
268
+ 202: {
269
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
270
+ },
271
+ 204: {
272
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
273
+ },
274
+ default: {
275
+ bodyMapper: Mappers.ErrorDetails
276
+ }
277
+ },
278
+ requestBody: Parameters.properties,
279
+ queryParameters: [Parameters.apiVersion],
280
+ urlParameters: [
281
+ Parameters.$host,
282
+ Parameters.subscriptionId,
283
+ Parameters.resourceGroupName,
284
+ Parameters.resourceName,
285
+ Parameters.privateEndpointConnectionName
286
+ ],
287
+ headerParameters: [Parameters.accept, Parameters.contentType],
288
+ mediaType: "json",
289
+ serializer
290
+ };
291
+ const deleteOperationSpec = {
292
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
293
+ httpMethod: "DELETE",
294
+ responses: {
295
+ 200: {},
296
+ 201: {},
297
+ 202: {},
298
+ 204: {},
299
+ default: {
300
+ bodyMapper: Mappers.ErrorDetails
301
+ }
302
+ },
303
+ queryParameters: [Parameters.apiVersion],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.resourceGroupName,
308
+ Parameters.resourceName,
309
+ Parameters.privateEndpointConnectionName
310
+ ],
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAarC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,YAAoB,EACpB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,uBAAuB,CACjC,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,uBAAuB,CACpC,iBAAyB,EACzB,YAAoB,EACpB,OAA+D;;YAE/D,IAAI,MAAM,GAAG,cAAM,IAAI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AAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { PrivateLinkResources } from "../operationsInterfaces";
2
+ import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
3
+ import { PrivateLinkResourcesListByServiceOptionalParams, PrivateLinkResourcesListByServiceResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models";
4
+ /** Class containing PrivateLinkResources operations. */
5
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class PrivateLinkResources class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: HealthcareApisManagementClient);
12
+ /**
13
+ * Gets the private link resources that need to be created for a service.
14
+ * @param resourceGroupName The name of the resource group that contains the service instance.
15
+ * @param resourceName The name of the service instance.
16
+ * @param options The options parameters.
17
+ */
18
+ listByService(resourceGroupName: string, resourceName: string, options?: PrivateLinkResourcesListByServiceOptionalParams): Promise<PrivateLinkResourcesListByServiceResponse>;
19
+ /**
20
+ * Gets a private link resource that need to be created for a service.
21
+ * @param resourceGroupName The name of the resource group that contains the service instance.
22
+ * @param resourceName The name of the service instance.
23
+ * @param groupName The name of the private link resource group.
24
+ * @param options The options parameters.
25
+ */
26
+ get(resourceGroupName: string, resourceName: string, groupName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
27
+ }
28
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EACL,+CAA+C,EAC/C,yCAAyC,EACzC,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD;;;OAGG;gBACS,MAAM,EAAE,8BAA8B;IAIlD;;;;;OAKG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing PrivateLinkResources operations. */
12
+ export class PrivateLinkResourcesImpl {
13
+ /**
14
+ * Initialize a new instance of the class PrivateLinkResources class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets the private link resources that need to be created for a service.
22
+ * @param resourceGroupName The name of the resource group that contains the service instance.
23
+ * @param resourceName The name of the service instance.
24
+ * @param options The options parameters.
25
+ */
26
+ listByService(resourceGroupName, resourceName, options) {
27
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByServiceOperationSpec);
28
+ }
29
+ /**
30
+ * Gets a private link resource that need to be created for a service.
31
+ * @param resourceGroupName The name of the resource group that contains the service instance.
32
+ * @param resourceName The name of the service instance.
33
+ * @param groupName The name of the private link resource group.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName, resourceName, groupName, options) {
37
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, groupName, options }, getOperationSpec);
38
+ }
39
+ }
40
+ // Operation Specifications
41
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
42
+ const listByServiceOperationSpec = {
43
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",
44
+ httpMethod: "GET",
45
+ responses: {
46
+ 200: {
47
+ bodyMapper: Mappers.PrivateLinkResourceListResultDescription
48
+ },
49
+ default: {
50
+ bodyMapper: Mappers.ErrorDetails
51
+ }
52
+ },
53
+ queryParameters: [Parameters.apiVersion],
54
+ urlParameters: [
55
+ Parameters.$host,
56
+ Parameters.subscriptionId,
57
+ Parameters.resourceGroupName,
58
+ Parameters.resourceName
59
+ ],
60
+ headerParameters: [Parameters.accept],
61
+ serializer
62
+ };
63
+ const getOperationSpec = {
64
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",
65
+ httpMethod: "GET",
66
+ responses: {
67
+ 200: {
68
+ bodyMapper: Mappers.PrivateLinkResourceDescription
69
+ },
70
+ default: {
71
+ bodyMapper: Mappers.ErrorDetails
72
+ }
73
+ },
74
+ queryParameters: [Parameters.apiVersion],
75
+ urlParameters: [
76
+ Parameters.$host,
77
+ Parameters.subscriptionId,
78
+ Parameters.resourceGroupName,
79
+ Parameters.resourceName,
80
+ Parameters.groupName
81
+ ],
82
+ headerParameters: [Parameters.accept],
83
+ serializer
84
+ };
85
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AASnD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,YAAoB,EACpB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,SAAiB,EACjB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACvD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,oJAAoJ;IACtJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,gKAAgK;IAClK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,114 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Services } from "../operationsInterfaces";
3
+ import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { ServicesDescription, ServicesListOptionalParams, ServicesListByResourceGroupOptionalParams, ServicesGetOptionalParams, ServicesGetResponse, ServicesCreateOrUpdateOptionalParams, ServicesCreateOrUpdateResponse, ServicesPatchDescription, ServicesUpdateOptionalParams, ServicesUpdateResponse, ServicesDeleteOptionalParams, CheckNameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse } from "../models";
6
+ /** Class containing Services operations. */
7
+ export declare class ServicesImpl implements Services {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class Services class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: HealthcareApisManagementClient);
14
+ /**
15
+ * Get all the service instances in a subscription.
16
+ * @param options The options parameters.
17
+ */
18
+ list(options?: ServicesListOptionalParams): PagedAsyncIterableIterator<ServicesDescription>;
19
+ private listPagingPage;
20
+ private listPagingAll;
21
+ /**
22
+ * Get all the service instances in a resource group.
23
+ * @param resourceGroupName The name of the resource group that contains the service instance.
24
+ * @param options The options parameters.
25
+ */
26
+ listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ServicesDescription>;
27
+ private listByResourceGroupPagingPage;
28
+ private listByResourceGroupPagingAll;
29
+ /**
30
+ * Get the metadata of a service instance.
31
+ * @param resourceGroupName The name of the resource group that contains the service instance.
32
+ * @param resourceName The name of the service instance.
33
+ * @param options The options parameters.
34
+ */
35
+ get(resourceGroupName: string, resourceName: string, options?: ServicesGetOptionalParams): Promise<ServicesGetResponse>;
36
+ /**
37
+ * Create or update the metadata of a service instance.
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 serviceDescription The service instance metadata.
41
+ * @param options The options parameters.
42
+ */
43
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, serviceDescription: ServicesDescription, options?: ServicesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServicesCreateOrUpdateResponse>, ServicesCreateOrUpdateResponse>>;
44
+ /**
45
+ * Create or update the metadata of a service instance.
46
+ * @param resourceGroupName The name of the resource group that contains the service instance.
47
+ * @param resourceName The name of the service instance.
48
+ * @param serviceDescription The service instance metadata.
49
+ * @param options The options parameters.
50
+ */
51
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, serviceDescription: ServicesDescription, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServicesCreateOrUpdateResponse>;
52
+ /**
53
+ * Update the metadata of a service instance.
54
+ * @param resourceGroupName The name of the resource group that contains the service instance.
55
+ * @param resourceName The name of the service instance.
56
+ * @param servicePatchDescription The service instance metadata and security metadata.
57
+ * @param options The options parameters.
58
+ */
59
+ beginUpdate(resourceGroupName: string, resourceName: string, servicePatchDescription: ServicesPatchDescription, options?: ServicesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServicesUpdateResponse>, ServicesUpdateResponse>>;
60
+ /**
61
+ * Update the metadata of a service instance.
62
+ * @param resourceGroupName The name of the resource group that contains the service instance.
63
+ * @param resourceName The name of the service instance.
64
+ * @param servicePatchDescription The service instance metadata and security metadata.
65
+ * @param options The options parameters.
66
+ */
67
+ beginUpdateAndWait(resourceGroupName: string, resourceName: string, servicePatchDescription: ServicesPatchDescription, options?: ServicesUpdateOptionalParams): Promise<ServicesUpdateResponse>;
68
+ /**
69
+ * Delete a service instance.
70
+ * @param resourceGroupName The name of the resource group that contains the service instance.
71
+ * @param resourceName The name of the service instance.
72
+ * @param options The options parameters.
73
+ */
74
+ beginDelete(resourceGroupName: string, resourceName: string, options?: ServicesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
75
+ /**
76
+ * Delete a service instance.
77
+ * @param resourceGroupName The name of the resource group that contains the service instance.
78
+ * @param resourceName The name of the service instance.
79
+ * @param options The options parameters.
80
+ */
81
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: ServicesDeleteOptionalParams): Promise<void>;
82
+ /**
83
+ * Get all the service instances in a subscription.
84
+ * @param options The options parameters.
85
+ */
86
+ private _list;
87
+ /**
88
+ * Get all the service instances in a resource group.
89
+ * @param resourceGroupName The name of the resource group that contains the service instance.
90
+ * @param options The options parameters.
91
+ */
92
+ private _listByResourceGroup;
93
+ /**
94
+ * Check if a service instance name is available.
95
+ * @param checkNameAvailabilityInputs Set the name parameter in the CheckNameAvailabilityParameters
96
+ * structure to the name of the service instance to check.
97
+ * @param options The options parameters.
98
+ */
99
+ checkNameAvailability(checkNameAvailabilityInputs: CheckNameAvailabilityParameters, options?: ServicesCheckNameAvailabilityOptionalParams): Promise<ServicesCheckNameAvailabilityResponse>;
100
+ /**
101
+ * ListNext
102
+ * @param nextLink The nextLink from the previous successful call to the List method.
103
+ * @param options The options parameters.
104
+ */
105
+ private _listNext;
106
+ /**
107
+ * ListByResourceGroupNext
108
+ * @param resourceGroupName The name of the resource group that contains the service instance.
109
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
110
+ * @param options The options parameters.
111
+ */
112
+ private _listByResourceGroupNext;
113
+ }
114
+ //# sourceMappingURL=services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/operations/services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,mBAAmB,EAEnB,0BAA0B,EAE1B,yCAAyC,EACzC,yBAAyB,EACzB,mBAAmB,EACnB,oCAAoC,EACpC,8BAA8B,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAG5B,+BAA+B,EAC/B,2CAA2C,EAC3C,qCAAqC,EAGtC,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD;;;OAGG;gBACS,MAAM,EAAE,8BAA8B;IAIlD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,mBAAmB,CAAC;YAenC,cAAc;YAad,aAA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