@azure/arm-timeseriesinsights 2.1.0-alpha.20221215.1 → 2.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +39 -22
  2. package/dist/index.js +185 -58
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js +10 -3
  7. package/dist-esm/samples-dev/accessPoliciesCreateOrUpdateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/accessPoliciesDeleteSample.js +10 -3
  9. package/dist-esm/samples-dev/accessPoliciesDeleteSample.js.map +1 -1
  10. package/dist-esm/samples-dev/accessPoliciesGetSample.js +10 -3
  11. package/dist-esm/samples-dev/accessPoliciesGetSample.js.map +1 -1
  12. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js +10 -3
  13. package/dist-esm/samples-dev/accessPoliciesListByEnvironmentSample.js.map +1 -1
  14. package/dist-esm/samples-dev/accessPoliciesUpdateSample.js +10 -3
  15. package/dist-esm/samples-dev/accessPoliciesUpdateSample.js.map +1 -1
  16. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js +10 -3
  17. package/dist-esm/samples-dev/environmentsCreateOrUpdateSample.js.map +1 -1
  18. package/dist-esm/samples-dev/environmentsDeleteSample.js +10 -3
  19. package/dist-esm/samples-dev/environmentsDeleteSample.js.map +1 -1
  20. package/dist-esm/samples-dev/environmentsGetSample.js +10 -3
  21. package/dist-esm/samples-dev/environmentsGetSample.js.map +1 -1
  22. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js +10 -3
  23. package/dist-esm/samples-dev/environmentsListByResourceGroupSample.js.map +1 -1
  24. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js +9 -2
  25. package/dist-esm/samples-dev/environmentsListBySubscriptionSample.js.map +1 -1
  26. package/dist-esm/samples-dev/environmentsUpdateSample.js +10 -3
  27. package/dist-esm/samples-dev/environmentsUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js +13 -6
  29. package/dist-esm/samples-dev/eventSourcesCreateOrUpdateSample.js.map +1 -1
  30. package/dist-esm/samples-dev/eventSourcesDeleteSample.js +10 -3
  31. package/dist-esm/samples-dev/eventSourcesDeleteSample.js.map +1 -1
  32. package/dist-esm/samples-dev/eventSourcesGetSample.js +10 -3
  33. package/dist-esm/samples-dev/eventSourcesGetSample.js.map +1 -1
  34. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js +10 -3
  35. package/dist-esm/samples-dev/eventSourcesListByEnvironmentSample.js.map +1 -1
  36. package/dist-esm/samples-dev/eventSourcesUpdateSample.js +10 -3
  37. package/dist-esm/samples-dev/eventSourcesUpdateSample.js.map +1 -1
  38. package/dist-esm/samples-dev/operationsListSample.js +10 -2
  39. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +10 -3
  41. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  42. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +10 -3
  43. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  44. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +10 -3
  45. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js +10 -3
  47. package/dist-esm/samples-dev/privateEndpointConnectionsListByEnvironmentSample.js.map +1 -1
  48. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +10 -3
  49. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +1 -1
  50. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js +10 -3
  51. package/dist-esm/samples-dev/referenceDataSetsCreateOrUpdateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js +10 -3
  53. package/dist-esm/samples-dev/referenceDataSetsDeleteSample.js.map +1 -1
  54. package/dist-esm/samples-dev/referenceDataSetsGetSample.js +10 -3
  55. package/dist-esm/samples-dev/referenceDataSetsGetSample.js.map +1 -1
  56. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js +10 -3
  57. package/dist-esm/samples-dev/referenceDataSetsListByEnvironmentSample.js.map +1 -1
  58. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js +10 -3
  59. package/dist-esm/samples-dev/referenceDataSetsUpdateSample.js.map +1 -1
  60. package/dist-esm/src/index.d.ts +1 -0
  61. package/dist-esm/src/index.d.ts.map +1 -1
  62. package/dist-esm/src/index.js +1 -0
  63. package/dist-esm/src/index.js.map +1 -1
  64. package/dist-esm/src/models/index.d.ts +138 -68
  65. package/dist-esm/src/models/index.d.ts.map +1 -1
  66. package/dist-esm/src/models/index.js +50 -0
  67. package/dist-esm/src/models/index.js.map +1 -1
  68. package/dist-esm/src/models/mappers.d.ts +10 -10
  69. package/dist-esm/src/models/mappers.js +28 -28
  70. package/dist-esm/src/models/mappers.js.map +1 -1
  71. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  72. package/dist-esm/src/operations/operations.js +19 -8
  73. package/dist-esm/src/operations/operations.js.map +1 -1
  74. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  75. package/dist-esm/src/operations/privateLinkResources.js +8 -4
  76. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  77. package/dist-esm/src/pagingHelper.d.ts +13 -0
  78. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  79. package/dist-esm/src/pagingHelper.js +32 -0
  80. package/dist-esm/src/pagingHelper.js.map +1 -0
  81. package/dist-esm/src/timeSeriesInsightsClient.d.ts +2 -0
  82. package/dist-esm/src/timeSeriesInsightsClient.d.ts.map +1 -1
  83. package/dist-esm/src/timeSeriesInsightsClient.js +48 -17
  84. package/dist-esm/src/timeSeriesInsightsClient.js.map +1 -1
  85. package/dist-esm/test/sampleTest.js +11 -13
  86. package/dist-esm/test/sampleTest.js.map +1 -1
  87. package/package.json +13 -8
  88. package/review/arm-timeseriesinsights.api.md +143 -178
  89. package/src/index.ts +1 -0
  90. package/src/models/index.ts +159 -70
  91. package/src/models/mappers.ts +28 -28
  92. package/src/operations/operations.ts +21 -9
  93. package/src/operations/privateLinkResources.ts +11 -5
  94. package/src/pagingHelper.ts +39 -0
  95. package/src/timeSeriesInsightsClient.ts +59 -19
  96. package/types/arm-timeseriesinsights.d.ts +149 -68
package/CHANGELOG.md CHANGED
@@ -1,50 +1,67 @@
1
1
  # Release History
2
-
3
- ## 2.1.0-beta.2 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
13
- ## 2.1.0-beta.1 (2022-05-05)
2
+
3
+ ## 2.1.0-beta.2 (2022-12-15)
14
4
 
15
5
  **Features**
16
6
 
17
7
  - Added operation group PrivateEndpointConnections
18
8
  - Added operation group PrivateLinkResources
9
+ - Added Interface AccessPolicyResource
10
+ - Added Interface AzureEventSourceProperties
11
+ - Added Interface EnvironmentCreateOrUpdateParameters
12
+ - Added Interface EnvironmentResource
13
+ - Added Interface EnvironmentResourceProperties
14
+ - Added Interface EventHubEventSourceCommonProperties
15
+ - Added Interface EventHubEventSourceCreateOrUpdateParameters
16
+ - Added Interface EventHubEventSourceCreationProperties
17
+ - Added Interface EventHubEventSourceMutableProperties
18
+ - Added Interface EventHubEventSourceResource
19
+ - Added Interface EventHubEventSourceResourceProperties
20
+ - Added Interface EventHubEventSourceUpdateParameters
21
+ - Added Interface EventSourceCommonProperties
22
+ - Added Interface EventSourceCreateOrUpdateParameters
23
+ - Added Interface EventSourceResource
24
+ - Added Interface Gen1EnvironmentCreateOrUpdateParameters
25
+ - Added Interface Gen1EnvironmentResource
26
+ - Added Interface Gen1EnvironmentResourceProperties
27
+ - Added Interface Gen1EnvironmentUpdateParameters
28
+ - Added Interface Gen2EnvironmentCreateOrUpdateParameters
29
+ - Added Interface Gen2EnvironmentResource
30
+ - Added Interface Gen2EnvironmentResourceProperties
31
+ - Added Interface Gen2EnvironmentUpdateParameters
32
+ - Added Interface IoTHubEventSourceCommonProperties
33
+ - Added Interface IoTHubEventSourceCreateOrUpdateParameters
34
+ - Added Interface IoTHubEventSourceCreationProperties
35
+ - Added Interface IoTHubEventSourceMutableProperties
36
+ - Added Interface IoTHubEventSourceResource
37
+ - Added Interface IoTHubEventSourceResourceProperties
38
+ - Added Interface IoTHubEventSourceUpdateParameters
19
39
  - Added Interface PrivateEndpoint
40
+ - Added Interface PrivateEndpointConnection
20
41
  - Added Interface PrivateEndpointConnectionListResult
21
42
  - Added Interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams
22
43
  - Added Interface PrivateEndpointConnectionsDeleteOptionalParams
23
44
  - Added Interface PrivateEndpointConnectionsGetOptionalParams
24
45
  - Added Interface PrivateEndpointConnectionsListByEnvironmentOptionalParams
46
+ - Added Interface PrivateLinkResource
25
47
  - Added Interface PrivateLinkResourceListResult
26
48
  - Added Interface PrivateLinkResourcesListSupportedOptionalParams
27
49
  - Added Interface PrivateLinkServiceConnectionState
28
- - Added Type Alias PrivateEndpointConnection
50
+ - Added Interface ReferenceDataSetCreateOrUpdateParameters
51
+ - Added Interface ReferenceDataSetResource
52
+ - Added Interface ReferenceDataSetResourceProperties
53
+ - Added Interface TrackedResource
29
54
  - Added Type Alias PrivateEndpointConnectionProvisioningState
30
55
  - Added Type Alias PrivateEndpointConnectionsCreateOrUpdateResponse
31
56
  - Added Type Alias PrivateEndpointConnectionsGetResponse
32
57
  - Added Type Alias PrivateEndpointConnectionsListByEnvironmentResponse
33
58
  - Added Type Alias PrivateEndpointServiceConnectionStatus
34
- - Added Type Alias PrivateLinkResource
35
59
  - Added Type Alias PrivateLinkResourcesListSupportedResponse
36
60
  - Added Type Alias PublicNetworkAccess
37
- - Class TimeSeriesInsightsClient has a new parameter privateEndpointConnections
38
- - Class TimeSeriesInsightsClient has a new parameter privateLinkResources
39
- - Type Alias Gen2EnvironmentCreateOrUpdateParameters has a new parameter publicNetworkAccess
40
- - Type Alias Gen2EnvironmentCreateOrUpdateParameters has a new parameter privateEndpointConnections
41
- - Type Alias Gen2EnvironmentResource has a new parameter publicNetworkAccess
42
- - Type Alias Gen2EnvironmentResource has a new parameter privateEndpointConnections
43
- - Type Alias Gen2EnvironmentResourceProperties has a new parameter publicNetworkAccess
44
- - Type Alias Gen2EnvironmentResourceProperties has a new parameter privateEndpointConnections
45
61
  - Added Enum KnownPrivateEndpointConnectionProvisioningState
46
62
  - Added Enum KnownPrivateEndpointServiceConnectionStatus
47
63
  - Added Enum KnownPublicNetworkAccess
64
+ - Added function getContinuationToken
48
65
 
49
66
 
50
67
  ## 2.0.0 (2022-01-21)
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var tslib = require('tslib');
5
6
  var coreClient = require('@azure/core-client');
6
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var tslib = require('tslib');
8
8
  var coreLro = require('@azure/core-lro');
9
9
 
10
10
  function _interopNamespace(e) {
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
28
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
29
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
30
 
31
+ /*
32
+ * Copyright (c) Microsoft Corporation.
33
+ * Licensed under the MIT License.
34
+ *
35
+ * Code generated by Microsoft (R) AutoRest Code Generator.
36
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
+ */
38
+ const pageMap = new WeakMap();
39
+ /**
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
+ * that point later.
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
+ */
46
+ function getContinuationToken(page) {
47
+ var _a;
48
+ if (typeof page !== "object" || page === null) {
49
+ return undefined;
50
+ }
51
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
+ }
53
+ function setContinuationToken(page, continuationToken) {
54
+ var _a;
55
+ if (typeof page !== "object" || page === null || !continuationToken) {
56
+ return;
57
+ }
58
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
+ pageInfo.continuationToken = continuationToken;
60
+ pageMap.set(page, pageInfo);
61
+ }
62
+
31
63
  /*
32
64
  * Copyright (c) Microsoft Corporation.
33
65
  * Licensed under the MIT License.
@@ -38,123 +70,173 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
70
  /** Known values of {@link EnvironmentKind} that the service accepts. */
39
71
  exports.KnownEnvironmentKind = void 0;
40
72
  (function (KnownEnvironmentKind) {
73
+ /** Gen1 */
41
74
  KnownEnvironmentKind["Gen1"] = "Gen1";
75
+ /** Gen2 */
42
76
  KnownEnvironmentKind["Gen2"] = "Gen2";
43
77
  })(exports.KnownEnvironmentKind || (exports.KnownEnvironmentKind = {}));
44
78
  /** Known values of {@link SkuName} that the service accepts. */
45
79
  exports.KnownSkuName = void 0;
46
80
  (function (KnownSkuName) {
81
+ /** S1 */
47
82
  KnownSkuName["S1"] = "S1";
83
+ /** S2 */
48
84
  KnownSkuName["S2"] = "S2";
85
+ /** P1 */
49
86
  KnownSkuName["P1"] = "P1";
87
+ /** L1 */
50
88
  KnownSkuName["L1"] = "L1";
51
89
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
52
90
  /** Known values of {@link EnvironmentResourceKind} that the service accepts. */
53
91
  exports.KnownEnvironmentResourceKind = void 0;
54
92
  (function (KnownEnvironmentResourceKind) {
93
+ /** Gen1 */
55
94
  KnownEnvironmentResourceKind["Gen1"] = "Gen1";
95
+ /** Gen2 */
56
96
  KnownEnvironmentResourceKind["Gen2"] = "Gen2";
57
97
  })(exports.KnownEnvironmentResourceKind || (exports.KnownEnvironmentResourceKind = {}));
58
98
  /** Known values of {@link EventSourceKind} that the service accepts. */
59
99
  exports.KnownEventSourceKind = void 0;
60
100
  (function (KnownEventSourceKind) {
101
+ /** MicrosoftEventHub */
61
102
  KnownEventSourceKind["MicrosoftEventHub"] = "Microsoft.EventHub";
103
+ /** MicrosoftIoTHub */
62
104
  KnownEventSourceKind["MicrosoftIoTHub"] = "Microsoft.IoTHub";
63
105
  })(exports.KnownEventSourceKind || (exports.KnownEventSourceKind = {}));
64
106
  /** Known values of {@link LocalTimestampFormat} that the service accepts. */
65
107
  exports.KnownLocalTimestampFormat = void 0;
66
108
  (function (KnownLocalTimestampFormat) {
109
+ /** Embedded */
67
110
  KnownLocalTimestampFormat["Embedded"] = "Embedded";
68
111
  })(exports.KnownLocalTimestampFormat || (exports.KnownLocalTimestampFormat = {}));
69
112
  /** Known values of {@link EventSourceResourceKind} that the service accepts. */
70
113
  exports.KnownEventSourceResourceKind = void 0;
71
114
  (function (KnownEventSourceResourceKind) {
115
+ /** MicrosoftEventHub */
72
116
  KnownEventSourceResourceKind["MicrosoftEventHub"] = "Microsoft.EventHub";
117
+ /** MicrosoftIoTHub */
73
118
  KnownEventSourceResourceKind["MicrosoftIoTHub"] = "Microsoft.IoTHub";
74
119
  })(exports.KnownEventSourceResourceKind || (exports.KnownEventSourceResourceKind = {}));
75
120
  /** Known values of {@link ReferenceDataKeyPropertyType} that the service accepts. */
76
121
  exports.KnownReferenceDataKeyPropertyType = void 0;
77
122
  (function (KnownReferenceDataKeyPropertyType) {
123
+ /** String */
78
124
  KnownReferenceDataKeyPropertyType["String"] = "String";
125
+ /** Double */
79
126
  KnownReferenceDataKeyPropertyType["Double"] = "Double";
127
+ /** Bool */
80
128
  KnownReferenceDataKeyPropertyType["Bool"] = "Bool";
129
+ /** DateTime */
81
130
  KnownReferenceDataKeyPropertyType["DateTime"] = "DateTime";
82
131
  })(exports.KnownReferenceDataKeyPropertyType || (exports.KnownReferenceDataKeyPropertyType = {}));
83
132
  /** Known values of {@link DataStringComparisonBehavior} that the service accepts. */
84
133
  exports.KnownDataStringComparisonBehavior = void 0;
85
134
  (function (KnownDataStringComparisonBehavior) {
135
+ /** Ordinal */
86
136
  KnownDataStringComparisonBehavior["Ordinal"] = "Ordinal";
137
+ /** OrdinalIgnoreCase */
87
138
  KnownDataStringComparisonBehavior["OrdinalIgnoreCase"] = "OrdinalIgnoreCase";
88
139
  })(exports.KnownDataStringComparisonBehavior || (exports.KnownDataStringComparisonBehavior = {}));
89
140
  /** Known values of {@link ProvisioningState} that the service accepts. */
90
141
  exports.KnownProvisioningState = void 0;
91
142
  (function (KnownProvisioningState) {
143
+ /** Accepted */
92
144
  KnownProvisioningState["Accepted"] = "Accepted";
145
+ /** Creating */
93
146
  KnownProvisioningState["Creating"] = "Creating";
147
+ /** Updating */
94
148
  KnownProvisioningState["Updating"] = "Updating";
149
+ /** Succeeded */
95
150
  KnownProvisioningState["Succeeded"] = "Succeeded";
151
+ /** Failed */
96
152
  KnownProvisioningState["Failed"] = "Failed";
153
+ /** Deleting */
97
154
  KnownProvisioningState["Deleting"] = "Deleting";
98
155
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
99
156
  /** Known values of {@link AccessPolicyRole} that the service accepts. */
100
157
  exports.KnownAccessPolicyRole = void 0;
101
158
  (function (KnownAccessPolicyRole) {
159
+ /** Reader */
102
160
  KnownAccessPolicyRole["Reader"] = "Reader";
161
+ /** Contributor */
103
162
  KnownAccessPolicyRole["Contributor"] = "Contributor";
104
163
  })(exports.KnownAccessPolicyRole || (exports.KnownAccessPolicyRole = {}));
105
164
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
106
165
  exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
107
166
  (function (KnownPrivateEndpointConnectionProvisioningState) {
167
+ /** Succeeded */
108
168
  KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
169
+ /** Creating */
109
170
  KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
171
+ /** Deleting */
110
172
  KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
173
+ /** Failed */
111
174
  KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
112
175
  })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
113
176
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
114
177
  exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
115
178
  (function (KnownPrivateEndpointServiceConnectionStatus) {
179
+ /** Pending */
116
180
  KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
181
+ /** Approved */
117
182
  KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
183
+ /** Rejected */
118
184
  KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
119
185
  })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
120
186
  /** Known values of {@link StorageLimitExceededBehavior} that the service accepts. */
121
187
  exports.KnownStorageLimitExceededBehavior = void 0;
122
188
  (function (KnownStorageLimitExceededBehavior) {
189
+ /** PurgeOldData */
123
190
  KnownStorageLimitExceededBehavior["PurgeOldData"] = "PurgeOldData";
191
+ /** PauseIngress */
124
192
  KnownStorageLimitExceededBehavior["PauseIngress"] = "PauseIngress";
125
193
  })(exports.KnownStorageLimitExceededBehavior || (exports.KnownStorageLimitExceededBehavior = {}));
126
194
  /** Known values of {@link PropertyType} that the service accepts. */
127
195
  exports.KnownPropertyType = void 0;
128
196
  (function (KnownPropertyType) {
197
+ /** String */
129
198
  KnownPropertyType["String"] = "String";
130
199
  })(exports.KnownPropertyType || (exports.KnownPropertyType = {}));
131
200
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
132
201
  exports.KnownPublicNetworkAccess = void 0;
133
202
  (function (KnownPublicNetworkAccess) {
203
+ /** Enabled */
134
204
  KnownPublicNetworkAccess["Enabled"] = "enabled";
205
+ /** Disabled */
135
206
  KnownPublicNetworkAccess["Disabled"] = "disabled";
136
207
  })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
137
208
  /** Known values of {@link IngressState} that the service accepts. */
138
209
  exports.KnownIngressState = void 0;
139
210
  (function (KnownIngressState) {
211
+ /** Disabled */
140
212
  KnownIngressState["Disabled"] = "Disabled";
213
+ /** Ready */
141
214
  KnownIngressState["Ready"] = "Ready";
215
+ /** Running */
142
216
  KnownIngressState["Running"] = "Running";
217
+ /** Paused */
143
218
  KnownIngressState["Paused"] = "Paused";
219
+ /** Unknown */
144
220
  KnownIngressState["Unknown"] = "Unknown";
145
221
  })(exports.KnownIngressState || (exports.KnownIngressState = {}));
146
222
  /** Known values of {@link WarmStoragePropertiesState} that the service accepts. */
147
223
  exports.KnownWarmStoragePropertiesState = void 0;
148
224
  (function (KnownWarmStoragePropertiesState) {
225
+ /** Ok */
149
226
  KnownWarmStoragePropertiesState["Ok"] = "Ok";
227
+ /** Error */
150
228
  KnownWarmStoragePropertiesState["Error"] = "Error";
229
+ /** Unknown */
151
230
  KnownWarmStoragePropertiesState["Unknown"] = "Unknown";
152
231
  })(exports.KnownWarmStoragePropertiesState || (exports.KnownWarmStoragePropertiesState = {}));
153
232
  /** Known values of {@link IngressStartAtType} that the service accepts. */
154
233
  exports.KnownIngressStartAtType = void 0;
155
234
  (function (KnownIngressStartAtType) {
235
+ /** EarliestAvailable */
156
236
  KnownIngressStartAtType["EarliestAvailable"] = "EarliestAvailable";
237
+ /** EventSourceCreationTime */
157
238
  KnownIngressStartAtType["EventSourceCreationTime"] = "EventSourceCreationTime";
239
+ /** CustomEnqueuedTime */
158
240
  KnownIngressStartAtType["CustomEnqueuedTime"] = "CustomEnqueuedTime";
159
241
  })(exports.KnownIngressStartAtType || (exports.KnownIngressStartAtType = {}));
160
242
 
@@ -1554,8 +1636,8 @@ const Gen1EnvironmentCreateOrUpdateParameters = {
1554
1636
  type: {
1555
1637
  name: "Composite",
1556
1638
  className: "Gen1EnvironmentCreateOrUpdateParameters",
1557
- uberParent: "CreateOrUpdateTrackedResourceProperties",
1558
- polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1639
+ uberParent: "EnvironmentCreateOrUpdateParameters",
1640
+ polymorphicDiscriminator: EnvironmentCreateOrUpdateParameters.type.polymorphicDiscriminator,
1559
1641
  modelProperties: Object.assign(Object.assign({}, EnvironmentCreateOrUpdateParameters.type.modelProperties), { dataRetentionTime: {
1560
1642
  serializedName: "properties.dataRetentionTime",
1561
1643
  required: true,
@@ -1586,8 +1668,8 @@ const Gen2EnvironmentCreateOrUpdateParameters = {
1586
1668
  type: {
1587
1669
  name: "Composite",
1588
1670
  className: "Gen2EnvironmentCreateOrUpdateParameters",
1589
- uberParent: "CreateOrUpdateTrackedResourceProperties",
1590
- polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1671
+ uberParent: "EnvironmentCreateOrUpdateParameters",
1672
+ polymorphicDiscriminator: EnvironmentCreateOrUpdateParameters.type.polymorphicDiscriminator,
1591
1673
  modelProperties: Object.assign(Object.assign({}, EnvironmentCreateOrUpdateParameters.type.modelProperties), { timeSeriesIdProperties: {
1592
1674
  serializedName: "properties.timeSeriesIdProperties",
1593
1675
  required: true,
@@ -1637,8 +1719,8 @@ const EventHubEventSourceCreateOrUpdateParameters = {
1637
1719
  type: {
1638
1720
  name: "Composite",
1639
1721
  className: "EventHubEventSourceCreateOrUpdateParameters",
1640
- uberParent: "CreateOrUpdateTrackedResourceProperties",
1641
- polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1722
+ uberParent: "EventSourceCreateOrUpdateParameters",
1723
+ polymorphicDiscriminator: EventSourceCreateOrUpdateParameters.type.polymorphicDiscriminator,
1642
1724
  modelProperties: Object.assign(Object.assign({}, EventSourceCreateOrUpdateParameters.type.modelProperties), { provisioningState: {
1643
1725
  serializedName: "properties.provisioningState",
1644
1726
  readOnly: true,
@@ -1716,8 +1798,8 @@ const IoTHubEventSourceCreateOrUpdateParameters = {
1716
1798
  type: {
1717
1799
  name: "Composite",
1718
1800
  className: "IoTHubEventSourceCreateOrUpdateParameters",
1719
- uberParent: "CreateOrUpdateTrackedResourceProperties",
1720
- polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1801
+ uberParent: "EventSourceCreateOrUpdateParameters",
1802
+ polymorphicDiscriminator: EventSourceCreateOrUpdateParameters.type.polymorphicDiscriminator,
1721
1803
  modelProperties: Object.assign(Object.assign({}, EventSourceCreateOrUpdateParameters.type.modelProperties), { provisioningState: {
1722
1804
  serializedName: "properties.provisioningState",
1723
1805
  readOnly: true,
@@ -1789,7 +1871,7 @@ const EnvironmentResource = {
1789
1871
  type: {
1790
1872
  name: "Composite",
1791
1873
  className: "EnvironmentResource",
1792
- uberParent: "Resource",
1874
+ uberParent: "TrackedResource",
1793
1875
  polymorphicDiscriminator: {
1794
1876
  serializedName: "kind",
1795
1877
  clientName: "kind"
@@ -1814,7 +1896,7 @@ const EventSourceResource = {
1814
1896
  type: {
1815
1897
  name: "Composite",
1816
1898
  className: "EventSourceResource",
1817
- uberParent: "Resource",
1899
+ uberParent: "TrackedResource",
1818
1900
  polymorphicDiscriminator: {
1819
1901
  serializedName: "kind",
1820
1902
  clientName: "kind"
@@ -1929,8 +2011,8 @@ const Gen1EnvironmentResource = {
1929
2011
  type: {
1930
2012
  name: "Composite",
1931
2013
  className: "Gen1EnvironmentResource",
1932
- uberParent: "Resource",
1933
- polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
2014
+ uberParent: "EnvironmentResource",
2015
+ polymorphicDiscriminator: EnvironmentResource.type.polymorphicDiscriminator,
1934
2016
  modelProperties: Object.assign(Object.assign({}, EnvironmentResource.type.modelProperties), { dataRetentionTime: {
1935
2017
  serializedName: "properties.dataRetentionTime",
1936
2018
  required: true,
@@ -1991,8 +2073,8 @@ const Gen2EnvironmentResource = {
1991
2073
  type: {
1992
2074
  name: "Composite",
1993
2075
  className: "Gen2EnvironmentResource",
1994
- uberParent: "Resource",
1995
- polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
2076
+ uberParent: "EnvironmentResource",
2077
+ polymorphicDiscriminator: EnvironmentResource.type.polymorphicDiscriminator,
1996
2078
  modelProperties: Object.assign(Object.assign({}, EnvironmentResource.type.modelProperties), { provisioningState: {
1997
2079
  serializedName: "properties.provisioningState",
1998
2080
  readOnly: true,
@@ -2072,8 +2154,8 @@ const EventHubEventSourceResource = {
2072
2154
  type: {
2073
2155
  name: "Composite",
2074
2156
  className: "EventHubEventSourceResource",
2075
- uberParent: "Resource",
2076
- polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
2157
+ uberParent: "EventSourceResource",
2158
+ polymorphicDiscriminator: EventSourceResource.type.polymorphicDiscriminator,
2077
2159
  modelProperties: Object.assign(Object.assign({}, EventSourceResource.type.modelProperties), { provisioningState: {
2078
2160
  serializedName: "properties.provisioningState",
2079
2161
  readOnly: true,
@@ -2145,8 +2227,8 @@ const IoTHubEventSourceResource = {
2145
2227
  type: {
2146
2228
  name: "Composite",
2147
2229
  className: "IoTHubEventSourceResource",
2148
- uberParent: "Resource",
2149
- polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
2230
+ uberParent: "EventSourceResource",
2231
+ polymorphicDiscriminator: EventSourceResource.type.polymorphicDiscriminator,
2150
2232
  modelProperties: Object.assign(Object.assign({}, EventSourceResource.type.modelProperties), { provisioningState: {
2151
2233
  serializedName: "properties.provisioningState",
2152
2234
  readOnly: true,
@@ -2312,16 +2394,16 @@ let discriminators = {
2312
2394
  "EnvironmentUpdateParameters.Gen2": Gen2EnvironmentUpdateParameters,
2313
2395
  "EventSourceUpdateParameters.Microsoft.EventHub": EventHubEventSourceUpdateParameters,
2314
2396
  "EventSourceUpdateParameters.Microsoft.IoTHub": IoTHubEventSourceUpdateParameters,
2315
- "CreateOrUpdateTrackedResourceProperties.Gen1": Gen1EnvironmentCreateOrUpdateParameters,
2316
- "CreateOrUpdateTrackedResourceProperties.Gen2": Gen2EnvironmentCreateOrUpdateParameters,
2317
- "CreateOrUpdateTrackedResourceProperties.Microsoft.EventHub": EventHubEventSourceCreateOrUpdateParameters,
2318
- "CreateOrUpdateTrackedResourceProperties.Microsoft.IoTHub": IoTHubEventSourceCreateOrUpdateParameters,
2319
- "Resource.EnvironmentResource": EnvironmentResource,
2320
- "Resource.EventSourceResource": EventSourceResource,
2321
- "Resource.Gen1": Gen1EnvironmentResource,
2322
- "Resource.Gen2": Gen2EnvironmentResource,
2323
- "Resource.Microsoft.EventHub": EventHubEventSourceResource,
2324
- "Resource.Microsoft.IoTHub": IoTHubEventSourceResource
2397
+ "EnvironmentCreateOrUpdateParameters.Gen1": Gen1EnvironmentCreateOrUpdateParameters,
2398
+ "EnvironmentCreateOrUpdateParameters.Gen2": Gen2EnvironmentCreateOrUpdateParameters,
2399
+ "EventSourceCreateOrUpdateParameters.Microsoft.EventHub": EventHubEventSourceCreateOrUpdateParameters,
2400
+ "EventSourceCreateOrUpdateParameters.Microsoft.IoTHub": IoTHubEventSourceCreateOrUpdateParameters,
2401
+ "TrackedResource.EnvironmentResource": EnvironmentResource,
2402
+ "TrackedResource.EventSourceResource": EventSourceResource,
2403
+ "EnvironmentResource.Gen1": Gen1EnvironmentResource,
2404
+ "EnvironmentResource.Gen2": Gen2EnvironmentResource,
2405
+ "EventSourceResource.Microsoft.EventHub": EventHubEventSourceResource,
2406
+ "EventSourceResource.Microsoft.IoTHub": IoTHubEventSourceResource
2325
2407
  };
2326
2408
 
2327
2409
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -2675,20 +2757,31 @@ class OperationsImpl {
2675
2757
  [Symbol.asyncIterator]() {
2676
2758
  return this;
2677
2759
  },
2678
- byPage: () => {
2679
- return this.listPagingPage(options);
2760
+ byPage: (settings) => {
2761
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2762
+ throw new Error("maxPageSize is not supported by this operation.");
2763
+ }
2764
+ return this.listPagingPage(options, settings);
2680
2765
  }
2681
2766
  };
2682
2767
  }
2683
- listPagingPage(options) {
2768
+ listPagingPage(options, settings) {
2684
2769
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2685
- let result = yield tslib.__await(this._list(options));
2686
- yield yield tslib.__await(result.value || []);
2687
- let continuationToken = result.nextLink;
2770
+ let result;
2771
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2772
+ if (!continuationToken) {
2773
+ result = yield tslib.__await(this._list(options));
2774
+ let page = result.value || [];
2775
+ continuationToken = result.nextLink;
2776
+ setContinuationToken(page, continuationToken);
2777
+ yield yield tslib.__await(page);
2778
+ }
2688
2779
  while (continuationToken) {
2689
2780
  result = yield tslib.__await(this._listNext(continuationToken, options));
2690
2781
  continuationToken = result.nextLink;
2691
- yield yield tslib.__await(result.value || []);
2782
+ let page = result.value || [];
2783
+ setContinuationToken(page, continuationToken);
2784
+ yield yield tslib.__await(page);
2692
2785
  }
2693
2786
  });
2694
2787
  }
@@ -2755,7 +2848,6 @@ const listNextOperationSpec = {
2755
2848
  bodyMapper: CloudError
2756
2849
  }
2757
2850
  },
2758
- queryParameters: [apiVersion],
2759
2851
  urlParameters: [$host, nextLink],
2760
2852
  headerParameters: [accept],
2761
2853
  serializer: serializer$6
@@ -3937,14 +4029,18 @@ class PrivateLinkResourcesImpl {
3937
4029
  [Symbol.asyncIterator]() {
3938
4030
  return this;
3939
4031
  },
3940
- byPage: () => {
3941
- return this.listSupportedPagingPage(resourceGroupName, environmentName, options);
4032
+ byPage: (settings) => {
4033
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4034
+ throw new Error("maxPageSize is not supported by this operation.");
4035
+ }
4036
+ return this.listSupportedPagingPage(resourceGroupName, environmentName, options, settings);
3942
4037
  }
3943
4038
  };
3944
4039
  }
3945
- listSupportedPagingPage(resourceGroupName, environmentName, options) {
4040
+ listSupportedPagingPage(resourceGroupName, environmentName, options, _settings) {
3946
4041
  return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingPage_1() {
3947
- let result = yield tslib.__await(this._listSupported(resourceGroupName, environmentName, options));
4042
+ let result;
4043
+ result = yield tslib.__await(this._listSupported(resourceGroupName, environmentName, options));
3948
4044
  yield yield tslib.__await(result.value || []);
3949
4045
  });
3950
4046
  }
@@ -4016,7 +4112,7 @@ class TimeSeriesInsightsClient extends coreClient__namespace.ServiceClient {
4016
4112
  * @param options The parameter options
4017
4113
  */
4018
4114
  constructor(credentials, subscriptionId, options) {
4019
- var _a, _b;
4115
+ var _a, _b, _c;
4020
4116
  if (credentials === undefined) {
4021
4117
  throw new Error("'credentials' cannot be null");
4022
4118
  }
@@ -4035,28 +4131,30 @@ class TimeSeriesInsightsClient extends coreClient__namespace.ServiceClient {
4035
4131
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4036
4132
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4037
4133
  : `${packageDetails}`;
4038
- if (!options.credentialScopes) {
4039
- options.credentialScopes = ["https://management.azure.com/.default"];
4040
- }
4041
4134
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4042
4135
  userAgentPrefix
4043
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4136
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4044
4137
  super(optionsWithDefaults);
4138
+ let bearerTokenAuthenticationPolicyFound = false;
4045
4139
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4046
4140
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4047
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4141
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4048
4142
  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
- }
4143
+ }
4144
+ if (!options ||
4145
+ !options.pipeline ||
4146
+ options.pipeline.getOrderedPolicies().length == 0 ||
4147
+ !bearerTokenAuthenticationPolicyFound) {
4148
+ this.pipeline.removePolicy({
4149
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
4150
+ });
4151
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4152
+ credential: credentials,
4153
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4154
+ challengeCallbacks: {
4155
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4156
+ }
4157
+ }));
4060
4158
  }
4061
4159
  // Parameter assignments
4062
4160
  this.subscriptionId = subscriptionId;
@@ -4070,8 +4168,37 @@ class TimeSeriesInsightsClient extends coreClient__namespace.ServiceClient {
4070
4168
  this.accessPolicies = new AccessPoliciesImpl(this);
4071
4169
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
4072
4170
  this.privateLinkResources = new PrivateLinkResourcesImpl(this);
4171
+ this.addCustomApiVersionPolicy(options.apiVersion);
4172
+ }
4173
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
4174
+ addCustomApiVersionPolicy(apiVersion) {
4175
+ if (!apiVersion) {
4176
+ return;
4177
+ }
4178
+ const apiVersionPolicy = {
4179
+ name: "CustomApiVersionPolicy",
4180
+ sendRequest(request, next) {
4181
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4182
+ const param = request.url.split("?");
4183
+ if (param.length > 1) {
4184
+ const newParams = param[1].split("&").map((item) => {
4185
+ if (item.indexOf("api-version") > -1) {
4186
+ return "api-version=" + apiVersion;
4187
+ }
4188
+ else {
4189
+ return item;
4190
+ }
4191
+ });
4192
+ request.url = param[0] + "?" + newParams.join("&");
4193
+ }
4194
+ return next(request);
4195
+ });
4196
+ }
4197
+ };
4198
+ this.pipeline.addPolicy(apiVersionPolicy);
4073
4199
  }
4074
4200
  }
4075
4201
 
4076
4202
  exports.TimeSeriesInsightsClient = TimeSeriesInsightsClient;
4203
+ exports.getContinuationToken = getContinuationToken;
4077
4204
  //# sourceMappingURL=index.js.map