@azure/arm-streamanalytics 5.0.0-alpha.20250718.1 → 5.0.0-alpha.20250721.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
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
16
16
  const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /** Class containing Subscriptions operations. */
18
18
  class SubscriptionsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Subscriptions class.
21
22
  * @param client Reference to the service client
@@ -45,14 +46,19 @@ class SubscriptionsImpl {
45
46
  return this.client.sendOperationRequest(args, spec);
46
47
  };
47
48
  const sendOperationFn = async (args, spec) => {
48
- var _a;
49
49
  let currentRawResponse = undefined;
50
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
50
+ const providedCallback = args.options?.onResponse;
51
51
  const callback = (rawResponse, flatResponse) => {
52
52
  currentRawResponse = rawResponse;
53
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
53
+ providedCallback?.(rawResponse, flatResponse);
54
+ };
55
+ const updatedArgs = {
56
+ ...args,
57
+ options: {
58
+ ...args.options,
59
+ onResponse: callback,
60
+ },
54
61
  };
55
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
56
62
  const flatResponse = await directSendOperation(updatedArgs, spec);
57
63
  return {
58
64
  flatResponse,
@@ -69,8 +75,8 @@ class SubscriptionsImpl {
69
75
  spec: testQueryOperationSpec,
70
76
  });
71
77
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
72
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
73
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
78
+ restoreFrom: options?.resumeFrom,
79
+ intervalInMs: options?.updateIntervalInMs,
74
80
  resourceLocationConfig: "location",
75
81
  });
76
82
  await poller.poll();
@@ -111,14 +117,19 @@ class SubscriptionsImpl {
111
117
  return this.client.sendOperationRequest(args, spec);
112
118
  };
113
119
  const sendOperationFn = async (args, spec) => {
114
- var _a;
115
120
  let currentRawResponse = undefined;
116
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
121
+ const providedCallback = args.options?.onResponse;
117
122
  const callback = (rawResponse, flatResponse) => {
118
123
  currentRawResponse = rawResponse;
119
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
124
+ providedCallback?.(rawResponse, flatResponse);
125
+ };
126
+ const updatedArgs = {
127
+ ...args,
128
+ options: {
129
+ ...args.options,
130
+ onResponse: callback,
131
+ },
120
132
  };
121
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
122
133
  const flatResponse = await directSendOperation(updatedArgs, spec);
123
134
  return {
124
135
  flatResponse,
@@ -135,8 +146,8 @@ class SubscriptionsImpl {
135
146
  spec: sampleInputOperationSpec,
136
147
  });
137
148
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
138
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
139
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
149
+ restoreFrom: options?.resumeFrom,
150
+ intervalInMs: options?.updateIntervalInMs,
140
151
  resourceLocationConfig: "location",
141
152
  });
142
153
  await poller.poll();
@@ -165,14 +176,19 @@ class SubscriptionsImpl {
165
176
  return this.client.sendOperationRequest(args, spec);
166
177
  };
167
178
  const sendOperationFn = async (args, spec) => {
168
- var _a;
169
179
  let currentRawResponse = undefined;
170
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
180
+ const providedCallback = args.options?.onResponse;
171
181
  const callback = (rawResponse, flatResponse) => {
172
182
  currentRawResponse = rawResponse;
173
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
183
+ providedCallback?.(rawResponse, flatResponse);
184
+ };
185
+ const updatedArgs = {
186
+ ...args,
187
+ options: {
188
+ ...args.options,
189
+ onResponse: callback,
190
+ },
174
191
  };
175
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
176
192
  const flatResponse = await directSendOperation(updatedArgs, spec);
177
193
  return {
178
194
  flatResponse,
@@ -189,8 +205,8 @@ class SubscriptionsImpl {
189
205
  spec: testInputOperationSpec,
190
206
  });
191
207
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
192
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
193
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
208
+ restoreFrom: options?.resumeFrom,
209
+ intervalInMs: options?.updateIntervalInMs,
194
210
  resourceLocationConfig: "location",
195
211
  });
196
212
  await poller.poll();
@@ -219,14 +235,19 @@ class SubscriptionsImpl {
219
235
  return this.client.sendOperationRequest(args, spec);
220
236
  };
221
237
  const sendOperationFn = async (args, spec) => {
222
- var _a;
223
238
  let currentRawResponse = undefined;
224
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
239
+ const providedCallback = args.options?.onResponse;
225
240
  const callback = (rawResponse, flatResponse) => {
226
241
  currentRawResponse = rawResponse;
227
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
242
+ providedCallback?.(rawResponse, flatResponse);
243
+ };
244
+ const updatedArgs = {
245
+ ...args,
246
+ options: {
247
+ ...args.options,
248
+ onResponse: callback,
249
+ },
228
250
  };
229
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
230
251
  const flatResponse = await directSendOperation(updatedArgs, spec);
231
252
  return {
232
253
  flatResponse,
@@ -243,8 +264,8 @@ class SubscriptionsImpl {
243
264
  spec: testOutputOperationSpec,
244
265
  });
245
266
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
246
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
247
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
267
+ restoreFrom: options?.resumeFrom,
268
+ intervalInMs: options?.updateIntervalInMs,
248
269
  resourceLocationConfig: "location",
249
270
  });
250
271
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,iDAAiD;AACjD,MAAa,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,EAC9B,EAAE;;YACF,IAAI,kBAAkB,GACpB,SAAS,CAAC;YACZ,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;YA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AAM;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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,iDAAiD;AACjD,MAAa,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,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,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,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"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing Transformations operations. */
16
16
  class TransformationsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class Transformations class.
19
20
  * @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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,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D,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":["../../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,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"]}
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
18
18
  * @returns The continuation token that can be passed into byPage() during future calls.
19
19
  */
20
20
  function getContinuationToken(page) {
21
- var _a;
22
21
  if (typeof page !== "object" || page === null) {
23
22
  return undefined;
24
23
  }
25
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
24
+ return pageMap.get(page)?.continuationToken;
26
25
  }
27
26
  function setContinuationToken(page, continuationToken) {
28
- var _a;
29
27
  if (typeof page !== "object" || page === null || !continuationToken) {
30
28
  return;
31
29
  }
32
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
30
+ const pageInfo = pageMap.get(page) ?? {};
33
31
  pageInfo.continuationToken = continuationToken;
34
32
  pageMap.set(page, pageInfo);
35
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,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,SAAgB,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;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,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,SAAgB,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"]}
@@ -13,6 +13,8 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
16
+ $host;
17
+ subscriptionId;
16
18
  /**
17
19
  * Initializes a new instance of the StreamAnalyticsManagementClient class.
18
20
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -20,7 +22,6 @@ class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
20
22
  * @param options The parameter options
21
23
  */
22
24
  constructor(credentials, subscriptionId, options) {
23
- var _a, _b, _c;
24
25
  if (credentials === undefined) {
25
26
  throw new Error("'credentials' cannot be null");
26
27
  }
@@ -39,12 +40,17 @@ class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
39
40
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
41
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
42
  : `${packageDetails}`;
42
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
43
+ const optionsWithDefaults = {
44
+ ...defaults,
45
+ ...options,
46
+ userAgentOptions: {
43
47
  userAgentPrefix,
44
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
48
+ },
49
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
50
+ };
45
51
  super(optionsWithDefaults);
46
52
  let bearerTokenAuthenticationPolicyFound = false;
47
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
53
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
54
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
55
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
56
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -58,7 +64,8 @@ class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
58
64
  });
59
65
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
66
  credential: credentials,
61
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
67
+ scopes: optionsWithDefaults.credentialScopes ??
68
+ `${optionsWithDefaults.endpoint}/.default`,
62
69
  challengeCallbacks: {
63
70
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
64
71
  },
@@ -79,6 +86,16 @@ class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
79
86
  this.clusters = new index_js_1.ClustersImpl(this);
80
87
  this.privateEndpoints = new index_js_1.PrivateEndpointsImpl(this);
81
88
  }
89
+ functions;
90
+ inputs;
91
+ outputs;
92
+ operations;
93
+ streamingJobs;
94
+ skuOperations;
95
+ subscriptions;
96
+ transformations;
97
+ clusters;
98
+ privateEndpoints;
82
99
  }
83
100
  exports.StreamAnalyticsManagementClient = StreamAnalyticsManagementClient;
84
101
  //# sourceMappingURL=streamAnalyticsManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"streamAnalyticsManagementClient.js","sourceRoot":"","sources":["../../src/streamAnalyticsManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAW+B;AAe/B,MAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAI3E;;;;;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,2C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,CAAC,gBAAgB,mCACpC,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBAC5C,kBAAkB,EAAE;oBAClB,2BAA2B,EACzB,UAAU,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,wBAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAU,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,sBAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,4BAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,IAAI,4BAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,IAAI,4BAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,IAAI,8BAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,+BAAoB,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CAYF;AA3GD,0EA2GC","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,uEAAiD;AACjD,oFAA8D;AAE9D,oDAW+B;AAe/B,MAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,CAAS;IACd,cAAc,CA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ACjD,IAAI,CAAC,eAAe,GAAG,IAAI,8BAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,+BAAoB,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;AA3GD,0EA2GC","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,11 +1,11 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
9
- }
10
- ]
11
- }
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.8"
9
+ }
10
+ ]
11
+ }
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  export function createLroSpec(inputs) {
3
2
  const { args, spec, sendOperationFn } = inputs;
4
3
  return {
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
6
5
  requestPath: spec.path,
7
6
  sendInitialRequest: () => sendOperationFn(args, spec),
8
7
  sendPollRequest: (path, options) => {
9
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
10
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
8
+ const { requestBody, ...restSpec } = spec;
9
+ return sendOperationFn(args, {
10
+ ...restSpec,
11
+ httpMethod: "GET",
12
+ path,
13
+ abortSignal: options?.abortSignal,
14
+ });
11
15
  },
12
16
  };
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\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,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\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"]}