@azure/arm-streamanalytics 5.0.0-alpha.20250718.1 → 5.0.0-alpha.20250730.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +791 -359
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/clusters.js +100 -136
  6. package/dist/browser/operations/clusters.js.map +1 -1
  7. package/dist/browser/operations/functions.js +34 -46
  8. package/dist/browser/operations/functions.js.map +1 -1
  9. package/dist/browser/operations/inputs.js +34 -46
  10. package/dist/browser/operations/inputs.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/outputs.js +34 -46
  14. package/dist/browser/operations/outputs.js.map +1 -1
  15. package/dist/browser/operations/privateEndpoints.js +34 -46
  16. package/dist/browser/operations/privateEndpoints.js.map +1 -1
  17. package/dist/browser/operations/skuOperations.js +23 -40
  18. package/dist/browser/operations/skuOperations.js.map +1 -1
  19. package/dist/browser/operations/streamingJobs.js +100 -109
  20. package/dist/browser/operations/streamingJobs.js.map +1 -1
  21. package/dist/browser/operations/subscriptions.js +45 -24
  22. package/dist/browser/operations/subscriptions.js.map +1 -1
  23. package/dist/browser/operations/transformations.js +1 -0
  24. package/dist/browser/operations/transformations.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/browser/streamAnalyticsManagementClient.js +22 -5
  28. package/dist/browser/streamAnalyticsManagementClient.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +7 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/models/mappers.js +791 -359
  32. package/dist/commonjs/models/mappers.js.map +1 -1
  33. package/dist/commonjs/operations/clusters.js +100 -135
  34. package/dist/commonjs/operations/clusters.js.map +1 -1
  35. package/dist/commonjs/operations/functions.js +34 -45
  36. package/dist/commonjs/operations/functions.js.map +1 -1
  37. package/dist/commonjs/operations/inputs.js +34 -45
  38. package/dist/commonjs/operations/inputs.js.map +1 -1
  39. package/dist/commonjs/operations/operations.js +23 -39
  40. package/dist/commonjs/operations/operations.js.map +1 -1
  41. package/dist/commonjs/operations/outputs.js +34 -45
  42. package/dist/commonjs/operations/outputs.js.map +1 -1
  43. package/dist/commonjs/operations/privateEndpoints.js +34 -45
  44. package/dist/commonjs/operations/privateEndpoints.js.map +1 -1
  45. package/dist/commonjs/operations/skuOperations.js +23 -39
  46. package/dist/commonjs/operations/skuOperations.js.map +1 -1
  47. package/dist/commonjs/operations/streamingJobs.js +100 -108
  48. package/dist/commonjs/operations/streamingJobs.js.map +1 -1
  49. package/dist/commonjs/operations/subscriptions.js +45 -24
  50. package/dist/commonjs/operations/subscriptions.js.map +1 -1
  51. package/dist/commonjs/operations/transformations.js +1 -0
  52. package/dist/commonjs/operations/transformations.js.map +1 -1
  53. package/dist/commonjs/pagingHelper.js +2 -4
  54. package/dist/commonjs/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/streamAnalyticsManagementClient.js +22 -5
  56. package/dist/commonjs/streamAnalyticsManagementClient.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/lroImpl.js +7 -3
  59. package/dist/esm/lroImpl.js.map +1 -1
  60. package/dist/esm/models/mappers.js +791 -359
  61. package/dist/esm/models/mappers.js.map +1 -1
  62. package/dist/esm/operations/clusters.js +100 -136
  63. package/dist/esm/operations/clusters.js.map +1 -1
  64. package/dist/esm/operations/functions.js +34 -46
  65. package/dist/esm/operations/functions.js.map +1 -1
  66. package/dist/esm/operations/inputs.js +34 -46
  67. package/dist/esm/operations/inputs.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/outputs.js +34 -46
  71. package/dist/esm/operations/outputs.js.map +1 -1
  72. package/dist/esm/operations/privateEndpoints.js +34 -46
  73. package/dist/esm/operations/privateEndpoints.js.map +1 -1
  74. package/dist/esm/operations/skuOperations.js +23 -40
  75. package/dist/esm/operations/skuOperations.js.map +1 -1
  76. package/dist/esm/operations/streamingJobs.js +100 -109
  77. package/dist/esm/operations/streamingJobs.js.map +1 -1
  78. package/dist/esm/operations/subscriptions.js +45 -24
  79. package/dist/esm/operations/subscriptions.js.map +1 -1
  80. package/dist/esm/operations/transformations.js +1 -0
  81. package/dist/esm/operations/transformations.js.map +1 -1
  82. package/dist/esm/pagingHelper.js +2 -4
  83. package/dist/esm/pagingHelper.js.map +1 -1
  84. package/dist/esm/streamAnalyticsManagementClient.js +22 -5
  85. package/dist/esm/streamAnalyticsManagementClient.js.map +1 -1
  86. package/dist/react-native/lroImpl.js +7 -3
  87. package/dist/react-native/lroImpl.js.map +1 -1
  88. package/dist/react-native/models/mappers.js +791 -359
  89. package/dist/react-native/models/mappers.js.map +1 -1
  90. package/dist/react-native/operations/clusters.js +100 -136
  91. package/dist/react-native/operations/clusters.js.map +1 -1
  92. package/dist/react-native/operations/functions.js +34 -46
  93. package/dist/react-native/operations/functions.js.map +1 -1
  94. package/dist/react-native/operations/inputs.js +34 -46
  95. package/dist/react-native/operations/inputs.js.map +1 -1
  96. package/dist/react-native/operations/operations.js +23 -40
  97. package/dist/react-native/operations/operations.js.map +1 -1
  98. package/dist/react-native/operations/outputs.js +34 -46
  99. package/dist/react-native/operations/outputs.js.map +1 -1
  100. package/dist/react-native/operations/privateEndpoints.js +34 -46
  101. package/dist/react-native/operations/privateEndpoints.js.map +1 -1
  102. package/dist/react-native/operations/skuOperations.js +23 -40
  103. package/dist/react-native/operations/skuOperations.js.map +1 -1
  104. package/dist/react-native/operations/streamingJobs.js +100 -109
  105. package/dist/react-native/operations/streamingJobs.js.map +1 -1
  106. package/dist/react-native/operations/subscriptions.js +45 -24
  107. package/dist/react-native/operations/subscriptions.js.map +1 -1
  108. package/dist/react-native/operations/transformations.js +1 -0
  109. package/dist/react-native/operations/transformations.js.map +1 -1
  110. package/dist/react-native/pagingHelper.js +2 -4
  111. package/dist/react-native/pagingHelper.js.map +1 -1
  112. package/dist/react-native/streamAnalyticsManagementClient.js +22 -5
  113. package/dist/react-native/streamAnalyticsManagementClient.js.map +1 -1
  114. package/package.json +2 -2
  115. package/review/arm-streamanalytics-node.api.md +2128 -2128
@@ -12,6 +12,7 @@ import { createHttpPoller, } from "@azure/core-lro";
12
12
  import { createLroSpec } from "../lroImpl.js";
13
13
  /** Class containing Subscriptions operations. */
14
14
  export class SubscriptionsImpl {
15
+ client;
15
16
  /**
16
17
  * Initialize a new instance of the class Subscriptions class.
17
18
  * @param client Reference to the service client
@@ -41,14 +42,19 @@ export class SubscriptionsImpl {
41
42
  return this.client.sendOperationRequest(args, spec);
42
43
  };
43
44
  const sendOperationFn = async (args, spec) => {
44
- var _a;
45
45
  let currentRawResponse = undefined;
46
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
46
+ const providedCallback = args.options?.onResponse;
47
47
  const callback = (rawResponse, flatResponse) => {
48
48
  currentRawResponse = rawResponse;
49
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
49
+ providedCallback?.(rawResponse, flatResponse);
50
+ };
51
+ const updatedArgs = {
52
+ ...args,
53
+ options: {
54
+ ...args.options,
55
+ onResponse: callback,
56
+ },
50
57
  };
51
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
52
58
  const flatResponse = await directSendOperation(updatedArgs, spec);
53
59
  return {
54
60
  flatResponse,
@@ -65,8 +71,8 @@ export class SubscriptionsImpl {
65
71
  spec: testQueryOperationSpec,
66
72
  });
67
73
  const poller = await createHttpPoller(lro, {
68
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
69
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
74
+ restoreFrom: options?.resumeFrom,
75
+ intervalInMs: options?.updateIntervalInMs,
70
76
  resourceLocationConfig: "location",
71
77
  });
72
78
  await poller.poll();
@@ -107,14 +113,19 @@ export class SubscriptionsImpl {
107
113
  return this.client.sendOperationRequest(args, spec);
108
114
  };
109
115
  const sendOperationFn = async (args, spec) => {
110
- var _a;
111
116
  let currentRawResponse = undefined;
112
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
117
+ const providedCallback = args.options?.onResponse;
113
118
  const callback = (rawResponse, flatResponse) => {
114
119
  currentRawResponse = rawResponse;
115
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
120
+ providedCallback?.(rawResponse, flatResponse);
121
+ };
122
+ const updatedArgs = {
123
+ ...args,
124
+ options: {
125
+ ...args.options,
126
+ onResponse: callback,
127
+ },
116
128
  };
117
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
118
129
  const flatResponse = await directSendOperation(updatedArgs, spec);
119
130
  return {
120
131
  flatResponse,
@@ -131,8 +142,8 @@ export class SubscriptionsImpl {
131
142
  spec: sampleInputOperationSpec,
132
143
  });
133
144
  const poller = await createHttpPoller(lro, {
134
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
135
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
145
+ restoreFrom: options?.resumeFrom,
146
+ intervalInMs: options?.updateIntervalInMs,
136
147
  resourceLocationConfig: "location",
137
148
  });
138
149
  await poller.poll();
@@ -161,14 +172,19 @@ export class SubscriptionsImpl {
161
172
  return this.client.sendOperationRequest(args, spec);
162
173
  };
163
174
  const sendOperationFn = async (args, spec) => {
164
- var _a;
165
175
  let currentRawResponse = undefined;
166
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
176
+ const providedCallback = args.options?.onResponse;
167
177
  const callback = (rawResponse, flatResponse) => {
168
178
  currentRawResponse = rawResponse;
169
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
179
+ providedCallback?.(rawResponse, flatResponse);
180
+ };
181
+ const updatedArgs = {
182
+ ...args,
183
+ options: {
184
+ ...args.options,
185
+ onResponse: callback,
186
+ },
170
187
  };
171
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
172
188
  const flatResponse = await directSendOperation(updatedArgs, spec);
173
189
  return {
174
190
  flatResponse,
@@ -185,8 +201,8 @@ export class SubscriptionsImpl {
185
201
  spec: testInputOperationSpec,
186
202
  });
187
203
  const poller = await createHttpPoller(lro, {
188
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
189
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
204
+ restoreFrom: options?.resumeFrom,
205
+ intervalInMs: options?.updateIntervalInMs,
190
206
  resourceLocationConfig: "location",
191
207
  });
192
208
  await poller.poll();
@@ -215,14 +231,19 @@ export class SubscriptionsImpl {
215
231
  return this.client.sendOperationRequest(args, spec);
216
232
  };
217
233
  const sendOperationFn = async (args, spec) => {
218
- var _a;
219
234
  let currentRawResponse = undefined;
220
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
235
+ const providedCallback = args.options?.onResponse;
221
236
  const callback = (rawResponse, flatResponse) => {
222
237
  currentRawResponse = rawResponse;
223
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
238
+ providedCallback?.(rawResponse, flatResponse);
239
+ };
240
+ const updatedArgs = {
241
+ ...args,
242
+ options: {
243
+ ...args.options,
244
+ onResponse: callback,
245
+ },
224
246
  };
225
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
226
247
  const flatResponse = await directSendOperation(updatedArgs, spec);
227
248
  return {
228
249
  flatResponse,
@@ -239,8 +260,8 @@ export class SubscriptionsImpl {
239
260
  spec: testOutputOperationSpec,
240
261
  });
241
262
  const poller = await createHttpPoller(lro, {
242
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
243
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
263
+ restoreFrom: options?.resumeFrom,
264
+ intervalInMs: options?.updateIntervalInMs,
244
265
  resourceLocationConfig: "location",
245
266
  });
246
267
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,QAAgB,EAChB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,QAAgB,EAChB,SAAoB,EACpB,OAA8C;QAO9C,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACW,EAAE;YAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EA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W,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,qGAAqG;IAC3G,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,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\nimport { Subscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SubscriptionsListQuotasOptionalParams,\n SubscriptionsListQuotasResponse,\n TestQuery,\n SubscriptionsTestQueryOptionalParams,\n SubscriptionsTestQueryResponse,\n CompileQuery,\n SubscriptionsCompileQueryOptionalParams,\n SubscriptionsCompileQueryResponse,\n SampleInput,\n SubscriptionsSampleInputOptionalParams,\n SubscriptionsSampleInputResponse,\n TestInput,\n SubscriptionsTestInputOptionalParams,\n SubscriptionsTestInputResponse,\n TestOutput,\n SubscriptionsTestOutputOptionalParams,\n SubscriptionsTestOutputResponse,\n} from \"../models/index.js\";\n\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the subscription's current quota information in a particular region.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param options The options parameters.\n */\n listQuotas(\n location: string,\n options?: SubscriptionsListQuotasOptionalParams,\n ): Promise<SubscriptionsListQuotasResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listQuotasOperationSpec,\n );\n }\n\n /**\n * Test the Stream Analytics query on a sample input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testQuery The query testing object that defines the input, output, and transformation for the\n * query testing.\n * @param options The options parameters.\n */\n async beginTestQuery(\n location: string,\n testQuery: TestQuery,\n options?: SubscriptionsTestQueryOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsTestQueryResponse>,\n SubscriptionsTestQueryResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsTestQueryResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, testQuery, options },\n spec: testQueryOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsTestQueryResponse,\n OperationState<SubscriptionsTestQueryResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Test the Stream Analytics query on a sample input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testQuery The query testing object that defines the input, output, and transformation for the\n * query testing.\n * @param options The options parameters.\n */\n async beginTestQueryAndWait(\n location: string,\n testQuery: TestQuery,\n options?: SubscriptionsTestQueryOptionalParams,\n ): Promise<SubscriptionsTestQueryResponse> {\n const poller = await this.beginTestQuery(location, testQuery, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Compile the Stream Analytics query.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param compileQuery The query compilation object which defines the input, output, and transformation\n * for the query compilation.\n * @param options The options parameters.\n */\n compileQuery(\n location: string,\n compileQuery: CompileQuery,\n options?: SubscriptionsCompileQueryOptionalParams,\n ): Promise<SubscriptionsCompileQueryResponse> {\n return this.client.sendOperationRequest(\n { location, compileQuery, options },\n compileQueryOperationSpec,\n );\n }\n\n /**\n * Sample the Stream Analytics input data.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input data.\n * @param options The options parameters.\n */\n async beginSampleInput(\n location: string,\n sampleInput: SampleInput,\n options?: SubscriptionsSampleInputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsSampleInputResponse>,\n SubscriptionsSampleInputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsSampleInputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, sampleInput, options },\n spec: sampleInputOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsSampleInputResponse,\n OperationState<SubscriptionsSampleInputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Sample the Stream Analytics input data.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input data.\n * @param options The options parameters.\n */\n async beginSampleInputAndWait(\n location: string,\n sampleInput: SampleInput,\n options?: SubscriptionsSampleInputOptionalParams,\n ): Promise<SubscriptionsSampleInputResponse> {\n const poller = await this.beginSampleInput(location, sampleInput, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Test the Stream Analytics input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testInput Defines the necessary parameters for testing the Stream Analytics input.\n * @param options The options parameters.\n */\n async beginTestInput(\n location: string,\n testInput: TestInput,\n options?: SubscriptionsTestInputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsTestInputResponse>,\n SubscriptionsTestInputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsTestInputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, testInput, options },\n spec: testInputOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsTestInputResponse,\n OperationState<SubscriptionsTestInputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Test the Stream Analytics input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testInput Defines the necessary parameters for testing the Stream Analytics input.\n * @param options The options parameters.\n */\n async beginTestInputAndWait(\n location: string,\n testInput: TestInput,\n options?: SubscriptionsTestInputOptionalParams,\n ): Promise<SubscriptionsTestInputResponse> {\n const poller = await this.beginTestInput(location, testInput, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Test the Stream Analytics output.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.\n * @param options The options parameters.\n */\n async beginTestOutput(\n location: string,\n testOutput: TestOutput,\n options?: SubscriptionsTestOutputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsTestOutputResponse>,\n SubscriptionsTestOutputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsTestOutputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, testOutput, options },\n spec: testOutputOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsTestOutputResponse,\n OperationState<SubscriptionsTestOutputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Test the Stream Analytics output.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.\n * @param options The options parameters.\n */\n async beginTestOutputAndWait(\n location: string,\n testOutput: TestOutput,\n options?: SubscriptionsTestOutputOptionalParams,\n ): Promise<SubscriptionsTestOutputResponse> {\n const poller = await this.beginTestOutput(location, testOutput, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listQuotasOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionQuotasListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst testQueryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testQuery\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n 201: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n 202: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n 204: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.testQuery,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst compileQueryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/compileQuery\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryCompilationResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.compileQuery,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst sampleInputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/sampleInput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SampleInputResult,\n },\n 201: {\n bodyMapper: Mappers.SampleInputResult,\n },\n 202: {\n bodyMapper: Mappers.SampleInputResult,\n },\n 204: {\n bodyMapper: Mappers.SampleInputResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.sampleInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst testInputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testInput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 201: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 202: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 204: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.testInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst testOutputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testOutput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 201: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 202: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 204: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.testOutput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,QAAgB,EAChB,OAA+C;QAE/C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,EAAE,UAAU,CAAC,SAAS;IACjC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,qGAAqG;IAC3G,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,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\nimport { Subscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SubscriptionsListQuotasOptionalParams,\n SubscriptionsListQuotasResponse,\n TestQuery,\n SubscriptionsTestQueryOptionalParams,\n SubscriptionsTestQueryResponse,\n CompileQuery,\n SubscriptionsCompileQueryOptionalParams,\n SubscriptionsCompileQueryResponse,\n SampleInput,\n SubscriptionsSampleInputOptionalParams,\n SubscriptionsSampleInputResponse,\n TestInput,\n SubscriptionsTestInputOptionalParams,\n SubscriptionsTestInputResponse,\n TestOutput,\n SubscriptionsTestOutputOptionalParams,\n SubscriptionsTestOutputResponse,\n} from \"../models/index.js\";\n\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the subscription's current quota information in a particular region.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param options The options parameters.\n */\n listQuotas(\n location: string,\n options?: SubscriptionsListQuotasOptionalParams,\n ): Promise<SubscriptionsListQuotasResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listQuotasOperationSpec,\n );\n }\n\n /**\n * Test the Stream Analytics query on a sample input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testQuery The query testing object that defines the input, output, and transformation for the\n * query testing.\n * @param options The options parameters.\n */\n async beginTestQuery(\n location: string,\n testQuery: TestQuery,\n options?: SubscriptionsTestQueryOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsTestQueryResponse>,\n SubscriptionsTestQueryResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsTestQueryResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, testQuery, options },\n spec: testQueryOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsTestQueryResponse,\n OperationState<SubscriptionsTestQueryResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Test the Stream Analytics query on a sample input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testQuery The query testing object that defines the input, output, and transformation for the\n * query testing.\n * @param options The options parameters.\n */\n async beginTestQueryAndWait(\n location: string,\n testQuery: TestQuery,\n options?: SubscriptionsTestQueryOptionalParams,\n ): Promise<SubscriptionsTestQueryResponse> {\n const poller = await this.beginTestQuery(location, testQuery, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Compile the Stream Analytics query.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param compileQuery The query compilation object which defines the input, output, and transformation\n * for the query compilation.\n * @param options The options parameters.\n */\n compileQuery(\n location: string,\n compileQuery: CompileQuery,\n options?: SubscriptionsCompileQueryOptionalParams,\n ): Promise<SubscriptionsCompileQueryResponse> {\n return this.client.sendOperationRequest(\n { location, compileQuery, options },\n compileQueryOperationSpec,\n );\n }\n\n /**\n * Sample the Stream Analytics input data.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input data.\n * @param options The options parameters.\n */\n async beginSampleInput(\n location: string,\n sampleInput: SampleInput,\n options?: SubscriptionsSampleInputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsSampleInputResponse>,\n SubscriptionsSampleInputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsSampleInputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, sampleInput, options },\n spec: sampleInputOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsSampleInputResponse,\n OperationState<SubscriptionsSampleInputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Sample the Stream Analytics input data.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input data.\n * @param options The options parameters.\n */\n async beginSampleInputAndWait(\n location: string,\n sampleInput: SampleInput,\n options?: SubscriptionsSampleInputOptionalParams,\n ): Promise<SubscriptionsSampleInputResponse> {\n const poller = await this.beginSampleInput(location, sampleInput, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Test the Stream Analytics input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testInput Defines the necessary parameters for testing the Stream Analytics input.\n * @param options The options parameters.\n */\n async beginTestInput(\n location: string,\n testInput: TestInput,\n options?: SubscriptionsTestInputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsTestInputResponse>,\n SubscriptionsTestInputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsTestInputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, testInput, options },\n spec: testInputOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsTestInputResponse,\n OperationState<SubscriptionsTestInputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Test the Stream Analytics input.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testInput Defines the necessary parameters for testing the Stream Analytics input.\n * @param options The options parameters.\n */\n async beginTestInputAndWait(\n location: string,\n testInput: TestInput,\n options?: SubscriptionsTestInputOptionalParams,\n ): Promise<SubscriptionsTestInputResponse> {\n const poller = await this.beginTestInput(location, testInput, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Test the Stream Analytics output.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.\n * @param options The options parameters.\n */\n async beginTestOutput(\n location: string,\n testOutput: TestOutput,\n options?: SubscriptionsTestOutputOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SubscriptionsTestOutputResponse>,\n SubscriptionsTestOutputResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SubscriptionsTestOutputResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { location, testOutput, options },\n spec: testOutputOperationSpec,\n });\n const poller = await createHttpPoller<\n SubscriptionsTestOutputResponse,\n OperationState<SubscriptionsTestOutputResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Test the Stream Analytics output.\n * @param location The region to which the request is sent. You can find out which regions Azure Stream\n * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/\n * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.\n * @param options The options parameters.\n */\n async beginTestOutputAndWait(\n location: string,\n testOutput: TestOutput,\n options?: SubscriptionsTestOutputOptionalParams,\n ): Promise<SubscriptionsTestOutputResponse> {\n const poller = await this.beginTestOutput(location, testOutput, options);\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listQuotasOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionQuotasListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst testQueryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testQuery\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n 201: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n 202: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n 204: {\n bodyMapper: Mappers.QueryTestingResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.testQuery,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst compileQueryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/compileQuery\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryCompilationResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.compileQuery,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst sampleInputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/sampleInput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SampleInputResult,\n },\n 201: {\n bodyMapper: Mappers.SampleInputResult,\n },\n 202: {\n bodyMapper: Mappers.SampleInputResult,\n },\n 204: {\n bodyMapper: Mappers.SampleInputResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.sampleInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst testInputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testInput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 201: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 202: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 204: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.testInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst testOutputOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testOutput\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 201: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 202: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n 204: {\n bodyMapper: Mappers.TestDatasourceResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.testOutput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing Transformations operations. */
12
12
  export class TransformationsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class Transformations class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"transformations.js","sourceRoot":"","sources":["../../../src/operations/transformations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CA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CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,qKAAqK;IAC3K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;YAClC,aAAa,EAAE,OAAO,CAAC,yBAAyB;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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\nimport { Transformations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n Transformation,\n TransformationsCreateOrReplaceOptionalParams,\n TransformationsCreateOrReplaceResponse,\n TransformationsUpdateOptionalParams,\n TransformationsUpdateResponse,\n TransformationsGetOptionalParams,\n TransformationsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing Transformations operations. */\nexport class TransformationsImpl implements Transformations {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Transformations class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Creates a transformation or replaces an already existing transformation under an existing streaming\n * job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param transformationName The name of the transformation.\n * @param transformation The definition of the transformation that will be used to create a new\n * transformation or replace the existing one under the streaming job.\n * @param options The options parameters.\n */\n createOrReplace(\n resourceGroupName: string,\n jobName: string,\n transformationName: string,\n transformation: Transformation,\n options?: TransformationsCreateOrReplaceOptionalParams,\n ): Promise<TransformationsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n jobName,\n transformationName,\n transformation,\n options,\n },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing transformation under an existing streaming job. This can be used to partially\n * update (ie. update one or two properties) a transformation without affecting the rest the job or\n * transformation definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param transformationName The name of the transformation.\n * @param transformation A Transformation object. The properties specified here will overwrite the\n * corresponding properties in the existing transformation (ie. Those properties will be updated). Any\n * properties that are set to null here will mean that the corresponding property in the existing\n * transformation will remain the same and not change as a result of this PATCH operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n jobName: string,\n transformationName: string,\n transformation: Transformation,\n options?: TransformationsUpdateOptionalParams,\n ): Promise<TransformationsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n jobName,\n transformationName,\n transformation,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified transformation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param transformationName The name of the transformation.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n transformationName: string,\n options?: TransformationsGetOptionalParams,\n ): Promise<TransformationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, transformationName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.transformation,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.transformationName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.transformation,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.transformationName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.transformationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"transformations.js","sourceRoot":"","sources":["../../../src/operations/transformations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CACb,iBAAyB,EACzB,OAAe,EACf,kBAA0B,EAC1B,cAA8B,EAC9B,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,OAAO;YACP,kBAAkB;YAClB,cAAc;YACd,OAAO;SACR,EACD,4BAA4B,CAC7B,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,iBAAyB,EACzB,OAAe,EACf,kBAA0B,EAC1B,cAA8B,EAC9B,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,OAAO;YACP,kBAAkB;YAClB,cAAc;YACd,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,OAAe,EACf,kBAA0B,EAC1B,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAA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U,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;KACnB;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,qKAAqK;IAC3K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;YAClC,aAAa,EAAE,OAAO,CAAC,yBAAyB;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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\nimport { Transformations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n Transformation,\n TransformationsCreateOrReplaceOptionalParams,\n TransformationsCreateOrReplaceResponse,\n TransformationsUpdateOptionalParams,\n TransformationsUpdateResponse,\n TransformationsGetOptionalParams,\n TransformationsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing Transformations operations. */\nexport class TransformationsImpl implements Transformations {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Transformations class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Creates a transformation or replaces an already existing transformation under an existing streaming\n * job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param transformationName The name of the transformation.\n * @param transformation The definition of the transformation that will be used to create a new\n * transformation or replace the existing one under the streaming job.\n * @param options The options parameters.\n */\n createOrReplace(\n resourceGroupName: string,\n jobName: string,\n transformationName: string,\n transformation: Transformation,\n options?: TransformationsCreateOrReplaceOptionalParams,\n ): Promise<TransformationsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n jobName,\n transformationName,\n transformation,\n options,\n },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing transformation under an existing streaming job. This can be used to partially\n * update (ie. update one or two properties) a transformation without affecting the rest the job or\n * transformation definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param transformationName The name of the transformation.\n * @param transformation A Transformation object. The properties specified here will overwrite the\n * corresponding properties in the existing transformation (ie. Those properties will be updated). Any\n * properties that are set to null here will mean that the corresponding property in the existing\n * transformation will remain the same and not change as a result of this PATCH operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n jobName: string,\n transformationName: string,\n transformation: Transformation,\n options?: TransformationsUpdateOptionalParams,\n ): Promise<TransformationsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n jobName,\n transformationName,\n transformation,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified transformation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param transformationName The name of the transformation.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n transformationName: string,\n options?: TransformationsGetOptionalParams,\n ): Promise<TransformationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, transformationName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.transformation,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.transformationName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.transformation,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.transformationName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Transformation,\n headersMapper: Mappers.TransformationsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.transformationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -9,6 +9,8 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { FunctionsImpl, InputsImpl, OutputsImpl, OperationsImpl, StreamingJobsImpl, SkuOperationsImpl, SubscriptionsImpl, TransformationsImpl, ClustersImpl, PrivateEndpointsImpl, } from "./operations/index.js";
11
11
  export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ subscriptionId;
12
14
  /**
13
15
  * Initializes a new instance of the StreamAnalyticsManagementClient class.
14
16
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,7 +18,6 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
16
18
  * @param options The parameter options
17
19
  */
18
20
  constructor(credentials, subscriptionId, options) {
19
- var _a, _b, _c;
20
21
  if (credentials === undefined) {
21
22
  throw new Error("'credentials' cannot be null");
22
23
  }
@@ -35,12 +36,17 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
35
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
38
  : `${packageDetails}`;
38
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ const optionsWithDefaults = {
40
+ ...defaults,
41
+ ...options,
42
+ userAgentOptions: {
39
43
  userAgentPrefix,
40
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
44
+ },
45
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
46
+ };
41
47
  super(optionsWithDefaults);
42
48
  let bearerTokenAuthenticationPolicyFound = false;
43
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
49
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
44
50
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
51
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
52
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -54,7 +60,8 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
54
60
  });
55
61
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
62
  credential: credentials,
57
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
63
+ scopes: optionsWithDefaults.credentialScopes ??
64
+ `${optionsWithDefaults.endpoint}/.default`,
58
65
  challengeCallbacks: {
59
66
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
60
67
  },
@@ -75,5 +82,15 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
75
82
  this.clusters = new ClustersImpl(this);
76
83
  this.privateEndpoints = new PrivateEndpointsImpl(this);
77
84
  }
85
+ functions;
86
+ inputs;
87
+ outputs;
88
+ operations;
89
+ streamingJobs;
90
+ skuOperations;
91
+ subscriptions;
92
+ transformations;
93
+ clusters;
94
+ privateEndpoints;
78
95
  }
79
96
  //# sourceMappingURL=streamAnalyticsManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"streamAnalyticsManagementClient.js","sourceRoot":"","sources":["../../src/streamAnalyticsManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAe/B,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,a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AAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CAYF","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n FunctionsImpl,\n InputsImpl,\n OutputsImpl,\n OperationsImpl,\n StreamingJobsImpl,\n SkuOperationsImpl,\n SubscriptionsImpl,\n TransformationsImpl,\n ClustersImpl,\n PrivateEndpointsImpl,\n} from \"./operations/index.js\";\nimport {\n Functions,\n Inputs,\n Outputs,\n Operations,\n StreamingJobs,\n SkuOperations,\n Subscriptions,\n Transformations,\n Clusters,\n PrivateEndpoints,\n} from \"./operationsInterfaces/index.js\";\nimport { StreamAnalyticsManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StreamAnalyticsManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StreamAnalyticsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StreamAnalyticsManagementClientOptionalParams,\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: StreamAnalyticsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-streamanalytics/5.0.0-beta.2`;\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.functions = new FunctionsImpl(this);\n this.inputs = new InputsImpl(this);\n this.outputs = new OutputsImpl(this);\n this.operations = new OperationsImpl(this);\n this.streamingJobs = new StreamingJobsImpl(this);\n this.skuOperations = new SkuOperationsImpl(this);\n this.subscriptions = new SubscriptionsImpl(this);\n this.transformations = new TransformationsImpl(this);\n this.clusters = new ClustersImpl(this);\n this.privateEndpoints = new PrivateEndpointsImpl(this);\n }\n\n functions: Functions;\n inputs: Inputs;\n outputs: Outputs;\n operations: Operations;\n streamingJobs: StreamingJobs;\n skuOperations: SkuOperations;\n subscriptions: Subscriptions;\n transformations: Transformations;\n clusters: Clusters;\n privateEndpoints: PrivateEndpoints;\n}\n"]}
1
+ {"version":3,"file":"streamAnalyticsManagementClient.js","sourceRoot":"","sources":["../../src/streamAnalyticsManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAe/B,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,CAAS;IACd,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuD;QAEvD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAkD;YAC9D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,2CAA2C,CAAC;QACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,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AAU,CAAC,gCAAgC;iBAC9C;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,SAAS,CAAY;IACrB,MAAM,CAAS;IACf,OAAO,CAAU;IACjB,UAAU,CAAa;IACvB,aAAa,CAAgB;IAC7B,aAAa,CAAgB;IAC7B,aAAa,CAAgB;IAC7B,eAAe,CAAkB;IACjC,QAAQ,CAAW;IACnB,gBAAgB,CAAmB;CACpC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n FunctionsImpl,\n InputsImpl,\n OutputsImpl,\n OperationsImpl,\n StreamingJobsImpl,\n SkuOperationsImpl,\n SubscriptionsImpl,\n TransformationsImpl,\n ClustersImpl,\n PrivateEndpointsImpl,\n} from \"./operations/index.js\";\nimport {\n Functions,\n Inputs,\n Outputs,\n Operations,\n StreamingJobs,\n SkuOperations,\n Subscriptions,\n Transformations,\n Clusters,\n PrivateEndpoints,\n} from \"./operationsInterfaces/index.js\";\nimport { StreamAnalyticsManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StreamAnalyticsManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StreamAnalyticsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StreamAnalyticsManagementClientOptionalParams,\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: StreamAnalyticsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-streamanalytics/5.0.0-beta.2`;\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.functions = new FunctionsImpl(this);\n this.inputs = new InputsImpl(this);\n this.outputs = new OutputsImpl(this);\n this.operations = new OperationsImpl(this);\n this.streamingJobs = new StreamingJobsImpl(this);\n this.skuOperations = new SkuOperationsImpl(this);\n this.subscriptions = new SubscriptionsImpl(this);\n this.transformations = new TransformationsImpl(this);\n this.clusters = new ClustersImpl(this);\n this.privateEndpoints = new PrivateEndpointsImpl(this);\n }\n\n functions: Functions;\n inputs: Inputs;\n outputs: Outputs;\n operations: Operations;\n streamingJobs: StreamingJobs;\n skuOperations: SkuOperations;\n subscriptions: Subscriptions;\n transformations: Transformations;\n clusters: Clusters;\n privateEndpoints: PrivateEndpoints;\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createLroSpec = createLroSpec;
4
- const tslib_1 = require("tslib");
5
4
  function createLroSpec(inputs) {
6
5
  const { args, spec, sendOperationFn } = inputs;
7
6
  return {
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
9
8
  requestPath: spec.path,
10
9
  sendInitialRequest: () => sendOperationFn(args, spec),
11
10
  sendPollRequest: (path, options) => {
12
- const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
13
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
11
+ const { requestBody, ...restSpec } = spec;
12
+ return sendOperationFn(args, {
13
+ ...restSpec,
14
+ httpMethod: "GET",
15
+ path,
16
+ abortSignal: options?.abortSignal,
17
+ });
14
18
  },
15
19
  };
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;;AA3BD,SAAgB,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,kBAAK,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 */\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":";;AAUA,sCA2BC;AA3BD,SAAgB,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 */\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"]}