@azure/arm-timeseriesinsights 1.3.1 → 2.0.0

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 +70 -32
  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,135 @@
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
+
9
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import {
11
+ EnvironmentCreateOrUpdateParametersUnion,
12
+ EnvironmentsCreateOrUpdateOptionalParams,
13
+ EnvironmentsCreateOrUpdateResponse,
14
+ EnvironmentsGetOptionalParams,
15
+ EnvironmentsGetResponse,
16
+ EnvironmentUpdateParametersUnion,
17
+ EnvironmentsUpdateOptionalParams,
18
+ EnvironmentsUpdateResponse,
19
+ EnvironmentsDeleteOptionalParams,
20
+ EnvironmentsListByResourceGroupOptionalParams,
21
+ EnvironmentsListByResourceGroupResponse,
22
+ EnvironmentsListBySubscriptionOptionalParams,
23
+ EnvironmentsListBySubscriptionResponse
24
+ } from "../models";
25
+
26
+ /** Interface representing a Environments. */
27
+ export interface Environments {
28
+ /**
29
+ * Create or update an environment in the specified subscription and resource group.
30
+ * @param resourceGroupName Name of an Azure Resource group.
31
+ * @param environmentName Name of the environment
32
+ * @param parameters Parameters for creating an environment resource.
33
+ * @param options The options parameters.
34
+ */
35
+ beginCreateOrUpdate(
36
+ resourceGroupName: string,
37
+ environmentName: string,
38
+ parameters: EnvironmentCreateOrUpdateParametersUnion,
39
+ options?: EnvironmentsCreateOrUpdateOptionalParams
40
+ ): Promise<
41
+ PollerLike<
42
+ PollOperationState<EnvironmentsCreateOrUpdateResponse>,
43
+ EnvironmentsCreateOrUpdateResponse
44
+ >
45
+ >;
46
+ /**
47
+ * Create or update an environment in the specified subscription and resource group.
48
+ * @param resourceGroupName Name of an Azure Resource group.
49
+ * @param environmentName Name of the environment
50
+ * @param parameters Parameters for creating an environment resource.
51
+ * @param options The options parameters.
52
+ */
53
+ beginCreateOrUpdateAndWait(
54
+ resourceGroupName: string,
55
+ environmentName: string,
56
+ parameters: EnvironmentCreateOrUpdateParametersUnion,
57
+ options?: EnvironmentsCreateOrUpdateOptionalParams
58
+ ): Promise<EnvironmentsCreateOrUpdateResponse>;
59
+ /**
60
+ * Gets the environment with the specified name in the specified subscription and resource group.
61
+ * @param resourceGroupName Name of an Azure Resource group.
62
+ * @param environmentName The name of the Time Series Insights environment associated with the
63
+ * specified resource group.
64
+ * @param options The options parameters.
65
+ */
66
+ get(
67
+ resourceGroupName: string,
68
+ environmentName: string,
69
+ options?: EnvironmentsGetOptionalParams
70
+ ): Promise<EnvironmentsGetResponse>;
71
+ /**
72
+ * Updates the environment with the specified name in the specified subscription and resource group.
73
+ * @param resourceGroupName Name of an Azure Resource group.
74
+ * @param environmentName The name of the Time Series Insights environment associated with the
75
+ * specified resource group.
76
+ * @param environmentUpdateParameters Request object that contains the updated information for the
77
+ * environment.
78
+ * @param options The options parameters.
79
+ */
80
+ beginUpdate(
81
+ resourceGroupName: string,
82
+ environmentName: string,
83
+ environmentUpdateParameters: EnvironmentUpdateParametersUnion,
84
+ options?: EnvironmentsUpdateOptionalParams
85
+ ): Promise<
86
+ PollerLike<
87
+ PollOperationState<EnvironmentsUpdateResponse>,
88
+ EnvironmentsUpdateResponse
89
+ >
90
+ >;
91
+ /**
92
+ * Updates the environment with the specified name in the specified subscription and resource group.
93
+ * @param resourceGroupName Name of an Azure Resource group.
94
+ * @param environmentName The name of the Time Series Insights environment associated with the
95
+ * specified resource group.
96
+ * @param environmentUpdateParameters Request object that contains the updated information for the
97
+ * environment.
98
+ * @param options The options parameters.
99
+ */
100
+ beginUpdateAndWait(
101
+ resourceGroupName: string,
102
+ environmentName: string,
103
+ environmentUpdateParameters: EnvironmentUpdateParametersUnion,
104
+ options?: EnvironmentsUpdateOptionalParams
105
+ ): Promise<EnvironmentsUpdateResponse>;
106
+ /**
107
+ * Deletes the environment with the specified name in the specified subscription and resource group.
108
+ * @param resourceGroupName Name of an Azure Resource group.
109
+ * @param environmentName The name of the Time Series Insights environment associated with the
110
+ * specified resource group.
111
+ * @param options The options parameters.
112
+ */
113
+ delete(
114
+ resourceGroupName: string,
115
+ environmentName: string,
116
+ options?: EnvironmentsDeleteOptionalParams
117
+ ): Promise<void>;
118
+ /**
119
+ * Lists all the available environments associated with the subscription and within the specified
120
+ * resource group.
121
+ * @param resourceGroupName Name of an Azure Resource group.
122
+ * @param options The options parameters.
123
+ */
124
+ listByResourceGroup(
125
+ resourceGroupName: string,
126
+ options?: EnvironmentsListByResourceGroupOptionalParams
127
+ ): Promise<EnvironmentsListByResourceGroupResponse>;
128
+ /**
129
+ * Lists all the available environments within a subscription, irrespective of the resource groups.
130
+ * @param options The options parameters.
131
+ */
132
+ listBySubscription(
133
+ options?: EnvironmentsListBySubscriptionOptionalParams
134
+ ): Promise<EnvironmentsListBySubscriptionResponse>;
135
+ }
@@ -0,0 +1,104 @@
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
+
9
+ import {
10
+ EventSourceCreateOrUpdateParametersUnion,
11
+ EventSourcesCreateOrUpdateOptionalParams,
12
+ EventSourcesCreateOrUpdateResponse,
13
+ EventSourcesGetOptionalParams,
14
+ EventSourcesGetResponse,
15
+ EventSourceUpdateParametersUnion,
16
+ EventSourcesUpdateOptionalParams,
17
+ EventSourcesUpdateResponse,
18
+ EventSourcesDeleteOptionalParams,
19
+ EventSourcesListByEnvironmentOptionalParams,
20
+ EventSourcesListByEnvironmentResponse
21
+ } from "../models";
22
+
23
+ /** Interface representing a EventSources. */
24
+ export interface EventSources {
25
+ /**
26
+ * Create or update an event source under the specified environment.
27
+ * @param resourceGroupName Name of an Azure Resource group.
28
+ * @param environmentName The name of the Time Series Insights environment associated with the
29
+ * specified resource group.
30
+ * @param eventSourceName Name of the event source.
31
+ * @param parameters Parameters for creating an event source resource.
32
+ * @param options The options parameters.
33
+ */
34
+ createOrUpdate(
35
+ resourceGroupName: string,
36
+ environmentName: string,
37
+ eventSourceName: string,
38
+ parameters: EventSourceCreateOrUpdateParametersUnion,
39
+ options?: EventSourcesCreateOrUpdateOptionalParams
40
+ ): Promise<EventSourcesCreateOrUpdateResponse>;
41
+ /**
42
+ * Gets the event source with the specified name in the specified environment.
43
+ * @param resourceGroupName Name of an Azure Resource group.
44
+ * @param environmentName The name of the Time Series Insights environment associated with the
45
+ * specified resource group.
46
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
47
+ * specified environment.
48
+ * @param options The options parameters.
49
+ */
50
+ get(
51
+ resourceGroupName: string,
52
+ environmentName: string,
53
+ eventSourceName: string,
54
+ options?: EventSourcesGetOptionalParams
55
+ ): Promise<EventSourcesGetResponse>;
56
+ /**
57
+ * Updates the event source with the specified name in the specified subscription, resource group, and
58
+ * 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 eventSourceName The name of the Time Series Insights event source associated with the
63
+ * specified environment.
64
+ * @param eventSourceUpdateParameters Request object that contains the updated information for the
65
+ * event source.
66
+ * @param options The options parameters.
67
+ */
68
+ update(
69
+ resourceGroupName: string,
70
+ environmentName: string,
71
+ eventSourceName: string,
72
+ eventSourceUpdateParameters: EventSourceUpdateParametersUnion,
73
+ options?: EventSourcesUpdateOptionalParams
74
+ ): Promise<EventSourcesUpdateResponse>;
75
+ /**
76
+ * Deletes the event source with the specified name in the specified subscription, resource group, and
77
+ * environment
78
+ * @param resourceGroupName Name of an Azure Resource group.
79
+ * @param environmentName The name of the Time Series Insights environment associated with the
80
+ * specified resource group.
81
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
82
+ * specified environment.
83
+ * @param options The options parameters.
84
+ */
85
+ delete(
86
+ resourceGroupName: string,
87
+ environmentName: string,
88
+ eventSourceName: string,
89
+ options?: EventSourcesDeleteOptionalParams
90
+ ): Promise<void>;
91
+ /**
92
+ * Lists all the available event sources associated with the subscription and within the specified
93
+ * resource group and environment.
94
+ * @param resourceGroupName Name of an Azure Resource group.
95
+ * @param environmentName The name of the Time Series Insights environment associated with the
96
+ * specified resource group.
97
+ * @param options The options parameters.
98
+ */
99
+ listByEnvironment(
100
+ resourceGroupName: string,
101
+ environmentName: string,
102
+ options?: EventSourcesListByEnvironmentOptionalParams
103
+ ): Promise<EventSourcesListByEnvironmentResponse>;
104
+ }
@@ -0,0 +1,13 @@
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
+
9
+ export * from "./operations";
10
+ export * from "./environments";
11
+ export * from "./eventSources";
12
+ export * from "./referenceDataSets";
13
+ export * from "./accessPolicies";
@@ -0,0 +1,22 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available Time Series Insights related operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,104 @@
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
+
9
+ import {
10
+ ReferenceDataSetCreateOrUpdateParameters,
11
+ ReferenceDataSetsCreateOrUpdateOptionalParams,
12
+ ReferenceDataSetsCreateOrUpdateResponse,
13
+ ReferenceDataSetsGetOptionalParams,
14
+ ReferenceDataSetsGetResponse,
15
+ ReferenceDataSetUpdateParameters,
16
+ ReferenceDataSetsUpdateOptionalParams,
17
+ ReferenceDataSetsUpdateResponse,
18
+ ReferenceDataSetsDeleteOptionalParams,
19
+ ReferenceDataSetsListByEnvironmentOptionalParams,
20
+ ReferenceDataSetsListByEnvironmentResponse
21
+ } from "../models";
22
+
23
+ /** Interface representing a ReferenceDataSets. */
24
+ export interface ReferenceDataSets {
25
+ /**
26
+ * Create or update a reference data set in the specified environment.
27
+ * @param resourceGroupName Name of an Azure Resource group.
28
+ * @param environmentName The name of the Time Series Insights environment associated with the
29
+ * specified resource group.
30
+ * @param referenceDataSetName Name of the reference data set.
31
+ * @param parameters Parameters for creating a reference data set.
32
+ * @param options The options parameters.
33
+ */
34
+ createOrUpdate(
35
+ resourceGroupName: string,
36
+ environmentName: string,
37
+ referenceDataSetName: string,
38
+ parameters: ReferenceDataSetCreateOrUpdateParameters,
39
+ options?: ReferenceDataSetsCreateOrUpdateOptionalParams
40
+ ): Promise<ReferenceDataSetsCreateOrUpdateResponse>;
41
+ /**
42
+ * Gets the reference data set with the specified name in the specified environment.
43
+ * @param resourceGroupName Name of an Azure Resource group.
44
+ * @param environmentName The name of the Time Series Insights environment associated with the
45
+ * specified resource group.
46
+ * @param referenceDataSetName The name of the Time Series Insights reference data set associated with
47
+ * the specified environment.
48
+ * @param options The options parameters.
49
+ */
50
+ get(
51
+ resourceGroupName: string,
52
+ environmentName: string,
53
+ referenceDataSetName: string,
54
+ options?: ReferenceDataSetsGetOptionalParams
55
+ ): Promise<ReferenceDataSetsGetResponse>;
56
+ /**
57
+ * Updates the reference data set with the specified name in the specified subscription, resource
58
+ * 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 referenceDataSetName The name of the Time Series Insights reference data set associated with
63
+ * the specified environment.
64
+ * @param referenceDataSetUpdateParameters Request object that contains the updated information for the
65
+ * reference data set.
66
+ * @param options The options parameters.
67
+ */
68
+ update(
69
+ resourceGroupName: string,
70
+ environmentName: string,
71
+ referenceDataSetName: string,
72
+ referenceDataSetUpdateParameters: ReferenceDataSetUpdateParameters,
73
+ options?: ReferenceDataSetsUpdateOptionalParams
74
+ ): Promise<ReferenceDataSetsUpdateResponse>;
75
+ /**
76
+ * Deletes the reference data set with the specified name in the specified subscription, resource
77
+ * group, and environment
78
+ * @param resourceGroupName Name of an Azure Resource group.
79
+ * @param environmentName The name of the Time Series Insights environment associated with the
80
+ * specified resource group.
81
+ * @param referenceDataSetName The name of the Time Series Insights reference data set associated with
82
+ * the specified environment.
83
+ * @param options The options parameters.
84
+ */
85
+ delete(
86
+ resourceGroupName: string,
87
+ environmentName: string,
88
+ referenceDataSetName: string,
89
+ options?: ReferenceDataSetsDeleteOptionalParams
90
+ ): Promise<void>;
91
+ /**
92
+ * Lists all the available reference data sets associated with the subscription and within the
93
+ * specified resource group and environment.
94
+ * @param resourceGroupName Name of an Azure Resource group.
95
+ * @param environmentName The name of the Time Series Insights environment associated with the
96
+ * specified resource group.
97
+ * @param options The options parameters.
98
+ */
99
+ listByEnvironment(
100
+ resourceGroupName: string,
101
+ environmentName: string,
102
+ options?: ReferenceDataSetsListByEnvironmentOptionalParams
103
+ ): Promise<ReferenceDataSetsListByEnvironmentResponse>;
104
+ }
@@ -1,56 +1,95 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import { TokenCredential } from "@azure/core-auth";
13
- import * as Models from "./models";
14
- import * as Mappers from "./models/mappers";
15
- import * as operations from "./operations";
16
- import { TimeSeriesInsightsClientContext } from "./timeSeriesInsightsClientContext";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ OperationsImpl,
13
+ EnvironmentsImpl,
14
+ EventSourcesImpl,
15
+ ReferenceDataSetsImpl,
16
+ AccessPoliciesImpl
17
+ } from "./operations";
18
+ import {
19
+ Operations,
20
+ Environments,
21
+ EventSources,
22
+ ReferenceDataSets,
23
+ AccessPolicies
24
+ } from "./operationsInterfaces";
25
+ import { TimeSeriesInsightsClientOptionalParams } from "./models";
17
26
 
18
-
19
- class TimeSeriesInsightsClient extends TimeSeriesInsightsClientContext {
20
- // Operation groups
21
- operations: operations.Operations;
22
- environments: operations.Environments;
23
- eventSources: operations.EventSources;
24
- referenceDataSets: operations.ReferenceDataSets;
25
- accessPolicies: operations.AccessPolicies;
27
+ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
28
+ $host: string;
29
+ apiVersion: string;
30
+ subscriptionId: string;
26
31
 
27
32
  /**
28
33
  * Initializes a new instance of the TimeSeriesInsightsClient class.
29
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
30
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
31
- * more information about these credentials, see
32
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
33
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
34
- * @azure/ms-rest-browserauth are also supported.
34
+ * @param credentials Subscription credentials which uniquely identify client subscription.
35
35
  * @param subscriptionId Azure Subscription ID.
36
- * @param [options] The parameter options
36
+ * @param options The parameter options
37
37
  */
38
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.TimeSeriesInsightsClientOptions) {
39
- super(credentials, subscriptionId, options);
40
- this.operations = new operations.Operations(this);
41
- this.environments = new operations.Environments(this);
42
- this.eventSources = new operations.EventSources(this);
43
- this.referenceDataSets = new operations.ReferenceDataSets(this);
44
- this.accessPolicies = new operations.AccessPolicies(this);
45
- }
46
- }
38
+ constructor(
39
+ credentials: coreAuth.TokenCredential,
40
+ subscriptionId: string,
41
+ options?: TimeSeriesInsightsClientOptionalParams
42
+ ) {
43
+ if (credentials === undefined) {
44
+ throw new Error("'credentials' cannot be null");
45
+ }
46
+ if (subscriptionId === undefined) {
47
+ throw new Error("'subscriptionId' cannot be null");
48
+ }
49
+
50
+ // Initializing default values for options
51
+ if (!options) {
52
+ options = {};
53
+ }
54
+ const defaults: TimeSeriesInsightsClientOptionalParams = {
55
+ requestContentType: "application/json; charset=utf-8",
56
+ credential: credentials
57
+ };
47
58
 
48
- // Operation Specifications
59
+ const packageDetails = `azsdk-js-arm-timeseriesinsights/2.0.0`;
60
+ const userAgentPrefix =
61
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
62
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
63
+ : `${packageDetails}`;
49
64
 
50
- export {
51
- TimeSeriesInsightsClient,
52
- TimeSeriesInsightsClientContext,
53
- Models as TimeSeriesInsightsModels,
54
- Mappers as TimeSeriesInsightsMappers
55
- };
56
- export * from "./operations";
65
+ if (!options.credentialScopes) {
66
+ options.credentialScopes = ["https://management.azure.com/.default"];
67
+ }
68
+ const optionsWithDefaults = {
69
+ ...defaults,
70
+ ...options,
71
+ userAgentOptions: {
72
+ userAgentPrefix
73
+ },
74
+ baseUri: options.endpoint || "https://management.azure.com"
75
+ };
76
+ super(optionsWithDefaults);
77
+ // Parameter assignments
78
+ this.subscriptionId = subscriptionId;
79
+
80
+ // Assigning values to Constant parameters
81
+ this.$host = options.$host || "https://management.azure.com";
82
+ this.apiVersion = options.apiVersion || "2020-05-15";
83
+ this.operations = new OperationsImpl(this);
84
+ this.environments = new EnvironmentsImpl(this);
85
+ this.eventSources = new EventSourcesImpl(this);
86
+ this.referenceDataSets = new ReferenceDataSetsImpl(this);
87
+ this.accessPolicies = new AccessPoliciesImpl(this);
88
+ }
89
+
90
+ operations: Operations;
91
+ environments: Environments;
92
+ eventSources: EventSources;
93
+ referenceDataSets: ReferenceDataSets;
94
+ accessPolicies: AccessPolicies;
95
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }