@azure-rest/arm-servicefabric 1.0.0-beta.1 → 1.0.0-beta.2

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 (224) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +4 -6
  3. package/dist/browser/clientDefinitions.d.ts +137 -0
  4. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  5. package/dist/browser/clientDefinitions.js +4 -0
  6. package/dist/browser/clientDefinitions.js.map +1 -0
  7. package/dist/browser/customizedApiVersionPolicy.d.ts +10 -0
  8. package/dist/browser/customizedApiVersionPolicy.d.ts.map +1 -0
  9. package/{dist-esm/src → dist/browser}/customizedApiVersionPolicy.js +1 -1
  10. package/dist/browser/customizedApiVersionPolicy.js.map +1 -0
  11. package/dist/browser/index.d.ts +12 -0
  12. package/dist/browser/index.d.ts.map +1 -0
  13. package/dist/browser/index.js +14 -0
  14. package/dist/browser/index.js.map +1 -0
  15. package/dist/browser/isUnexpected.d.ts +32 -0
  16. package/dist/browser/isUnexpected.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/isUnexpected.js +64 -120
  18. package/dist/browser/isUnexpected.js.map +1 -0
  19. package/dist/browser/logger.d.ts +2 -0
  20. package/dist/browser/logger.d.ts.map +1 -0
  21. package/dist/browser/logger.js +5 -0
  22. package/dist/browser/logger.js.map +1 -0
  23. package/dist/browser/models.d.ts +772 -0
  24. package/dist/browser/models.d.ts.map +1 -0
  25. package/dist/browser/models.js +4 -0
  26. package/dist/browser/models.js.map +1 -0
  27. package/dist/browser/outputModels.d.ts +861 -0
  28. package/dist/browser/outputModels.d.ts.map +1 -0
  29. package/dist/browser/outputModels.js +4 -0
  30. package/dist/browser/outputModels.js.map +1 -0
  31. package/dist/browser/package.json +3 -0
  32. package/dist/browser/paginateHelper.d.ts +68 -0
  33. package/dist/browser/paginateHelper.d.ts.map +1 -0
  34. package/dist/browser/paginateHelper.js +167 -0
  35. package/dist/browser/paginateHelper.js.map +1 -0
  36. package/dist/browser/parameters.d.ts +105 -0
  37. package/dist/browser/parameters.d.ts.map +1 -0
  38. package/dist/browser/parameters.js +4 -0
  39. package/dist/browser/parameters.js.map +1 -0
  40. package/dist/browser/pollingHelper.d.ts +76 -0
  41. package/dist/browser/pollingHelper.d.ts.map +1 -0
  42. package/dist/browser/pollingHelper.js +104 -0
  43. package/dist/browser/pollingHelper.js.map +1 -0
  44. package/dist/browser/responses.d.ts +328 -0
  45. package/dist/browser/responses.d.ts.map +1 -0
  46. package/dist/browser/responses.js +4 -0
  47. package/dist/browser/responses.js.map +1 -0
  48. package/dist/browser/serviceFabricClient.d.ts +15 -0
  49. package/dist/browser/serviceFabricClient.d.ts.map +1 -0
  50. package/dist/browser/serviceFabricClient.js +42 -0
  51. package/dist/browser/serviceFabricClient.js.map +1 -0
  52. package/dist/commonjs/clientDefinitions.d.ts +137 -0
  53. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  54. package/dist/commonjs/clientDefinitions.js +5 -0
  55. package/dist/commonjs/clientDefinitions.js.map +1 -0
  56. package/dist/commonjs/customizedApiVersionPolicy.d.ts +10 -0
  57. package/dist/commonjs/customizedApiVersionPolicy.d.ts.map +1 -0
  58. package/dist/commonjs/customizedApiVersionPolicy.js +27 -0
  59. package/dist/commonjs/customizedApiVersionPolicy.js.map +1 -0
  60. package/dist/commonjs/index.d.ts +12 -0
  61. package/dist/commonjs/index.d.ts.map +1 -0
  62. package/dist/commonjs/index.js +17 -0
  63. package/dist/commonjs/index.js.map +1 -0
  64. package/dist/commonjs/isUnexpected.d.ts +32 -0
  65. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  66. package/dist/commonjs/isUnexpected.js +102 -0
  67. package/dist/commonjs/isUnexpected.js.map +1 -0
  68. package/dist/commonjs/logger.d.ts +2 -0
  69. package/dist/commonjs/logger.d.ts.map +1 -0
  70. package/dist/commonjs/logger.js +8 -0
  71. package/dist/commonjs/logger.js.map +1 -0
  72. package/dist/commonjs/models.d.ts +772 -0
  73. package/dist/commonjs/models.d.ts.map +1 -0
  74. package/dist/commonjs/models.js +5 -0
  75. package/dist/commonjs/models.js.map +1 -0
  76. package/dist/commonjs/outputModels.d.ts +861 -0
  77. package/dist/commonjs/outputModels.d.ts.map +1 -0
  78. package/dist/commonjs/outputModels.js +5 -0
  79. package/dist/commonjs/outputModels.js.map +1 -0
  80. package/dist/commonjs/package.json +3 -0
  81. package/dist/commonjs/paginateHelper.d.ts +68 -0
  82. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  83. package/dist/commonjs/paginateHelper.js +170 -0
  84. package/dist/commonjs/paginateHelper.js.map +1 -0
  85. package/dist/commonjs/parameters.d.ts +105 -0
  86. package/dist/commonjs/parameters.d.ts.map +1 -0
  87. package/dist/commonjs/parameters.js +5 -0
  88. package/dist/commonjs/parameters.js.map +1 -0
  89. package/dist/commonjs/pollingHelper.d.ts +76 -0
  90. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  91. package/dist/commonjs/pollingHelper.js +107 -0
  92. package/dist/commonjs/pollingHelper.js.map +1 -0
  93. package/dist/commonjs/responses.d.ts +328 -0
  94. package/dist/commonjs/responses.d.ts.map +1 -0
  95. package/dist/commonjs/responses.js +5 -0
  96. package/dist/commonjs/responses.js.map +1 -0
  97. package/dist/commonjs/serviceFabricClient.d.ts +15 -0
  98. package/dist/commonjs/serviceFabricClient.d.ts.map +1 -0
  99. package/dist/commonjs/serviceFabricClient.js +45 -0
  100. package/dist/commonjs/serviceFabricClient.js.map +1 -0
  101. package/dist/commonjs/tsdoc-metadata.json +11 -0
  102. package/dist/esm/clientDefinitions.d.ts +137 -0
  103. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  104. package/dist/esm/clientDefinitions.js +4 -0
  105. package/dist/esm/clientDefinitions.js.map +1 -0
  106. package/dist/esm/customizedApiVersionPolicy.d.ts +10 -0
  107. package/dist/esm/customizedApiVersionPolicy.d.ts.map +1 -0
  108. package/dist/esm/customizedApiVersionPolicy.js +23 -0
  109. package/dist/esm/customizedApiVersionPolicy.js.map +1 -0
  110. package/dist/esm/index.d.ts +12 -0
  111. package/dist/esm/index.d.ts.map +1 -0
  112. package/dist/esm/index.js +14 -0
  113. package/dist/esm/index.js.map +1 -0
  114. package/dist/esm/isUnexpected.d.ts +32 -0
  115. package/dist/esm/isUnexpected.d.ts.map +1 -0
  116. package/dist/esm/isUnexpected.js +99 -0
  117. package/dist/esm/isUnexpected.js.map +1 -0
  118. package/dist/esm/logger.d.ts +2 -0
  119. package/dist/esm/logger.d.ts.map +1 -0
  120. package/dist/esm/logger.js +5 -0
  121. package/dist/esm/logger.js.map +1 -0
  122. package/dist/esm/models.d.ts +772 -0
  123. package/dist/esm/models.d.ts.map +1 -0
  124. package/dist/esm/models.js +4 -0
  125. package/dist/esm/models.js.map +1 -0
  126. package/dist/esm/outputModels.d.ts +861 -0
  127. package/dist/esm/outputModels.d.ts.map +1 -0
  128. package/dist/esm/outputModels.js +4 -0
  129. package/dist/esm/outputModels.js.map +1 -0
  130. package/dist/esm/package.json +3 -0
  131. package/dist/esm/paginateHelper.d.ts +68 -0
  132. package/dist/esm/paginateHelper.d.ts.map +1 -0
  133. package/dist/esm/paginateHelper.js +167 -0
  134. package/dist/esm/paginateHelper.js.map +1 -0
  135. package/dist/esm/parameters.d.ts +105 -0
  136. package/dist/esm/parameters.d.ts.map +1 -0
  137. package/dist/esm/parameters.js +4 -0
  138. package/dist/esm/parameters.js.map +1 -0
  139. package/dist/esm/pollingHelper.d.ts +76 -0
  140. package/dist/esm/pollingHelper.d.ts.map +1 -0
  141. package/dist/esm/pollingHelper.js +104 -0
  142. package/dist/esm/pollingHelper.js.map +1 -0
  143. package/dist/esm/responses.d.ts +328 -0
  144. package/dist/esm/responses.d.ts.map +1 -0
  145. package/dist/esm/responses.js +4 -0
  146. package/dist/esm/responses.js.map +1 -0
  147. package/dist/esm/serviceFabricClient.d.ts +15 -0
  148. package/dist/esm/serviceFabricClient.d.ts.map +1 -0
  149. package/dist/esm/serviceFabricClient.js +42 -0
  150. package/dist/esm/serviceFabricClient.js.map +1 -0
  151. package/dist/react-native/clientDefinitions.d.ts +137 -0
  152. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  153. package/dist/react-native/clientDefinitions.js +4 -0
  154. package/dist/react-native/clientDefinitions.js.map +1 -0
  155. package/dist/react-native/customizedApiVersionPolicy.d.ts +10 -0
  156. package/dist/react-native/customizedApiVersionPolicy.d.ts.map +1 -0
  157. package/dist/react-native/customizedApiVersionPolicy.js +23 -0
  158. package/dist/react-native/customizedApiVersionPolicy.js.map +1 -0
  159. package/dist/react-native/index.d.ts +12 -0
  160. package/dist/react-native/index.d.ts.map +1 -0
  161. package/dist/react-native/index.js +14 -0
  162. package/dist/react-native/index.js.map +1 -0
  163. package/dist/react-native/isUnexpected.d.ts +32 -0
  164. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  165. package/dist/react-native/isUnexpected.js +99 -0
  166. package/dist/react-native/isUnexpected.js.map +1 -0
  167. package/dist/react-native/logger.d.ts +2 -0
  168. package/dist/react-native/logger.d.ts.map +1 -0
  169. package/dist/react-native/logger.js +5 -0
  170. package/dist/react-native/logger.js.map +1 -0
  171. package/dist/react-native/models.d.ts +772 -0
  172. package/dist/react-native/models.d.ts.map +1 -0
  173. package/dist/react-native/models.js +4 -0
  174. package/dist/react-native/models.js.map +1 -0
  175. package/dist/react-native/outputModels.d.ts +861 -0
  176. package/dist/react-native/outputModels.d.ts.map +1 -0
  177. package/dist/react-native/outputModels.js +4 -0
  178. package/dist/react-native/outputModels.js.map +1 -0
  179. package/dist/react-native/package.json +3 -0
  180. package/dist/react-native/paginateHelper.d.ts +68 -0
  181. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  182. package/dist/react-native/paginateHelper.js +167 -0
  183. package/dist/react-native/paginateHelper.js.map +1 -0
  184. package/dist/react-native/parameters.d.ts +105 -0
  185. package/dist/react-native/parameters.d.ts.map +1 -0
  186. package/dist/react-native/parameters.js +4 -0
  187. package/dist/react-native/parameters.js.map +1 -0
  188. package/dist/react-native/pollingHelper.d.ts +76 -0
  189. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  190. package/dist/react-native/pollingHelper.js +104 -0
  191. package/dist/react-native/pollingHelper.js.map +1 -0
  192. package/dist/react-native/responses.d.ts +328 -0
  193. package/dist/react-native/responses.d.ts.map +1 -0
  194. package/dist/react-native/responses.js +4 -0
  195. package/dist/react-native/responses.js.map +1 -0
  196. package/dist/react-native/serviceFabricClient.d.ts +15 -0
  197. package/dist/react-native/serviceFabricClient.d.ts.map +1 -0
  198. package/dist/react-native/serviceFabricClient.js +42 -0
  199. package/dist/react-native/serviceFabricClient.js.map +1 -0
  200. package/package.json +82 -66
  201. package/dist/index.js +0 -330
  202. package/dist/index.js.map +0 -1
  203. package/dist-esm/src/clientDefinitions.js +0 -4
  204. package/dist-esm/src/clientDefinitions.js.map +0 -1
  205. package/dist-esm/src/customizedApiVersionPolicy.js.map +0 -1
  206. package/dist-esm/src/index.js +0 -14
  207. package/dist-esm/src/index.js.map +0 -1
  208. package/dist-esm/src/isUnexpected.js.map +0 -1
  209. package/dist-esm/src/models.js +0 -4
  210. package/dist-esm/src/models.js.map +0 -1
  211. package/dist-esm/src/outputModels.js +0 -4
  212. package/dist-esm/src/outputModels.js.map +0 -1
  213. package/dist-esm/src/paginateHelper.js +0 -70
  214. package/dist-esm/src/paginateHelper.js.map +0 -1
  215. package/dist-esm/src/parameters.js +0 -4
  216. package/dist-esm/src/parameters.js.map +0 -1
  217. package/dist-esm/src/pollingHelper.js +0 -48
  218. package/dist-esm/src/pollingHelper.js.map +0 -1
  219. package/dist-esm/src/responses.js +0 -4
  220. package/dist-esm/src/responses.js.map +0 -1
  221. package/dist-esm/src/serviceFabricClient.js +0 -27
  222. package/dist-esm/src/serviceFabricClient.js.map +0 -1
  223. package/review/arm-servicefabric.api.md +0 -2071
  224. package/types/arm-servicefabric.d.ts +0 -2480
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=parameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n ApplicationResource,\n ApplicationResourceUpdate,\n ApplicationTypeResource,\n ApplicationTypeVersionResource,\n Cluster,\n ClusterUpdateParameters,\n ServiceResource,\n ServiceResourceUpdate,\n UpgradableVersionsDescription,\n} from \"./models\";\n\nexport type ClustersGetParameters = RequestParameters;\n\nexport interface ClustersCreateOrUpdateBodyParam {\n /** The cluster resource. */\n body: Cluster;\n}\n\nexport interface ClustersCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ClustersCreateOrUpdateParameters = ClustersCreateOrUpdateMediaTypesParam &\n ClustersCreateOrUpdateBodyParam &\n RequestParameters;\n\nexport interface ClustersUpdateBodyParam {\n /** The parameters which contains the property value and property name which used to update the cluster configuration. */\n body: ClusterUpdateParameters;\n}\n\nexport interface ClustersUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ClustersUpdateParameters = ClustersUpdateMediaTypesParam &\n ClustersUpdateBodyParam &\n RequestParameters;\nexport type ClustersDeleteParameters = RequestParameters;\nexport type ClustersListByResourceGroupParameters = RequestParameters;\nexport type ClustersListParameters = RequestParameters;\n\nexport interface ClustersListUpgradableVersionsBodyParam {\n /** The upgrade path description with target version. */\n body?: UpgradableVersionsDescription;\n}\n\nexport interface ClustersListUpgradableVersionsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ClustersListUpgradableVersionsParameters = ClustersListUpgradableVersionsMediaTypesParam &\n ClustersListUpgradableVersionsBodyParam &\n RequestParameters;\nexport type ClusterVersionsGetParameters = RequestParameters;\nexport type ClusterVersionsGetByEnvironmentParameters = RequestParameters;\nexport type ClusterVersionsListParameters = RequestParameters;\nexport type ClusterVersionsListByEnvironmentParameters = RequestParameters;\nexport type OperationsListParameters = RequestParameters;\nexport type ApplicationTypesGetParameters = RequestParameters;\n\nexport interface ApplicationTypesCreateOrUpdateBodyParam {\n /** The application type name resource. */\n body: ApplicationTypeResource;\n}\n\nexport interface ApplicationTypesCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationTypesCreateOrUpdateParameters = ApplicationTypesCreateOrUpdateMediaTypesParam &\n ApplicationTypesCreateOrUpdateBodyParam &\n RequestParameters;\nexport type ApplicationTypesDeleteParameters = RequestParameters;\nexport type ApplicationTypesListParameters = RequestParameters;\nexport type ApplicationTypeVersionsGetParameters = RequestParameters;\n\nexport interface ApplicationTypeVersionsCreateOrUpdateBodyParam {\n /** The application type version resource. */\n body: ApplicationTypeVersionResource;\n}\n\nexport interface ApplicationTypeVersionsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationTypeVersionsCreateOrUpdateParameters = ApplicationTypeVersionsCreateOrUpdateMediaTypesParam &\n ApplicationTypeVersionsCreateOrUpdateBodyParam &\n RequestParameters;\nexport type ApplicationTypeVersionsDeleteParameters = RequestParameters;\nexport type ApplicationTypeVersionsListParameters = RequestParameters;\nexport type ApplicationsGetParameters = RequestParameters;\n\nexport interface ApplicationsCreateOrUpdateBodyParam {\n /** The application resource. */\n body: ApplicationResource;\n}\n\nexport interface ApplicationsCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationsCreateOrUpdateParameters = ApplicationsCreateOrUpdateMediaTypesParam &\n ApplicationsCreateOrUpdateBodyParam &\n RequestParameters;\n\nexport interface ApplicationsUpdateBodyParam {\n /** The application resource for patch operations. */\n body: ApplicationResourceUpdate;\n}\n\nexport interface ApplicationsUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ApplicationsUpdateParameters = ApplicationsUpdateMediaTypesParam &\n ApplicationsUpdateBodyParam &\n RequestParameters;\nexport type ApplicationsDeleteParameters = RequestParameters;\nexport type ApplicationsListParameters = RequestParameters;\nexport type ServicesGetParameters = RequestParameters;\n\nexport interface ServicesCreateOrUpdateBodyParam {\n /** The service resource. */\n body: ServiceResource;\n}\n\nexport interface ServicesCreateOrUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ServicesCreateOrUpdateParameters = ServicesCreateOrUpdateMediaTypesParam &\n ServicesCreateOrUpdateBodyParam &\n RequestParameters;\n\nexport interface ServicesUpdateBodyParam {\n /** The service resource for patch operations. */\n body: ServiceResourceUpdate;\n}\n\nexport interface ServicesUpdateMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ServicesUpdateParameters = ServicesUpdateMediaTypesParam &\n ServicesUpdateBodyParam &\n RequestParameters;\nexport type ServicesDeleteParameters = RequestParameters;\nexport type ServicesListParameters = RequestParameters;\n"]}
@@ -1,48 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { LroEngine, } from "@azure/core-lro";
4
- /**
5
- * Helper function that builds a Poller object to help polling a long running operation.
6
- * @param client - Client to use for sending the request to get additional pages.
7
- * @param initialResponse - The initial response.
8
- * @param options - Options to set a resume state or custom polling interval.
9
- * @returns - A poller object to poll for operation state updates and eventually get the final response.
10
- */
11
- export function getLongRunningPoller(client, initialResponse, options = {}) {
12
- const poller = {
13
- requestMethod: initialResponse.request.method,
14
- requestPath: initialResponse.request.url,
15
- sendInitialRequest: async () => {
16
- // In the case of Rest Clients we are building the LRO poller object from a response that's the reason
17
- // we are not triggering the initial request here, just extracting the information from the
18
- // response we were provided.
19
- return getLroResponse(initialResponse);
20
- },
21
- sendPollRequest: async (path) => {
22
- // This is the callback that is going to be called to poll the service
23
- // to get the latest status. We use the client provided and the polling path
24
- // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
25
- // depending on the lro pattern that the service implements. If non is provided we default to the initial path.
26
- const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get();
27
- const lroResponse = getLroResponse(response);
28
- lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url;
29
- return lroResponse;
30
- },
31
- };
32
- return new LroEngine(poller, options);
33
- }
34
- /**
35
- * Converts a Rest Client response to a response that the LRO engine knows about
36
- * @param response - a rest client http response
37
- * @returns - An LRO response that the LRO engine can work with
38
- */
39
- function getLroResponse(response) {
40
- if (Number.isNaN(response.status)) {
41
- throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
42
- }
43
- return {
44
- flatResponse: response,
45
- rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
46
- };
47
- }
48
- //# sourceMappingURL=pollingHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,SAAS,GAKV,MAAM,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,eAAwB,EACxB,UAAkE,EAAE;IAEpE,MAAM,MAAM,GAAkC;QAC5C,aAAa,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM;QAC7C,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC9B,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YACvF,MAAM,WAAW,GAAG,cAAc,CAAC,QAAmB,CAAC,CAAC;YACxD,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC;YACnF,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAEF,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CAA+B,QAAiB;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAC/F;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport {\n LongRunningOperation,\n LroEngine,\n LroEngineOptions,\n LroResponse,\n PollOperationState,\n PollerLike,\n} from \"@azure/core-lro\";\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: LroEngineOptions<TResult, PollOperationState<TResult>> = {}\n): PollerLike<PollOperationState<TResult>, TResult> {\n const poller: LongRunningOperation<TResult> = {\n requestMethod: initialResponse.request.method,\n requestPath: initialResponse.request.url,\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n const response = await client.pathUnchecked(path ?? initialResponse.request.url).get();\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n return new LroEngine(poller, options);\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO engine knows about\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO engine can work with\n */\nfunction getLroResponse<TResult extends HttpResponse>(response: TResult): LroResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=responses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n ApplicationResourceListOutput,\n ApplicationResourceOutput,\n ApplicationTypeResourceListOutput,\n ApplicationTypeResourceOutput,\n ApplicationTypeVersionResourceListOutput,\n ApplicationTypeVersionResourceOutput,\n ClusterCodeVersionsListResultOutput,\n ClusterListResultOutput,\n ClusterOutput,\n ErrorModelOutput,\n OperationListResultOutput,\n ServiceResourceListOutput,\n ServiceResourceOutput,\n UpgradableVersionPathResultOutput,\n} from \"./outputModels\";\n\n/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\nexport interface ClustersGet200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\nexport interface ClustersGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ClusterOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ClusterOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDelete200Response extends HttpResponse {\n status: \"200\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport interface ClustersListByResourceGroup200Response extends HttpResponse {\n status: \"200\";\n body: ClusterListResultOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport interface ClustersListByResourceGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport interface ClustersList200Response extends HttpResponse {\n status: \"200\";\n body: ClusterListResultOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport interface ClustersListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */\nexport interface ClustersListUpgradableVersions200Response extends HttpResponse {\n status: \"200\";\n body: UpgradableVersionPathResultOutput;\n}\n\n/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */\nexport interface ClustersListUpgradableVersionsdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version. */\nexport interface ClusterVersionsGet200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version. */\nexport interface ClusterVersionsGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version by environment. */\nexport interface ClusterVersionsGetByEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version by environment. */\nexport interface ClusterVersionsGetByEnvironmentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by location. */\nexport interface ClusterVersionsList200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by location. */\nexport interface ClusterVersionsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by environment. */\nexport interface ClusterVersionsListByEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by environment. */\nexport interface ClusterVersionsListByEnvironmentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get the list of available Service Fabric resource provider API operations. */\nexport interface OperationsList200Response extends HttpResponse {\n status: \"200\";\n body: OperationListResultOutput;\n}\n\n/** Get the list of available Service Fabric resource provider API operations. */\nexport interface OperationsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceOutput;\n}\n\n/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesCreateOrUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceOutput;\n}\n\n/** Create or update a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceListOutput;\n}\n\n/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeVersionResourceOutput;\n}\n\n/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationTypeVersionResourceOutput;\n}\n\n/** Create or update a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeVersionResourceListOutput;\n}\n\n/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationResourceOutput;\n}\n\n/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationResourceOutput;\n}\n\n/** Create or update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationResourceOutput;\n}\n\n/** Update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationResourceListOutput;\n}\n\n/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesGet200Response extends HttpResponse {\n status: \"200\";\n body: ServiceResourceOutput;\n}\n\n/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesGetdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric service resource with the specified name. */\nexport interface ServicesCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ServiceResourceOutput;\n}\n\n/** Create or update a Service Fabric service resource with the specified name. */\nexport interface ServicesCreateOrUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update a Service Fabric service resource with the specified name. */\nexport interface ServicesUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ServiceResourceOutput;\n}\n\n/** Update a Service Fabric service resource with the specified name. */\nexport interface ServicesUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDelete202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDelete204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDeletedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesList200Response extends HttpResponse {\n status: \"200\";\n body: ServiceResourceListOutput;\n}\n\n/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesListdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n"]}
@@ -1,27 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { getClient } from "@azure-rest/core-client";
4
- import { customizedApiVersionPolicy } from "./customizedApiVersionPolicy";
5
- export default function createClient(credentials, options = {}) {
6
- var _a, _b;
7
- const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : "https://management.azure.com";
8
- options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2021-06-01";
9
- options = Object.assign(Object.assign({}, options), { credentials: {
10
- scopes: ["https://management.azure.com/.default"],
11
- } });
12
- const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.1`;
13
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
14
- ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
15
- : `${userAgentInfo}`;
16
- options = Object.assign(Object.assign({}, options), { userAgentOptions: {
17
- userAgentPrefix,
18
- } });
19
- const client = getClient(baseUrl, credentials, options);
20
- // Considering ApiVersionPolicy in core has bugs so we replace with our customized one
21
- client.pipeline.removePolicy({
22
- name: "ApiVersionPolicy",
23
- });
24
- client.pipeline.addPolicy(customizedApiVersionPolicy(options));
25
- return client;
26
- }
27
- //# sourceMappingURL=serviceFabricClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serviceFabricClient.js","sourceRoot":"","sources":["../../src/serviceFabricClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAiB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAClE,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,YAAY,CAAC;IACxD,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,uCAAuC,CAAC;SAClD,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,8CAA8C,CAAC;IACrE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAwB,CAAC;IAC/E,sFAAsF;IACtF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC3B,IAAI,EAAE,kBAAkB;KACzB,CAAC,CAAC;IACH,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,CAAC;IAE/D,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ServiceFabricClient } from \"./clientDefinitions\";\nimport { customizedApiVersionPolicy } from \"./customizedApiVersionPolicy\";\n\nexport default function createClient(\n credentials: TokenCredential,\n options: ClientOptions = {}\n): ServiceFabricClient {\n const baseUrl = options.baseUrl ?? \"https://management.azure.com\";\n options.apiVersion = options.apiVersion ?? \"2021-06-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://management.azure.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as ServiceFabricClient;\n // Considering ApiVersionPolicy in core has bugs so we replace with our customized one\n client.pipeline.removePolicy({\n name: \"ApiVersionPolicy\",\n });\n client.pipeline.addPolicy(customizedApiVersionPolicy(options));\n\n return client;\n}\n"]}