@azure/arm-timeseriesinsights 2.0.0 → 2.1.0-alpha.20220908.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 +47 -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,9 @@
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
+ export {};
9
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,14 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateLinkResource, PrivateLinkResourcesListSupportedOptionalParams } from "../models";
3
+ /** Interface representing a PrivateLinkResources. */
4
+ export interface PrivateLinkResources {
5
+ /**
6
+ * Gets a list of all supported private link resource types for the given environment.
7
+ * @param resourceGroupName Name of an Azure Resource group.
8
+ * @param environmentName The name of the Time Series Insights environment associated with the
9
+ * specified resource group.
10
+ * @param options The options parameters.
11
+ */
12
+ listSupported(resourceGroupName: string, environmentName: string, options?: PrivateLinkResourcesListSupportedOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
13
+ }
14
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,+CAA+C,EAChD,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;;;OAMG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;CACpD"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,6 +1,6 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { Operations, Environments, EventSources, ReferenceDataSets, AccessPolicies } from "./operationsInterfaces";
3
+ import { Operations, Environments, EventSources, ReferenceDataSets, AccessPolicies, PrivateEndpointConnections, PrivateLinkResources } from "./operationsInterfaces";
4
4
  import { TimeSeriesInsightsClientOptionalParams } from "./models";
5
5
  export declare class TimeSeriesInsightsClient extends coreClient.ServiceClient {
6
6
  $host: string;
@@ -18,5 +18,7 @@ export declare class TimeSeriesInsightsClient extends coreClient.ServiceClient {
18
18
  eventSources: EventSources;
19
19
  referenceDataSets: ReferenceDataSets;
20
20
  accessPolicies: AccessPolicies;
21
+ privateEndpointConnections: PrivateEndpointConnections;
22
+ privateLinkResources: PrivateLinkResources;
21
23
  }
22
24
  //# sourceMappingURL=timeSeriesInsightsClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeSeriesInsightsClient.d.ts","sourceRoot":"","sources":["../../src/timeSeriesInsightsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAQ7C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sCAAsC,EAAE,MAAM,UAAU,CAAC;AAElE,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC;IAiDlD,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,cAAc,CAAC;CAChC"}
1
+ {"version":3,"file":"timeSeriesInsightsClient.d.ts","sourceRoot":"","sources":["../../src/timeSeriesInsightsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAU7C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sCAAsC,EAAE,MAAM,UAAU,CAAC;AAElE,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC;IA2ElD,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,cAAc,CAAC;IAC/B,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C"}
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
- import { OperationsImpl, EnvironmentsImpl, EventSourcesImpl, ReferenceDataSetsImpl, AccessPoliciesImpl } from "./operations";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { OperationsImpl, EnvironmentsImpl, EventSourcesImpl, ReferenceDataSetsImpl, AccessPoliciesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations";
10
11
  export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
11
12
  /**
12
13
  * Initializes a new instance of the TimeSeriesInsightsClient class.
@@ -15,6 +16,7 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
15
16
  * @param options The parameter options
16
17
  */
17
18
  constructor(credentials, subscriptionId, options) {
19
+ var _a, _b;
18
20
  if (credentials === undefined) {
19
21
  throw new Error("'credentials' cannot be null");
20
22
  }
@@ -29,7 +31,7 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
29
31
  requestContentType: "application/json; charset=utf-8",
30
32
  credential: credentials
31
33
  };
32
- const packageDetails = `azsdk-js-arm-timeseriesinsights/2.0.0`;
34
+ const packageDetails = `azsdk-js-arm-timeseriesinsights/2.1.0-beta.2`;
33
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
37
  : `${packageDetails}`;
@@ -38,18 +40,36 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
38
40
  }
39
41
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
42
  userAgentPrefix
41
- }, baseUri: options.endpoint || "https://management.azure.com" });
43
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
42
44
  super(optionsWithDefaults);
45
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
46
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
49
+ if (!bearerTokenAuthenticationPolicyFound) {
50
+ this.pipeline.removePolicy({
51
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
52
+ });
53
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
54
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
55
+ challengeCallbacks: {
56
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
57
+ }
58
+ }));
59
+ }
60
+ }
43
61
  // Parameter assignments
44
62
  this.subscriptionId = subscriptionId;
45
63
  // Assigning values to Constant parameters
46
64
  this.$host = options.$host || "https://management.azure.com";
47
- this.apiVersion = options.apiVersion || "2020-05-15";
65
+ this.apiVersion = options.apiVersion || "2021-03-31-preview";
48
66
  this.operations = new OperationsImpl(this);
49
67
  this.environments = new EnvironmentsImpl(this);
50
68
  this.eventSources = new EventSourcesImpl(this);
51
69
  this.referenceDataSets = new ReferenceDataSetsImpl(this);
52
70
  this.accessPolicies = new AccessPoliciesImpl(this);
71
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
72
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
53
73
  }
54
74
  }
55
75
  //# sourceMappingURL=timeSeriesInsightsClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeSeriesInsightsClient.js","sourceRoot":"","sources":["../../src/timeSeriesInsightsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAUtB,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IAKpE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAgD;QAEhD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA2C;YACvD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,uCAAuC,CAAC;QAC/D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC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,CAAC;IACjE,CAAC;CASF"}
package/package.json CHANGED
@@ -3,31 +3,39 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for TimeSeriesInsightsClient.",
6
- "version": "2.0.0",
7
- "engines": { "node": ">=12.0.0" },
6
+ "version": "2.1.0-alpha.20220908.1",
7
+ "engines": {
8
+ "node": ">=12.0.0"
9
+ },
8
10
  "dependencies": {
9
11
  "@azure/core-lro": "^2.2.0",
10
12
  "@azure/abort-controller": "^1.0.0",
11
13
  "@azure/core-paging": "^1.2.0",
12
- "@azure/core-client": "^1.0.0",
14
+ "@azure/core-client": "^1.5.0",
13
15
  "@azure/core-auth": "^1.3.0",
14
- "@azure/core-rest-pipeline": "^1.1.0",
16
+ "@azure/core-rest-pipeline": "^1.8.0",
15
17
  "tslib": "^2.2.0"
16
18
  },
17
- "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19
+ "keywords": [
20
+ "node",
21
+ "azure",
22
+ "typescript",
23
+ "browser",
24
+ "isomorphic"
25
+ ],
18
26
  "license": "MIT",
19
27
  "main": "./dist/index.js",
20
28
  "module": "./dist-esm/src/index.js",
21
29
  "types": "./types/arm-timeseriesinsights.d.ts",
22
30
  "devDependencies": {
23
- "@microsoft/api-extractor": "^7.18.11",
24
- "@rollup/plugin-commonjs": "11.0.2",
25
- "@rollup/plugin-json": "^4.0.0",
26
- "@rollup/plugin-multi-entry": "^3.0.0",
27
- "@rollup/plugin-node-resolve": "^8.0.0",
31
+ "@microsoft/api-extractor": "7.18.11",
32
+ "@rollup/plugin-commonjs": "^21.0.1",
33
+ "@rollup/plugin-json": "^4.1.0",
34
+ "@rollup/plugin-multi-entry": "^4.1.0",
35
+ "@rollup/plugin-node-resolve": "^13.1.3",
28
36
  "mkdirp": "^1.0.4",
29
- "rollup": "^1.16.3",
30
- "rollup-plugin-sourcemaps": "^0.4.2",
37
+ "rollup": "^2.66.1",
38
+ "rollup-plugin-sourcemaps": "^0.6.3",
31
39
  "typescript": "~4.2.0",
32
40
  "uglify-js": "^3.4.9",
33
41
  "rimraf": "^3.0.0",
@@ -41,7 +49,9 @@
41
49
  "type": "git",
42
50
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
43
51
  },
44
- "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
52
+ "bugs": {
53
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
54
+ },
45
55
  "files": [
46
56
  "dist/**/*.js",
47
57
  "dist/**/*.js.map",
@@ -90,8 +100,19 @@
90
100
  "sideEffects": false,
91
101
  "//metadata": {
92
102
  "constantPaths": [
93
- { "path": "src/TimeSeriesInsightsClient.ts", "prefix": "packageDetails" }
103
+ {
104
+ "path": "src/timeSeriesInsightsClient.ts",
105
+ "prefix": "packageDetails"
106
+ }
94
107
  ]
95
108
  },
96
- "autoPublish": true
109
+ "autoPublish": true,
110
+ "//sampleConfiguration": {
111
+ "productName": "",
112
+ "productSlugs": [
113
+ "azure"
114
+ ],
115
+ "disableDocsMs": true,
116
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-timeseriesinsights?view=azure-node-preview"
117
+ }
97
118
  }
@@ -423,6 +423,8 @@ export type Gen2EnvironmentCreateOrUpdateParameters = EnvironmentCreateOrUpdateP
423
423
  timeSeriesIdProperties: TimeSeriesIdProperty[];
424
424
  storageConfiguration: Gen2StorageConfigurationInput;
425
425
  warmStoreConfiguration?: WarmStoreConfigurationProperties;
426
+ publicNetworkAccess?: PublicNetworkAccess;
427
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
426
428
  };
427
429
 
428
430
  // @public
@@ -435,6 +437,8 @@ export type Gen2EnvironmentResource = EnvironmentResource & {
435
437
  timeSeriesIdProperties: TimeSeriesIdProperty[];
436
438
  storageConfiguration: Gen2StorageConfigurationOutput;
437
439
  warmStoreConfiguration?: WarmStoreConfigurationProperties;
440
+ publicNetworkAccess?: PublicNetworkAccess;
441
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
438
442
  };
439
443
 
440
444
  // @public
@@ -442,6 +446,8 @@ export type Gen2EnvironmentResourceProperties = EnvironmentResourceProperties &
442
446
  timeSeriesIdProperties: TimeSeriesIdProperty[];
443
447
  storageConfiguration: Gen2StorageConfigurationOutput;
444
448
  warmStoreConfiguration?: WarmStoreConfigurationProperties;
449
+ publicNetworkAccess?: PublicNetworkAccess;
450
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
445
451
  };
446
452
 
447
453
  // @public
@@ -613,6 +619,28 @@ export enum KnownLocalTimestampFormat {
613
619
  Embedded = "Embedded"
614
620
  }
615
621
 
622
+ // @public
623
+ export enum KnownPrivateEndpointConnectionProvisioningState {
624
+ // (undocumented)
625
+ Creating = "Creating",
626
+ // (undocumented)
627
+ Deleting = "Deleting",
628
+ // (undocumented)
629
+ Failed = "Failed",
630
+ // (undocumented)
631
+ Succeeded = "Succeeded"
632
+ }
633
+
634
+ // @public
635
+ export enum KnownPrivateEndpointServiceConnectionStatus {
636
+ // (undocumented)
637
+ Approved = "Approved",
638
+ // (undocumented)
639
+ Pending = "Pending",
640
+ // (undocumented)
641
+ Rejected = "Rejected"
642
+ }
643
+
616
644
  // @public
617
645
  export enum KnownPropertyType {
618
646
  // (undocumented)
@@ -635,6 +663,14 @@ export enum KnownProvisioningState {
635
663
  Updating = "Updating"
636
664
  }
637
665
 
666
+ // @public
667
+ export enum KnownPublicNetworkAccess {
668
+ // (undocumented)
669
+ Disabled = "disabled",
670
+ // (undocumented)
671
+ Enabled = "enabled"
672
+ }
673
+
638
674
  // @public
639
675
  export enum KnownReferenceDataKeyPropertyType {
640
676
  // (undocumented)
@@ -759,12 +795,103 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
759
795
  // @public
760
796
  export type OperationsListResponse = OperationListResult;
761
797
 
798
+ // @public
799
+ export interface PrivateEndpoint {
800
+ readonly id?: string;
801
+ }
802
+
803
+ // @public
804
+ export type PrivateEndpointConnection = Resource & {
805
+ readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
806
+ privateEndpoint?: PrivateEndpoint;
807
+ groupIds?: string[];
808
+ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
809
+ };
810
+
811
+ // @public
812
+ export interface PrivateEndpointConnectionListResult {
813
+ value?: PrivateEndpointConnection[];
814
+ }
815
+
816
+ // @public
817
+ export type PrivateEndpointConnectionProvisioningState = string;
818
+
819
+ // @public
820
+ export interface PrivateEndpointConnections {
821
+ createOrUpdate(resourceGroupName: string, environmentName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
822
+ delete(resourceGroupName: string, environmentName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
823
+ get(resourceGroupName: string, environmentName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
824
+ listByEnvironment(resourceGroupName: string, environmentName: string, options?: PrivateEndpointConnectionsListByEnvironmentOptionalParams): Promise<PrivateEndpointConnectionsListByEnvironmentResponse>;
825
+ }
826
+
827
+ // @public
828
+ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
829
+ }
830
+
831
+ // @public
832
+ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;
833
+
834
+ // @public
835
+ export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
836
+ }
837
+
838
+ // @public
839
+ export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
840
+ }
841
+
842
+ // @public
843
+ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
844
+
845
+ // @public
846
+ export interface PrivateEndpointConnectionsListByEnvironmentOptionalParams extends coreClient.OperationOptions {
847
+ }
848
+
849
+ // @public
850
+ export type PrivateEndpointConnectionsListByEnvironmentResponse = PrivateEndpointConnectionListResult;
851
+
852
+ // @public
853
+ export type PrivateEndpointServiceConnectionStatus = string;
854
+
855
+ // @public
856
+ export type PrivateLinkResource = Resource & {
857
+ readonly groupId?: string;
858
+ readonly requiredMembers?: string[];
859
+ requiredZoneNames?: string[];
860
+ };
861
+
862
+ // @public
863
+ export interface PrivateLinkResourceListResult {
864
+ value?: PrivateLinkResource[];
865
+ }
866
+
867
+ // @public
868
+ export interface PrivateLinkResources {
869
+ listSupported(resourceGroupName: string, environmentName: string, options?: PrivateLinkResourcesListSupportedOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
870
+ }
871
+
872
+ // @public
873
+ export interface PrivateLinkResourcesListSupportedOptionalParams extends coreClient.OperationOptions {
874
+ }
875
+
876
+ // @public
877
+ export type PrivateLinkResourcesListSupportedResponse = PrivateLinkResourceListResult;
878
+
879
+ // @public
880
+ export interface PrivateLinkServiceConnectionState {
881
+ actionsRequired?: string;
882
+ description?: string;
883
+ status?: PrivateEndpointServiceConnectionStatus;
884
+ }
885
+
762
886
  // @public
763
887
  export type PropertyType = string;
764
888
 
765
889
  // @public
766
890
  export type ProvisioningState = string;
767
891
 
892
+ // @public
893
+ export type PublicNetworkAccess = string;
894
+
768
895
  // @public
769
896
  export type ReferenceDataKeyPropertyType = string;
770
897
 
@@ -903,6 +1030,10 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
903
1030
  // (undocumented)
904
1031
  operations: Operations;
905
1032
  // (undocumented)
1033
+ privateEndpointConnections: PrivateEndpointConnections;
1034
+ // (undocumented)
1035
+ privateLinkResources: PrivateLinkResources;
1036
+ // (undocumented)
906
1037
  referenceDataSets: ReferenceDataSets;
907
1038
  // (undocumented)
908
1039
  subscriptionId: string;
package/rollup.config.js CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
14
14
 
15
15
  import nodeBuiltins from "builtin-modules";
16
16
 
17
- /**
18
- * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
- *
20
- * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
- * __exportStar downleveled helper function to declare its exports which confuses
22
- * rollup's automatic discovery mechanism.
23
- *
24
- * @returns an object reference that can be `...`'d into your cjs() configuration.
25
- */
26
- export function openTelemetryCommonJs() {
27
- const namedExports = {};
28
-
29
- for (const key of [
30
- "@opentelemetry/api",
31
- "@azure/core-tracing/node_modules/@opentelemetry/api"
32
- ]) {
33
- namedExports[key] = [
34
- "SpanKind",
35
- "TraceFlags",
36
- "getSpan",
37
- "setSpan",
38
- "SpanStatusCode",
39
- "getSpanContext",
40
- "setSpanContext"
41
- ];
42
- }
43
-
44
- const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
-
46
- for (const version of releasedOpenTelemetryVersions) {
47
- namedExports[
48
- // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
- `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
- ] = [
51
- "SpanKind",
52
- "TraceFlags",
53
- "getSpan",
54
- "setSpan",
55
- "StatusCode",
56
- "CanonicalCode",
57
- "getSpanContext",
58
- "setSpanContext"
59
- ];
60
- }
61
-
62
- return namedExports;
63
- }
64
-
65
17
  // #region Warning Handler
66
18
 
67
19
  /**
68
- * A function that can determine whether a rollupwarning should be ignored. If
20
+ * A function that can determine whether a rollup warning should be ignored. If
69
21
  * the function returns `true`, then the warning will not be displayed.
70
22
  */
71
23
 
72
- function ignoreNiseSinonEvalWarnings(warning) {
24
+ function ignoreNiseSinonEval(warning) {
73
25
  return (
74
26
  warning.code === "EVAL" &&
75
27
  warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
78
30
  );
79
31
  }
80
32
 
81
- function ignoreChaiCircularDependencyWarnings(warning) {
33
+ function ignoreChaiCircularDependency(warning) {
82
34
  return (
83
35
  warning.code === "CIRCULAR_DEPENDENCY" &&
84
36
  warning.importer && warning.importer.includes("node_modules/chai") === true
85
37
  );
86
38
  }
87
39
 
88
- const warningInhibitors = [
89
- ignoreChaiCircularDependencyWarnings,
90
- ignoreNiseSinonEvalWarnings
91
- ];
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
92
41
 
93
42
  /**
94
43
  * Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
122
71
  nodeResolve({
123
72
  mainFields: ["module", "browser"]
124
73
  }),
125
- cjs({
126
- namedExports: {
127
- // Chai's strange internal architecture makes it impossible to statically
128
- // analyze its exports.
129
- chai: [
130
- "version",
131
- "use",
132
- "util",
133
- "config",
134
- "expect",
135
- "should",
136
- "assert"
137
- ],
138
- ...openTelemetryCommonJs()
139
- }
140
- }),
74
+ cjs(),
141
75
  json(),
142
76
  sourcemaps()
143
77
  //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173
107
  ],
174
108
  output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
109
  preserveSymlinks: false,
176
- plugins: [sourcemaps(), nodeResolve(), cjs()]
110
+ plugins: [sourcemaps(), nodeResolve()]
177
111
  };
178
112
 
179
113
  const config = [baseConfig];