@azure/arm-timeseriesinsights 2.0.0 → 2.1.0-alpha.20220506.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 (175) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +12 -1
  3. package/dist/index.js +650 -62
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js +37 -0
  10. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/accessPoliciesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/accessPoliciesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/accessPoliciesDeleteSample.js +32 -0
  14. package/dist-esm/samples-dev/accessPoliciesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/accessPoliciesGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/accessPoliciesGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/accessPoliciesGetSample.js +32 -0
  18. package/dist-esm/samples-dev/accessPoliciesGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js +31 -0
  22. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js.map +1 -0
  23. package/dist-esm/samples-dev/accessPoliciesUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/accessPoliciesUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/accessPoliciesUpdateSample.js +35 -0
  26. package/dist-esm/samples-dev/accessPoliciesUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js +38 -0
  30. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/environmentsDeleteSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/environmentsDeleteSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/environmentsDeleteSample.js +31 -0
  34. package/dist-esm/samples-dev/environmentsDeleteSample.js.map +1 -0
  35. package/dist-esm/samples-dev/environmentsGetSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/environmentsGetSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/environmentsGetSample.js +31 -0
  38. package/dist-esm/samples-dev/environmentsGetSample.js.map +1 -0
  39. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js +30 -0
  42. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js.map +1 -0
  43. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js +29 -0
  46. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js.map +1 -0
  47. package/dist-esm/samples-dev/environmentsUpdateSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/environmentsUpdateSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/environmentsUpdateSample.js +35 -0
  50. package/dist-esm/samples-dev/environmentsUpdateSample.js.map +1 -0
  51. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js +80 -0
  54. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js.map +1 -0
  55. package/dist-esm/samples-dev/eventSourcesDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/eventSourcesDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/eventSourcesDeleteSample.js +32 -0
  58. package/dist-esm/samples-dev/eventSourcesDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/eventSourcesGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/eventSourcesGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/eventSourcesGetSample.js +32 -0
  62. package/dist-esm/samples-dev/eventSourcesGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js +31 -0
  66. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js.map +1 -0
  67. package/dist-esm/samples-dev/eventSourcesUpdateSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/eventSourcesUpdateSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/eventSourcesUpdateSample.js +36 -0
  70. package/dist-esm/samples-dev/eventSourcesUpdateSample.js.map +1 -0
  71. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  74. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  86. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  87. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js +31 -0
  90. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js.map +1 -0
  91. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +45 -0
  94. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -0
  95. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js +39 -0
  98. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js.map +1 -0
  99. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js +32 -0
  102. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js.map +1 -0
  103. package/dist-esm/samples-dev/referenceDataSetsGetSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/referenceDataSetsGetSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/referenceDataSetsGetSample.js +32 -0
  106. package/dist-esm/samples-dev/referenceDataSetsGetSample.js.map +1 -0
  107. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js +31 -0
  110. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js.map +1 -0
  111. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js +35 -0
  114. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js.map +1 -0
  115. package/dist-esm/src/models/index.d.ts +152 -4
  116. package/dist-esm/src/models/index.d.ts.map +1 -1
  117. package/dist-esm/src/models/index.js +21 -0
  118. package/dist-esm/src/models/index.js.map +1 -1
  119. package/dist-esm/src/models/mappers.d.ts +6 -0
  120. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  121. package/dist-esm/src/models/mappers.js +201 -0
  122. package/dist-esm/src/models/mappers.js.map +1 -1
  123. package/dist-esm/src/models/parameters.d.ts +2 -0
  124. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  125. package/dist-esm/src/models/parameters.js +16 -2
  126. package/dist-esm/src/models/parameters.js.map +1 -1
  127. package/dist-esm/src/operations/environments.d.ts.map +1 -1
  128. package/dist-esm/src/operations/environments.js +6 -2
  129. package/dist-esm/src/operations/environments.js.map +1 -1
  130. package/dist-esm/src/operations/index.d.ts +2 -0
  131. package/dist-esm/src/operations/index.d.ts.map +1 -1
  132. package/dist-esm/src/operations/index.js +2 -0
  133. package/dist-esm/src/operations/index.js.map +1 -1
  134. package/dist-esm/src/operations/privateEndpointConnections.d.ts +52 -0
  135. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  136. package/dist-esm/src/operations/privateEndpointConnections.js +177 -0
  137. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  138. package/dist-esm/src/operations/privateLinkResources.d.ts +32 -0
  139. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  140. package/dist-esm/src/operations/privateLinkResources.js +101 -0
  141. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  143. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  144. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  145. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  146. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +44 -0
  147. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  149. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +14 -0
  151. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  153. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  154. package/dist-esm/src/timeSeriesInsightsClient.d.ts +3 -1
  155. package/dist-esm/src/timeSeriesInsightsClient.d.ts.map +1 -1
  156. package/dist-esm/src/timeSeriesInsightsClient.js +24 -4
  157. package/dist-esm/src/timeSeriesInsightsClient.js.map +1 -1
  158. package/package.json +36 -15
  159. package/review/arm-timeseriesinsights.api.md +131 -0
  160. package/rollup.config.js +6 -72
  161. package/src/models/index.ts +173 -4
  162. package/src/models/mappers.ts +224 -0
  163. package/src/models/parameters.ts +19 -2
  164. package/src/operations/environments.ts +6 -2
  165. package/src/operations/index.ts +2 -0
  166. package/src/operations/privateEndpointConnections.ts +234 -0
  167. package/src/operations/privateLinkResources.ts +137 -0
  168. package/src/operationsInterfaces/index.ts +2 -0
  169. package/src/operationsInterfaces/privateEndpointConnections.ts +81 -0
  170. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  171. package/src/timeSeriesInsightsClient.ts +38 -5
  172. package/tsconfig.json +19 -5
  173. package/types/arm-timeseriesinsights.d.ts +230 -4
  174. package/types/tsdoc-metadata.json +1 -1
  175. package/LICENSE.txt +0 -21
@@ -0,0 +1,32 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes the event source with the specified name in the specified subscription, resource group, and environment
15
+ *
16
+ * @summary Deletes the event source with the specified name in the specified subscription, resource group, and environment
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/EventSourcesDelete.json
18
+ */
19
+ function deleteEventSource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const eventSourceName = "es1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const result = yield client.eventSources.delete(resourceGroupName, environmentName, eventSourceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ deleteEventSource().catch(console.error);
32
+ //# sourceMappingURL=eventSourcesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/eventSourcesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,eAAe,GAAG,KAAK,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAC7C,iBAAiB,EACjB,eAAe,EACf,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=eventSourcesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/eventSourcesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the event source with the specified name in the specified environment.
15
+ *
16
+ * @summary Gets the event source with the specified name in the specified environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/EventSourcesGetEventHub.json
18
+ */
19
+ function getEventHubEventSource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const eventSourceName = "es1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const result = yield client.eventSources.get(resourceGroupName, environmentName, eventSourceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getEventHubEventSource().catch(console.error);
32
+ //# sourceMappingURL=eventSourcesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/eventSourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,eAAe,GAAG,KAAK,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,EACf,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=eventSourcesListByEnvironmentSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesListByEnvironmentSample.d.ts","sourceRoot":"","sources":["../../samples-dev/eventSourcesListByEnvironmentSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all the available event sources associated with the subscription and within the specified resource group and environment.
15
+ *
16
+ * @summary Lists all the available event sources associated with the subscription and within the specified resource group and environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/EventSourcesListByEnvironment.json
18
+ */
19
+ function listEventSourcesByEnvironment() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
26
+ const result = yield client.eventSources.listByEnvironment(resourceGroupName, environmentName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ listEventSourcesByEnvironment().catch(console.error);
31
+ //# sourceMappingURL=eventSourcesListByEnvironmentSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesListByEnvironmentSample.js","sourceRoot":"","sources":["../../samples-dev/eventSourcesListByEnvironmentSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,CACxD,iBAAiB,EACjB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=eventSourcesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/eventSourcesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the event source with the specified name in the specified subscription, resource group, and environment.
15
+ *
16
+ * @summary Updates the event source with the specified name in the specified subscription, resource group, and environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/EventSourcesPatchTags.json
18
+ */
19
+ function updateEventSource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const eventSourceName = "es1";
25
+ const eventSourceUpdateParameters = {
26
+ kind: "Microsoft.EventHub",
27
+ tags: { someKey: "someValue" }
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
31
+ const result = yield client.eventSources.update(resourceGroupName, environmentName, eventSourceName, eventSourceUpdateParameters);
32
+ console.log(result);
33
+ });
34
+ }
35
+ updateEventSource().catch(console.error);
36
+ //# sourceMappingURL=eventSourcesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventSourcesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/eventSourcesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,eAAe,GAAG,KAAK,CAAC;QAC9B,MAAM,2BAA2B,GAAgC;YAC/D,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAC7C,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,2BAA2B,CAC5B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all of the available Time Series Insights related operations.
15
+ *
16
+ * @summary Lists all of the available Time Series Insights related operations.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/Operation_List.json
18
+ */
19
+ function listAvailableOperationsForTheTimeSeriesInsightsResourceProvider() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listAvailableOperationsForTheTimeSeriesInsightsResourceProvider().catch(console.error);
43
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+DAA+D;;;QAC5E,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,+DAA+D,EAAE,CAAC,KAAK,CACrE,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates a Private Endpoint connection of the environment in the given resource group.
15
+ *
16
+ * @summary Updates a Private Endpoint connection of the environment in the given resource group.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/PrivateEndpointConnectionUpdate.json
18
+ */
19
+ function privateEndpointConnectionUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "mySubscriptionId";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const environmentName = "myEnvironment";
24
+ const privateEndpointConnectionName = "myPrivateEndpointConnectionName";
25
+ const privateEndpointConnection = {
26
+ privateLinkServiceConnectionState: {
27
+ description: "Rejected for some reason",
28
+ status: "Rejected"
29
+ }
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
33
+ const result = yield client.privateEndpointConnections.createOrUpdate(resourceGroupName, environmentName, privateEndpointConnectionName, privateEndpointConnection);
34
+ console.log(result);
35
+ });
36
+ }
37
+ privateEndpointConnectionUpdate().catch(console.error);
38
+ //# sourceMappingURL=privateEndpointConnectionsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,yBAAyB,GAA8B;YAC3D,iCAAiC,EAAE;gBACjC,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,cAAc,CACnE,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the environment.
15
+ *
16
+ * @summary Disconnects the private endpoint connection and deletes it from the environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/PrivateEndpointConnectionDelete.json
18
+ */
19
+ function privateEndpointConnectionDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "mySubscriptionId";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const environmentName = "myEnvironment";
24
+ const privateEndpointConnectionName = "myPrivateEndpointConnectionName";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.delete(resourceGroupName, environmentName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ privateEndpointConnectionDelete().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,eAAe,EACf,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the details of the private endpoint connection of the environment in the given resource group.
15
+ *
16
+ * @summary Gets the details of the private endpoint connection of the environment in the given resource group.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/PrivateEndpointConnectionGet.json
18
+ */
19
+ function privateEndpointConnectionGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "mySubscriptionId";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const environmentName = "myEnvironment";
24
+ const privateEndpointConnectionName = "myPrivateEndpointConnectionName";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, environmentName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ privateEndpointConnectionGet().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,eAAe,EACf,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsListByEnvironmentSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByEnvironmentSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByEnvironmentSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets a list of all private endpoint connections in the given environment.
15
+ *
16
+ * @summary Gets a list of all private endpoint connections in the given environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/PrivateEndpointConnectionsListByEnvironment.json
18
+ */
19
+ function listPrivateEndpointConnectionsByService() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "mySubscriptionId";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const environmentName = "myEnvironment";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
26
+ const result = yield client.privateEndpointConnections.listByEnvironment(resourceGroupName, environmentName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ listPrivateEndpointConnectionsByService().catch(console.error);
31
+ //# sourceMappingURL=privateEndpointConnectionsListByEnvironmentSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByEnvironmentSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByEnvironmentSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,iBAAiB,CACtE,iBAAiB,EACjB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesListSupportedSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListSupportedSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListSupportedSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets a list of all supported private link resource types for the given environment.
15
+ *
16
+ * @summary Gets a list of all supported private link resource types for the given environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/PrivateLinkResourcesGet.json
18
+ */
19
+ function listSupportedPrivateLinkResources() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "mySubscriptionId";
23
+ const resourceGroupName = "myResourceGroup";
24
+ const environmentName = "myEnvironment";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.privateLinkResources.listSupported(resourceGroupName, environmentName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listSupportedPrivateLinkResources().catch(console.error);
45
+ //# sourceMappingURL=privateLinkResourcesListSupportedSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListSupportedSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListSupportedSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iCAAiC;;;QAC9C,MAAM,cAAc,GAAG,kBAAkB,CAAC;QAC1C,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAC9D,iBAAiB,EACjB,eAAe,CAChB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=referenceDataSetsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referenceDataSetsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/referenceDataSetsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create or update a reference data set in the specified environment.
15
+ *
16
+ * @summary Create or update a reference data set in the specified environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/ReferenceDataSetsCreate.json
18
+ */
19
+ function referenceDataSetsCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const referenceDataSetName = "rds1";
25
+ const parameters = {
26
+ keyProperties: [
27
+ { name: "DeviceId1", type: "String" },
28
+ { name: "DeviceFloor", type: "Double" }
29
+ ],
30
+ location: "West US"
31
+ };
32
+ const credential = new DefaultAzureCredential();
33
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
34
+ const result = yield client.referenceDataSets.createOrUpdate(resourceGroupName, environmentName, referenceDataSetName, parameters);
35
+ console.log(result);
36
+ });
37
+ }
38
+ referenceDataSetsCreate().catch(console.error);
39
+ //# sourceMappingURL=referenceDataSetsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referenceDataSetsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/referenceDataSetsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,oBAAoB,GAAG,MAAM,CAAC;QACpC,MAAM,UAAU,GAA6C;YAC3D,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACrC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;aACxC;YACD,QAAQ,EAAE,SAAS;SACpB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAC1D,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=referenceDataSetsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referenceDataSetsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/referenceDataSetsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes the reference data set with the specified name in the specified subscription, resource group, and environment
15
+ *
16
+ * @summary Deletes the reference data set with the specified name in the specified subscription, resource group, and environment
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/ReferenceDataSetsDelete.json
18
+ */
19
+ function referenceDataSetsDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const referenceDataSetName = "rds1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const result = yield client.referenceDataSets.delete(resourceGroupName, environmentName, referenceDataSetName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ referenceDataSetsDelete().catch(console.error);
32
+ //# sourceMappingURL=referenceDataSetsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referenceDataSetsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/referenceDataSetsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,oBAAoB,GAAG,MAAM,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAClD,iBAAiB,EACjB,eAAe,EACf,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=referenceDataSetsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referenceDataSetsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/referenceDataSetsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TimeSeriesInsightsClient } from "@azure/arm-timeseriesinsights";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the reference data set with the specified name in the specified environment.
15
+ *
16
+ * @summary Gets the reference data set with the specified name in the specified environment.
17
+ * x-ms-original-file: specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2021-03-31-preview/examples/ReferenceDataSetsGet.json
18
+ */
19
+ function referenceDataSetsGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const environmentName = "env1";
24
+ const referenceDataSetName = "rds1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new TimeSeriesInsightsClient(credential, subscriptionId);
27
+ const result = yield client.referenceDataSets.get(resourceGroupName, environmentName, referenceDataSetName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ referenceDataSetsGet().catch(console.error);
32
+ //# sourceMappingURL=referenceDataSetsGetSample.js.map