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

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/CHANGELOG.md +21 -0
  2. package/LICENSE +4 -4
  3. package/README.md +29 -21
  4. package/dist/browser/clientDefinitions.d.ts +137 -0
  5. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  6. package/dist/browser/clientDefinitions.js +4 -0
  7. package/dist/browser/clientDefinitions.js.map +1 -0
  8. package/dist/browser/customizedApiVersionPolicy.d.ts +10 -0
  9. package/dist/browser/customizedApiVersionPolicy.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/customizedApiVersionPolicy.js +1 -1
  11. package/dist/browser/customizedApiVersionPolicy.js.map +1 -0
  12. package/dist/browser/index.d.ts +12 -0
  13. package/dist/browser/index.d.ts.map +1 -0
  14. package/dist/browser/index.js +14 -0
  15. package/dist/browser/index.js.map +1 -0
  16. package/dist/browser/isUnexpected.d.ts +32 -0
  17. package/dist/browser/isUnexpected.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/isUnexpected.js +64 -121
  19. package/dist/browser/isUnexpected.js.map +1 -0
  20. package/dist/browser/logger.d.ts +2 -0
  21. package/dist/browser/logger.d.ts.map +1 -0
  22. package/dist/browser/logger.js +5 -0
  23. package/dist/browser/logger.js.map +1 -0
  24. package/dist/browser/models.d.ts +772 -0
  25. package/dist/browser/models.d.ts.map +1 -0
  26. package/dist/browser/models.js +4 -0
  27. package/dist/browser/models.js.map +1 -0
  28. package/dist/browser/outputModels.d.ts +861 -0
  29. package/dist/browser/outputModels.d.ts.map +1 -0
  30. package/dist/browser/outputModels.js +4 -0
  31. package/dist/browser/outputModels.js.map +1 -0
  32. package/dist/browser/package.json +3 -0
  33. package/dist/browser/paginateHelper.d.ts +68 -0
  34. package/dist/browser/paginateHelper.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/paginateHelper.js +70 -3
  36. package/dist/browser/paginateHelper.js.map +1 -0
  37. package/dist/browser/parameters.d.ts +105 -0
  38. package/dist/browser/parameters.d.ts.map +1 -0
  39. package/dist/browser/parameters.js +4 -0
  40. package/dist/browser/parameters.js.map +1 -0
  41. package/dist/browser/pollingHelper.d.ts +76 -0
  42. package/dist/browser/pollingHelper.d.ts.map +1 -0
  43. package/dist/browser/pollingHelper.js +107 -0
  44. package/dist/browser/pollingHelper.js.map +1 -0
  45. package/dist/browser/responses.d.ts +328 -0
  46. package/dist/browser/responses.d.ts.map +1 -0
  47. package/dist/browser/responses.js +4 -0
  48. package/dist/browser/responses.js.map +1 -0
  49. package/dist/browser/serviceFabricClient.d.ts +15 -0
  50. package/dist/browser/serviceFabricClient.d.ts.map +1 -0
  51. package/dist/browser/serviceFabricClient.js +44 -0
  52. package/dist/browser/serviceFabricClient.js.map +1 -0
  53. package/dist/commonjs/clientDefinitions.d.ts +137 -0
  54. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  55. package/dist/commonjs/clientDefinitions.js +5 -0
  56. package/dist/commonjs/clientDefinitions.js.map +1 -0
  57. package/dist/commonjs/customizedApiVersionPolicy.d.ts +10 -0
  58. package/dist/commonjs/customizedApiVersionPolicy.d.ts.map +1 -0
  59. package/dist/commonjs/customizedApiVersionPolicy.js +27 -0
  60. package/dist/commonjs/customizedApiVersionPolicy.js.map +1 -0
  61. package/dist/commonjs/index.d.ts +12 -0
  62. package/dist/commonjs/index.d.ts.map +1 -0
  63. package/dist/commonjs/index.js +17 -0
  64. package/dist/commonjs/index.js.map +1 -0
  65. package/dist/commonjs/isUnexpected.d.ts +32 -0
  66. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  67. package/dist/commonjs/isUnexpected.js +101 -0
  68. package/dist/commonjs/isUnexpected.js.map +1 -0
  69. package/dist/commonjs/logger.d.ts +2 -0
  70. package/dist/commonjs/logger.d.ts.map +1 -0
  71. package/dist/commonjs/logger.js +8 -0
  72. package/dist/commonjs/logger.js.map +1 -0
  73. package/dist/commonjs/models.d.ts +772 -0
  74. package/dist/commonjs/models.d.ts.map +1 -0
  75. package/dist/commonjs/models.js +5 -0
  76. package/dist/commonjs/models.js.map +1 -0
  77. package/dist/commonjs/outputModels.d.ts +861 -0
  78. package/dist/commonjs/outputModels.d.ts.map +1 -0
  79. package/dist/commonjs/outputModels.js +5 -0
  80. package/dist/commonjs/outputModels.js.map +1 -0
  81. package/dist/commonjs/package.json +3 -0
  82. package/dist/commonjs/paginateHelper.d.ts +68 -0
  83. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  84. package/dist/commonjs/paginateHelper.js +140 -0
  85. package/dist/commonjs/paginateHelper.js.map +1 -0
  86. package/dist/commonjs/parameters.d.ts +105 -0
  87. package/dist/commonjs/parameters.d.ts.map +1 -0
  88. package/dist/commonjs/parameters.js +5 -0
  89. package/dist/commonjs/parameters.js.map +1 -0
  90. package/dist/commonjs/pollingHelper.d.ts +76 -0
  91. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  92. package/dist/commonjs/pollingHelper.js +110 -0
  93. package/dist/commonjs/pollingHelper.js.map +1 -0
  94. package/dist/commonjs/responses.d.ts +328 -0
  95. package/dist/commonjs/responses.d.ts.map +1 -0
  96. package/dist/commonjs/responses.js +5 -0
  97. package/dist/commonjs/responses.js.map +1 -0
  98. package/dist/commonjs/serviceFabricClient.d.ts +15 -0
  99. package/dist/commonjs/serviceFabricClient.d.ts.map +1 -0
  100. package/dist/commonjs/serviceFabricClient.js +47 -0
  101. package/dist/commonjs/serviceFabricClient.js.map +1 -0
  102. package/dist/commonjs/tsdoc-metadata.json +11 -0
  103. package/dist/esm/clientDefinitions.d.ts +137 -0
  104. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  105. package/dist/esm/clientDefinitions.js +4 -0
  106. package/dist/esm/clientDefinitions.js.map +1 -0
  107. package/dist/esm/customizedApiVersionPolicy.d.ts +10 -0
  108. package/dist/esm/customizedApiVersionPolicy.d.ts.map +1 -0
  109. package/dist/esm/customizedApiVersionPolicy.js +23 -0
  110. package/dist/esm/customizedApiVersionPolicy.js.map +1 -0
  111. package/dist/esm/index.d.ts +12 -0
  112. package/dist/esm/index.d.ts.map +1 -0
  113. package/dist/esm/index.js +14 -0
  114. package/dist/esm/index.js.map +1 -0
  115. package/dist/esm/isUnexpected.d.ts +32 -0
  116. package/dist/esm/isUnexpected.d.ts.map +1 -0
  117. package/dist/esm/isUnexpected.js +98 -0
  118. package/dist/esm/isUnexpected.js.map +1 -0
  119. package/dist/esm/logger.d.ts +2 -0
  120. package/dist/esm/logger.d.ts.map +1 -0
  121. package/dist/esm/logger.js +5 -0
  122. package/dist/esm/logger.js.map +1 -0
  123. package/dist/esm/models.d.ts +772 -0
  124. package/dist/esm/models.d.ts.map +1 -0
  125. package/dist/esm/models.js +4 -0
  126. package/dist/esm/models.js.map +1 -0
  127. package/dist/esm/outputModels.d.ts +861 -0
  128. package/dist/esm/outputModels.d.ts.map +1 -0
  129. package/dist/esm/outputModels.js +4 -0
  130. package/dist/esm/outputModels.js.map +1 -0
  131. package/dist/esm/package.json +3 -0
  132. package/dist/esm/paginateHelper.d.ts +68 -0
  133. package/dist/esm/paginateHelper.d.ts.map +1 -0
  134. package/dist/esm/paginateHelper.js +137 -0
  135. package/dist/esm/paginateHelper.js.map +1 -0
  136. package/dist/esm/parameters.d.ts +105 -0
  137. package/dist/esm/parameters.d.ts.map +1 -0
  138. package/dist/esm/parameters.js +4 -0
  139. package/dist/esm/parameters.js.map +1 -0
  140. package/dist/esm/pollingHelper.d.ts +76 -0
  141. package/dist/esm/pollingHelper.d.ts.map +1 -0
  142. package/dist/esm/pollingHelper.js +107 -0
  143. package/dist/esm/pollingHelper.js.map +1 -0
  144. package/dist/esm/responses.d.ts +328 -0
  145. package/dist/esm/responses.d.ts.map +1 -0
  146. package/dist/esm/responses.js +4 -0
  147. package/dist/esm/responses.js.map +1 -0
  148. package/dist/esm/serviceFabricClient.d.ts +15 -0
  149. package/dist/esm/serviceFabricClient.d.ts.map +1 -0
  150. package/dist/esm/serviceFabricClient.js +44 -0
  151. package/dist/esm/serviceFabricClient.js.map +1 -0
  152. package/dist/react-native/clientDefinitions.d.ts +137 -0
  153. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  154. package/dist/react-native/clientDefinitions.js +4 -0
  155. package/dist/react-native/clientDefinitions.js.map +1 -0
  156. package/dist/react-native/customizedApiVersionPolicy.d.ts +10 -0
  157. package/dist/react-native/customizedApiVersionPolicy.d.ts.map +1 -0
  158. package/dist/react-native/customizedApiVersionPolicy.js +23 -0
  159. package/dist/react-native/customizedApiVersionPolicy.js.map +1 -0
  160. package/dist/react-native/index.d.ts +12 -0
  161. package/dist/react-native/index.d.ts.map +1 -0
  162. package/dist/react-native/index.js +14 -0
  163. package/dist/react-native/index.js.map +1 -0
  164. package/dist/react-native/isUnexpected.d.ts +32 -0
  165. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  166. package/dist/react-native/isUnexpected.js +98 -0
  167. package/dist/react-native/isUnexpected.js.map +1 -0
  168. package/dist/react-native/logger.d.ts +2 -0
  169. package/dist/react-native/logger.d.ts.map +1 -0
  170. package/dist/react-native/logger.js +5 -0
  171. package/dist/react-native/logger.js.map +1 -0
  172. package/dist/react-native/models.d.ts +772 -0
  173. package/dist/react-native/models.d.ts.map +1 -0
  174. package/dist/react-native/models.js +4 -0
  175. package/dist/react-native/models.js.map +1 -0
  176. package/dist/react-native/outputModels.d.ts +861 -0
  177. package/dist/react-native/outputModels.d.ts.map +1 -0
  178. package/dist/react-native/outputModels.js +4 -0
  179. package/dist/react-native/outputModels.js.map +1 -0
  180. package/dist/react-native/package.json +3 -0
  181. package/dist/react-native/paginateHelper.d.ts +68 -0
  182. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  183. package/dist/react-native/paginateHelper.js +137 -0
  184. package/dist/react-native/paginateHelper.js.map +1 -0
  185. package/dist/react-native/parameters.d.ts +105 -0
  186. package/dist/react-native/parameters.d.ts.map +1 -0
  187. package/dist/react-native/parameters.js +4 -0
  188. package/dist/react-native/parameters.js.map +1 -0
  189. package/dist/react-native/pollingHelper.d.ts +76 -0
  190. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  191. package/dist/react-native/pollingHelper.js +107 -0
  192. package/dist/react-native/pollingHelper.js.map +1 -0
  193. package/dist/react-native/responses.d.ts +328 -0
  194. package/dist/react-native/responses.d.ts.map +1 -0
  195. package/dist/react-native/responses.js +4 -0
  196. package/dist/react-native/responses.js.map +1 -0
  197. package/dist/react-native/serviceFabricClient.d.ts +15 -0
  198. package/dist/react-native/serviceFabricClient.d.ts.map +1 -0
  199. package/dist/react-native/serviceFabricClient.js +44 -0
  200. package/dist/react-native/serviceFabricClient.js.map +1 -0
  201. package/package.json +89 -80
  202. package/review/{arm-servicefabric.api.md → arm-servicefabric-node.api.md} +306 -311
  203. package/dist/index.js +0 -330
  204. package/dist/index.js.map +0 -1
  205. package/dist-esm/src/clientDefinitions.js +0 -4
  206. package/dist-esm/src/clientDefinitions.js.map +0 -1
  207. package/dist-esm/src/customizedApiVersionPolicy.js.map +0 -1
  208. package/dist-esm/src/index.js +0 -14
  209. package/dist-esm/src/index.js.map +0 -1
  210. package/dist-esm/src/isUnexpected.js.map +0 -1
  211. package/dist-esm/src/models.js +0 -4
  212. package/dist-esm/src/models.js.map +0 -1
  213. package/dist-esm/src/outputModels.js +0 -4
  214. package/dist-esm/src/outputModels.js.map +0 -1
  215. package/dist-esm/src/paginateHelper.js.map +0 -1
  216. package/dist-esm/src/parameters.js +0 -4
  217. package/dist-esm/src/parameters.js.map +0 -1
  218. package/dist-esm/src/pollingHelper.js +0 -48
  219. package/dist-esm/src/pollingHelper.js.map +0 -1
  220. package/dist-esm/src/responses.js +0 -4
  221. package/dist-esm/src/responses.js.map +0 -1
  222. package/dist-esm/src/serviceFabricClient.js +0 -27
  223. package/dist-esm/src/serviceFabricClient.js.map +0 -1
  224. package/types/arm-servicefabric.d.ts +0 -2480
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.default = createClient;
6
+ const core_client_1 = require("@azure-rest/core-client");
7
+ const logger_js_1 = require("./logger.js");
8
+ /**
9
+ * Initialize a new instance of `ServiceFabricClient`
10
+ * @param credentials - uniquely identify client credential
11
+ * @param options - the parameter for all optional parameters
12
+ */
13
+ function createClient(credentials, { apiVersion = "2021-06-01", ...options } = {}) {
14
+ const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
15
+ const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.2`;
16
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
17
+ ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
18
+ : `${userAgentInfo}`;
19
+ options = {
20
+ ...options,
21
+ userAgentOptions: {
22
+ userAgentPrefix,
23
+ },
24
+ loggingOptions: {
25
+ logger: options.loggingOptions?.logger ?? logger_js_1.logger.info,
26
+ },
27
+ credentials: {
28
+ scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
29
+ },
30
+ };
31
+ const client = (0, core_client_1.getClient)(endpointUrl, credentials, options);
32
+ client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
33
+ client.pipeline.addPolicy({
34
+ name: "ClientApiVersionPolicy",
35
+ sendRequest: (req, next) => {
36
+ // Use the apiVersion defined in request url directly
37
+ // Append one if there is no apiVersion and we have one at client options
38
+ const url = new URL(req.url);
39
+ if (!url.searchParams.get("api-version") && apiVersion) {
40
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
41
+ }
42
+ return next(req);
43
+ },
44
+ });
45
+ return client;
46
+ }
47
+ //# sourceMappingURL=serviceFabricClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceFabricClient.js","sourceRoot":"","sources":["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,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { ServiceFabricClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface ServiceFabricClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `ServiceFabricClient`\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n credentials: TokenCredential,\n { apiVersion = \"2021-06-01\", ...options }: ServiceFabricClientOptions = {},\n): ServiceFabricClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const userAgentInfo = `azsdk-js-arm-servicefabric-rest/1.0.0-beta.2`;\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 loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as ServiceFabricClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.10"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,137 @@
1
+ import type { ClustersGetParameters, ClustersCreateOrUpdateParameters, ClustersUpdateParameters, ClustersDeleteParameters, ClustersListByResourceGroupParameters, ClustersListParameters, ClustersListUpgradableVersionsParameters, ClusterVersionsGetParameters, ClusterVersionsGetByEnvironmentParameters, ClusterVersionsListParameters, ClusterVersionsListByEnvironmentParameters, OperationsListParameters, ApplicationTypesGetParameters, ApplicationTypesCreateOrUpdateParameters, ApplicationTypesDeleteParameters, ApplicationTypesListParameters, ApplicationTypeVersionsGetParameters, ApplicationTypeVersionsCreateOrUpdateParameters, ApplicationTypeVersionsDeleteParameters, ApplicationTypeVersionsListParameters, ApplicationsGetParameters, ApplicationsCreateOrUpdateParameters, ApplicationsUpdateParameters, ApplicationsDeleteParameters, ApplicationsListParameters, ServicesGetParameters, ServicesCreateOrUpdateParameters, ServicesUpdateParameters, ServicesDeleteParameters, ServicesListParameters } from "./parameters.js";
2
+ import type { ClustersGet200Response, ClustersGetDefaultResponse, ClustersCreateOrUpdate200Response, ClustersCreateOrUpdate202Response, ClustersCreateOrUpdateDefaultResponse, ClustersUpdate200Response, ClustersUpdate202Response, ClustersUpdateDefaultResponse, ClustersDelete200Response, ClustersDelete204Response, ClustersDeleteDefaultResponse, ClustersListByResourceGroup200Response, ClustersListByResourceGroupDefaultResponse, ClustersList200Response, ClustersListDefaultResponse, ClustersListUpgradableVersions200Response, ClustersListUpgradableVersionsDefaultResponse, ClusterVersionsGet200Response, ClusterVersionsGetDefaultResponse, ClusterVersionsGetByEnvironment200Response, ClusterVersionsGetByEnvironmentDefaultResponse, ClusterVersionsList200Response, ClusterVersionsListDefaultResponse, ClusterVersionsListByEnvironment200Response, ClusterVersionsListByEnvironmentDefaultResponse, OperationsList200Response, OperationsListDefaultResponse, ApplicationTypesGet200Response, ApplicationTypesGetDefaultResponse, ApplicationTypesCreateOrUpdate200Response, ApplicationTypesCreateOrUpdateDefaultResponse, ApplicationTypesDelete202Response, ApplicationTypesDelete204Response, ApplicationTypesDeleteDefaultResponse, ApplicationTypesList200Response, ApplicationTypesListDefaultResponse, ApplicationTypeVersionsGet200Response, ApplicationTypeVersionsGetDefaultResponse, ApplicationTypeVersionsCreateOrUpdate202Response, ApplicationTypeVersionsCreateOrUpdateDefaultResponse, ApplicationTypeVersionsDelete202Response, ApplicationTypeVersionsDelete204Response, ApplicationTypeVersionsDeleteDefaultResponse, ApplicationTypeVersionsList200Response, ApplicationTypeVersionsListDefaultResponse, ApplicationsGet200Response, ApplicationsGetDefaultResponse, ApplicationsCreateOrUpdate202Response, ApplicationsCreateOrUpdateDefaultResponse, ApplicationsUpdate202Response, ApplicationsUpdateDefaultResponse, ApplicationsDelete202Response, ApplicationsDelete204Response, ApplicationsDeleteDefaultResponse, ApplicationsList200Response, ApplicationsListDefaultResponse, ServicesGet200Response, ServicesGetDefaultResponse, ServicesCreateOrUpdate202Response, ServicesCreateOrUpdateDefaultResponse, ServicesUpdate202Response, ServicesUpdateDefaultResponse, ServicesDelete202Response, ServicesDelete204Response, ServicesDeleteDefaultResponse, ServicesList200Response, ServicesListDefaultResponse } from "./responses.js";
3
+ import type { Client, StreamableMethod } from "@azure-rest/core-client";
4
+ export interface ClustersGet {
5
+ /** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */
6
+ get(options?: ClustersGetParameters): StreamableMethod<ClustersGet200Response | ClustersGetDefaultResponse>;
7
+ /** Create or update a Service Fabric cluster resource with the specified name. */
8
+ put(options: ClustersCreateOrUpdateParameters): StreamableMethod<ClustersCreateOrUpdate200Response | ClustersCreateOrUpdate202Response | ClustersCreateOrUpdateDefaultResponse>;
9
+ /** Update the configuration of a Service Fabric cluster resource with the specified name. */
10
+ patch(options: ClustersUpdateParameters): StreamableMethod<ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdateDefaultResponse>;
11
+ /** Delete a Service Fabric cluster resource with the specified name. */
12
+ delete(options?: ClustersDeleteParameters): StreamableMethod<ClustersDelete200Response | ClustersDelete204Response | ClustersDeleteDefaultResponse>;
13
+ }
14
+ export interface ClustersListByResourceGroup {
15
+ /** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */
16
+ get(options?: ClustersListByResourceGroupParameters): StreamableMethod<ClustersListByResourceGroup200Response | ClustersListByResourceGroupDefaultResponse>;
17
+ }
18
+ export interface ClustersList {
19
+ /** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */
20
+ get(options?: ClustersListParameters): StreamableMethod<ClustersList200Response | ClustersListDefaultResponse>;
21
+ }
22
+ export interface ClustersListUpgradableVersions {
23
+ /** 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. */
24
+ post(options?: ClustersListUpgradableVersionsParameters): StreamableMethod<ClustersListUpgradableVersions200Response | ClustersListUpgradableVersionsDefaultResponse>;
25
+ }
26
+ export interface ClusterVersionsGet {
27
+ /** Gets information about an available Service Fabric cluster code version. */
28
+ get(options?: ClusterVersionsGetParameters): StreamableMethod<ClusterVersionsGet200Response | ClusterVersionsGetDefaultResponse>;
29
+ }
30
+ export interface ClusterVersionsGetByEnvironment {
31
+ /** Gets information about an available Service Fabric cluster code version by environment. */
32
+ get(options?: ClusterVersionsGetByEnvironmentParameters): StreamableMethod<ClusterVersionsGetByEnvironment200Response | ClusterVersionsGetByEnvironmentDefaultResponse>;
33
+ }
34
+ export interface ClusterVersionsList {
35
+ /** Gets all available code versions for Service Fabric cluster resources by location. */
36
+ get(options?: ClusterVersionsListParameters): StreamableMethod<ClusterVersionsList200Response | ClusterVersionsListDefaultResponse>;
37
+ }
38
+ export interface ClusterVersionsListByEnvironment {
39
+ /** Gets all available code versions for Service Fabric cluster resources by environment. */
40
+ get(options?: ClusterVersionsListByEnvironmentParameters): StreamableMethod<ClusterVersionsListByEnvironment200Response | ClusterVersionsListByEnvironmentDefaultResponse>;
41
+ }
42
+ export interface OperationsList {
43
+ /** Get the list of available Service Fabric resource provider API operations. */
44
+ get(options?: OperationsListParameters): StreamableMethod<OperationsList200Response | OperationsListDefaultResponse>;
45
+ }
46
+ export interface ApplicationTypesGet {
47
+ /** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */
48
+ get(options?: ApplicationTypesGetParameters): StreamableMethod<ApplicationTypesGet200Response | ApplicationTypesGetDefaultResponse>;
49
+ /** Create or update a Service Fabric application type name resource with the specified name. */
50
+ put(options: ApplicationTypesCreateOrUpdateParameters): StreamableMethod<ApplicationTypesCreateOrUpdate200Response | ApplicationTypesCreateOrUpdateDefaultResponse>;
51
+ /** Delete a Service Fabric application type name resource with the specified name. */
52
+ delete(options?: ApplicationTypesDeleteParameters): StreamableMethod<ApplicationTypesDelete202Response | ApplicationTypesDelete204Response | ApplicationTypesDeleteDefaultResponse>;
53
+ }
54
+ export interface ApplicationTypesList {
55
+ /** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */
56
+ get(options?: ApplicationTypesListParameters): StreamableMethod<ApplicationTypesList200Response | ApplicationTypesListDefaultResponse>;
57
+ }
58
+ export interface ApplicationTypeVersionsGet {
59
+ /** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */
60
+ get(options?: ApplicationTypeVersionsGetParameters): StreamableMethod<ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetDefaultResponse>;
61
+ /** Create or update a Service Fabric application type version resource with the specified name. */
62
+ put(options: ApplicationTypeVersionsCreateOrUpdateParameters): StreamableMethod<ApplicationTypeVersionsCreateOrUpdate202Response | ApplicationTypeVersionsCreateOrUpdateDefaultResponse>;
63
+ /** Delete a Service Fabric application type version resource with the specified name. */
64
+ delete(options?: ApplicationTypeVersionsDeleteParameters): StreamableMethod<ApplicationTypeVersionsDelete202Response | ApplicationTypeVersionsDelete204Response | ApplicationTypeVersionsDeleteDefaultResponse>;
65
+ }
66
+ export interface ApplicationTypeVersionsList {
67
+ /** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */
68
+ get(options?: ApplicationTypeVersionsListParameters): StreamableMethod<ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListDefaultResponse>;
69
+ }
70
+ export interface ApplicationsGet {
71
+ /** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */
72
+ get(options?: ApplicationsGetParameters): StreamableMethod<ApplicationsGet200Response | ApplicationsGetDefaultResponse>;
73
+ /** Create or update a Service Fabric application resource with the specified name. */
74
+ put(options: ApplicationsCreateOrUpdateParameters): StreamableMethod<ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdateDefaultResponse>;
75
+ /** Update a Service Fabric application resource with the specified name. */
76
+ patch(options: ApplicationsUpdateParameters): StreamableMethod<ApplicationsUpdate202Response | ApplicationsUpdateDefaultResponse>;
77
+ /** Delete a Service Fabric application resource with the specified name. */
78
+ delete(options?: ApplicationsDeleteParameters): StreamableMethod<ApplicationsDelete202Response | ApplicationsDelete204Response | ApplicationsDeleteDefaultResponse>;
79
+ }
80
+ export interface ApplicationsList {
81
+ /** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */
82
+ get(options?: ApplicationsListParameters): StreamableMethod<ApplicationsList200Response | ApplicationsListDefaultResponse>;
83
+ }
84
+ export interface ServicesGet {
85
+ /** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */
86
+ get(options?: ServicesGetParameters): StreamableMethod<ServicesGet200Response | ServicesGetDefaultResponse>;
87
+ /** Create or update a Service Fabric service resource with the specified name. */
88
+ put(options: ServicesCreateOrUpdateParameters): StreamableMethod<ServicesCreateOrUpdate202Response | ServicesCreateOrUpdateDefaultResponse>;
89
+ /** Update a Service Fabric service resource with the specified name. */
90
+ patch(options: ServicesUpdateParameters): StreamableMethod<ServicesUpdate202Response | ServicesUpdateDefaultResponse>;
91
+ /** Delete a Service Fabric service resource with the specified name. */
92
+ delete(options?: ServicesDeleteParameters): StreamableMethod<ServicesDelete202Response | ServicesDelete204Response | ServicesDeleteDefaultResponse>;
93
+ }
94
+ export interface ServicesList {
95
+ /** Gets all service resources created or in the process of being created in the Service Fabric application resource. */
96
+ get(options?: ServicesListParameters): StreamableMethod<ServicesList200Response | ServicesListDefaultResponse>;
97
+ }
98
+ export interface Routes {
99
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}' has methods for the following verbs: get, put, patch, delete */
100
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
101
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourcegroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters' has methods for the following verbs: get */
102
+ (path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string, resourceGroupName: string): ClustersListByResourceGroup;
103
+ /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/clusters' has methods for the following verbs: get */
104
+ (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string): ClustersList;
105
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/listUpgradableVersions' has methods for the following verbs: post */
106
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersListUpgradableVersions;
107
+ /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/clusterVersions/\{clusterVersion\}' has methods for the following verbs: get */
108
+ (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, clusterVersion: string): ClusterVersionsGet;
109
+ /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/environments/\{environment\}/clusterVersions/\{clusterVersion\}' has methods for the following verbs: get */
110
+ (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, environment: "Windows" | "Linux", clusterVersion: string): ClusterVersionsGetByEnvironment;
111
+ /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/clusterVersions' has methods for the following verbs: get */
112
+ (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions", subscriptionId: string, location: string): ClusterVersionsList;
113
+ /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/environments/\{environment\}/clusterVersions' has methods for the following verbs: get */
114
+ (path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions", subscriptionId: string, location: string, environment: "Windows" | "Linux"): ClusterVersionsListByEnvironment;
115
+ /** Resource for '/providers/Microsoft.ServiceFabric/operations' has methods for the following verbs: get */
116
+ (path: "/providers/Microsoft.ServiceFabric/operations"): OperationsList;
117
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes/\{applicationTypeName\}' has methods for the following verbs: get, put, delete */
118
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string): ApplicationTypesGet;
119
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes' has methods for the following verbs: get */
120
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId: string, resourceGroupName: string, clusterName: string): ApplicationTypesList;
121
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes/\{applicationTypeName\}/versions/\{version\}' has methods for the following verbs: get, put, delete */
122
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string): ApplicationTypeVersionsGet;
123
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes/\{applicationTypeName\}/versions' has methods for the following verbs: get */
124
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationTypeName: string): ApplicationTypeVersionsList;
125
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications/\{applicationName\}' has methods for the following verbs: get, put, patch, delete */
126
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string): ApplicationsGet;
127
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications' has methods for the following verbs: get */
128
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications", subscriptionId: string, resourceGroupName: string, clusterName: string): ApplicationsList;
129
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications/\{applicationName\}/services/\{serviceName\}' has methods for the following verbs: get, put, patch, delete */
130
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string): ServicesGet;
131
+ /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications/\{applicationName\}/services' has methods for the following verbs: get */
132
+ (path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services", subscriptionId: string, resourceGroupName: string, clusterName: string, applicationName: string): ServicesList;
133
+ }
134
+ export type ServiceFabricClient = Client & {
135
+ path: Routes;
136
+ };
137
+ //# sourceMappingURL=clientDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qBAAqB,EACrB,gCAAgC,EAChC,wBAAwB,EACxB,wBAAwB,EACxB,qCAAqC,EACrC,sBAAsB,EACtB,wCAAwC,EACxC,4BAA4B,EAC5B,yCAAyC,EACzC,6BAA6B,EAC7B,0CAA0C,EAC1C,wBAAwB,EACxB,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,8BAA8B,EAC9B,oCAAoC,EACpC,+CAA+C,EAC/C,uCAAuC,EACvC,qCAAqC,EACrC,yBAAyB,EACzB,oCAAoC,EACpC,4BAA4B,EAC5B,4BAA4B,EAC5B,0BAA0B,EAC1B,qBAAqB,EACrB,gCAAgC,EAChC,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,iCAAiC,EACjC,qCAAqC,EACrC,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,sCAAsC,EACtC,0CAA0C,EAC1C,uBAAuB,EACvB,2BAA2B,EAC3B,yCAAyC,EACzC,6CAA6C,EAC7C,6BAA6B,EAC7B,iCAAiC,EACjC,0CAA0C,EAC1C,8CAA8C,EAC9C,8BAA8B,EAC9B,kCAAkC,EAClC,2CAA2C,EAC3C,+CAA+C,EAC/C,yBAAyB,EACzB,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,yCAAyC,EACzC,6CAA6C,EAC7C,iCAAiC,EACjC,iCAAiC,EACjC,qCAAqC,EACrC,+BAA+B,EAC/B,mCAAmC,EACnC,qCAAqC,EACrC,yCAAyC,EACzC,gDAAgD,EAChD,oDAAoD,EACpD,wCAAwC,EACxC,wCAAwC,E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ClP,CACE,IAAI,EAAE,6KAA6K,EACnL,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,MAAM,GAC1B,2BAA2B,CAAC;IAC/B,qPAAqP;IACrP,CACE,IAAI,EAAE,4JAA4J,EAClK,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,eAAe,CAAC;IACnB,6MAA6M;IAC7M,CACE,IAAI,EAAE,0IAA0I,EAChJ,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,GAClB,gBAAgB,CAAC;IACpB,8QAA8Q;IAC9Q,CACE,IAAI,EAAE,mLAAmL,EACzL,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,GAClB,WAAW,CAAC;IACf,0OAA0O;IAC1O,CACE,IAAI,EAAE,qKAAqK,EAC3K,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,YAAY,CAAC;CACjB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=clientDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ClustersGetParameters,\n ClustersCreateOrUpdateParameters,\n ClustersUpdateParameters,\n ClustersDeleteParameters,\n ClustersListByResourceGroupParameters,\n ClustersListParameters,\n ClustersListUpgradableVersionsParameters,\n ClusterVersionsGetParameters,\n ClusterVersionsGetByEnvironmentParameters,\n ClusterVersionsListParameters,\n ClusterVersionsListByEnvironmentParameters,\n OperationsListParameters,\n ApplicationTypesGetParameters,\n ApplicationTypesCreateOrUpdateParameters,\n ApplicationTypesDeleteParameters,\n ApplicationTypesListParameters,\n ApplicationTypeVersionsGetParameters,\n ApplicationTypeVersionsCreateOrUpdateParameters,\n ApplicationTypeVersionsDeleteParameters,\n ApplicationTypeVersionsListParameters,\n ApplicationsGetParameters,\n ApplicationsCreateOrUpdateParameters,\n ApplicationsUpdateParameters,\n ApplicationsDeleteParameters,\n ApplicationsListParameters,\n ServicesGetParameters,\n ServicesCreateOrUpdateParameters,\n ServicesUpdateParameters,\n ServicesDeleteParameters,\n ServicesListParameters,\n} from \"./parameters.js\";\nimport type {\n ClustersGet200Response,\n ClustersGetDefaultResponse,\n ClustersCreateOrUpdate200Response,\n ClustersCreateOrUpdate202Response,\n ClustersCreateOrUpdateDefaultResponse,\n ClustersUpdate200Response,\n ClustersUpdate202Response,\n ClustersUpdateDefaultResponse,\n ClustersDelete200Response,\n ClustersDelete204Response,\n ClustersDeleteDefaultResponse,\n ClustersListByResourceGroup200Response,\n ClustersListByResourceGroupDefaultResponse,\n ClustersList200Response,\n ClustersListDefaultResponse,\n ClustersListUpgradableVersions200Response,\n ClustersListUpgradableVersionsDefaultResponse,\n ClusterVersionsGet200Response,\n ClusterVersionsGetDefaultResponse,\n ClusterVersionsGetByEnvironment200Response,\n ClusterVersionsGetByEnvironmentDefaultResponse,\n ClusterVersionsList200Response,\n ClusterVersionsListDefaultResponse,\n ClusterVersionsListByEnvironment200Response,\n ClusterVersionsListByEnvironmentDefaultResponse,\n OperationsList200Response,\n OperationsListDefaultResponse,\n ApplicationTypesGet200Response,\n ApplicationTypesGetDefaultResponse,\n ApplicationTypesCreateOrUpdate200Response,\n ApplicationTypesCreateOrUpdateDefaultResponse,\n ApplicationTypesDelete202Response,\n ApplicationTypesDelete204Response,\n ApplicationTypesDeleteDefaultResponse,\n ApplicationTypesList200Response,\n ApplicationTypesListDefaultResponse,\n ApplicationTypeVersionsGet200Response,\n ApplicationTypeVersionsGetDefaultResponse,\n ApplicationTypeVersionsCreateOrUpdate202Response,\n ApplicationTypeVersionsCreateOrUpdateDefaultResponse,\n ApplicationTypeVersionsDelete202Response,\n ApplicationTypeVersionsDelete204Response,\n ApplicationTypeVersionsDeleteDefaultResponse,\n ApplicationTypeVersionsList200Response,\n ApplicationTypeVersionsListDefaultResponse,\n ApplicationsGet200Response,\n ApplicationsGetDefaultResponse,\n ApplicationsCreateOrUpdate202Response,\n ApplicationsCreateOrUpdateDefaultResponse,\n ApplicationsUpdate202Response,\n ApplicationsUpdateDefaultResponse,\n ApplicationsDelete202Response,\n ApplicationsDelete204Response,\n ApplicationsDeleteDefaultResponse,\n ApplicationsList200Response,\n ApplicationsListDefaultResponse,\n ServicesGet200Response,\n ServicesGetDefaultResponse,\n ServicesCreateOrUpdate202Response,\n ServicesCreateOrUpdateDefaultResponse,\n ServicesUpdate202Response,\n ServicesUpdateDefaultResponse,\n ServicesDelete202Response,\n ServicesDelete204Response,\n ServicesDeleteDefaultResponse,\n ServicesList200Response,\n ServicesListDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ClustersGet {\n /** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\n get(\n options?: ClustersGetParameters,\n ): StreamableMethod<ClustersGet200Response | ClustersGetDefaultResponse>;\n /** Create or update a Service Fabric cluster resource with the specified name. */\n put(\n options: ClustersCreateOrUpdateParameters,\n ): StreamableMethod<\n | ClustersCreateOrUpdate200Response\n | ClustersCreateOrUpdate202Response\n | ClustersCreateOrUpdateDefaultResponse\n >;\n /** Update the configuration of a Service Fabric cluster resource with the specified name. */\n patch(\n options: ClustersUpdateParameters,\n ): StreamableMethod<\n ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdateDefaultResponse\n >;\n /** Delete a Service Fabric cluster resource with the specified name. */\n delete(\n options?: ClustersDeleteParameters,\n ): StreamableMethod<\n ClustersDelete200Response | ClustersDelete204Response | ClustersDeleteDefaultResponse\n >;\n}\n\nexport interface ClustersListByResourceGroup {\n /** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\n get(\n options?: ClustersListByResourceGroupParameters,\n ): StreamableMethod<\n ClustersListByResourceGroup200Response | ClustersListByResourceGroupDefaultResponse\n >;\n}\n\nexport interface ClustersList {\n /** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\n get(\n options?: ClustersListParameters,\n ): StreamableMethod<ClustersList200Response | ClustersListDefaultResponse>;\n}\n\nexport interface ClustersListUpgradableVersions {\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. */\n post(\n options?: ClustersListUpgradableVersionsParameters,\n ): StreamableMethod<\n ClustersListUpgradableVersions200Response | ClustersListUpgradableVersionsDefaultResponse\n >;\n}\n\nexport interface ClusterVersionsGet {\n /** Gets information about an available Service Fabric cluster code version. */\n get(\n options?: ClusterVersionsGetParameters,\n ): StreamableMethod<ClusterVersionsGet200Response | ClusterVersionsGetDefaultResponse>;\n}\n\nexport interface ClusterVersionsGetByEnvironment {\n /** Gets information about an available Service Fabric cluster code version by environment. */\n get(\n options?: ClusterVersionsGetByEnvironmentParameters,\n ): StreamableMethod<\n ClusterVersionsGetByEnvironment200Response | ClusterVersionsGetByEnvironmentDefaultResponse\n >;\n}\n\nexport interface ClusterVersionsList {\n /** Gets all available code versions for Service Fabric cluster resources by location. */\n get(\n options?: ClusterVersionsListParameters,\n ): StreamableMethod<ClusterVersionsList200Response | ClusterVersionsListDefaultResponse>;\n}\n\nexport interface ClusterVersionsListByEnvironment {\n /** Gets all available code versions for Service Fabric cluster resources by environment. */\n get(\n options?: ClusterVersionsListByEnvironmentParameters,\n ): StreamableMethod<\n ClusterVersionsListByEnvironment200Response | ClusterVersionsListByEnvironmentDefaultResponse\n >;\n}\n\nexport interface OperationsList {\n /** Get the list of available Service Fabric resource provider API operations. */\n get(\n options?: OperationsListParameters,\n ): StreamableMethod<OperationsList200Response | OperationsListDefaultResponse>;\n}\n\nexport interface ApplicationTypesGet {\n /** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\n get(\n options?: ApplicationTypesGetParameters,\n ): StreamableMethod<ApplicationTypesGet200Response | ApplicationTypesGetDefaultResponse>;\n /** Create or update a Service Fabric application type name resource with the specified name. */\n put(\n options: ApplicationTypesCreateOrUpdateParameters,\n ): StreamableMethod<\n ApplicationTypesCreateOrUpdate200Response | ApplicationTypesCreateOrUpdateDefaultResponse\n >;\n /** Delete a Service Fabric application type name resource with the specified name. */\n delete(\n options?: ApplicationTypesDeleteParameters,\n ): StreamableMethod<\n | ApplicationTypesDelete202Response\n | ApplicationTypesDelete204Response\n | ApplicationTypesDeleteDefaultResponse\n >;\n}\n\nexport interface ApplicationTypesList {\n /** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\n get(\n options?: ApplicationTypesListParameters,\n ): StreamableMethod<ApplicationTypesList200Response | ApplicationTypesListDefaultResponse>;\n}\n\nexport interface ApplicationTypeVersionsGet {\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. */\n get(\n options?: ApplicationTypeVersionsGetParameters,\n ): StreamableMethod<\n ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetDefaultResponse\n >;\n /** Create or update a Service Fabric application type version resource with the specified name. */\n put(\n options: ApplicationTypeVersionsCreateOrUpdateParameters,\n ): StreamableMethod<\n | ApplicationTypeVersionsCreateOrUpdate202Response\n | ApplicationTypeVersionsCreateOrUpdateDefaultResponse\n >;\n /** Delete a Service Fabric application type version resource with the specified name. */\n delete(\n options?: ApplicationTypeVersionsDeleteParameters,\n ): StreamableMethod<\n | ApplicationTypeVersionsDelete202Response\n | ApplicationTypeVersionsDelete204Response\n | ApplicationTypeVersionsDeleteDefaultResponse\n >;\n}\n\nexport interface ApplicationTypeVersionsList {\n /** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\n get(\n options?: ApplicationTypeVersionsListParameters,\n ): StreamableMethod<\n ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListDefaultResponse\n >;\n}\n\nexport interface ApplicationsGet {\n /** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\n get(\n options?: ApplicationsGetParameters,\n ): StreamableMethod<ApplicationsGet200Response | ApplicationsGetDefaultResponse>;\n /** Create or update a Service Fabric application resource with the specified name. */\n put(\n options: ApplicationsCreateOrUpdateParameters,\n ): StreamableMethod<\n ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdateDefaultResponse\n >;\n /** Update a Service Fabric application resource with the specified name. */\n patch(\n options: ApplicationsUpdateParameters,\n ): StreamableMethod<ApplicationsUpdate202Response | ApplicationsUpdateDefaultResponse>;\n /** Delete a Service Fabric application resource with the specified name. */\n delete(\n options?: ApplicationsDeleteParameters,\n ): StreamableMethod<\n | ApplicationsDelete202Response\n | ApplicationsDelete204Response\n | ApplicationsDeleteDefaultResponse\n >;\n}\n\nexport interface ApplicationsList {\n /** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\n get(\n options?: ApplicationsListParameters,\n ): StreamableMethod<ApplicationsList200Response | ApplicationsListDefaultResponse>;\n}\n\nexport interface ServicesGet {\n /** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\n get(\n options?: ServicesGetParameters,\n ): StreamableMethod<ServicesGet200Response | ServicesGetDefaultResponse>;\n /** Create or update a Service Fabric service resource with the specified name. */\n put(\n options: ServicesCreateOrUpdateParameters,\n ): StreamableMethod<ServicesCreateOrUpdate202Response | ServicesCreateOrUpdateDefaultResponse>;\n /** Update a Service Fabric service resource with the specified name. */\n patch(\n options: ServicesUpdateParameters,\n ): StreamableMethod<ServicesUpdate202Response | ServicesUpdateDefaultResponse>;\n /** Delete a Service Fabric service resource with the specified name. */\n delete(\n options?: ServicesDeleteParameters,\n ): StreamableMethod<\n ServicesDelete202Response | ServicesDelete204Response | ServicesDeleteDefaultResponse\n >;\n}\n\nexport interface ServicesList {\n /** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\n get(\n options?: ServicesListParameters,\n ): StreamableMethod<ServicesList200Response | ServicesListDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}' has methods for the following verbs: get, put, patch, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n ): ClustersGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourcegroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters\",\n subscriptionId: string,\n resourceGroupName: string,\n ): ClustersListByResourceGroup;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.ServiceFabric/clusters' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters\",\n subscriptionId: string,\n ): ClustersList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/listUpgradableVersions' has methods for the following verbs: post */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n ): ClustersListUpgradableVersions;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.ServiceFabric/locations/\\{location\\}/clusterVersions/\\{clusterVersion\\}' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}\",\n subscriptionId: string,\n location: string,\n clusterVersion: string,\n ): ClusterVersionsGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.ServiceFabric/locations/\\{location\\}/environments/\\{environment\\}/clusterVersions/\\{clusterVersion\\}' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}\",\n subscriptionId: string,\n location: string,\n environment: \"Windows\" | \"Linux\",\n clusterVersion: string,\n ): ClusterVersionsGetByEnvironment;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.ServiceFabric/locations/\\{location\\}/clusterVersions' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions\",\n subscriptionId: string,\n location: string,\n ): ClusterVersionsList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/providers/Microsoft.ServiceFabric/locations/\\{location\\}/environments/\\{environment\\}/clusterVersions' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions\",\n subscriptionId: string,\n location: string,\n environment: \"Windows\" | \"Linux\",\n ): ClusterVersionsListByEnvironment;\n /** Resource for '/providers/Microsoft.ServiceFabric/operations' has methods for the following verbs: get */\n (path: \"/providers/Microsoft.ServiceFabric/operations\"): OperationsList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applicationTypes/\\{applicationTypeName\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n ): ApplicationTypesGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applicationTypes' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n ): ApplicationTypesList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applicationTypes/\\{applicationTypeName\\}/versions/\\{version\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n ): ApplicationTypeVersionsGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applicationTypes/\\{applicationTypeName\\}/versions' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n ): ApplicationTypeVersionsList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applications/\\{applicationName\\}' has methods for the following verbs: get, put, patch, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n applicationName: string,\n ): ApplicationsGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applications' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n ): ApplicationsList;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applications/\\{applicationName\\}/services/\\{serviceName\\}' has methods for the following verbs: get, put, patch, delete */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n applicationName: string,\n serviceName: string,\n ): ServicesGet;\n /** Resource for '/subscriptions/\\{subscriptionId\\}/resourceGroups/\\{resourceGroupName\\}/providers/Microsoft.ServiceFabric/clusters/\\{clusterName\\}/applications/\\{applicationName\\}/services' has methods for the following verbs: get */\n (\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services\",\n subscriptionId: string,\n resourceGroupName: string,\n clusterName: string,\n applicationName: string,\n ): ServicesList;\n}\n\nexport type ServiceFabricClient = Client & {\n path: Routes;\n};\n"]}
@@ -0,0 +1,10 @@
1
+ import type { ClientOptions } from "@azure-rest/core-client";
2
+ import type { PipelinePolicy } from "@azure/core-rest-pipeline";
3
+ export declare const apiVersionPolicyName = "CustomizedApiVersionPolicy";
4
+ /**
5
+ * Creates a policy that sets the apiVersion as a query parameter on every request
6
+ * @param options - Client options
7
+ * @returns Pipeline policy that sets the apiVersion as a query parameter on every request
8
+ */
9
+ export declare function customizedApiVersionPolicy(options: ClientOptions): PipelinePolicy;
10
+ //# sourceMappingURL=customizedApiVersionPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customizedApiVersionPolicy.d.ts","sourceRoot":"","sources":["../../src/customizedApiVersionPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,eAAO,MAAM,oBAAoB,+BAA+B,CAAC;AAEjE;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAcjF"}
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export const apiVersionPolicyName = "CustomizedApiVersionPolicy";
4
+ /**
5
+ * Creates a policy that sets the apiVersion as a query parameter on every request
6
+ * @param options - Client options
7
+ * @returns Pipeline policy that sets the apiVersion as a query parameter on every request
8
+ */
9
+ export function customizedApiVersionPolicy(options) {
10
+ return {
11
+ name: apiVersionPolicyName,
12
+ sendRequest: (req, next) => {
13
+ if (options.apiVersion) {
14
+ const url = new URL(req.url);
15
+ // add or replace the existing api-version with client one
16
+ url.searchParams.set("api-version", options.apiVersion);
17
+ req.url = url.toString();
18
+ }
19
+ return next(req);
20
+ },
21
+ };
22
+ }
23
+ //# sourceMappingURL=customizedApiVersionPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customizedApiVersionPolicy.js","sourceRoot":"","sources":["../../src/customizedApiVersionPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,MAAM,CAAC,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAsB;IAC/D,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;gBACvB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,0DAA0D;gBAC1D,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;gBACxD,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;YAC3B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport type { PipelinePolicy } from \"@azure/core-rest-pipeline\";\n\nexport const apiVersionPolicyName = \"CustomizedApiVersionPolicy\";\n\n/**\n * Creates a policy that sets the apiVersion as a query parameter on every request\n * @param options - Client options\n * @returns Pipeline policy that sets the apiVersion as a query parameter on every request\n */\nexport function customizedApiVersionPolicy(options: ClientOptions): PipelinePolicy {\n return {\n name: apiVersionPolicyName,\n sendRequest: (req, next) => {\n if (options.apiVersion) {\n const url = new URL(req.url);\n // add or replace the existing api-version with client one\n url.searchParams.set(\"api-version\", options.apiVersion);\n req.url = url.toString();\n }\n\n return next(req);\n },\n };\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import ServiceFabricClient from "./serviceFabricClient.js";
2
+ export * from "./serviceFabricClient.js";
3
+ export * from "./parameters.js";
4
+ export * from "./responses.js";
5
+ export * from "./clientDefinitions.js";
6
+ export * from "./isUnexpected.js";
7
+ export * from "./models.js";
8
+ export * from "./outputModels.js";
9
+ export * from "./paginateHelper.js";
10
+ export * from "./pollingHelper.js";
11
+ export default ServiceFabricClient;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import ServiceFabricClient from "./serviceFabricClient.js";
4
+ export * from "./serviceFabricClient.js";
5
+ export * from "./parameters.js";
6
+ export * from "./responses.js";
7
+ export * from "./clientDefinitions.js";
8
+ export * from "./isUnexpected.js";
9
+ export * from "./models.js";
10
+ export * from "./outputModels.js";
11
+ export * from "./paginateHelper.js";
12
+ export * from "./pollingHelper.js";
13
+ export default ServiceFabricClient;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport ServiceFabricClient from \"./serviceFabricClient.js\";\n\nexport * from \"./serviceFabricClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\nexport * from \"./pollingHelper.js\";\n\nexport default ServiceFabricClient;\n"]}
@@ -0,0 +1,32 @@
1
+ import type { ClustersGet200Response, ClustersGetDefaultResponse, ClustersCreateOrUpdate200Response, ClustersCreateOrUpdate202Response, ClustersCreateOrUpdateDefaultResponse, ClustersUpdate200Response, ClustersUpdate202Response, ClustersUpdateDefaultResponse, ClustersDelete200Response, ClustersDelete204Response, ClustersDeleteDefaultResponse, ClustersListByResourceGroup200Response, ClustersListByResourceGroupDefaultResponse, ClustersList200Response, ClustersListDefaultResponse, ClustersListUpgradableVersions200Response, ClustersListUpgradableVersionsDefaultResponse, ClusterVersionsGet200Response, ClusterVersionsGetDefaultResponse, ClusterVersionsGetByEnvironment200Response, ClusterVersionsGetByEnvironmentDefaultResponse, ClusterVersionsList200Response, ClusterVersionsListDefaultResponse, ClusterVersionsListByEnvironment200Response, ClusterVersionsListByEnvironmentDefaultResponse, OperationsList200Response, OperationsListDefaultResponse, ApplicationTypesGet200Response, ApplicationTypesGetDefaultResponse, ApplicationTypesCreateOrUpdate200Response, ApplicationTypesCreateOrUpdateDefaultResponse, ApplicationTypesDelete202Response, ApplicationTypesDelete204Response, ApplicationTypesDeleteDefaultResponse, ApplicationTypesList200Response, ApplicationTypesListDefaultResponse, ApplicationTypeVersionsGet200Response, ApplicationTypeVersionsGetDefaultResponse, ApplicationTypeVersionsCreateOrUpdate202Response, ApplicationTypeVersionsCreateOrUpdateDefaultResponse, ApplicationTypeVersionsDelete202Response, ApplicationTypeVersionsDelete204Response, ApplicationTypeVersionsDeleteDefaultResponse, ApplicationTypeVersionsList200Response, ApplicationTypeVersionsListDefaultResponse, ApplicationsGet200Response, ApplicationsGetDefaultResponse, ApplicationsCreateOrUpdate202Response, ApplicationsCreateOrUpdateDefaultResponse, ApplicationsUpdate202Response, ApplicationsUpdateDefaultResponse, ApplicationsDelete202Response, ApplicationsDelete204Response, ApplicationsDeleteDefaultResponse, ApplicationsList200Response, ApplicationsListDefaultResponse, ServicesGet200Response, ServicesGetDefaultResponse, ServicesCreateOrUpdate202Response, ServicesCreateOrUpdateDefaultResponse, ServicesUpdate202Response, ServicesUpdateDefaultResponse, ServicesDelete202Response, ServicesDelete204Response, ServicesDeleteDefaultResponse, ServicesList200Response, ServicesListDefaultResponse } from "./responses.js";
2
+ export declare function isUnexpected(response: ClustersGet200Response | ClustersGetDefaultResponse): response is ClustersGetDefaultResponse;
3
+ export declare function isUnexpected(response: ClustersCreateOrUpdate200Response | ClustersCreateOrUpdate202Response | ClustersCreateOrUpdateDefaultResponse): response is ClustersCreateOrUpdateDefaultResponse;
4
+ export declare function isUnexpected(response: ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdateDefaultResponse): response is ClustersUpdateDefaultResponse;
5
+ export declare function isUnexpected(response: ClustersDelete200Response | ClustersDelete204Response | ClustersDeleteDefaultResponse): response is ClustersDeleteDefaultResponse;
6
+ export declare function isUnexpected(response: ClustersListByResourceGroup200Response | ClustersListByResourceGroupDefaultResponse): response is ClustersListByResourceGroupDefaultResponse;
7
+ export declare function isUnexpected(response: ClustersList200Response | ClustersListDefaultResponse): response is ClustersListDefaultResponse;
8
+ export declare function isUnexpected(response: ClustersListUpgradableVersions200Response | ClustersListUpgradableVersionsDefaultResponse): response is ClustersListUpgradableVersionsDefaultResponse;
9
+ export declare function isUnexpected(response: ClusterVersionsGet200Response | ClusterVersionsGetDefaultResponse): response is ClusterVersionsGetDefaultResponse;
10
+ export declare function isUnexpected(response: ClusterVersionsGetByEnvironment200Response | ClusterVersionsGetByEnvironmentDefaultResponse): response is ClusterVersionsGetByEnvironmentDefaultResponse;
11
+ export declare function isUnexpected(response: ClusterVersionsList200Response | ClusterVersionsListDefaultResponse): response is ClusterVersionsListDefaultResponse;
12
+ export declare function isUnexpected(response: ClusterVersionsListByEnvironment200Response | ClusterVersionsListByEnvironmentDefaultResponse): response is ClusterVersionsListByEnvironmentDefaultResponse;
13
+ export declare function isUnexpected(response: OperationsList200Response | OperationsListDefaultResponse): response is OperationsListDefaultResponse;
14
+ export declare function isUnexpected(response: ApplicationTypesGet200Response | ApplicationTypesGetDefaultResponse): response is ApplicationTypesGetDefaultResponse;
15
+ export declare function isUnexpected(response: ApplicationTypesCreateOrUpdate200Response | ApplicationTypesCreateOrUpdateDefaultResponse): response is ApplicationTypesCreateOrUpdateDefaultResponse;
16
+ export declare function isUnexpected(response: ApplicationTypesDelete202Response | ApplicationTypesDelete204Response | ApplicationTypesDeleteDefaultResponse): response is ApplicationTypesDeleteDefaultResponse;
17
+ export declare function isUnexpected(response: ApplicationTypesList200Response | ApplicationTypesListDefaultResponse): response is ApplicationTypesListDefaultResponse;
18
+ export declare function isUnexpected(response: ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetDefaultResponse): response is ApplicationTypeVersionsGetDefaultResponse;
19
+ export declare function isUnexpected(response: ApplicationTypeVersionsCreateOrUpdate202Response | ApplicationTypeVersionsCreateOrUpdateDefaultResponse): response is ApplicationTypeVersionsCreateOrUpdateDefaultResponse;
20
+ export declare function isUnexpected(response: ApplicationTypeVersionsDelete202Response | ApplicationTypeVersionsDelete204Response | ApplicationTypeVersionsDeleteDefaultResponse): response is ApplicationTypeVersionsDeleteDefaultResponse;
21
+ export declare function isUnexpected(response: ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListDefaultResponse): response is ApplicationTypeVersionsListDefaultResponse;
22
+ export declare function isUnexpected(response: ApplicationsGet200Response | ApplicationsGetDefaultResponse): response is ApplicationsGetDefaultResponse;
23
+ export declare function isUnexpected(response: ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdateDefaultResponse): response is ApplicationsCreateOrUpdateDefaultResponse;
24
+ export declare function isUnexpected(response: ApplicationsUpdate202Response | ApplicationsUpdateDefaultResponse): response is ApplicationsUpdateDefaultResponse;
25
+ export declare function isUnexpected(response: ApplicationsDelete202Response | ApplicationsDelete204Response | ApplicationsDeleteDefaultResponse): response is ApplicationsDeleteDefaultResponse;
26
+ export declare function isUnexpected(response: ApplicationsList200Response | ApplicationsListDefaultResponse): response is ApplicationsListDefaultResponse;
27
+ export declare function isUnexpected(response: ServicesGet200Response | ServicesGetDefaultResponse): response is ServicesGetDefaultResponse;
28
+ export declare function isUnexpected(response: ServicesCreateOrUpdate202Response | ServicesCreateOrUpdateDefaultResponse): response is ServicesCreateOrUpdateDefaultResponse;
29
+ export declare function isUnexpected(response: ServicesUpdate202Response | ServicesUpdateDefaultResponse): response is ServicesUpdateDefaultResponse;
30
+ export declare function isUnexpected(response: ServicesDelete202Response | ServicesDelete204Response | ServicesDeleteDefaultResponse): response is ServicesDeleteDefaultResponse;
31
+ export declare function isUnexpected(response: ServicesList200Response | ServicesListDefaultResponse): response is ServicesListDefaultResponse;
32
+ //# sourceMappingURL=isUnexpected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,iCAAiC,EACjC,qCAAqC,EACrC,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,sCAAsC,EACtC,0CAA0C,EAC1C,uBAAuB,EACvB,2BAA2B,EAC3B,yCAAyC,EACzC,6CAA6C,EAC7C,6BAA6B,EAC7B,iCAAiC,EACjC,0CAA0C,EAC1C,8CAA8C,EAC9C,8BAA8B,EAC9B,kCAAkC,EAClC,2CAA2C,EAC3C,+CAA+C,EAC/C,yBAAyB,EACzB,6BA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CAAC"}
@@ -0,0 +1,98 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const responseMap = {
4
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}": ["200"],
5
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}": ["200", "202"],
6
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}": ["200", "202"],
7
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}": ["200", "204"],
8
+ "GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters": ["200"],
9
+ "GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters": ["200"],
10
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions": ["200"],
11
+ "GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}": ["200"],
12
+ "GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}": ["200"],
13
+ "GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions": ["200"],
14
+ "GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions": ["200"],
15
+ "GET /providers/Microsoft.ServiceFabric/operations": ["200"],
16
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}": ["200"],
17
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}": ["200"],
18
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}": ["202", "204"],
19
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes": ["200"],
20
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}": ["200"],
21
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}": ["202"],
22
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}": ["202", "204"],
23
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions": ["200"],
24
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}": ["200"],
25
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}": ["202"],
26
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}": ["202"],
27
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}": ["202", "204"],
28
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications": ["200"],
29
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}": ["200"],
30
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}": ["202"],
31
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}": ["202"],
32
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}": ["202", "204"],
33
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services": ["200"],
34
+ };
35
+ export function isUnexpected(response) {
36
+ const lroOriginal = response.headers["x-ms-original-url"];
37
+ const url = new URL(lroOriginal ?? response.request.url);
38
+ const method = response.request.method;
39
+ let pathDetails = responseMap[`${method} ${url.pathname}`];
40
+ if (!pathDetails) {
41
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
42
+ }
43
+ return !pathDetails.includes(response.status);
44
+ }
45
+ function getParametrizedPathSuccess(method, path) {
46
+ const pathParts = path.split("/");
47
+ // Traverse list to match the longest candidate
48
+ // matchedLen: the length of candidate path
49
+ // matchedValue: the matched status code array
50
+ let matchedLen = -1, matchedValue = [];
51
+ // Iterate the responseMap to find a match
52
+ for (const [key, value] of Object.entries(responseMap)) {
53
+ // Extracting the path from the map key which is in format
54
+ // GET /path/foo
55
+ if (!key.startsWith(method)) {
56
+ continue;
57
+ }
58
+ const candidatePath = getPathFromMapKey(key);
59
+ // Get each part of the url path
60
+ const candidateParts = candidatePath.split("/");
61
+ // track if we have found a match to return the values found.
62
+ let found = true;
63
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
64
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
65
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
66
+ // If the current part of the candidate is a "template" part
67
+ // Try to use the suffix of pattern to match the path
68
+ // {guid} ==> $
69
+ // {guid}:export ==> :export$
70
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
71
+ if (!isMatched) {
72
+ found = false;
73
+ break;
74
+ }
75
+ continue;
76
+ }
77
+ // If the candidate part is not a template and
78
+ // the parts don't match mark the candidate as not found
79
+ // to move on with the next candidate path.
80
+ if (candidateParts[i] !== pathParts[j]) {
81
+ found = false;
82
+ break;
83
+ }
84
+ }
85
+ // We finished evaluating the current candidate parts
86
+ // Update the matched value if and only if we found the longer pattern
87
+ if (found && candidatePath.length > matchedLen) {
88
+ matchedLen = candidatePath.length;
89
+ matchedValue = value;
90
+ }
91
+ }
92
+ return matchedValue;
93
+ }
94
+ function getPathFromMapKey(mapKey) {
95
+ const pathStart = mapKey.indexOf("/");
96
+ return mapKey.slice(pathStart);
97
+ }
98
+ //# sourceMappingURL=isUnexpected.js.map