@azure/arm-servicefabricmesh 2.2.1 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +5478 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/models/index.d.ts +1366 -0
  13. package/dist-esm/src/models/index.d.ts.map +1 -0
  14. package/dist-esm/src/models/index.js +121 -0
  15. package/dist-esm/src/models/index.js.map +1 -0
  16. package/dist-esm/src/models/mappers.d.ts +105 -0
  17. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  18. package/{esm → dist-esm/src}/models/mappers.js +1264 -1320
  19. package/dist-esm/src/models/mappers.js.map +1 -0
  20. package/dist-esm/src/models/parameters.d.ts +25 -0
  21. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/parameters.js +104 -62
  23. package/dist-esm/src/models/parameters.js.map +1 -0
  24. package/dist-esm/src/operations/application.d.ts +82 -0
  25. package/dist-esm/src/operations/application.d.ts.map +1 -0
  26. package/dist-esm/src/operations/application.js +340 -0
  27. package/dist-esm/src/operations/application.js.map +1 -0
  28. package/dist-esm/src/operations/codePackage.d.ts +23 -0
  29. package/dist-esm/src/operations/codePackage.d.ts.map +1 -0
  30. package/dist-esm/src/operations/codePackage.js +66 -0
  31. package/dist-esm/src/operations/codePackage.js.map +1 -0
  32. package/dist-esm/src/operations/gateway.d.ts +83 -0
  33. package/dist-esm/src/operations/gateway.d.ts.map +1 -0
  34. package/dist-esm/src/operations/gateway.js +341 -0
  35. package/dist-esm/src/operations/gateway.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +3 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/network.d.ts +82 -0
  41. package/dist-esm/src/operations/network.d.ts.map +1 -0
  42. package/dist-esm/src/operations/network.js +340 -0
  43. package/dist-esm/src/operations/network.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/secret.d.ts +81 -0
  49. package/dist-esm/src/operations/secret.d.ts.map +1 -0
  50. package/dist-esm/src/operations/secret.js +339 -0
  51. package/dist-esm/src/operations/secret.js.map +1 -0
  52. package/dist-esm/src/operations/secretValueOperations.d.ts +81 -0
  53. package/dist-esm/src/operations/secretValueOperations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/secretValueOperations.js +303 -0
  55. package/dist-esm/src/operations/secretValueOperations.js.map +1 -0
  56. package/dist-esm/src/operations/service.d.ts +49 -0
  57. package/dist-esm/src/operations/service.d.ts.map +1 -0
  58. package/dist-esm/src/operations/service.js +177 -0
  59. package/dist-esm/src/operations/service.js.map +1 -0
  60. package/dist-esm/src/operations/serviceReplica.d.ts +53 -0
  61. package/dist-esm/src/operations/serviceReplica.d.ts.map +1 -0
  62. package/dist-esm/src/operations/serviceReplica.js +196 -0
  63. package/dist-esm/src/operations/serviceReplica.js.map +1 -0
  64. package/dist-esm/src/operations/volume.d.ts +81 -0
  65. package/dist-esm/src/operations/volume.d.ts.map +1 -0
  66. package/dist-esm/src/operations/volume.js +339 -0
  67. package/dist-esm/src/operations/volume.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/application.d.ts +44 -0
  69. package/dist-esm/src/operationsInterfaces/application.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/application.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/application.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/codePackage.d.ts +15 -0
  73. package/dist-esm/src/operationsInterfaces/codePackage.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/codePackage.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/codePackage.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/gateway.d.ts +45 -0
  77. package/dist-esm/src/operationsInterfaces/gateway.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/gateway.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/gateway.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
  81. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/index.js +18 -0
  83. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/network.d.ts +44 -0
  85. package/dist-esm/src/operationsInterfaces/network.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/network.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/network.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  89. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/secret.d.ts +43 -0
  93. package/dist-esm/src/operationsInterfaces/secret.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/secret.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/secret.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/secretValueOperations.d.ts +55 -0
  97. package/dist-esm/src/operationsInterfaces/secretValueOperations.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/secretValueOperations.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/secretValueOperations.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/service.d.ts +23 -0
  101. package/dist-esm/src/operationsInterfaces/service.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/service.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/service.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/serviceReplica.d.ts +25 -0
  105. package/dist-esm/src/operationsInterfaces/serviceReplica.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/serviceReplica.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/serviceReplica.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/volume.d.ts +43 -0
  109. package/dist-esm/src/operationsInterfaces/volume.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/volume.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/volume.js.map +1 -0
  112. package/dist-esm/src/serviceFabricMeshManagementClient.d.ts +27 -0
  113. package/dist-esm/src/serviceFabricMeshManagementClient.d.ts.map +1 -0
  114. package/dist-esm/src/serviceFabricMeshManagementClient.js +60 -0
  115. package/dist-esm/src/serviceFabricMeshManagementClient.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +2 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +40 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +85 -26
  121. package/review/arm-servicefabricmesh.api.md +1210 -0
  122. package/rollup.config.js +184 -27
  123. package/src/index.ts +12 -0
  124. package/src/models/index.ts +1281 -2775
  125. package/src/models/mappers.ts +1315 -1344
  126. package/src/models/parameters.ts +138 -63
  127. package/src/operations/application.ts +260 -269
  128. package/src/operations/codePackage.ts +44 -60
  129. package/src/operations/gateway.ts +263 -272
  130. package/src/operations/index.ts +3 -5
  131. package/src/operations/network.ts +262 -271
  132. package/src/operations/operations.ts +87 -75
  133. package/src/operations/secret.ts +261 -271
  134. package/src/operations/secretValueOperations.ts +239 -259
  135. package/src/operations/service.ts +161 -124
  136. package/src/operations/serviceReplica.ts +177 -120
  137. package/src/operations/volume.ts +261 -271
  138. package/src/operationsInterfaces/application.ts +80 -0
  139. package/src/operationsInterfaces/codePackage.ts +33 -0
  140. package/src/operationsInterfaces/gateway.ts +81 -0
  141. package/src/operationsInterfaces/index.ts +18 -0
  142. package/src/operationsInterfaces/network.ts +80 -0
  143. package/src/operationsInterfaces/operations.ts +22 -0
  144. package/src/operationsInterfaces/secret.ts +79 -0
  145. package/src/operationsInterfaces/secretValueOperations.ts +99 -0
  146. package/src/operationsInterfaces/service.ts +46 -0
  147. package/src/operationsInterfaces/serviceReplica.ts +50 -0
  148. package/src/operationsInterfaces/volume.ts +79 -0
  149. package/src/serviceFabricMeshManagementClient.ts +102 -53
  150. package/tsconfig.json +20 -7
  151. package/types/arm-servicefabricmesh.d.ts +1940 -0
  152. package/types/tsdoc-metadata.json +11 -0
  153. package/dist/arm-servicefabricmesh.js +0 -5363
  154. package/dist/arm-servicefabricmesh.js.map +0 -1
  155. package/dist/arm-servicefabricmesh.min.js +0 -1
  156. package/dist/arm-servicefabricmesh.min.js.map +0 -1
  157. package/esm/models/applicationMappers.d.ts +0 -2
  158. package/esm/models/applicationMappers.d.ts.map +0 -1
  159. package/esm/models/applicationMappers.js +0 -11
  160. package/esm/models/applicationMappers.js.map +0 -1
  161. package/esm/models/codePackageMappers.d.ts +0 -2
  162. package/esm/models/codePackageMappers.d.ts.map +0 -1
  163. package/esm/models/codePackageMappers.js +0 -11
  164. package/esm/models/codePackageMappers.js.map +0 -1
  165. package/esm/models/gatewayMappers.d.ts +0 -2
  166. package/esm/models/gatewayMappers.d.ts.map +0 -1
  167. package/esm/models/gatewayMappers.js +0 -11
  168. package/esm/models/gatewayMappers.js.map +0 -1
  169. package/esm/models/index.d.ts +0 -2938
  170. package/esm/models/index.d.ts.map +0 -1
  171. package/esm/models/index.js +0 -10
  172. package/esm/models/index.js.map +0 -1
  173. package/esm/models/mappers.d.ts +0 -102
  174. package/esm/models/mappers.d.ts.map +0 -1
  175. package/esm/models/mappers.js.map +0 -1
  176. package/esm/models/networkMappers.d.ts +0 -2
  177. package/esm/models/networkMappers.d.ts.map +0 -1
  178. package/esm/models/networkMappers.js +0 -11
  179. package/esm/models/networkMappers.js.map +0 -1
  180. package/esm/models/operationsMappers.d.ts +0 -2
  181. package/esm/models/operationsMappers.d.ts.map +0 -1
  182. package/esm/models/operationsMappers.js +0 -11
  183. package/esm/models/operationsMappers.js.map +0 -1
  184. package/esm/models/parameters.d.ts +0 -17
  185. package/esm/models/parameters.d.ts.map +0 -1
  186. package/esm/models/parameters.js.map +0 -1
  187. package/esm/models/secretMappers.d.ts +0 -2
  188. package/esm/models/secretMappers.d.ts.map +0 -1
  189. package/esm/models/secretMappers.js +0 -11
  190. package/esm/models/secretMappers.js.map +0 -1
  191. package/esm/models/secretValueOperationsMappers.d.ts +0 -2
  192. package/esm/models/secretValueOperationsMappers.d.ts.map +0 -1
  193. package/esm/models/secretValueOperationsMappers.js +0 -11
  194. package/esm/models/secretValueOperationsMappers.js.map +0 -1
  195. package/esm/models/serviceMappers.d.ts +0 -2
  196. package/esm/models/serviceMappers.d.ts.map +0 -1
  197. package/esm/models/serviceMappers.js +0 -11
  198. package/esm/models/serviceMappers.js.map +0 -1
  199. package/esm/models/serviceReplicaMappers.d.ts +0 -2
  200. package/esm/models/serviceReplicaMappers.d.ts.map +0 -1
  201. package/esm/models/serviceReplicaMappers.js +0 -11
  202. package/esm/models/serviceReplicaMappers.js.map +0 -1
  203. package/esm/models/volumeMappers.d.ts +0 -2
  204. package/esm/models/volumeMappers.d.ts.map +0 -1
  205. package/esm/models/volumeMappers.js +0 -11
  206. package/esm/models/volumeMappers.js.map +0 -1
  207. package/esm/operations/application.d.ts +0 -162
  208. package/esm/operations/application.d.ts.map +0 -1
  209. package/esm/operations/application.js +0 -238
  210. package/esm/operations/application.js.map +0 -1
  211. package/esm/operations/codePackage.d.ts +0 -44
  212. package/esm/operations/codePackage.d.ts.map +0 -1
  213. package/esm/operations/codePackage.js +0 -65
  214. package/esm/operations/codePackage.js.map +0 -1
  215. package/esm/operations/gateway.d.ts +0 -163
  216. package/esm/operations/gateway.d.ts.map +0 -1
  217. package/esm/operations/gateway.js +0 -238
  218. package/esm/operations/gateway.js.map +0 -1
  219. package/esm/operations/index.d.ts.map +0 -1
  220. package/esm/operations/index.js.map +0 -1
  221. package/esm/operations/network.d.ts +0 -162
  222. package/esm/operations/network.d.ts.map +0 -1
  223. package/esm/operations/network.js +0 -238
  224. package/esm/operations/network.js.map +0 -1
  225. package/esm/operations/operations.d.ts +0 -48
  226. package/esm/operations/operations.d.ts.map +0 -1
  227. package/esm/operations/operations.js +0 -77
  228. package/esm/operations/operations.js.map +0 -1
  229. package/esm/operations/secret.d.ts +0 -162
  230. package/esm/operations/secret.d.ts.map +0 -1
  231. package/esm/operations/secret.js +0 -238
  232. package/esm/operations/secret.js.map +0 -1
  233. package/esm/operations/secretValueOperations.d.ts +0 -175
  234. package/esm/operations/secretValueOperations.d.ts.map +0 -1
  235. package/esm/operations/secretValueOperations.js +0 -226
  236. package/esm/operations/secretValueOperations.js.map +0 -1
  237. package/esm/operations/service.d.ts +0 -82
  238. package/esm/operations/service.d.ts.map +0 -1
  239. package/esm/operations/service.js +0 -117
  240. package/esm/operations/service.js.map +0 -1
  241. package/esm/operations/serviceReplica.d.ts +0 -88
  242. package/esm/operations/serviceReplica.d.ts.map +0 -1
  243. package/esm/operations/serviceReplica.js +0 -121
  244. package/esm/operations/serviceReplica.js.map +0 -1
  245. package/esm/operations/volume.d.ts +0 -162
  246. package/esm/operations/volume.d.ts.map +0 -1
  247. package/esm/operations/volume.js +0 -238
  248. package/esm/operations/volume.js.map +0 -1
  249. package/esm/serviceFabricMeshManagementClient.d.ts +0 -33
  250. package/esm/serviceFabricMeshManagementClient.d.ts.map +0 -1
  251. package/esm/serviceFabricMeshManagementClient.js +0 -47
  252. package/esm/serviceFabricMeshManagementClient.js.map +0 -1
  253. package/esm/serviceFabricMeshManagementClientContext.d.ts +0 -22
  254. package/esm/serviceFabricMeshManagementClientContext.d.ts.map +0 -1
  255. package/esm/serviceFabricMeshManagementClientContext.js +0 -61
  256. package/esm/serviceFabricMeshManagementClientContext.js.map +0 -1
  257. package/src/models/applicationMappers.ts +0 -76
  258. package/src/models/codePackageMappers.ts +0 -18
  259. package/src/models/gatewayMappers.ts +0 -76
  260. package/src/models/networkMappers.ts +0 -76
  261. package/src/models/operationsMappers.ts +0 -20
  262. package/src/models/secretMappers.ts +0 -76
  263. package/src/models/secretValueOperationsMappers.ts +0 -77
  264. package/src/models/serviceMappers.ts +0 -76
  265. package/src/models/serviceReplicaMappers.ts +0 -40
  266. package/src/models/volumeMappers.ts +0 -76
  267. package/src/serviceFabricMeshManagementClientContext.ts +0 -68
@@ -0,0 +1,303 @@
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 } 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
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing SecretValueOperations operations. */
14
+ export class SecretValueOperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class SecretValueOperations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets information about all secret value resources of the specified secret resource. The information
24
+ * includes the names of the secret value resources, but not the actual values.
25
+ * @param resourceGroupName Azure resource group name
26
+ * @param secretResourceName The name of the secret resource.
27
+ * @param options The options parameters.
28
+ */
29
+ list(resourceGroupName, secretResourceName, options) {
30
+ const iter = this.listPagingAll(resourceGroupName, secretResourceName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listPagingPage(resourceGroupName, secretResourceName, options);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(resourceGroupName, secretResourceName, options) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result = yield __await(this._list(resourceGroupName, secretResourceName, options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listNext(resourceGroupName, secretResourceName, continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listPagingAll(resourceGroupName, secretResourceName, options) {
56
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, secretResourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Creates a new value of the specified secret resource. The name of the value is typically the version
75
+ * identifier. Once created the value cannot be changed.
76
+ * @param resourceGroupName Azure resource group name
77
+ * @param secretResourceName The name of the secret resource.
78
+ * @param secretValueResourceName The name of the secret resource value which is typically the version
79
+ * identifier for the value.
80
+ * @param secretValueResourceDescription Description for creating a value of a secret resource.
81
+ * @param options The options parameters.
82
+ */
83
+ create(resourceGroupName, secretResourceName, secretValueResourceName, secretValueResourceDescription, options) {
84
+ return this.client.sendOperationRequest({
85
+ resourceGroupName,
86
+ secretResourceName,
87
+ secretValueResourceName,
88
+ secretValueResourceDescription,
89
+ options
90
+ }, createOperationSpec);
91
+ }
92
+ /**
93
+ * Get the information about the specified named secret value resources. The information does not
94
+ * include the actual value of the secret.
95
+ * @param resourceGroupName Azure resource group name
96
+ * @param secretResourceName The name of the secret resource.
97
+ * @param secretValueResourceName The name of the secret resource value which is typically the version
98
+ * identifier for the value.
99
+ * @param options The options parameters.
100
+ */
101
+ get(resourceGroupName, secretResourceName, secretValueResourceName, options) {
102
+ return this.client.sendOperationRequest({
103
+ resourceGroupName,
104
+ secretResourceName,
105
+ secretValueResourceName,
106
+ options
107
+ }, getOperationSpec);
108
+ }
109
+ /**
110
+ * Deletes the secret value resource identified by the name. The name of the resource is typically the
111
+ * version associated with that value. Deletion will fail if the specified value is in use.
112
+ * @param resourceGroupName Azure resource group name
113
+ * @param secretResourceName The name of the secret resource.
114
+ * @param secretValueResourceName The name of the secret resource value which is typically the version
115
+ * identifier for the value.
116
+ * @param options The options parameters.
117
+ */
118
+ delete(resourceGroupName, secretResourceName, secretValueResourceName, options) {
119
+ return this.client.sendOperationRequest({
120
+ resourceGroupName,
121
+ secretResourceName,
122
+ secretValueResourceName,
123
+ options
124
+ }, deleteOperationSpec);
125
+ }
126
+ /**
127
+ * Gets information about all secret value resources of the specified secret resource. The information
128
+ * includes the names of the secret value resources, but not the actual values.
129
+ * @param resourceGroupName Azure resource group name
130
+ * @param secretResourceName The name of the secret resource.
131
+ * @param options The options parameters.
132
+ */
133
+ _list(resourceGroupName, secretResourceName, options) {
134
+ return this.client.sendOperationRequest({ resourceGroupName, secretResourceName, options }, listOperationSpec);
135
+ }
136
+ /**
137
+ * Lists the decrypted value of the specified named value of the secret resource. This is a privileged
138
+ * operation.
139
+ * @param resourceGroupName Azure resource group name
140
+ * @param secretResourceName The name of the secret resource.
141
+ * @param secretValueResourceName The name of the secret resource value which is typically the version
142
+ * identifier for the value.
143
+ * @param options The options parameters.
144
+ */
145
+ listValue(resourceGroupName, secretResourceName, secretValueResourceName, options) {
146
+ return this.client.sendOperationRequest({
147
+ resourceGroupName,
148
+ secretResourceName,
149
+ secretValueResourceName,
150
+ options
151
+ }, listValueOperationSpec);
152
+ }
153
+ /**
154
+ * ListNext
155
+ * @param resourceGroupName Azure resource group name
156
+ * @param secretResourceName The name of the secret resource.
157
+ * @param nextLink The nextLink from the previous successful call to the List method.
158
+ * @param options The options parameters.
159
+ */
160
+ _listNext(resourceGroupName, secretResourceName, nextLink, options) {
161
+ return this.client.sendOperationRequest({ resourceGroupName, secretResourceName, nextLink, options }, listNextOperationSpec);
162
+ }
163
+ }
164
+ // Operation Specifications
165
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
166
+ const createOperationSpec = {
167
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}",
168
+ httpMethod: "PUT",
169
+ responses: {
170
+ 200: {
171
+ bodyMapper: Mappers.SecretValueResourceDescription
172
+ },
173
+ 201: {
174
+ bodyMapper: Mappers.SecretValueResourceDescription
175
+ },
176
+ 202: {},
177
+ default: {
178
+ bodyMapper: Mappers.ErrorModel
179
+ }
180
+ },
181
+ requestBody: Parameters.secretValueResourceDescription,
182
+ queryParameters: [Parameters.apiVersion],
183
+ urlParameters: [
184
+ Parameters.$host,
185
+ Parameters.subscriptionId,
186
+ Parameters.resourceGroupName,
187
+ Parameters.secretResourceName,
188
+ Parameters.secretValueResourceName
189
+ ],
190
+ headerParameters: [Parameters.accept, Parameters.contentType],
191
+ mediaType: "json",
192
+ serializer
193
+ };
194
+ const getOperationSpec = {
195
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}",
196
+ httpMethod: "GET",
197
+ responses: {
198
+ 200: {
199
+ bodyMapper: Mappers.SecretValueResourceDescription
200
+ },
201
+ default: {
202
+ bodyMapper: Mappers.ErrorModel
203
+ }
204
+ },
205
+ queryParameters: [Parameters.apiVersion],
206
+ urlParameters: [
207
+ Parameters.$host,
208
+ Parameters.subscriptionId,
209
+ Parameters.resourceGroupName,
210
+ Parameters.secretResourceName,
211
+ Parameters.secretValueResourceName
212
+ ],
213
+ headerParameters: [Parameters.accept],
214
+ serializer
215
+ };
216
+ const deleteOperationSpec = {
217
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}",
218
+ httpMethod: "DELETE",
219
+ responses: {
220
+ 200: {},
221
+ 202: {},
222
+ 204: {},
223
+ default: {
224
+ bodyMapper: Mappers.ErrorModel
225
+ }
226
+ },
227
+ queryParameters: [Parameters.apiVersion],
228
+ urlParameters: [
229
+ Parameters.$host,
230
+ Parameters.subscriptionId,
231
+ Parameters.resourceGroupName,
232
+ Parameters.secretResourceName,
233
+ Parameters.secretValueResourceName
234
+ ],
235
+ headerParameters: [Parameters.accept],
236
+ serializer
237
+ };
238
+ const listOperationSpec = {
239
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values",
240
+ httpMethod: "GET",
241
+ responses: {
242
+ 200: {
243
+ bodyMapper: Mappers.SecretValueResourceDescriptionList
244
+ },
245
+ default: {
246
+ bodyMapper: Mappers.ErrorModel
247
+ }
248
+ },
249
+ queryParameters: [Parameters.apiVersion],
250
+ urlParameters: [
251
+ Parameters.$host,
252
+ Parameters.subscriptionId,
253
+ Parameters.resourceGroupName,
254
+ Parameters.secretResourceName
255
+ ],
256
+ headerParameters: [Parameters.accept],
257
+ serializer
258
+ };
259
+ const listValueOperationSpec = {
260
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}/list_value",
261
+ httpMethod: "POST",
262
+ responses: {
263
+ 200: {
264
+ bodyMapper: Mappers.SecretValue
265
+ },
266
+ default: {
267
+ bodyMapper: Mappers.ErrorModel
268
+ }
269
+ },
270
+ queryParameters: [Parameters.apiVersion],
271
+ urlParameters: [
272
+ Parameters.$host,
273
+ Parameters.subscriptionId,
274
+ Parameters.resourceGroupName,
275
+ Parameters.secretResourceName,
276
+ Parameters.secretValueResourceName
277
+ ],
278
+ headerParameters: [Parameters.accept],
279
+ serializer
280
+ };
281
+ const listNextOperationSpec = {
282
+ path: "{nextLink}",
283
+ httpMethod: "GET",
284
+ responses: {
285
+ 200: {
286
+ bodyMapper: Mappers.SecretValueResourceDescriptionList
287
+ },
288
+ default: {
289
+ bodyMapper: Mappers.ErrorModel
290
+ }
291
+ },
292
+ queryParameters: [Parameters.apiVersion],
293
+ urlParameters: [
294
+ Parameters.$host,
295
+ Parameters.nextLink,
296
+ Parameters.subscriptionId,
297
+ Parameters.resourceGroupName,
298
+ Parameters.secretResourceName
299
+ ],
300
+ headerParameters: [Parameters.accept],
301
+ serializer
302
+ };
303
+ //# sourceMappingURL=secretValueOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secretValueOperations.js","sourceRoot":"","sources":["../../../src/operations/secretValueOperations.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;AAiBnD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,kBAA0B,EAC1B,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OA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AAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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,kBAAkB;QAC7B,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Service } from "../operationsInterfaces";
3
+ import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
4
+ import { ServiceResourceDescription, ServiceListOptionalParams, ServiceGetOptionalParams, ServiceGetResponse } from "../models";
5
+ /** Class containing Service operations. */
6
+ export declare class ServiceImpl implements Service {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Service class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: ServiceFabricMeshManagementClient);
13
+ /**
14
+ * Gets the information about all services of an application resource. The information include the
15
+ * description and other properties of the Service.
16
+ * @param resourceGroupName Azure resource group name
17
+ * @param applicationResourceName The identity of the application.
18
+ * @param options The options parameters.
19
+ */
20
+ list(resourceGroupName: string, applicationResourceName: string, options?: ServiceListOptionalParams): PagedAsyncIterableIterator<ServiceResourceDescription>;
21
+ private listPagingPage;
22
+ private listPagingAll;
23
+ /**
24
+ * Gets the information about the service resource with the given name. The information include the
25
+ * description and other properties of the service.
26
+ * @param resourceGroupName Azure resource group name
27
+ * @param applicationResourceName The identity of the application.
28
+ * @param serviceResourceName The identity of the service.
29
+ * @param options The options parameters.
30
+ */
31
+ get(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, options?: ServiceGetOptionalParams): Promise<ServiceGetResponse>;
32
+ /**
33
+ * Gets the information about all services of an application resource. The information include the
34
+ * description and other properties of the Service.
35
+ * @param resourceGroupName Azure resource group name
36
+ * @param applicationResourceName The identity of the application.
37
+ * @param options The options parameters.
38
+ */
39
+ private _list;
40
+ /**
41
+ * ListNext
42
+ * @param resourceGroupName Azure resource group name
43
+ * @param applicationResourceName The identity of the application.
44
+ * @param nextLink The nextLink from the previous successful call to the List method.
45
+ * @param options The options parameters.
46
+ */
47
+ private _listNext;
48
+ }
49
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/operations/service.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,0BAA0B,EAE1B,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAGnB,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;OAMG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,yBAAyB,GAClC,0BAA0B,CAAC,0BAA0B,CAAC;YAuB1C,cAAc;YAwBd,aAAa;IAc5B;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAY9B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,177 @@
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 } 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
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Service operations. */
14
+ export class ServiceImpl {
15
+ /**
16
+ * Initialize a new instance of the class Service class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets the information about all services of an application resource. The information include the
24
+ * description and other properties of the Service.
25
+ * @param resourceGroupName Azure resource group name
26
+ * @param applicationResourceName The identity of the application.
27
+ * @param options The options parameters.
28
+ */
29
+ list(resourceGroupName, applicationResourceName, options) {
30
+ const iter = this.listPagingAll(resourceGroupName, applicationResourceName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listPagingPage(resourceGroupName, applicationResourceName, options);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(resourceGroupName, applicationResourceName, options) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result = yield __await(this._list(resourceGroupName, applicationResourceName, options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listNext(resourceGroupName, applicationResourceName, continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listPagingAll(resourceGroupName, applicationResourceName, options) {
56
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, applicationResourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Gets the information about the service resource with the given name. The information include the
75
+ * description and other properties of the service.
76
+ * @param resourceGroupName Azure resource group name
77
+ * @param applicationResourceName The identity of the application.
78
+ * @param serviceResourceName The identity of the service.
79
+ * @param options The options parameters.
80
+ */
81
+ get(resourceGroupName, applicationResourceName, serviceResourceName, options) {
82
+ return this.client.sendOperationRequest({
83
+ resourceGroupName,
84
+ applicationResourceName,
85
+ serviceResourceName,
86
+ options
87
+ }, getOperationSpec);
88
+ }
89
+ /**
90
+ * Gets the information about all services of an application resource. The information include the
91
+ * description and other properties of the Service.
92
+ * @param resourceGroupName Azure resource group name
93
+ * @param applicationResourceName The identity of the application.
94
+ * @param options The options parameters.
95
+ */
96
+ _list(resourceGroupName, applicationResourceName, options) {
97
+ return this.client.sendOperationRequest({ resourceGroupName, applicationResourceName, options }, listOperationSpec);
98
+ }
99
+ /**
100
+ * ListNext
101
+ * @param resourceGroupName Azure resource group name
102
+ * @param applicationResourceName The identity of the application.
103
+ * @param nextLink The nextLink from the previous successful call to the List method.
104
+ * @param options The options parameters.
105
+ */
106
+ _listNext(resourceGroupName, applicationResourceName, nextLink, options) {
107
+ return this.client.sendOperationRequest({ resourceGroupName, applicationResourceName, nextLink, options }, listNextOperationSpec);
108
+ }
109
+ }
110
+ // Operation Specifications
111
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
112
+ const getOperationSpec = {
113
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}",
114
+ httpMethod: "GET",
115
+ responses: {
116
+ 200: {
117
+ bodyMapper: Mappers.ServiceResourceDescription
118
+ },
119
+ default: {
120
+ bodyMapper: Mappers.ErrorModel
121
+ }
122
+ },
123
+ queryParameters: [Parameters.apiVersion],
124
+ urlParameters: [
125
+ Parameters.$host,
126
+ Parameters.subscriptionId,
127
+ Parameters.resourceGroupName,
128
+ Parameters.applicationResourceName,
129
+ Parameters.serviceResourceName
130
+ ],
131
+ headerParameters: [Parameters.accept],
132
+ serializer
133
+ };
134
+ const listOperationSpec = {
135
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services",
136
+ httpMethod: "GET",
137
+ responses: {
138
+ 200: {
139
+ bodyMapper: Mappers.ServiceResourceDescriptionList
140
+ },
141
+ default: {
142
+ bodyMapper: Mappers.ErrorModel
143
+ }
144
+ },
145
+ queryParameters: [Parameters.apiVersion],
146
+ urlParameters: [
147
+ Parameters.$host,
148
+ Parameters.subscriptionId,
149
+ Parameters.resourceGroupName,
150
+ Parameters.applicationResourceName
151
+ ],
152
+ headerParameters: [Parameters.accept],
153
+ serializer
154
+ };
155
+ const listNextOperationSpec = {
156
+ path: "{nextLink}",
157
+ httpMethod: "GET",
158
+ responses: {
159
+ 200: {
160
+ bodyMapper: Mappers.ServiceResourceDescriptionList
161
+ },
162
+ default: {
163
+ bodyMapper: Mappers.ErrorModel
164
+ }
165
+ },
166
+ queryParameters: [Parameters.apiVersion],
167
+ urlParameters: [
168
+ Parameters.$host,
169
+ Parameters.nextLink,
170
+ Parameters.subscriptionId,
171
+ Parameters.resourceGroupName,
172
+ Parameters.applicationResourceName
173
+ ],
174
+ headerParameters: [Parameters.accept],
175
+ serializer
176
+ };
177
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/operations/service.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;AAYnD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,uBAA+B,EAC/B,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,uBAAuB,EACvB,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,cAAc,CACxB,iBAAiB,EACjB,uBAAuB,EACvB,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,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AiB;QAC5B,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ServiceReplica } from "../operationsInterfaces";
3
+ import { ServiceFabricMeshManagementClient } from "../serviceFabricMeshManagementClient";
4
+ import { ServiceReplicaDescription, ServiceReplicaListOptionalParams, ServiceReplicaGetOptionalParams, ServiceReplicaGetResponse } from "../models";
5
+ /** Class containing ServiceReplica operations. */
6
+ export declare class ServiceReplicaImpl implements ServiceReplica {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ServiceReplica class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: ServiceFabricMeshManagementClient);
13
+ /**
14
+ * Gets the information about all replicas of a given service of an application. The information
15
+ * includes the runtime properties of the replica instance.
16
+ * @param resourceGroupName Azure resource group name
17
+ * @param applicationResourceName The identity of the application.
18
+ * @param serviceResourceName The identity of the service.
19
+ * @param options The options parameters.
20
+ */
21
+ list(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, options?: ServiceReplicaListOptionalParams): PagedAsyncIterableIterator<ServiceReplicaDescription>;
22
+ private listPagingPage;
23
+ private listPagingAll;
24
+ /**
25
+ * Gets the information about the service replica with the given name. The information include the
26
+ * description and other properties of the service replica.
27
+ * @param resourceGroupName Azure resource group name
28
+ * @param applicationResourceName The identity of the application.
29
+ * @param serviceResourceName The identity of the service.
30
+ * @param replicaName Service Fabric replica name.
31
+ * @param options The options parameters.
32
+ */
33
+ get(resourceGroupName: string, applicationResourceName: string, serviceResourceName: string, replicaName: string, options?: ServiceReplicaGetOptionalParams): Promise<ServiceReplicaGetResponse>;
34
+ /**
35
+ * Gets the information about all replicas of a given service of an application. The information
36
+ * includes the runtime properties of the replica instance.
37
+ * @param resourceGroupName Azure resource group name
38
+ * @param applicationResourceName The identity of the application.
39
+ * @param serviceResourceName The identity of the service.
40
+ * @param options The options parameters.
41
+ */
42
+ private _list;
43
+ /**
44
+ * ListNext
45
+ * @param resourceGroupName Azure resource group name
46
+ * @param applicationResourceName The identity of the application.
47
+ * @param serviceResourceName The identity of the service.
48
+ * @param nextLink The nextLink from the previous successful call to the List method.
49
+ * @param options The options parameters.
50
+ */
51
+ private _listNext;
52
+ }
53
+ //# sourceMappingURL=serviceReplica.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceReplica.d.ts","sourceRoot":"","sources":["../../../src/operations/serviceReplica.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,yBAAyB,EAEzB,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EAG1B,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;;OAOG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,yBAAyB,CAAC;YAyBzC,cAAc;YA2Bd,aAAa;IAgB5B;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAarC;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAiBb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAkBlB"}