@azure/arm-datafactory 19.0.0-alpha.20250619.1 → 19.0.0-alpha.20250718.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 (219) hide show
  1. package/dist/browser/dataFactoryManagementClient.js +36 -5
  2. package/dist/browser/dataFactoryManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +6377 -2917
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/activityRuns.js +1 -0
  8. package/dist/browser/operations/activityRuns.js.map +1 -1
  9. package/dist/browser/operations/changeDataCapture.js +23 -40
  10. package/dist/browser/operations/changeDataCapture.js.map +1 -1
  11. package/dist/browser/operations/credentialOperations.js +23 -40
  12. package/dist/browser/operations/credentialOperations.js.map +1 -1
  13. package/dist/browser/operations/dataFlowDebugSession.js +45 -52
  14. package/dist/browser/operations/dataFlowDebugSession.js.map +1 -1
  15. package/dist/browser/operations/dataFlows.js +23 -40
  16. package/dist/browser/operations/dataFlows.js.map +1 -1
  17. package/dist/browser/operations/datasets.js +23 -40
  18. package/dist/browser/operations/datasets.js.map +1 -1
  19. package/dist/browser/operations/exposureControl.js +1 -0
  20. package/dist/browser/operations/exposureControl.js.map +1 -1
  21. package/dist/browser/operations/factories.js +45 -79
  22. package/dist/browser/operations/factories.js.map +1 -1
  23. package/dist/browser/operations/globalParameters.js +23 -40
  24. package/dist/browser/operations/globalParameters.js.map +1 -1
  25. package/dist/browser/operations/integrationRuntimeNodes.js +1 -0
  26. package/dist/browser/operations/integrationRuntimeNodes.js.map +1 -1
  27. package/dist/browser/operations/integrationRuntimeObjectMetadata.js +12 -6
  28. package/dist/browser/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  29. package/dist/browser/operations/integrationRuntimes.js +45 -52
  30. package/dist/browser/operations/integrationRuntimes.js.map +1 -1
  31. package/dist/browser/operations/linkedServices.js +23 -40
  32. package/dist/browser/operations/linkedServices.js.map +1 -1
  33. package/dist/browser/operations/managedPrivateEndpoints.js +23 -40
  34. package/dist/browser/operations/managedPrivateEndpoints.js.map +1 -1
  35. package/dist/browser/operations/managedVirtualNetworks.js +23 -40
  36. package/dist/browser/operations/managedVirtualNetworks.js.map +1 -1
  37. package/dist/browser/operations/operations.js +23 -40
  38. package/dist/browser/operations/operations.js.map +1 -1
  39. package/dist/browser/operations/pipelineRuns.js +1 -0
  40. package/dist/browser/operations/pipelineRuns.js.map +1 -1
  41. package/dist/browser/operations/pipelines.js +23 -40
  42. package/dist/browser/operations/pipelines.js.map +1 -1
  43. package/dist/browser/operations/privateEndPointConnections.js +23 -40
  44. package/dist/browser/operations/privateEndPointConnections.js.map +1 -1
  45. package/dist/browser/operations/privateEndpointConnection.js +1 -0
  46. package/dist/browser/operations/privateEndpointConnection.js.map +1 -1
  47. package/dist/browser/operations/privateLinkResources.js +1 -0
  48. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  49. package/dist/browser/operations/triggerRuns.js +1 -0
  50. package/dist/browser/operations/triggerRuns.js.map +1 -1
  51. package/dist/browser/operations/triggers.js +67 -64
  52. package/dist/browser/operations/triggers.js.map +1 -1
  53. package/dist/browser/pagingHelper.js +2 -4
  54. package/dist/browser/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/dataFactoryManagementClient.js +36 -5
  56. package/dist/commonjs/dataFactoryManagementClient.js.map +1 -1
  57. package/dist/commonjs/lroImpl.js +7 -3
  58. package/dist/commonjs/lroImpl.js.map +1 -1
  59. package/dist/commonjs/models/mappers.js +6377 -2917
  60. package/dist/commonjs/models/mappers.js.map +1 -1
  61. package/dist/commonjs/operations/activityRuns.js +1 -0
  62. package/dist/commonjs/operations/activityRuns.js.map +1 -1
  63. package/dist/commonjs/operations/changeDataCapture.js +23 -39
  64. package/dist/commonjs/operations/changeDataCapture.js.map +1 -1
  65. package/dist/commonjs/operations/credentialOperations.js +23 -39
  66. package/dist/commonjs/operations/credentialOperations.js.map +1 -1
  67. package/dist/commonjs/operations/dataFlowDebugSession.js +45 -51
  68. package/dist/commonjs/operations/dataFlowDebugSession.js.map +1 -1
  69. package/dist/commonjs/operations/dataFlows.js +23 -39
  70. package/dist/commonjs/operations/dataFlows.js.map +1 -1
  71. package/dist/commonjs/operations/datasets.js +23 -39
  72. package/dist/commonjs/operations/datasets.js.map +1 -1
  73. package/dist/commonjs/operations/exposureControl.js +1 -0
  74. package/dist/commonjs/operations/exposureControl.js.map +1 -1
  75. package/dist/commonjs/operations/factories.js +45 -78
  76. package/dist/commonjs/operations/factories.js.map +1 -1
  77. package/dist/commonjs/operations/globalParameters.js +23 -39
  78. package/dist/commonjs/operations/globalParameters.js.map +1 -1
  79. package/dist/commonjs/operations/integrationRuntimeNodes.js +1 -0
  80. package/dist/commonjs/operations/integrationRuntimeNodes.js.map +1 -1
  81. package/dist/commonjs/operations/integrationRuntimeObjectMetadata.js +12 -6
  82. package/dist/commonjs/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  83. package/dist/commonjs/operations/integrationRuntimes.js +45 -51
  84. package/dist/commonjs/operations/integrationRuntimes.js.map +1 -1
  85. package/dist/commonjs/operations/linkedServices.js +23 -39
  86. package/dist/commonjs/operations/linkedServices.js.map +1 -1
  87. package/dist/commonjs/operations/managedPrivateEndpoints.js +23 -39
  88. package/dist/commonjs/operations/managedPrivateEndpoints.js.map +1 -1
  89. package/dist/commonjs/operations/managedVirtualNetworks.js +23 -39
  90. package/dist/commonjs/operations/managedVirtualNetworks.js.map +1 -1
  91. package/dist/commonjs/operations/operations.js +23 -39
  92. package/dist/commonjs/operations/operations.js.map +1 -1
  93. package/dist/commonjs/operations/pipelineRuns.js +1 -0
  94. package/dist/commonjs/operations/pipelineRuns.js.map +1 -1
  95. package/dist/commonjs/operations/pipelines.js +23 -39
  96. package/dist/commonjs/operations/pipelines.js.map +1 -1
  97. package/dist/commonjs/operations/privateEndPointConnections.js +23 -39
  98. package/dist/commonjs/operations/privateEndPointConnections.js.map +1 -1
  99. package/dist/commonjs/operations/privateEndpointConnection.js +1 -0
  100. package/dist/commonjs/operations/privateEndpointConnection.js.map +1 -1
  101. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  102. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  103. package/dist/commonjs/operations/triggerRuns.js +1 -0
  104. package/dist/commonjs/operations/triggerRuns.js.map +1 -1
  105. package/dist/commonjs/operations/triggers.js +67 -63
  106. package/dist/commonjs/operations/triggers.js.map +1 -1
  107. package/dist/commonjs/pagingHelper.js +2 -4
  108. package/dist/commonjs/pagingHelper.js.map +1 -1
  109. package/dist/commonjs/tsdoc-metadata.json +11 -11
  110. package/dist/esm/dataFactoryManagementClient.js +36 -5
  111. package/dist/esm/dataFactoryManagementClient.js.map +1 -1
  112. package/dist/esm/lroImpl.js +7 -3
  113. package/dist/esm/lroImpl.js.map +1 -1
  114. package/dist/esm/models/mappers.js +6377 -2917
  115. package/dist/esm/models/mappers.js.map +1 -1
  116. package/dist/esm/operations/activityRuns.js +1 -0
  117. package/dist/esm/operations/activityRuns.js.map +1 -1
  118. package/dist/esm/operations/changeDataCapture.js +23 -40
  119. package/dist/esm/operations/changeDataCapture.js.map +1 -1
  120. package/dist/esm/operations/credentialOperations.js +23 -40
  121. package/dist/esm/operations/credentialOperations.js.map +1 -1
  122. package/dist/esm/operations/dataFlowDebugSession.js +45 -52
  123. package/dist/esm/operations/dataFlowDebugSession.js.map +1 -1
  124. package/dist/esm/operations/dataFlows.js +23 -40
  125. package/dist/esm/operations/dataFlows.js.map +1 -1
  126. package/dist/esm/operations/datasets.js +23 -40
  127. package/dist/esm/operations/datasets.js.map +1 -1
  128. package/dist/esm/operations/exposureControl.js +1 -0
  129. package/dist/esm/operations/exposureControl.js.map +1 -1
  130. package/dist/esm/operations/factories.js +45 -79
  131. package/dist/esm/operations/factories.js.map +1 -1
  132. package/dist/esm/operations/globalParameters.js +23 -40
  133. package/dist/esm/operations/globalParameters.js.map +1 -1
  134. package/dist/esm/operations/integrationRuntimeNodes.js +1 -0
  135. package/dist/esm/operations/integrationRuntimeNodes.js.map +1 -1
  136. package/dist/esm/operations/integrationRuntimeObjectMetadata.js +12 -6
  137. package/dist/esm/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  138. package/dist/esm/operations/integrationRuntimes.js +45 -52
  139. package/dist/esm/operations/integrationRuntimes.js.map +1 -1
  140. package/dist/esm/operations/linkedServices.js +23 -40
  141. package/dist/esm/operations/linkedServices.js.map +1 -1
  142. package/dist/esm/operations/managedPrivateEndpoints.js +23 -40
  143. package/dist/esm/operations/managedPrivateEndpoints.js.map +1 -1
  144. package/dist/esm/operations/managedVirtualNetworks.js +23 -40
  145. package/dist/esm/operations/managedVirtualNetworks.js.map +1 -1
  146. package/dist/esm/operations/operations.js +23 -40
  147. package/dist/esm/operations/operations.js.map +1 -1
  148. package/dist/esm/operations/pipelineRuns.js +1 -0
  149. package/dist/esm/operations/pipelineRuns.js.map +1 -1
  150. package/dist/esm/operations/pipelines.js +23 -40
  151. package/dist/esm/operations/pipelines.js.map +1 -1
  152. package/dist/esm/operations/privateEndPointConnections.js +23 -40
  153. package/dist/esm/operations/privateEndPointConnections.js.map +1 -1
  154. package/dist/esm/operations/privateEndpointConnection.js +1 -0
  155. package/dist/esm/operations/privateEndpointConnection.js.map +1 -1
  156. package/dist/esm/operations/privateLinkResources.js +1 -0
  157. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  158. package/dist/esm/operations/triggerRuns.js +1 -0
  159. package/dist/esm/operations/triggerRuns.js.map +1 -1
  160. package/dist/esm/operations/triggers.js +67 -64
  161. package/dist/esm/operations/triggers.js.map +1 -1
  162. package/dist/esm/pagingHelper.js +2 -4
  163. package/dist/esm/pagingHelper.js.map +1 -1
  164. package/dist/react-native/dataFactoryManagementClient.js +36 -5
  165. package/dist/react-native/dataFactoryManagementClient.js.map +1 -1
  166. package/dist/react-native/lroImpl.js +7 -3
  167. package/dist/react-native/lroImpl.js.map +1 -1
  168. package/dist/react-native/models/mappers.js +6377 -2917
  169. package/dist/react-native/models/mappers.js.map +1 -1
  170. package/dist/react-native/operations/activityRuns.js +1 -0
  171. package/dist/react-native/operations/activityRuns.js.map +1 -1
  172. package/dist/react-native/operations/changeDataCapture.js +23 -40
  173. package/dist/react-native/operations/changeDataCapture.js.map +1 -1
  174. package/dist/react-native/operations/credentialOperations.js +23 -40
  175. package/dist/react-native/operations/credentialOperations.js.map +1 -1
  176. package/dist/react-native/operations/dataFlowDebugSession.js +45 -52
  177. package/dist/react-native/operations/dataFlowDebugSession.js.map +1 -1
  178. package/dist/react-native/operations/dataFlows.js +23 -40
  179. package/dist/react-native/operations/dataFlows.js.map +1 -1
  180. package/dist/react-native/operations/datasets.js +23 -40
  181. package/dist/react-native/operations/datasets.js.map +1 -1
  182. package/dist/react-native/operations/exposureControl.js +1 -0
  183. package/dist/react-native/operations/exposureControl.js.map +1 -1
  184. package/dist/react-native/operations/factories.js +45 -79
  185. package/dist/react-native/operations/factories.js.map +1 -1
  186. package/dist/react-native/operations/globalParameters.js +23 -40
  187. package/dist/react-native/operations/globalParameters.js.map +1 -1
  188. package/dist/react-native/operations/integrationRuntimeNodes.js +1 -0
  189. package/dist/react-native/operations/integrationRuntimeNodes.js.map +1 -1
  190. package/dist/react-native/operations/integrationRuntimeObjectMetadata.js +12 -6
  191. package/dist/react-native/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  192. package/dist/react-native/operations/integrationRuntimes.js +45 -52
  193. package/dist/react-native/operations/integrationRuntimes.js.map +1 -1
  194. package/dist/react-native/operations/linkedServices.js +23 -40
  195. package/dist/react-native/operations/linkedServices.js.map +1 -1
  196. package/dist/react-native/operations/managedPrivateEndpoints.js +23 -40
  197. package/dist/react-native/operations/managedPrivateEndpoints.js.map +1 -1
  198. package/dist/react-native/operations/managedVirtualNetworks.js +23 -40
  199. package/dist/react-native/operations/managedVirtualNetworks.js.map +1 -1
  200. package/dist/react-native/operations/operations.js +23 -40
  201. package/dist/react-native/operations/operations.js.map +1 -1
  202. package/dist/react-native/operations/pipelineRuns.js +1 -0
  203. package/dist/react-native/operations/pipelineRuns.js.map +1 -1
  204. package/dist/react-native/operations/pipelines.js +23 -40
  205. package/dist/react-native/operations/pipelines.js.map +1 -1
  206. package/dist/react-native/operations/privateEndPointConnections.js +23 -40
  207. package/dist/react-native/operations/privateEndPointConnections.js.map +1 -1
  208. package/dist/react-native/operations/privateEndpointConnection.js +1 -0
  209. package/dist/react-native/operations/privateEndpointConnection.js.map +1 -1
  210. package/dist/react-native/operations/privateLinkResources.js +1 -0
  211. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  212. package/dist/react-native/operations/triggerRuns.js +1 -0
  213. package/dist/react-native/operations/triggerRuns.js.map +1 -1
  214. package/dist/react-native/operations/triggers.js +67 -64
  215. package/dist/react-native/operations/triggers.js.map +1 -1
  216. package/dist/react-native/pagingHelper.js +2 -4
  217. package/dist/react-native/pagingHelper.js.map +1 -1
  218. package/package.json +2 -2
  219. /package/review/{arm-datafactory.api.md → arm-datafactory-node.api.md} +0 -0
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { OperationsImpl, FactoriesImpl, ExposureControlImpl, IntegrationRuntimesImpl, IntegrationRuntimeObjectMetadataImpl, IntegrationRuntimeNodesImpl, LinkedServicesImpl, DatasetsImpl, PipelinesImpl, PipelineRunsImpl, ActivityRunsImpl, TriggersImpl, TriggerRunsImpl, DataFlowsImpl, DataFlowDebugSessionImpl, ManagedVirtualNetworksImpl, ManagedPrivateEndpointsImpl, CredentialOperationsImpl, PrivateEndPointConnectionsImpl, PrivateEndpointConnectionImpl, PrivateLinkResourcesImpl, GlobalParametersImpl, ChangeDataCaptureImpl, } from "./operations/index.js";
11
11
  export class DataFactoryManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
12
15
  /**
13
16
  * Initializes a new instance of the DataFactoryManagementClient class.
14
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,7 +19,6 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
16
19
  * @param options The parameter options
17
20
  */
18
21
  constructor(credentials, subscriptionId, options) {
19
- var _a, _b, _c;
20
22
  if (credentials === undefined) {
21
23
  throw new Error("'credentials' cannot be null");
22
24
  }
@@ -35,12 +37,17 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
35
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
39
  : `${packageDetails}`;
38
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ const optionsWithDefaults = {
41
+ ...defaults,
42
+ ...options,
43
+ userAgentOptions: {
39
44
  userAgentPrefix,
40
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
+ },
46
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
47
+ };
41
48
  super(optionsWithDefaults);
42
49
  let bearerTokenAuthenticationPolicyFound = false;
43
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
50
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
44
51
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
52
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
53
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -54,7 +61,8 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
54
61
  });
55
62
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
63
  credential: credentials,
57
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
64
+ scopes: optionsWithDefaults.credentialScopes ??
65
+ `${optionsWithDefaults.endpoint}/.default`,
58
66
  challengeCallbacks: {
59
67
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
60
68
  },
@@ -116,5 +124,28 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
116
124
  };
117
125
  this.pipeline.addPolicy(apiVersionPolicy);
118
126
  }
127
+ operations;
128
+ factories;
129
+ exposureControl;
130
+ integrationRuntimes;
131
+ integrationRuntimeObjectMetadata;
132
+ integrationRuntimeNodes;
133
+ linkedServices;
134
+ datasets;
135
+ pipelines;
136
+ pipelineRuns;
137
+ activityRuns;
138
+ triggers;
139
+ triggerRuns;
140
+ dataFlows;
141
+ dataFlowDebugSession;
142
+ managedVirtualNetworks;
143
+ managedPrivateEndpoints;
144
+ credentialOperations;
145
+ privateEndPointConnections;
146
+ privateEndpointConnection;
147
+ privateLinkResources;
148
+ globalParameters;
149
+ changeDataCapture;
119
150
  }
120
151
  //# sourceMappingURL=dataFactoryManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataFactoryManagementClient.js","sourceRoot":"","sources":["../../src/dataFactoryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,oCAAoC,EACpC,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AA4B/B,MAAM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BAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAyBF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n FactoriesImpl,\n ExposureControlImpl,\n IntegrationRuntimesImpl,\n IntegrationRuntimeObjectMetadataImpl,\n IntegrationRuntimeNodesImpl,\n LinkedServicesImpl,\n DatasetsImpl,\n PipelinesImpl,\n PipelineRunsImpl,\n ActivityRunsImpl,\n TriggersImpl,\n TriggerRunsImpl,\n DataFlowsImpl,\n DataFlowDebugSessionImpl,\n ManagedVirtualNetworksImpl,\n ManagedPrivateEndpointsImpl,\n CredentialOperationsImpl,\n PrivateEndPointConnectionsImpl,\n PrivateEndpointConnectionImpl,\n PrivateLinkResourcesImpl,\n GlobalParametersImpl,\n ChangeDataCaptureImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Factories,\n ExposureControl,\n IntegrationRuntimes,\n IntegrationRuntimeObjectMetadata,\n IntegrationRuntimeNodes,\n LinkedServices,\n Datasets,\n Pipelines,\n PipelineRuns,\n ActivityRuns,\n Triggers,\n TriggerRuns,\n DataFlows,\n DataFlowDebugSession,\n ManagedVirtualNetworks,\n ManagedPrivateEndpoints,\n CredentialOperations,\n PrivateEndPointConnections,\n PrivateEndpointConnection,\n PrivateLinkResources,\n GlobalParameters,\n ChangeDataCapture,\n} from \"./operationsInterfaces/index.js\";\nimport { DataFactoryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DataFactoryManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataFactoryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataFactoryManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataFactoryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-datafactory/19.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-06-01\";\n this.operations = new OperationsImpl(this);\n this.factories = new FactoriesImpl(this);\n this.exposureControl = new ExposureControlImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.integrationRuntimeObjectMetadata =\n new IntegrationRuntimeObjectMetadataImpl(this);\n this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this);\n this.linkedServices = new LinkedServicesImpl(this);\n this.datasets = new DatasetsImpl(this);\n this.pipelines = new PipelinesImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.activityRuns = new ActivityRunsImpl(this);\n this.triggers = new TriggersImpl(this);\n this.triggerRuns = new TriggerRunsImpl(this);\n this.dataFlows = new DataFlowsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.managedVirtualNetworks = new ManagedVirtualNetworksImpl(this);\n this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this);\n this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.globalParameters = new GlobalParametersImpl(this);\n this.changeDataCapture = new ChangeDataCaptureImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n factories: Factories;\n exposureControl: ExposureControl;\n integrationRuntimes: IntegrationRuntimes;\n integrationRuntimeObjectMetadata: IntegrationRuntimeObjectMetadata;\n integrationRuntimeNodes: IntegrationRuntimeNodes;\n linkedServices: LinkedServices;\n datasets: Datasets;\n pipelines: Pipelines;\n pipelineRuns: PipelineRuns;\n activityRuns: ActivityRuns;\n triggers: Triggers;\n triggerRuns: TriggerRuns;\n dataFlows: DataFlows;\n dataFlowDebugSession: DataFlowDebugSession;\n managedVirtualNetworks: ManagedVirtualNetworks;\n managedPrivateEndpoints: ManagedPrivateEndpoints;\n credentialOperations: CredentialOperations;\n privateEndPointConnections: PrivateEndPointConnections;\n privateEndpointConnection: PrivateEndpointConnection;\n privateLinkResources: PrivateLinkResources;\n globalParameters: GlobalParameters;\n changeDataCapture: ChangeDataCapture;\n}\n"]}
1
+ {"version":3,"file":"dataFactoryManagementClient.js","sourceRoot":"","sources":["../../src/dataFactoryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,oCAAoC,EACpC,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AA4B/B,MAAM,OAAO,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IACvE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAmD;QAEnD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,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oB,CAAuB;IAC3C,gBAAgB,CAAmB;IACnC,iBAAiB,CAAoB;CACtC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n FactoriesImpl,\n ExposureControlImpl,\n IntegrationRuntimesImpl,\n IntegrationRuntimeObjectMetadataImpl,\n IntegrationRuntimeNodesImpl,\n LinkedServicesImpl,\n DatasetsImpl,\n PipelinesImpl,\n PipelineRunsImpl,\n ActivityRunsImpl,\n TriggersImpl,\n TriggerRunsImpl,\n DataFlowsImpl,\n DataFlowDebugSessionImpl,\n ManagedVirtualNetworksImpl,\n ManagedPrivateEndpointsImpl,\n CredentialOperationsImpl,\n PrivateEndPointConnectionsImpl,\n PrivateEndpointConnectionImpl,\n PrivateLinkResourcesImpl,\n GlobalParametersImpl,\n ChangeDataCaptureImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Factories,\n ExposureControl,\n IntegrationRuntimes,\n IntegrationRuntimeObjectMetadata,\n IntegrationRuntimeNodes,\n LinkedServices,\n Datasets,\n Pipelines,\n PipelineRuns,\n ActivityRuns,\n Triggers,\n TriggerRuns,\n DataFlows,\n DataFlowDebugSession,\n ManagedVirtualNetworks,\n ManagedPrivateEndpoints,\n CredentialOperations,\n PrivateEndPointConnections,\n PrivateEndpointConnection,\n PrivateLinkResources,\n GlobalParameters,\n ChangeDataCapture,\n} from \"./operationsInterfaces/index.js\";\nimport { DataFactoryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DataFactoryManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataFactoryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataFactoryManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DataFactoryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-datafactory/19.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2018-06-01\";\n this.operations = new OperationsImpl(this);\n this.factories = new FactoriesImpl(this);\n this.exposureControl = new ExposureControlImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.integrationRuntimeObjectMetadata =\n new IntegrationRuntimeObjectMetadataImpl(this);\n this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this);\n this.linkedServices = new LinkedServicesImpl(this);\n this.datasets = new DatasetsImpl(this);\n this.pipelines = new PipelinesImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.activityRuns = new ActivityRunsImpl(this);\n this.triggers = new TriggersImpl(this);\n this.triggerRuns = new TriggerRunsImpl(this);\n this.dataFlows = new DataFlowsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.managedVirtualNetworks = new ManagedVirtualNetworksImpl(this);\n this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this);\n this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.globalParameters = new GlobalParametersImpl(this);\n this.changeDataCapture = new ChangeDataCaptureImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n factories: Factories;\n exposureControl: ExposureControl;\n integrationRuntimes: IntegrationRuntimes;\n integrationRuntimeObjectMetadata: IntegrationRuntimeObjectMetadata;\n integrationRuntimeNodes: IntegrationRuntimeNodes;\n linkedServices: LinkedServices;\n datasets: Datasets;\n pipelines: Pipelines;\n pipelineRuns: PipelineRuns;\n activityRuns: ActivityRuns;\n triggers: Triggers;\n triggerRuns: TriggerRuns;\n dataFlows: DataFlows;\n dataFlowDebugSession: DataFlowDebugSession;\n managedVirtualNetworks: ManagedVirtualNetworks;\n managedPrivateEndpoints: ManagedPrivateEndpoints;\n credentialOperations: CredentialOperations;\n privateEndPointConnections: PrivateEndPointConnections;\n privateEndpointConnection: PrivateEndpointConnection;\n privateLinkResources: PrivateLinkResources;\n globalParameters: GlobalParameters;\n changeDataCapture: ChangeDataCapture;\n}\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export function createLroSpec(inputs) {
10
9
  const { args, spec, sendOperationFn } = inputs;
11
10
  return {
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
13
12
  requestPath: spec.path,
14
13
  sendInitialRequest: () => sendOperationFn(args, spec),
15
14
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
15
+ const { requestBody, ...restSpec } = spec;
16
+ return sendOperationFn(args, {
17
+ ...restSpec,
18
+ httpMethod: "GET",
19
+ path,
20
+ abortSignal: options?.abortSignal,
21
+ });
18
22
  },
19
23
  };
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}