@azure/arm-timeseriesinsights 1.3.1 → 2.0.0-alpha.20220121.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +3489 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1102 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +109 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +94 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +1965 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +26 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +225 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/accessPolicies.d.ts +65 -0
  29. package/dist-esm/src/operations/accessPolicies.d.ts.map +1 -0
  30. package/dist-esm/src/operations/accessPolicies.js +212 -0
  31. package/dist-esm/src/operations/accessPolicies.js.map +1 -0
  32. package/dist-esm/src/operations/environments.d.ts +78 -0
  33. package/dist-esm/src/operations/environments.d.ts.map +1 -0
  34. package/dist-esm/src/operations/environments.js +314 -0
  35. package/dist-esm/src/operations/environments.js.map +1 -0
  36. package/dist-esm/src/operations/eventSources.d.ts +66 -0
  37. package/dist-esm/src/operations/eventSources.d.ts.map +1 -0
  38. package/dist-esm/src/operations/eventSources.js +213 -0
  39. package/dist-esm/src/operations/eventSources.js.map +1 -0
  40. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/operations/index.js +3 -5
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/referenceDataSets.d.ts +66 -0
  49. package/dist-esm/src/operations/referenceDataSets.d.ts.map +1 -0
  50. package/dist-esm/src/operations/referenceDataSets.js +213 -0
  51. package/dist-esm/src/operations/referenceDataSets.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/accessPolicies.d.ts +57 -0
  53. package/dist-esm/src/operationsInterfaces/accessPolicies.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/accessPolicies.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/accessPolicies.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/environments.d.ts +70 -0
  57. package/dist-esm/src/operationsInterfaces/environments.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/environments.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/environments.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/eventSources.d.ts +58 -0
  61. package/dist-esm/src/operationsInterfaces/eventSources.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/eventSources.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/eventSources.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/referenceDataSets.d.ts +58 -0
  73. package/dist-esm/src/operationsInterfaces/referenceDataSets.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/referenceDataSets.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/referenceDataSets.js.map +1 -0
  76. package/dist-esm/src/timeSeriesInsightsClient.d.ts +22 -0
  77. package/dist-esm/src/timeSeriesInsightsClient.d.ts.map +1 -0
  78. package/dist-esm/src/timeSeriesInsightsClient.js +55 -0
  79. package/dist-esm/src/timeSeriesInsightsClient.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +73 -22
  85. package/review/arm-timeseriesinsights.api.md +943 -0
  86. package/rollup.config.js +181 -30
  87. package/src/index.ts +12 -0
  88. package/src/lroImpl.ts +34 -0
  89. package/src/models/index.ts +1032 -1259
  90. package/src/models/mappers.ts +1568 -811
  91. package/src/models/parameters.ts +157 -69
  92. package/src/operations/accessPolicies.ts +144 -250
  93. package/src/operations/environments.ts +322 -267
  94. package/src/operations/eventSources.ts +144 -250
  95. package/src/operations/index.ts +3 -5
  96. package/src/operations/operations.ts +87 -73
  97. package/src/operations/referenceDataSets.ts +144 -250
  98. package/src/operationsInterfaces/accessPolicies.ts +103 -0
  99. package/src/operationsInterfaces/environments.ts +135 -0
  100. package/src/operationsInterfaces/eventSources.ts +104 -0
  101. package/src/operationsInterfaces/index.ts +13 -0
  102. package/src/operationsInterfaces/operations.ts +22 -0
  103. package/src/operationsInterfaces/referenceDataSets.ts +104 -0
  104. package/src/timeSeriesInsightsClient.ts +82 -43
  105. package/tsconfig.json +3 -3
  106. package/types/arm-timeseriesinsights.d.ts +1523 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-timeseriesinsights.js +0 -2806
  109. package/dist/arm-timeseriesinsights.js.map +0 -1
  110. package/dist/arm-timeseriesinsights.min.js +0 -1
  111. package/dist/arm-timeseriesinsights.min.js.map +0 -1
  112. package/esm/models/accessPoliciesMappers.d.ts +0 -2
  113. package/esm/models/accessPoliciesMappers.d.ts.map +0 -1
  114. package/esm/models/accessPoliciesMappers.js +0 -9
  115. package/esm/models/accessPoliciesMappers.js.map +0 -1
  116. package/esm/models/environmentsMappers.d.ts +0 -2
  117. package/esm/models/environmentsMappers.d.ts.map +0 -1
  118. package/esm/models/environmentsMappers.js +0 -9
  119. package/esm/models/environmentsMappers.js.map +0 -1
  120. package/esm/models/eventSourcesMappers.d.ts +0 -2
  121. package/esm/models/eventSourcesMappers.d.ts.map +0 -1
  122. package/esm/models/eventSourcesMappers.js +0 -9
  123. package/esm/models/eventSourcesMappers.js.map +0 -1
  124. package/esm/models/index.d.ts +0 -1413
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js +0 -8
  127. package/esm/models/index.js.map +0 -1
  128. package/esm/models/mappers.d.ts +0 -54
  129. package/esm/models/mappers.d.ts.map +0 -1
  130. package/esm/models/mappers.js +0 -1321
  131. package/esm/models/mappers.js.map +0 -1
  132. package/esm/models/operationsMappers.d.ts +0 -2
  133. package/esm/models/operationsMappers.d.ts.map +0 -1
  134. package/esm/models/operationsMappers.js +0 -9
  135. package/esm/models/operationsMappers.js.map +0 -1
  136. package/esm/models/parameters.d.ts +0 -16
  137. package/esm/models/parameters.d.ts.map +0 -1
  138. package/esm/models/parameters.js +0 -173
  139. package/esm/models/parameters.js.map +0 -1
  140. package/esm/models/referenceDataSetsMappers.d.ts +0 -2
  141. package/esm/models/referenceDataSetsMappers.d.ts.map +0 -1
  142. package/esm/models/referenceDataSetsMappers.js +0 -9
  143. package/esm/models/referenceDataSetsMappers.js.map +0 -1
  144. package/esm/operations/accessPolicies.d.ts +0 -165
  145. package/esm/operations/accessPolicies.d.ts.map +0 -1
  146. package/esm/operations/accessPolicies.js +0 -203
  147. package/esm/operations/accessPolicies.js.map +0 -1
  148. package/esm/operations/environments.d.ts +0 -139
  149. package/esm/operations/environments.d.ts.map +0 -1
  150. package/esm/operations/environments.js +0 -268
  151. package/esm/operations/environments.js.map +0 -1
  152. package/esm/operations/eventSources.d.ts +0 -166
  153. package/esm/operations/eventSources.d.ts.map +0 -1
  154. package/esm/operations/eventSources.js +0 -203
  155. package/esm/operations/eventSources.js.map +0 -1
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js.map +0 -1
  158. package/esm/operations/operations.d.ts +0 -46
  159. package/esm/operations/operations.d.ts.map +0 -1
  160. package/esm/operations/operations.js +0 -77
  161. package/esm/operations/operations.js.map +0 -1
  162. package/esm/operations/referenceDataSets.d.ts +0 -166
  163. package/esm/operations/referenceDataSets.d.ts.map +0 -1
  164. package/esm/operations/referenceDataSets.js +0 -203
  165. package/esm/operations/referenceDataSets.js.map +0 -1
  166. package/esm/timeSeriesInsightsClient.d.ts +0 -28
  167. package/esm/timeSeriesInsightsClient.d.ts.map +0 -1
  168. package/esm/timeSeriesInsightsClient.js +0 -42
  169. package/esm/timeSeriesInsightsClient.js.map +0 -1
  170. package/esm/timeSeriesInsightsClientContext.d.ts +0 -22
  171. package/esm/timeSeriesInsightsClientContext.d.ts.map +0 -1
  172. package/esm/timeSeriesInsightsClientContext.js +0 -61
  173. package/esm/timeSeriesInsightsClientContext.js.map +0 -1
  174. package/src/models/accessPoliciesMappers.ts +0 -30
  175. package/src/models/environmentsMappers.ts +0 -35
  176. package/src/models/eventSourcesMappers.ts +0 -39
  177. package/src/models/operationsMappers.ts +0 -15
  178. package/src/models/referenceDataSetsMappers.ts +0 -35
  179. package/src/timeSeriesInsightsClientContext.ts +0 -68
@@ -0,0 +1,78 @@
1
+ import { Environments } from "../operationsInterfaces";
2
+ import { TimeSeriesInsightsClient } from "../timeSeriesInsightsClient";
3
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
4
+ import { EnvironmentCreateOrUpdateParametersUnion, EnvironmentsCreateOrUpdateOptionalParams, EnvironmentsCreateOrUpdateResponse, EnvironmentsGetOptionalParams, EnvironmentsGetResponse, EnvironmentUpdateParametersUnion, EnvironmentsUpdateOptionalParams, EnvironmentsUpdateResponse, EnvironmentsDeleteOptionalParams, EnvironmentsListByResourceGroupOptionalParams, EnvironmentsListByResourceGroupResponse, EnvironmentsListBySubscriptionOptionalParams, EnvironmentsListBySubscriptionResponse } from "../models";
5
+ /** Class containing Environments operations. */
6
+ export declare class EnvironmentsImpl implements Environments {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Environments class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: TimeSeriesInsightsClient);
13
+ /**
14
+ * Create or update an environment in the specified subscription and resource group.
15
+ * @param resourceGroupName Name of an Azure Resource group.
16
+ * @param environmentName Name of the environment
17
+ * @param parameters Parameters for creating an environment resource.
18
+ * @param options The options parameters.
19
+ */
20
+ beginCreateOrUpdate(resourceGroupName: string, environmentName: string, parameters: EnvironmentCreateOrUpdateParametersUnion, options?: EnvironmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<EnvironmentsCreateOrUpdateResponse>, EnvironmentsCreateOrUpdateResponse>>;
21
+ /**
22
+ * Create or update an environment in the specified subscription and resource group.
23
+ * @param resourceGroupName Name of an Azure Resource group.
24
+ * @param environmentName Name of the environment
25
+ * @param parameters Parameters for creating an environment resource.
26
+ * @param options The options parameters.
27
+ */
28
+ beginCreateOrUpdateAndWait(resourceGroupName: string, environmentName: string, parameters: EnvironmentCreateOrUpdateParametersUnion, options?: EnvironmentsCreateOrUpdateOptionalParams): Promise<EnvironmentsCreateOrUpdateResponse>;
29
+ /**
30
+ * Gets the environment with the specified name in the specified subscription and resource group.
31
+ * @param resourceGroupName Name of an Azure Resource group.
32
+ * @param environmentName The name of the Time Series Insights environment associated with the
33
+ * specified resource group.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, environmentName: string, options?: EnvironmentsGetOptionalParams): Promise<EnvironmentsGetResponse>;
37
+ /**
38
+ * Updates the environment with the specified name in the specified subscription and resource group.
39
+ * @param resourceGroupName Name of an Azure Resource group.
40
+ * @param environmentName The name of the Time Series Insights environment associated with the
41
+ * specified resource group.
42
+ * @param environmentUpdateParameters Request object that contains the updated information for the
43
+ * environment.
44
+ * @param options The options parameters.
45
+ */
46
+ beginUpdate(resourceGroupName: string, environmentName: string, environmentUpdateParameters: EnvironmentUpdateParametersUnion, options?: EnvironmentsUpdateOptionalParams): Promise<PollerLike<PollOperationState<EnvironmentsUpdateResponse>, EnvironmentsUpdateResponse>>;
47
+ /**
48
+ * Updates the environment with the specified name in the specified subscription and resource group.
49
+ * @param resourceGroupName Name of an Azure Resource group.
50
+ * @param environmentName The name of the Time Series Insights environment associated with the
51
+ * specified resource group.
52
+ * @param environmentUpdateParameters Request object that contains the updated information for the
53
+ * environment.
54
+ * @param options The options parameters.
55
+ */
56
+ beginUpdateAndWait(resourceGroupName: string, environmentName: string, environmentUpdateParameters: EnvironmentUpdateParametersUnion, options?: EnvironmentsUpdateOptionalParams): Promise<EnvironmentsUpdateResponse>;
57
+ /**
58
+ * Deletes the environment with the specified name in the specified subscription and resource group.
59
+ * @param resourceGroupName Name of an Azure Resource group.
60
+ * @param environmentName The name of the Time Series Insights environment associated with the
61
+ * specified resource group.
62
+ * @param options The options parameters.
63
+ */
64
+ delete(resourceGroupName: string, environmentName: string, options?: EnvironmentsDeleteOptionalParams): Promise<void>;
65
+ /**
66
+ * Lists all the available environments associated with the subscription and within the specified
67
+ * resource group.
68
+ * @param resourceGroupName Name of an Azure Resource group.
69
+ * @param options The options parameters.
70
+ */
71
+ listByResourceGroup(resourceGroupName: string, options?: EnvironmentsListByResourceGroupOptionalParams): Promise<EnvironmentsListByResourceGroupResponse>;
72
+ /**
73
+ * Lists all the available environments within a subscription, irrespective of the resource groups.
74
+ * @param options The options parameters.
75
+ */
76
+ listBySubscription(options?: EnvironmentsListBySubscriptionOptionalParams): Promise<EnvironmentsListBySubscriptionResponse>;
77
+ }
78
+ //# sourceMappingURL=environments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../../src/operations/environments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,wCAAwC,EACxC,wCAAwC,EACxC,kCAAkC,EAClC,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,uCAAuC,EACvC,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAEnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;;OAMG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,wCAAwC,EACpD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,kCAAkC,CAAC,EACtD,kCAAkC,CACnC,CACF;IAmDD;;;;;;OAMG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,wCAAwC,EACpD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAU9C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,2BAA2B,EAAE,gCAAgC,EAC7D,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,0BAA0B,CAAC,EAC9C,0BAA0B,CAC3B,CACF;IAwDD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,2BAA2B,EAAE,gCAAgC,EAC7D,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAUtC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAMnD"}
@@ -0,0 +1,314 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /** Class containing Environments operations. */
15
+ export class EnvironmentsImpl {
16
+ /**
17
+ * Initialize a new instance of the class Environments class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Create or update an environment in the specified subscription and resource group.
25
+ * @param resourceGroupName Name of an Azure Resource group.
26
+ * @param environmentName Name of the environment
27
+ * @param parameters Parameters for creating an environment resource.
28
+ * @param options The options parameters.
29
+ */
30
+ beginCreateOrUpdate(resourceGroupName, environmentName, parameters, options) {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
33
+ return this.client.sendOperationRequest(args, spec);
34
+ });
35
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
36
+ var _a;
37
+ let currentRawResponse = undefined;
38
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
39
+ const callback = (rawResponse, flatResponse) => {
40
+ currentRawResponse = rawResponse;
41
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
42
+ };
43
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
44
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
45
+ return {
46
+ flatResponse,
47
+ rawResponse: {
48
+ statusCode: currentRawResponse.status,
49
+ body: currentRawResponse.parsedBody,
50
+ headers: currentRawResponse.headers.toJSON()
51
+ }
52
+ };
53
+ });
54
+ const lro = new LroImpl(sendOperation, { resourceGroupName, environmentName, parameters, options }, createOrUpdateOperationSpec);
55
+ return new LroEngine(lro, {
56
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
57
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
58
+ });
59
+ });
60
+ }
61
+ /**
62
+ * Create or update an environment in the specified subscription and resource group.
63
+ * @param resourceGroupName Name of an Azure Resource group.
64
+ * @param environmentName Name of the environment
65
+ * @param parameters Parameters for creating an environment resource.
66
+ * @param options The options parameters.
67
+ */
68
+ beginCreateOrUpdateAndWait(resourceGroupName, environmentName, parameters, options) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, environmentName, parameters, options);
71
+ return poller.pollUntilDone();
72
+ });
73
+ }
74
+ /**
75
+ * Gets the environment with the specified name in the specified subscription and resource group.
76
+ * @param resourceGroupName Name of an Azure Resource group.
77
+ * @param environmentName The name of the Time Series Insights environment associated with the
78
+ * specified resource group.
79
+ * @param options The options parameters.
80
+ */
81
+ get(resourceGroupName, environmentName, options) {
82
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, getOperationSpec);
83
+ }
84
+ /**
85
+ * Updates the environment with the specified name in the specified subscription and resource group.
86
+ * @param resourceGroupName Name of an Azure Resource group.
87
+ * @param environmentName The name of the Time Series Insights environment associated with the
88
+ * specified resource group.
89
+ * @param environmentUpdateParameters Request object that contains the updated information for the
90
+ * environment.
91
+ * @param options The options parameters.
92
+ */
93
+ beginUpdate(resourceGroupName, environmentName, environmentUpdateParameters, options) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
96
+ return this.client.sendOperationRequest(args, spec);
97
+ });
98
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
99
+ var _a;
100
+ let currentRawResponse = undefined;
101
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
102
+ const callback = (rawResponse, flatResponse) => {
103
+ currentRawResponse = rawResponse;
104
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
105
+ };
106
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
107
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
108
+ return {
109
+ flatResponse,
110
+ rawResponse: {
111
+ statusCode: currentRawResponse.status,
112
+ body: currentRawResponse.parsedBody,
113
+ headers: currentRawResponse.headers.toJSON()
114
+ }
115
+ };
116
+ });
117
+ const lro = new LroImpl(sendOperation, {
118
+ resourceGroupName,
119
+ environmentName,
120
+ environmentUpdateParameters,
121
+ options
122
+ }, updateOperationSpec);
123
+ return new LroEngine(lro, {
124
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
125
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
126
+ });
127
+ });
128
+ }
129
+ /**
130
+ * Updates the environment with the specified name in the specified subscription and resource group.
131
+ * @param resourceGroupName Name of an Azure Resource group.
132
+ * @param environmentName The name of the Time Series Insights environment associated with the
133
+ * specified resource group.
134
+ * @param environmentUpdateParameters Request object that contains the updated information for the
135
+ * environment.
136
+ * @param options The options parameters.
137
+ */
138
+ beginUpdateAndWait(resourceGroupName, environmentName, environmentUpdateParameters, options) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const poller = yield this.beginUpdate(resourceGroupName, environmentName, environmentUpdateParameters, options);
141
+ return poller.pollUntilDone();
142
+ });
143
+ }
144
+ /**
145
+ * Deletes the environment with the specified name in the specified subscription and resource group.
146
+ * @param resourceGroupName Name of an Azure Resource group.
147
+ * @param environmentName The name of the Time Series Insights environment associated with the
148
+ * specified resource group.
149
+ * @param options The options parameters.
150
+ */
151
+ delete(resourceGroupName, environmentName, options) {
152
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, deleteOperationSpec);
153
+ }
154
+ /**
155
+ * Lists all the available environments associated with the subscription and within the specified
156
+ * resource group.
157
+ * @param resourceGroupName Name of an Azure Resource group.
158
+ * @param options The options parameters.
159
+ */
160
+ listByResourceGroup(resourceGroupName, options) {
161
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
162
+ }
163
+ /**
164
+ * Lists all the available environments within a subscription, irrespective of the resource groups.
165
+ * @param options The options parameters.
166
+ */
167
+ listBySubscription(options) {
168
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
169
+ }
170
+ }
171
+ // Operation Specifications
172
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
173
+ const createOrUpdateOperationSpec = {
174
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
175
+ httpMethod: "PUT",
176
+ responses: {
177
+ 200: {
178
+ bodyMapper: Mappers.EnvironmentResource
179
+ },
180
+ 201: {
181
+ bodyMapper: Mappers.EnvironmentResource
182
+ },
183
+ 202: {
184
+ bodyMapper: Mappers.EnvironmentResource
185
+ },
186
+ 204: {
187
+ bodyMapper: Mappers.EnvironmentResource
188
+ },
189
+ default: {
190
+ bodyMapper: Mappers.CloudError
191
+ }
192
+ },
193
+ requestBody: Parameters.parameters,
194
+ queryParameters: [Parameters.apiVersion],
195
+ urlParameters: [
196
+ Parameters.$host,
197
+ Parameters.subscriptionId,
198
+ Parameters.resourceGroupName,
199
+ Parameters.environmentName
200
+ ],
201
+ headerParameters: [Parameters.accept, Parameters.contentType],
202
+ mediaType: "json",
203
+ serializer
204
+ };
205
+ const getOperationSpec = {
206
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
207
+ httpMethod: "GET",
208
+ responses: {
209
+ 200: {
210
+ bodyMapper: Mappers.EnvironmentResource
211
+ },
212
+ default: {
213
+ bodyMapper: Mappers.CloudError
214
+ }
215
+ },
216
+ queryParameters: [Parameters.apiVersion, Parameters.expand],
217
+ urlParameters: [
218
+ Parameters.$host,
219
+ Parameters.subscriptionId,
220
+ Parameters.resourceGroupName,
221
+ Parameters.environmentName1
222
+ ],
223
+ headerParameters: [Parameters.accept],
224
+ serializer
225
+ };
226
+ const updateOperationSpec = {
227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
228
+ httpMethod: "PATCH",
229
+ responses: {
230
+ 200: {
231
+ bodyMapper: Mappers.EnvironmentResource
232
+ },
233
+ 201: {
234
+ bodyMapper: Mappers.EnvironmentResource
235
+ },
236
+ 202: {
237
+ bodyMapper: Mappers.EnvironmentResource
238
+ },
239
+ 204: {
240
+ bodyMapper: Mappers.EnvironmentResource
241
+ },
242
+ default: {
243
+ bodyMapper: Mappers.CloudError
244
+ }
245
+ },
246
+ requestBody: Parameters.environmentUpdateParameters,
247
+ queryParameters: [Parameters.apiVersion],
248
+ urlParameters: [
249
+ Parameters.$host,
250
+ Parameters.subscriptionId,
251
+ Parameters.resourceGroupName,
252
+ Parameters.environmentName1
253
+ ],
254
+ headerParameters: [Parameters.accept, Parameters.contentType],
255
+ mediaType: "json",
256
+ serializer
257
+ };
258
+ const deleteOperationSpec = {
259
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
260
+ httpMethod: "DELETE",
261
+ responses: {
262
+ 200: {},
263
+ 204: {},
264
+ default: {
265
+ bodyMapper: Mappers.CloudError
266
+ }
267
+ },
268
+ queryParameters: [Parameters.apiVersion],
269
+ urlParameters: [
270
+ Parameters.$host,
271
+ Parameters.subscriptionId,
272
+ Parameters.resourceGroupName,
273
+ Parameters.environmentName1
274
+ ],
275
+ headerParameters: [Parameters.accept],
276
+ serializer
277
+ };
278
+ const listByResourceGroupOperationSpec = {
279
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments",
280
+ httpMethod: "GET",
281
+ responses: {
282
+ 200: {
283
+ bodyMapper: Mappers.EnvironmentListResponse
284
+ },
285
+ default: {
286
+ bodyMapper: Mappers.CloudError
287
+ }
288
+ },
289
+ queryParameters: [Parameters.apiVersion],
290
+ urlParameters: [
291
+ Parameters.$host,
292
+ Parameters.subscriptionId,
293
+ Parameters.resourceGroupName
294
+ ],
295
+ headerParameters: [Parameters.accept],
296
+ serializer
297
+ };
298
+ const listBySubscriptionOperationSpec = {
299
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.TimeSeriesInsights/environments",
300
+ httpMethod: "GET",
301
+ responses: {
302
+ 200: {
303
+ bodyMapper: Mappers.EnvironmentListResponse
304
+ },
305
+ default: {
306
+ bodyMapper: Mappers.CloudError
307
+ }
308
+ },
309
+ queryParameters: [Parameters.apiVersion],
310
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ //# sourceMappingURL=environments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environments.js","sourceRoot":"","sources":["../../../src/operations/environments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAiBrC,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACG,mBAAmB,CACvB,iBAAyB,EACzB,eAAuB,EACvB,UAAoD,EACpD,OAAkD;;YAOlD,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACnC,IAA8B,EACe,EAAE;gBAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACtD,CAAC,CAAA,CAAC;YACF,MAAM,aAAa,GAAG,CACpB,IAAmC,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BAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,wHAAwH;IAC1H,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;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;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,qFAAqF;IACvF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { EventSources } from "../operationsInterfaces";
2
+ import { TimeSeriesInsightsClient } from "../timeSeriesInsightsClient";
3
+ import { EventSourceCreateOrUpdateParametersUnion, EventSourcesCreateOrUpdateOptionalParams, EventSourcesCreateOrUpdateResponse, EventSourcesGetOptionalParams, EventSourcesGetResponse, EventSourceUpdateParametersUnion, EventSourcesUpdateOptionalParams, EventSourcesUpdateResponse, EventSourcesDeleteOptionalParams, EventSourcesListByEnvironmentOptionalParams, EventSourcesListByEnvironmentResponse } from "../models";
4
+ /** Class containing EventSources operations. */
5
+ export declare class EventSourcesImpl implements EventSources {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class EventSources class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: TimeSeriesInsightsClient);
12
+ /**
13
+ * Create or update an event source under the specified environment.
14
+ * @param resourceGroupName Name of an Azure Resource group.
15
+ * @param environmentName The name of the Time Series Insights environment associated with the
16
+ * specified resource group.
17
+ * @param eventSourceName Name of the event source.
18
+ * @param parameters Parameters for creating an event source resource.
19
+ * @param options The options parameters.
20
+ */
21
+ createOrUpdate(resourceGroupName: string, environmentName: string, eventSourceName: string, parameters: EventSourceCreateOrUpdateParametersUnion, options?: EventSourcesCreateOrUpdateOptionalParams): Promise<EventSourcesCreateOrUpdateResponse>;
22
+ /**
23
+ * Gets the event source with the specified name in the specified environment.
24
+ * @param resourceGroupName Name of an Azure Resource group.
25
+ * @param environmentName The name of the Time Series Insights environment associated with the
26
+ * specified resource group.
27
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
28
+ * specified environment.
29
+ * @param options The options parameters.
30
+ */
31
+ get(resourceGroupName: string, environmentName: string, eventSourceName: string, options?: EventSourcesGetOptionalParams): Promise<EventSourcesGetResponse>;
32
+ /**
33
+ * Updates the event source with the specified name in the specified subscription, resource group, and
34
+ * environment.
35
+ * @param resourceGroupName Name of an Azure Resource group.
36
+ * @param environmentName The name of the Time Series Insights environment associated with the
37
+ * specified resource group.
38
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
39
+ * specified environment.
40
+ * @param eventSourceUpdateParameters Request object that contains the updated information for the
41
+ * event source.
42
+ * @param options The options parameters.
43
+ */
44
+ update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: EventSourceUpdateParametersUnion, options?: EventSourcesUpdateOptionalParams): Promise<EventSourcesUpdateResponse>;
45
+ /**
46
+ * Deletes the event source with the specified name in the specified subscription, resource group, and
47
+ * environment
48
+ * @param resourceGroupName Name of an Azure Resource group.
49
+ * @param environmentName The name of the Time Series Insights environment associated with the
50
+ * specified resource group.
51
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
52
+ * specified environment.
53
+ * @param options The options parameters.
54
+ */
55
+ delete(resourceGroupName: string, environmentName: string, eventSourceName: string, options?: EventSourcesDeleteOptionalParams): Promise<void>;
56
+ /**
57
+ * Lists all the available event sources associated with the subscription and within the specified
58
+ * resource group and environment.
59
+ * @param resourceGroupName Name of an Azure Resource group.
60
+ * @param environmentName The name of the Time Series Insights environment associated with the
61
+ * specified resource group.
62
+ * @param options The options parameters.
63
+ */
64
+ listByEnvironment(resourceGroupName: string, environmentName: string, options?: EventSourcesListByEnvironmentOptionalParams): Promise<EventSourcesListByEnvironmentResponse>;
65
+ }
66
+ //# sourceMappingURL=eventSources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSources.d.ts","sourceRoot":"","sources":["../../../src/operations/eventSources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,wCAAwC,EACxC,wCAAwC,EACxC,kCAAkC,EAClC,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,2CAA2C,EAC3C,qCAAqC,EACtC,MAAM,WAAW,CAAC;AAEnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,wCAAwC,EACpD,OAAO,CAAC,EAA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