@azure/arm-timeseriesinsights 2.0.0-alpha.20220413.1 → 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 +20 -12
  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
package/dist/index.js CHANGED
@@ -3,9 +3,31 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
+
9
31
  /*
10
32
  * Copyright (c) Microsoft Corporation.
11
33
  * Licensed under the MIT License.
@@ -13,41 +35,59 @@ var coreLro = require('@azure/core-lro');
13
35
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
36
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
37
  */
38
+ /** Known values of {@link EnvironmentKind} that the service accepts. */
39
+ exports.KnownEnvironmentKind = void 0;
16
40
  (function (KnownEnvironmentKind) {
17
41
  KnownEnvironmentKind["Gen1"] = "Gen1";
18
42
  KnownEnvironmentKind["Gen2"] = "Gen2";
19
43
  })(exports.KnownEnvironmentKind || (exports.KnownEnvironmentKind = {}));
44
+ /** Known values of {@link SkuName} that the service accepts. */
45
+ exports.KnownSkuName = void 0;
20
46
  (function (KnownSkuName) {
21
47
  KnownSkuName["S1"] = "S1";
22
48
  KnownSkuName["S2"] = "S2";
23
49
  KnownSkuName["P1"] = "P1";
24
50
  KnownSkuName["L1"] = "L1";
25
51
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
52
+ /** Known values of {@link EnvironmentResourceKind} that the service accepts. */
53
+ exports.KnownEnvironmentResourceKind = void 0;
26
54
  (function (KnownEnvironmentResourceKind) {
27
55
  KnownEnvironmentResourceKind["Gen1"] = "Gen1";
28
56
  KnownEnvironmentResourceKind["Gen2"] = "Gen2";
29
57
  })(exports.KnownEnvironmentResourceKind || (exports.KnownEnvironmentResourceKind = {}));
58
+ /** Known values of {@link EventSourceKind} that the service accepts. */
59
+ exports.KnownEventSourceKind = void 0;
30
60
  (function (KnownEventSourceKind) {
31
61
  KnownEventSourceKind["MicrosoftEventHub"] = "Microsoft.EventHub";
32
62
  KnownEventSourceKind["MicrosoftIoTHub"] = "Microsoft.IoTHub";
33
63
  })(exports.KnownEventSourceKind || (exports.KnownEventSourceKind = {}));
64
+ /** Known values of {@link LocalTimestampFormat} that the service accepts. */
65
+ exports.KnownLocalTimestampFormat = void 0;
34
66
  (function (KnownLocalTimestampFormat) {
35
67
  KnownLocalTimestampFormat["Embedded"] = "Embedded";
36
68
  })(exports.KnownLocalTimestampFormat || (exports.KnownLocalTimestampFormat = {}));
69
+ /** Known values of {@link EventSourceResourceKind} that the service accepts. */
70
+ exports.KnownEventSourceResourceKind = void 0;
37
71
  (function (KnownEventSourceResourceKind) {
38
72
  KnownEventSourceResourceKind["MicrosoftEventHub"] = "Microsoft.EventHub";
39
73
  KnownEventSourceResourceKind["MicrosoftIoTHub"] = "Microsoft.IoTHub";
40
74
  })(exports.KnownEventSourceResourceKind || (exports.KnownEventSourceResourceKind = {}));
75
+ /** Known values of {@link ReferenceDataKeyPropertyType} that the service accepts. */
76
+ exports.KnownReferenceDataKeyPropertyType = void 0;
41
77
  (function (KnownReferenceDataKeyPropertyType) {
42
78
  KnownReferenceDataKeyPropertyType["String"] = "String";
43
79
  KnownReferenceDataKeyPropertyType["Double"] = "Double";
44
80
  KnownReferenceDataKeyPropertyType["Bool"] = "Bool";
45
81
  KnownReferenceDataKeyPropertyType["DateTime"] = "DateTime";
46
82
  })(exports.KnownReferenceDataKeyPropertyType || (exports.KnownReferenceDataKeyPropertyType = {}));
83
+ /** Known values of {@link DataStringComparisonBehavior} that the service accepts. */
84
+ exports.KnownDataStringComparisonBehavior = void 0;
47
85
  (function (KnownDataStringComparisonBehavior) {
48
86
  KnownDataStringComparisonBehavior["Ordinal"] = "Ordinal";
49
87
  KnownDataStringComparisonBehavior["OrdinalIgnoreCase"] = "OrdinalIgnoreCase";
50
88
  })(exports.KnownDataStringComparisonBehavior || (exports.KnownDataStringComparisonBehavior = {}));
89
+ /** Known values of {@link ProvisioningState} that the service accepts. */
90
+ exports.KnownProvisioningState = void 0;
51
91
  (function (KnownProvisioningState) {
52
92
  KnownProvisioningState["Accepted"] = "Accepted";
53
93
  KnownProvisioningState["Creating"] = "Creating";
@@ -56,17 +96,46 @@ var coreLro = require('@azure/core-lro');
56
96
  KnownProvisioningState["Failed"] = "Failed";
57
97
  KnownProvisioningState["Deleting"] = "Deleting";
58
98
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
99
+ /** Known values of {@link AccessPolicyRole} that the service accepts. */
100
+ exports.KnownAccessPolicyRole = void 0;
59
101
  (function (KnownAccessPolicyRole) {
60
102
  KnownAccessPolicyRole["Reader"] = "Reader";
61
103
  KnownAccessPolicyRole["Contributor"] = "Contributor";
62
104
  })(exports.KnownAccessPolicyRole || (exports.KnownAccessPolicyRole = {}));
105
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
106
+ exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
107
+ (function (KnownPrivateEndpointConnectionProvisioningState) {
108
+ KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
109
+ KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
110
+ KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
111
+ KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
112
+ })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
113
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
114
+ exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
115
+ (function (KnownPrivateEndpointServiceConnectionStatus) {
116
+ KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
117
+ KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
118
+ KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
119
+ })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
120
+ /** Known values of {@link StorageLimitExceededBehavior} that the service accepts. */
121
+ exports.KnownStorageLimitExceededBehavior = void 0;
63
122
  (function (KnownStorageLimitExceededBehavior) {
64
123
  KnownStorageLimitExceededBehavior["PurgeOldData"] = "PurgeOldData";
65
124
  KnownStorageLimitExceededBehavior["PauseIngress"] = "PauseIngress";
66
125
  })(exports.KnownStorageLimitExceededBehavior || (exports.KnownStorageLimitExceededBehavior = {}));
126
+ /** Known values of {@link PropertyType} that the service accepts. */
127
+ exports.KnownPropertyType = void 0;
67
128
  (function (KnownPropertyType) {
68
129
  KnownPropertyType["String"] = "String";
69
130
  })(exports.KnownPropertyType || (exports.KnownPropertyType = {}));
131
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
132
+ exports.KnownPublicNetworkAccess = void 0;
133
+ (function (KnownPublicNetworkAccess) {
134
+ KnownPublicNetworkAccess["Enabled"] = "enabled";
135
+ KnownPublicNetworkAccess["Disabled"] = "disabled";
136
+ })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
137
+ /** Known values of {@link IngressState} that the service accepts. */
138
+ exports.KnownIngressState = void 0;
70
139
  (function (KnownIngressState) {
71
140
  KnownIngressState["Disabled"] = "Disabled";
72
141
  KnownIngressState["Ready"] = "Ready";
@@ -74,11 +143,15 @@ var coreLro = require('@azure/core-lro');
74
143
  KnownIngressState["Paused"] = "Paused";
75
144
  KnownIngressState["Unknown"] = "Unknown";
76
145
  })(exports.KnownIngressState || (exports.KnownIngressState = {}));
146
+ /** Known values of {@link WarmStoragePropertiesState} that the service accepts. */
147
+ exports.KnownWarmStoragePropertiesState = void 0;
77
148
  (function (KnownWarmStoragePropertiesState) {
78
149
  KnownWarmStoragePropertiesState["Ok"] = "Ok";
79
150
  KnownWarmStoragePropertiesState["Error"] = "Error";
80
151
  KnownWarmStoragePropertiesState["Unknown"] = "Unknown";
81
152
  })(exports.KnownWarmStoragePropertiesState || (exports.KnownWarmStoragePropertiesState = {}));
153
+ /** Known values of {@link IngressStartAtType} that the service accepts. */
154
+ exports.KnownIngressStartAtType = void 0;
82
155
  (function (KnownIngressStartAtType) {
83
156
  KnownIngressStartAtType["EarliestAvailable"] = "EarliestAvailable";
84
157
  KnownIngressStartAtType["EventSourceCreationTime"] = "EventSourceCreationTime";
@@ -796,6 +869,87 @@ const AccessPolicyListResponse = {
796
869
  }
797
870
  }
798
871
  };
872
+ const PrivateEndpoint = {
873
+ type: {
874
+ name: "Composite",
875
+ className: "PrivateEndpoint",
876
+ modelProperties: {
877
+ id: {
878
+ serializedName: "id",
879
+ readOnly: true,
880
+ type: {
881
+ name: "String"
882
+ }
883
+ }
884
+ }
885
+ }
886
+ };
887
+ const PrivateLinkServiceConnectionState = {
888
+ type: {
889
+ name: "Composite",
890
+ className: "PrivateLinkServiceConnectionState",
891
+ modelProperties: {
892
+ status: {
893
+ serializedName: "status",
894
+ type: {
895
+ name: "String"
896
+ }
897
+ },
898
+ description: {
899
+ serializedName: "description",
900
+ type: {
901
+ name: "String"
902
+ }
903
+ },
904
+ actionsRequired: {
905
+ serializedName: "actionsRequired",
906
+ type: {
907
+ name: "String"
908
+ }
909
+ }
910
+ }
911
+ }
912
+ };
913
+ const PrivateEndpointConnectionListResult = {
914
+ type: {
915
+ name: "Composite",
916
+ className: "PrivateEndpointConnectionListResult",
917
+ modelProperties: {
918
+ value: {
919
+ serializedName: "value",
920
+ type: {
921
+ name: "Sequence",
922
+ element: {
923
+ type: {
924
+ name: "Composite",
925
+ className: "PrivateEndpointConnection"
926
+ }
927
+ }
928
+ }
929
+ }
930
+ }
931
+ }
932
+ };
933
+ const PrivateLinkResourceListResult = {
934
+ type: {
935
+ name: "Composite",
936
+ className: "PrivateLinkResourceListResult",
937
+ modelProperties: {
938
+ value: {
939
+ serializedName: "value",
940
+ type: {
941
+ name: "Sequence",
942
+ element: {
943
+ type: {
944
+ name: "Composite",
945
+ className: "PrivateLinkResource"
946
+ }
947
+ }
948
+ }
949
+ }
950
+ }
951
+ }
952
+ };
799
953
  const WarmStoreConfigurationProperties = {
800
954
  type: {
801
955
  name: "Composite",
@@ -1147,6 +1301,75 @@ const AccessPolicyResource = {
1147
1301
  } })
1148
1302
  }
1149
1303
  };
1304
+ const PrivateEndpointConnection = {
1305
+ type: {
1306
+ name: "Composite",
1307
+ className: "PrivateEndpointConnection",
1308
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { provisioningState: {
1309
+ serializedName: "properties.provisioningState",
1310
+ readOnly: true,
1311
+ type: {
1312
+ name: "String"
1313
+ }
1314
+ }, privateEndpoint: {
1315
+ serializedName: "properties.privateEndpoint",
1316
+ type: {
1317
+ name: "Composite",
1318
+ className: "PrivateEndpoint"
1319
+ }
1320
+ }, groupIds: {
1321
+ serializedName: "properties.groupIds",
1322
+ type: {
1323
+ name: "Sequence",
1324
+ element: {
1325
+ type: {
1326
+ name: "String"
1327
+ }
1328
+ }
1329
+ }
1330
+ }, privateLinkServiceConnectionState: {
1331
+ serializedName: "properties.privateLinkServiceConnectionState",
1332
+ type: {
1333
+ name: "Composite",
1334
+ className: "PrivateLinkServiceConnectionState"
1335
+ }
1336
+ } })
1337
+ }
1338
+ };
1339
+ const PrivateLinkResource = {
1340
+ type: {
1341
+ name: "Composite",
1342
+ className: "PrivateLinkResource",
1343
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
1344
+ serializedName: "properties.groupId",
1345
+ readOnly: true,
1346
+ type: {
1347
+ name: "String"
1348
+ }
1349
+ }, requiredMembers: {
1350
+ serializedName: "properties.requiredMembers",
1351
+ readOnly: true,
1352
+ type: {
1353
+ name: "Sequence",
1354
+ element: {
1355
+ type: {
1356
+ name: "String"
1357
+ }
1358
+ }
1359
+ }
1360
+ }, requiredZoneNames: {
1361
+ serializedName: "properties.requiredZoneNames",
1362
+ type: {
1363
+ name: "Sequence",
1364
+ element: {
1365
+ type: {
1366
+ name: "String"
1367
+ }
1368
+ }
1369
+ }
1370
+ } })
1371
+ }
1372
+ };
1150
1373
  const Gen1EnvironmentUpdateParameters = {
1151
1374
  serializedName: "Gen1",
1152
1375
  type: {
@@ -1389,6 +1612,23 @@ const Gen2EnvironmentCreateOrUpdateParameters = {
1389
1612
  name: "Composite",
1390
1613
  className: "WarmStoreConfigurationProperties"
1391
1614
  }
1615
+ }, publicNetworkAccess: {
1616
+ serializedName: "properties.publicNetworkAccess",
1617
+ type: {
1618
+ name: "String"
1619
+ }
1620
+ }, privateEndpointConnections: {
1621
+ serializedName: "properties.privateEndpointConnections",
1622
+ readOnly: true,
1623
+ type: {
1624
+ name: "Sequence",
1625
+ element: {
1626
+ type: {
1627
+ name: "Composite",
1628
+ className: "PrivateEndpointConnection"
1629
+ }
1630
+ }
1631
+ }
1392
1632
  } })
1393
1633
  }
1394
1634
  };
@@ -1651,6 +1891,23 @@ const Gen2EnvironmentResourceProperties = {
1651
1891
  name: "Composite",
1652
1892
  className: "WarmStoreConfigurationProperties"
1653
1893
  }
1894
+ }, publicNetworkAccess: {
1895
+ serializedName: "publicNetworkAccess",
1896
+ type: {
1897
+ name: "String"
1898
+ }
1899
+ }, privateEndpointConnections: {
1900
+ serializedName: "privateEndpointConnections",
1901
+ readOnly: true,
1902
+ type: {
1903
+ name: "Sequence",
1904
+ element: {
1905
+ type: {
1906
+ name: "Composite",
1907
+ className: "PrivateEndpointConnection"
1908
+ }
1909
+ }
1910
+ }
1654
1911
  } })
1655
1912
  }
1656
1913
  };
@@ -1790,6 +2047,23 @@ const Gen2EnvironmentResource = {
1790
2047
  name: "Composite",
1791
2048
  className: "WarmStoreConfigurationProperties"
1792
2049
  }
2050
+ }, publicNetworkAccess: {
2051
+ serializedName: "properties.publicNetworkAccess",
2052
+ type: {
2053
+ name: "String"
2054
+ }
2055
+ }, privateEndpointConnections: {
2056
+ serializedName: "properties.privateEndpointConnections",
2057
+ readOnly: true,
2058
+ type: {
2059
+ name: "Sequence",
2060
+ element: {
2061
+ type: {
2062
+ name: "Composite",
2063
+ className: "PrivateEndpointConnection"
2064
+ }
2065
+ }
2066
+ }
1793
2067
  } })
1794
2068
  }
1795
2069
  };
@@ -2079,6 +2353,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
2079
2353
  AccessPolicyCreateOrUpdateParameters: AccessPolicyCreateOrUpdateParameters,
2080
2354
  AccessPolicyUpdateParameters: AccessPolicyUpdateParameters,
2081
2355
  AccessPolicyListResponse: AccessPolicyListResponse,
2356
+ PrivateEndpoint: PrivateEndpoint,
2357
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2358
+ PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
2359
+ PrivateLinkResourceListResult: PrivateLinkResourceListResult,
2082
2360
  WarmStoreConfigurationProperties: WarmStoreConfigurationProperties,
2083
2361
  Gen2StorageConfigurationInput: Gen2StorageConfigurationInput,
2084
2362
  Gen2StorageConfigurationOutput: Gen2StorageConfigurationOutput,
@@ -2095,6 +2373,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
2095
2373
  ReferenceDataSetCreateOrUpdateParameters: ReferenceDataSetCreateOrUpdateParameters,
2096
2374
  TrackedResource: TrackedResource,
2097
2375
  AccessPolicyResource: AccessPolicyResource,
2376
+ PrivateEndpointConnection: PrivateEndpointConnection,
2377
+ PrivateLinkResource: PrivateLinkResource,
2098
2378
  Gen1EnvironmentUpdateParameters: Gen1EnvironmentUpdateParameters,
2099
2379
  Gen2EnvironmentUpdateParameters: Gen2EnvironmentUpdateParameters,
2100
2380
  EventHubEventSourceUpdateParameters: EventHubEventSourceUpdateParameters,
@@ -2159,7 +2439,7 @@ const $host = {
2159
2439
  const apiVersion = {
2160
2440
  parameterPath: "apiVersion",
2161
2441
  mapper: {
2162
- defaultValue: "2020-05-15",
2442
+ defaultValue: "2021-03-31-preview",
2163
2443
  isConstant: true,
2164
2444
  serializedName: "api-version",
2165
2445
  type: {
@@ -2350,6 +2630,20 @@ const accessPolicyUpdateParameters = {
2350
2630
  parameterPath: "accessPolicyUpdateParameters",
2351
2631
  mapper: AccessPolicyUpdateParameters
2352
2632
  };
2633
+ const privateEndpointConnection = {
2634
+ parameterPath: "privateEndpointConnection",
2635
+ mapper: PrivateEndpointConnection
2636
+ };
2637
+ const privateEndpointConnectionName = {
2638
+ parameterPath: "privateEndpointConnectionName",
2639
+ mapper: {
2640
+ serializedName: "privateEndpointConnectionName",
2641
+ required: true,
2642
+ type: {
2643
+ name: "String"
2644
+ }
2645
+ }
2646
+ };
2353
2647
 
2354
2648
  /*
2355
2649
  * Copyright (c) Microsoft Corporation.
@@ -2433,7 +2727,7 @@ class OperationsImpl {
2433
2727
  }
2434
2728
  }
2435
2729
  // Operation Specifications
2436
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2730
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2437
2731
  const listOperationSpec = {
2438
2732
  path: "/providers/Microsoft.TimeSeriesInsights/operations",
2439
2733
  httpMethod: "GET",
@@ -2448,7 +2742,7 @@ const listOperationSpec = {
2448
2742
  queryParameters: [apiVersion],
2449
2743
  urlParameters: [$host],
2450
2744
  headerParameters: [accept],
2451
- serializer
2745
+ serializer: serializer$6
2452
2746
  };
2453
2747
  const listNextOperationSpec = {
2454
2748
  path: "{nextLink}",
@@ -2464,7 +2758,7 @@ const listNextOperationSpec = {
2464
2758
  queryParameters: [apiVersion],
2465
2759
  urlParameters: [$host, nextLink],
2466
2760
  headerParameters: [accept],
2467
- serializer
2761
+ serializer: serializer$6
2468
2762
  };
2469
2763
 
2470
2764
  /*
@@ -2542,11 +2836,13 @@ class EnvironmentsImpl {
2542
2836
  }
2543
2837
  };
2544
2838
  });
2545
- const lro = new LroImpl(sendOperation, { resourceGroupName, environmentName, parameters, options }, createOrUpdateOperationSpec);
2546
- return new coreLro.LroEngine(lro, {
2839
+ const lro = new LroImpl(sendOperation, { resourceGroupName, environmentName, parameters, options }, createOrUpdateOperationSpec$4);
2840
+ const poller = new coreLro.LroEngine(lro, {
2547
2841
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2548
2842
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2549
2843
  });
2844
+ yield poller.poll();
2845
+ return poller;
2550
2846
  });
2551
2847
  }
2552
2848
  /**
@@ -2570,7 +2866,7 @@ class EnvironmentsImpl {
2570
2866
  * @param options The options parameters.
2571
2867
  */
2572
2868
  get(resourceGroupName, environmentName, options) {
2573
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, getOperationSpec);
2869
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, getOperationSpec$4);
2574
2870
  }
2575
2871
  /**
2576
2872
  * Updates the environment with the specified name in the specified subscription and resource group.
@@ -2610,11 +2906,13 @@ class EnvironmentsImpl {
2610
2906
  environmentName,
2611
2907
  environmentUpdateParameters,
2612
2908
  options
2613
- }, updateOperationSpec);
2614
- return new coreLro.LroEngine(lro, {
2909
+ }, updateOperationSpec$3);
2910
+ const poller = new coreLro.LroEngine(lro, {
2615
2911
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2616
2912
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2617
2913
  });
2914
+ yield poller.poll();
2915
+ return poller;
2618
2916
  });
2619
2917
  }
2620
2918
  /**
@@ -2640,7 +2938,7 @@ class EnvironmentsImpl {
2640
2938
  * @param options The options parameters.
2641
2939
  */
2642
2940
  delete(resourceGroupName, environmentName, options) {
2643
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, deleteOperationSpec);
2941
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, deleteOperationSpec$4);
2644
2942
  }
2645
2943
  /**
2646
2944
  * Lists all the available environments associated with the subscription and within the specified
@@ -2660,8 +2958,8 @@ class EnvironmentsImpl {
2660
2958
  }
2661
2959
  }
2662
2960
  // Operation Specifications
2663
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
2664
- const createOrUpdateOperationSpec = {
2961
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2962
+ const createOrUpdateOperationSpec$4 = {
2665
2963
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2666
2964
  httpMethod: "PUT",
2667
2965
  responses: {
@@ -2691,9 +2989,9 @@ const createOrUpdateOperationSpec = {
2691
2989
  ],
2692
2990
  headerParameters: [accept, contentType],
2693
2991
  mediaType: "json",
2694
- serializer: serializer$1
2992
+ serializer: serializer$5
2695
2993
  };
2696
- const getOperationSpec = {
2994
+ const getOperationSpec$4 = {
2697
2995
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2698
2996
  httpMethod: "GET",
2699
2997
  responses: {
@@ -2712,9 +3010,9 @@ const getOperationSpec = {
2712
3010
  environmentName1
2713
3011
  ],
2714
3012
  headerParameters: [accept],
2715
- serializer: serializer$1
3013
+ serializer: serializer$5
2716
3014
  };
2717
- const updateOperationSpec = {
3015
+ const updateOperationSpec$3 = {
2718
3016
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2719
3017
  httpMethod: "PATCH",
2720
3018
  responses: {
@@ -2744,9 +3042,9 @@ const updateOperationSpec = {
2744
3042
  ],
2745
3043
  headerParameters: [accept, contentType],
2746
3044
  mediaType: "json",
2747
- serializer: serializer$1
3045
+ serializer: serializer$5
2748
3046
  };
2749
- const deleteOperationSpec = {
3047
+ const deleteOperationSpec$4 = {
2750
3048
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2751
3049
  httpMethod: "DELETE",
2752
3050
  responses: {
@@ -2764,7 +3062,7 @@ const deleteOperationSpec = {
2764
3062
  environmentName1
2765
3063
  ],
2766
3064
  headerParameters: [accept],
2767
- serializer: serializer$1
3065
+ serializer: serializer$5
2768
3066
  };
2769
3067
  const listByResourceGroupOperationSpec = {
2770
3068
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments",
@@ -2784,7 +3082,7 @@ const listByResourceGroupOperationSpec = {
2784
3082
  resourceGroupName
2785
3083
  ],
2786
3084
  headerParameters: [accept],
2787
- serializer: serializer$1
3085
+ serializer: serializer$5
2788
3086
  };
2789
3087
  const listBySubscriptionOperationSpec = {
2790
3088
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.TimeSeriesInsights/environments",
@@ -2800,7 +3098,7 @@ const listBySubscriptionOperationSpec = {
2800
3098
  queryParameters: [apiVersion],
2801
3099
  urlParameters: [$host, subscriptionId],
2802
3100
  headerParameters: [accept],
2803
- serializer: serializer$1
3101
+ serializer: serializer$5
2804
3102
  };
2805
3103
 
2806
3104
  /*
@@ -2835,7 +3133,7 @@ class EventSourcesImpl {
2835
3133
  eventSourceName,
2836
3134
  parameters,
2837
3135
  options
2838
- }, createOrUpdateOperationSpec$1);
3136
+ }, createOrUpdateOperationSpec$3);
2839
3137
  }
2840
3138
  /**
2841
3139
  * Gets the event source with the specified name in the specified environment.
@@ -2847,7 +3145,7 @@ class EventSourcesImpl {
2847
3145
  * @param options The options parameters.
2848
3146
  */
2849
3147
  get(resourceGroupName, environmentName, eventSourceName, options) {
2850
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, eventSourceName, options }, getOperationSpec$1);
3148
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, eventSourceName, options }, getOperationSpec$3);
2851
3149
  }
2852
3150
  /**
2853
3151
  * Updates the event source with the specified name in the specified subscription, resource group, and
@@ -2868,7 +3166,7 @@ class EventSourcesImpl {
2868
3166
  eventSourceName,
2869
3167
  eventSourceUpdateParameters,
2870
3168
  options
2871
- }, updateOperationSpec$1);
3169
+ }, updateOperationSpec$2);
2872
3170
  }
2873
3171
  /**
2874
3172
  * Deletes the event source with the specified name in the specified subscription, resource group, and
@@ -2881,7 +3179,7 @@ class EventSourcesImpl {
2881
3179
  * @param options The options parameters.
2882
3180
  */
2883
3181
  delete(resourceGroupName, environmentName, eventSourceName, options) {
2884
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, eventSourceName, options }, deleteOperationSpec$1);
3182
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, eventSourceName, options }, deleteOperationSpec$3);
2885
3183
  }
2886
3184
  /**
2887
3185
  * Lists all the available event sources associated with the subscription and within the specified
@@ -2892,12 +3190,12 @@ class EventSourcesImpl {
2892
3190
  * @param options The options parameters.
2893
3191
  */
2894
3192
  listByEnvironment(resourceGroupName, environmentName, options) {
2895
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec);
3193
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$3);
2896
3194
  }
2897
3195
  }
2898
3196
  // Operation Specifications
2899
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
2900
- const createOrUpdateOperationSpec$1 = {
3197
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3198
+ const createOrUpdateOperationSpec$3 = {
2901
3199
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2902
3200
  httpMethod: "PUT",
2903
3201
  responses: {
@@ -2922,9 +3220,9 @@ const createOrUpdateOperationSpec$1 = {
2922
3220
  ],
2923
3221
  headerParameters: [accept, contentType],
2924
3222
  mediaType: "json",
2925
- serializer: serializer$2
3223
+ serializer: serializer$4
2926
3224
  };
2927
- const getOperationSpec$1 = {
3225
+ const getOperationSpec$3 = {
2928
3226
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2929
3227
  httpMethod: "GET",
2930
3228
  responses: {
@@ -2944,9 +3242,9 @@ const getOperationSpec$1 = {
2944
3242
  eventSourceName1
2945
3243
  ],
2946
3244
  headerParameters: [accept],
2947
- serializer: serializer$2
3245
+ serializer: serializer$4
2948
3246
  };
2949
- const updateOperationSpec$1 = {
3247
+ const updateOperationSpec$2 = {
2950
3248
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2951
3249
  httpMethod: "PATCH",
2952
3250
  responses: {
@@ -2968,9 +3266,9 @@ const updateOperationSpec$1 = {
2968
3266
  ],
2969
3267
  headerParameters: [accept, contentType],
2970
3268
  mediaType: "json",
2971
- serializer: serializer$2
3269
+ serializer: serializer$4
2972
3270
  };
2973
- const deleteOperationSpec$1 = {
3271
+ const deleteOperationSpec$3 = {
2974
3272
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2975
3273
  httpMethod: "DELETE",
2976
3274
  responses: {
@@ -2989,9 +3287,9 @@ const deleteOperationSpec$1 = {
2989
3287
  eventSourceName1
2990
3288
  ],
2991
3289
  headerParameters: [accept],
2992
- serializer: serializer$2
3290
+ serializer: serializer$4
2993
3291
  };
2994
- const listByEnvironmentOperationSpec = {
3292
+ const listByEnvironmentOperationSpec$3 = {
2995
3293
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources",
2996
3294
  httpMethod: "GET",
2997
3295
  responses: {
@@ -3010,7 +3308,7 @@ const listByEnvironmentOperationSpec = {
3010
3308
  environmentName1
3011
3309
  ],
3012
3310
  headerParameters: [accept],
3013
- serializer: serializer$2
3311
+ serializer: serializer$4
3014
3312
  };
3015
3313
 
3016
3314
  /*
@@ -3078,7 +3376,7 @@ class ReferenceDataSetsImpl {
3078
3376
  referenceDataSetName,
3079
3377
  referenceDataSetUpdateParameters,
3080
3378
  options
3081
- }, updateOperationSpec$2);
3379
+ }, updateOperationSpec$1);
3082
3380
  }
3083
3381
  /**
3084
3382
  * Deletes the reference data set with the specified name in the specified subscription, resource
@@ -3102,11 +3400,11 @@ class ReferenceDataSetsImpl {
3102
3400
  * @param options The options parameters.
3103
3401
  */
3104
3402
  listByEnvironment(resourceGroupName, environmentName, options) {
3105
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$1);
3403
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$2);
3106
3404
  }
3107
3405
  }
3108
3406
  // Operation Specifications
3109
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
3407
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3110
3408
  const createOrUpdateOperationSpec$2 = {
3111
3409
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}",
3112
3410
  httpMethod: "PUT",
@@ -3156,7 +3454,7 @@ const getOperationSpec$2 = {
3156
3454
  headerParameters: [accept],
3157
3455
  serializer: serializer$3
3158
3456
  };
3159
- const updateOperationSpec$2 = {
3457
+ const updateOperationSpec$1 = {
3160
3458
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}",
3161
3459
  httpMethod: "PATCH",
3162
3460
  responses: {
@@ -3201,7 +3499,7 @@ const deleteOperationSpec$2 = {
3201
3499
  headerParameters: [accept],
3202
3500
  serializer: serializer$3
3203
3501
  };
3204
- const listByEnvironmentOperationSpec$1 = {
3502
+ const listByEnvironmentOperationSpec$2 = {
3205
3503
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets",
3206
3504
  httpMethod: "GET",
3207
3505
  responses: {
@@ -3255,7 +3553,7 @@ class AccessPoliciesImpl {
3255
3553
  accessPolicyName,
3256
3554
  parameters,
3257
3555
  options
3258
- }, createOrUpdateOperationSpec$3);
3556
+ }, createOrUpdateOperationSpec$1);
3259
3557
  }
3260
3558
  /**
3261
3559
  * Gets the access policy with the specified name in the specified environment.
@@ -3267,7 +3565,7 @@ class AccessPoliciesImpl {
3267
3565
  * @param options The options parameters.
3268
3566
  */
3269
3567
  get(resourceGroupName, environmentName, accessPolicyName, options) {
3270
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, getOperationSpec$3);
3568
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, getOperationSpec$1);
3271
3569
  }
3272
3570
  /**
3273
3571
  * Updates the access policy with the specified name in the specified subscription, resource group, and
@@ -3288,7 +3586,7 @@ class AccessPoliciesImpl {
3288
3586
  accessPolicyName,
3289
3587
  accessPolicyUpdateParameters,
3290
3588
  options
3291
- }, updateOperationSpec$3);
3589
+ }, updateOperationSpec);
3292
3590
  }
3293
3591
  /**
3294
3592
  * Deletes the access policy with the specified name in the specified subscription, resource group, and
@@ -3301,7 +3599,7 @@ class AccessPoliciesImpl {
3301
3599
  * @param options The options parameters.
3302
3600
  */
3303
3601
  delete(resourceGroupName, environmentName, accessPolicyName, options) {
3304
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, deleteOperationSpec$3);
3602
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, deleteOperationSpec$1);
3305
3603
  }
3306
3604
  /**
3307
3605
  * Lists all the available access policies associated with the environment.
@@ -3311,12 +3609,12 @@ class AccessPoliciesImpl {
3311
3609
  * @param options The options parameters.
3312
3610
  */
3313
3611
  listByEnvironment(resourceGroupName, environmentName, options) {
3314
- return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$2);
3612
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$1);
3315
3613
  }
3316
3614
  }
3317
3615
  // Operation Specifications
3318
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
3319
- const createOrUpdateOperationSpec$3 = {
3616
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3617
+ const createOrUpdateOperationSpec$1 = {
3320
3618
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3321
3619
  httpMethod: "PUT",
3322
3620
  responses: {
@@ -3341,9 +3639,9 @@ const createOrUpdateOperationSpec$3 = {
3341
3639
  ],
3342
3640
  headerParameters: [accept, contentType],
3343
3641
  mediaType: "json",
3344
- serializer: serializer$4
3642
+ serializer: serializer$2
3345
3643
  };
3346
- const getOperationSpec$3 = {
3644
+ const getOperationSpec$1 = {
3347
3645
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3348
3646
  httpMethod: "GET",
3349
3647
  responses: {
@@ -3363,9 +3661,9 @@ const getOperationSpec$3 = {
3363
3661
  accessPolicyName1
3364
3662
  ],
3365
3663
  headerParameters: [accept],
3366
- serializer: serializer$4
3664
+ serializer: serializer$2
3367
3665
  };
3368
- const updateOperationSpec$3 = {
3666
+ const updateOperationSpec = {
3369
3667
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3370
3668
  httpMethod: "PATCH",
3371
3669
  responses: {
@@ -3387,9 +3685,9 @@ const updateOperationSpec$3 = {
3387
3685
  ],
3388
3686
  headerParameters: [accept, contentType],
3389
3687
  mediaType: "json",
3390
- serializer: serializer$4
3688
+ serializer: serializer$2
3391
3689
  };
3392
- const deleteOperationSpec$3 = {
3690
+ const deleteOperationSpec$1 = {
3393
3691
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3394
3692
  httpMethod: "DELETE",
3395
3693
  responses: {
@@ -3408,9 +3706,9 @@ const deleteOperationSpec$3 = {
3408
3706
  accessPolicyName1
3409
3707
  ],
3410
3708
  headerParameters: [accept],
3411
- serializer: serializer$4
3709
+ serializer: serializer$2
3412
3710
  };
3413
- const listByEnvironmentOperationSpec$2 = {
3711
+ const listByEnvironmentOperationSpec$1 = {
3414
3712
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies",
3415
3713
  httpMethod: "GET",
3416
3714
  responses: {
@@ -3429,7 +3727,181 @@ const listByEnvironmentOperationSpec$2 = {
3429
3727
  environmentName1
3430
3728
  ],
3431
3729
  headerParameters: [accept],
3432
- serializer: serializer$4
3730
+ serializer: serializer$2
3731
+ };
3732
+
3733
+ /*
3734
+ * Copyright (c) Microsoft Corporation.
3735
+ * Licensed under the MIT License.
3736
+ *
3737
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3738
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3739
+ */
3740
+ /** Class containing PrivateEndpointConnections operations. */
3741
+ class PrivateEndpointConnectionsImpl {
3742
+ /**
3743
+ * Initialize a new instance of the class PrivateEndpointConnections class.
3744
+ * @param client Reference to the service client
3745
+ */
3746
+ constructor(client) {
3747
+ this.client = client;
3748
+ }
3749
+ /**
3750
+ * Updates a Private Endpoint connection of the environment in the given resource group.
3751
+ * @param resourceGroupName Name of an Azure Resource group.
3752
+ * @param environmentName The name of the Time Series Insights environment associated with the
3753
+ * specified resource group.
3754
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3755
+ * Azure resource
3756
+ * @param privateEndpointConnection The definition of the private endpoint connection to update.
3757
+ * @param options The options parameters.
3758
+ */
3759
+ createOrUpdate(resourceGroupName, environmentName, privateEndpointConnectionName, privateEndpointConnection, options) {
3760
+ return this.client.sendOperationRequest({
3761
+ resourceGroupName,
3762
+ environmentName,
3763
+ privateEndpointConnectionName,
3764
+ privateEndpointConnection,
3765
+ options
3766
+ }, createOrUpdateOperationSpec);
3767
+ }
3768
+ /**
3769
+ * Gets the details of the private endpoint connection of the environment in the given resource group.
3770
+ * @param resourceGroupName Name of an Azure Resource group.
3771
+ * @param environmentName The name of the Time Series Insights environment associated with the
3772
+ * specified resource group.
3773
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3774
+ * Azure resource
3775
+ * @param options The options parameters.
3776
+ */
3777
+ get(resourceGroupName, environmentName, privateEndpointConnectionName, options) {
3778
+ return this.client.sendOperationRequest({
3779
+ resourceGroupName,
3780
+ environmentName,
3781
+ privateEndpointConnectionName,
3782
+ options
3783
+ }, getOperationSpec);
3784
+ }
3785
+ /**
3786
+ * Disconnects the private endpoint connection and deletes it from the environment.
3787
+ * @param resourceGroupName Name of an Azure Resource group.
3788
+ * @param environmentName The name of the Time Series Insights environment associated with the
3789
+ * specified resource group.
3790
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3791
+ * Azure resource
3792
+ * @param options The options parameters.
3793
+ */
3794
+ delete(resourceGroupName, environmentName, privateEndpointConnectionName, options) {
3795
+ return this.client.sendOperationRequest({
3796
+ resourceGroupName,
3797
+ environmentName,
3798
+ privateEndpointConnectionName,
3799
+ options
3800
+ }, deleteOperationSpec);
3801
+ }
3802
+ /**
3803
+ * Gets a list of all private endpoint connections in the given environment.
3804
+ * @param resourceGroupName Name of an Azure Resource group.
3805
+ * @param environmentName The name of the Time Series Insights environment associated with the
3806
+ * specified resource group.
3807
+ * @param options The options parameters.
3808
+ */
3809
+ listByEnvironment(resourceGroupName, environmentName, options) {
3810
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec);
3811
+ }
3812
+ }
3813
+ // Operation Specifications
3814
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3815
+ const createOrUpdateOperationSpec = {
3816
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}",
3817
+ httpMethod: "PUT",
3818
+ responses: {
3819
+ 200: {
3820
+ bodyMapper: PrivateEndpointConnection
3821
+ },
3822
+ default: {
3823
+ bodyMapper: CloudError
3824
+ }
3825
+ },
3826
+ requestBody: privateEndpointConnection,
3827
+ queryParameters: [apiVersion],
3828
+ urlParameters: [
3829
+ $host,
3830
+ subscriptionId,
3831
+ resourceGroupName,
3832
+ environmentName1,
3833
+ privateEndpointConnectionName
3834
+ ],
3835
+ headerParameters: [accept, contentType],
3836
+ mediaType: "json",
3837
+ serializer: serializer$1
3838
+ };
3839
+ const getOperationSpec = {
3840
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}",
3841
+ httpMethod: "GET",
3842
+ responses: {
3843
+ 200: {
3844
+ bodyMapper: PrivateEndpointConnection
3845
+ },
3846
+ default: {
3847
+ bodyMapper: CloudError
3848
+ }
3849
+ },
3850
+ queryParameters: [apiVersion],
3851
+ urlParameters: [
3852
+ $host,
3853
+ subscriptionId,
3854
+ resourceGroupName,
3855
+ environmentName1,
3856
+ privateEndpointConnectionName
3857
+ ],
3858
+ headerParameters: [accept],
3859
+ serializer: serializer$1
3860
+ };
3861
+ const deleteOperationSpec = {
3862
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}",
3863
+ httpMethod: "DELETE",
3864
+ responses: {
3865
+ 200: {},
3866
+ 204: {},
3867
+ 404: {
3868
+ isError: true
3869
+ },
3870
+ default: {
3871
+ bodyMapper: CloudError
3872
+ }
3873
+ },
3874
+ queryParameters: [apiVersion],
3875
+ urlParameters: [
3876
+ $host,
3877
+ subscriptionId,
3878
+ resourceGroupName,
3879
+ environmentName1,
3880
+ privateEndpointConnectionName
3881
+ ],
3882
+ headerParameters: [accept],
3883
+ serializer: serializer$1
3884
+ };
3885
+ const listByEnvironmentOperationSpec = {
3886
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateEndpointConnections",
3887
+ httpMethod: "GET",
3888
+ responses: {
3889
+ 200: {
3890
+ bodyMapper: PrivateEndpointConnectionListResult
3891
+ },
3892
+ default: {
3893
+ bodyMapper: CloudError
3894
+ }
3895
+ },
3896
+ queryParameters: [apiVersion],
3897
+ urlParameters: [
3898
+ $host,
3899
+ subscriptionId,
3900
+ resourceGroupName,
3901
+ environmentName1
3902
+ ],
3903
+ headerParameters: [accept],
3904
+ serializer: serializer$1
3433
3905
  };
3434
3906
 
3435
3907
  /*
@@ -3439,7 +3911,104 @@ const listByEnvironmentOperationSpec$2 = {
3439
3911
  * Code generated by Microsoft (R) AutoRest Code Generator.
3440
3912
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3441
3913
  */
3442
- class TimeSeriesInsightsClient extends coreClient.ServiceClient {
3914
+ /// <reference lib="esnext.asynciterable" />
3915
+ /** Class containing PrivateLinkResources operations. */
3916
+ class PrivateLinkResourcesImpl {
3917
+ /**
3918
+ * Initialize a new instance of the class PrivateLinkResources class.
3919
+ * @param client Reference to the service client
3920
+ */
3921
+ constructor(client) {
3922
+ this.client = client;
3923
+ }
3924
+ /**
3925
+ * Gets a list of all supported private link resource types for the given environment.
3926
+ * @param resourceGroupName Name of an Azure Resource group.
3927
+ * @param environmentName The name of the Time Series Insights environment associated with the
3928
+ * specified resource group.
3929
+ * @param options The options parameters.
3930
+ */
3931
+ listSupported(resourceGroupName, environmentName, options) {
3932
+ const iter = this.listSupportedPagingAll(resourceGroupName, environmentName, options);
3933
+ return {
3934
+ next() {
3935
+ return iter.next();
3936
+ },
3937
+ [Symbol.asyncIterator]() {
3938
+ return this;
3939
+ },
3940
+ byPage: () => {
3941
+ return this.listSupportedPagingPage(resourceGroupName, environmentName, options);
3942
+ }
3943
+ };
3944
+ }
3945
+ listSupportedPagingPage(resourceGroupName, environmentName, options) {
3946
+ return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingPage_1() {
3947
+ let result = yield tslib.__await(this._listSupported(resourceGroupName, environmentName, options));
3948
+ yield yield tslib.__await(result.value || []);
3949
+ });
3950
+ }
3951
+ listSupportedPagingAll(resourceGroupName, environmentName, options) {
3952
+ return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingAll_1() {
3953
+ var e_1, _a;
3954
+ try {
3955
+ for (var _b = tslib.__asyncValues(this.listSupportedPagingPage(resourceGroupName, environmentName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3956
+ const page = _c.value;
3957
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3958
+ }
3959
+ }
3960
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3961
+ finally {
3962
+ try {
3963
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3964
+ }
3965
+ finally { if (e_1) throw e_1.error; }
3966
+ }
3967
+ });
3968
+ }
3969
+ /**
3970
+ * Gets a list of all supported private link resource types for the given environment.
3971
+ * @param resourceGroupName Name of an Azure Resource group.
3972
+ * @param environmentName The name of the Time Series Insights environment associated with the
3973
+ * specified resource group.
3974
+ * @param options The options parameters.
3975
+ */
3976
+ _listSupported(resourceGroupName, environmentName, options) {
3977
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listSupportedOperationSpec);
3978
+ }
3979
+ }
3980
+ // Operation Specifications
3981
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3982
+ const listSupportedOperationSpec = {
3983
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/privateLinkResources",
3984
+ httpMethod: "GET",
3985
+ responses: {
3986
+ 200: {
3987
+ bodyMapper: PrivateLinkResourceListResult
3988
+ },
3989
+ default: {
3990
+ bodyMapper: CloudError
3991
+ }
3992
+ },
3993
+ queryParameters: [apiVersion],
3994
+ urlParameters: [
3995
+ $host,
3996
+ subscriptionId,
3997
+ resourceGroupName,
3998
+ environmentName1
3999
+ ],
4000
+ headerParameters: [accept],
4001
+ serializer
4002
+ };
4003
+
4004
+ /*
4005
+ * Copyright (c) Microsoft Corporation.
4006
+ * Licensed under the MIT License.
4007
+ *
4008
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4009
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4010
+ */
4011
+ class TimeSeriesInsightsClient extends coreClient__namespace.ServiceClient {
3443
4012
  /**
3444
4013
  * Initializes a new instance of the TimeSeriesInsightsClient class.
3445
4014
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -3447,6 +4016,7 @@ class TimeSeriesInsightsClient extends coreClient.ServiceClient {
3447
4016
  * @param options The parameter options
3448
4017
  */
3449
4018
  constructor(credentials, subscriptionId, options) {
4019
+ var _a, _b;
3450
4020
  if (credentials === undefined) {
3451
4021
  throw new Error("'credentials' cannot be null");
3452
4022
  }
@@ -3461,7 +4031,7 @@ class TimeSeriesInsightsClient extends coreClient.ServiceClient {
3461
4031
  requestContentType: "application/json; charset=utf-8",
3462
4032
  credential: credentials
3463
4033
  };
3464
- const packageDetails = `azsdk-js-arm-timeseriesinsights/2.0.0`;
4034
+ const packageDetails = `azsdk-js-arm-timeseriesinsights/2.1.0-beta.1`;
3465
4035
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3466
4036
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3467
4037
  : `${packageDetails}`;
@@ -3470,18 +4040,36 @@ class TimeSeriesInsightsClient extends coreClient.ServiceClient {
3470
4040
  }
3471
4041
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3472
4042
  userAgentPrefix
3473
- }, baseUri: options.endpoint || "https://management.azure.com" });
4043
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3474
4044
  super(optionsWithDefaults);
4045
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4046
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
4047
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4048
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
4049
+ if (!bearerTokenAuthenticationPolicyFound) {
4050
+ this.pipeline.removePolicy({
4051
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
4052
+ });
4053
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4054
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
4055
+ challengeCallbacks: {
4056
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4057
+ }
4058
+ }));
4059
+ }
4060
+ }
3475
4061
  // Parameter assignments
3476
4062
  this.subscriptionId = subscriptionId;
3477
4063
  // Assigning values to Constant parameters
3478
4064
  this.$host = options.$host || "https://management.azure.com";
3479
- this.apiVersion = options.apiVersion || "2020-05-15";
4065
+ this.apiVersion = options.apiVersion || "2021-03-31-preview";
3480
4066
  this.operations = new OperationsImpl(this);
3481
4067
  this.environments = new EnvironmentsImpl(this);
3482
4068
  this.eventSources = new EventSourcesImpl(this);
3483
4069
  this.referenceDataSets = new ReferenceDataSetsImpl(this);
3484
4070
  this.accessPolicies = new AccessPoliciesImpl(this);
4071
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
4072
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
3485
4073
  }
3486
4074
  }
3487
4075