@azure/arm-monitor 8.0.0-beta.3 → 8.0.0-beta.4
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.
- package/CHANGELOG.md +83 -4
- package/dist/index.js +3354 -1977
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.js +42 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.js +39 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.js +52 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.js +45 -0
- package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/metricsListSample.js +3 -3
- package/dist-esm/samples-dev/metricsListSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorOperationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorOperationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorOperationsListSample.js +51 -0
- package/dist-esm/samples-dev/monitorOperationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js +138 -83
- package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js +8 -8
- package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js +8 -8
- package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js +7 -7
- package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js +6 -6
- package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js +10 -9
- package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +705 -271
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +84 -64
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +29 -17
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1127 -445
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +5 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +39 -7
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/monitorClient.d.ts +4 -2
- package/dist-esm/src/monitorClient.d.ts.map +1 -1
- package/dist-esm/src/monitorClient.js +5 -3
- package/dist-esm/src/monitorClient.js.map +1 -1
- package/dist-esm/src/operations/actionGroups.d.ts +4 -4
- package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/actionGroups.js +34 -17
- package/dist-esm/src/operations/actionGroups.js.map +1 -1
- package/dist-esm/src/operations/azureMonitorWorkspaces.d.ts +87 -0
- package/dist-esm/src/operations/azureMonitorWorkspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/azureMonitorWorkspaces.js +389 -0
- package/dist-esm/src/operations/azureMonitorWorkspaces.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/{metrics.d.ts → metricsOperations.d.ts} +5 -5
- package/dist-esm/src/operations/metricsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/{metrics.js → metricsOperations.js} +4 -4
- package/dist-esm/src/operations/metricsOperations.js.map +1 -0
- package/dist-esm/src/operations/monitorOperations.d.ts +32 -0
- package/dist-esm/src/operations/monitorOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/monitorOperations.js +131 -0
- package/dist-esm/src/operations/monitorOperations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +29 -16
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkScopedResources.d.ts +3 -3
- package/dist-esm/src/operations/privateLinkScopedResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkScopedResources.js +18 -10
- package/dist-esm/src/operations/privateLinkScopedResources.js.map +1 -1
- package/dist-esm/src/operations/privateLinkScopes.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkScopes.js +10 -6
- package/dist-esm/src/operations/privateLinkScopes.js.map +1 -1
- package/dist-esm/src/operations/scheduledQueryRules.d.ts +30 -17
- package/dist-esm/src/operations/scheduledQueryRules.d.ts.map +1 -1
- package/dist-esm/src/operations/scheduledQueryRules.js +131 -48
- package/dist-esm/src/operations/scheduledQueryRules.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/actionGroups.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/actionGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.d.ts +51 -0
- package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/{metrics.d.ts → metricsOperations.d.ts} +3 -3
- package/dist-esm/src/operationsInterfaces/metricsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{metrics.js → metricsOperations.js} +1 -1
- package/dist-esm/src/operationsInterfaces/metricsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitorOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/monitorOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitorOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/monitorOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateLinkScopedResources.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateLinkScopedResources.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/scheduledQueryRules.d.ts +13 -13
- package/dist-esm/src/operationsInterfaces/scheduledQueryRules.d.ts.map +1 -1
- package/dist-esm/test/monitor_examples.js +60 -3
- package/dist-esm/test/monitor_examples.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-monitor.api.md +419 -158
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +760 -294
- package/src/models/mappers.ts +1990 -1300
- package/src/models/parameters.ts +48 -10
- package/src/monitorClient.ts +15 -7
- package/src/operations/actionGroups.ts +57 -35
- package/src/operations/azureMonitorWorkspaces.ts +483 -0
- package/src/operations/index.ts +3 -1
- package/src/operations/{metrics.ts → metricsOperations.ts} +4 -4
- package/src/operations/monitorOperations.ts +149 -0
- package/src/operations/privateEndpointConnections.ts +33 -21
- package/src/operations/privateLinkScopedResources.ts +28 -21
- package/src/operations/privateLinkScopes.ts +15 -11
- package/src/operations/scheduledQueryRules.ts +179 -73
- package/src/operationsInterfaces/actionGroups.ts +7 -7
- package/src/operationsInterfaces/azureMonitorWorkspaces.ts +93 -0
- package/src/operationsInterfaces/index.ts +3 -1
- package/src/operationsInterfaces/{metrics.ts → metricsOperations.ts} +2 -2
- package/src/operationsInterfaces/monitorOperations.ts +25 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/privateLinkScopedResources.ts +4 -4
- package/src/operationsInterfaces/privateLinkScopes.ts +2 -2
- package/src/operationsInterfaces/scheduledQueryRules.ts +21 -21
- package/types/arm-monitor.d.ts +825 -289
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/operations/metrics.d.ts.map +0 -1
- package/dist-esm/src/operations/metrics.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/metrics.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/metrics.js.map +0 -1
|
@@ -7,25 +7,30 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ScheduledQueryRules } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { MonitorClient } from "../monitorClient";
|
|
15
16
|
import {
|
|
16
|
-
|
|
17
|
+
ScheduledQueryRuleResource,
|
|
18
|
+
ScheduledQueryRulesListBySubscriptionNextOptionalParams,
|
|
17
19
|
ScheduledQueryRulesListBySubscriptionOptionalParams,
|
|
18
20
|
ScheduledQueryRulesListBySubscriptionResponse,
|
|
21
|
+
ScheduledQueryRulesListByResourceGroupNextOptionalParams,
|
|
19
22
|
ScheduledQueryRulesListByResourceGroupOptionalParams,
|
|
20
23
|
ScheduledQueryRulesListByResourceGroupResponse,
|
|
21
|
-
ScheduledQueryRulesCreateOrUpdateOptionalParams,
|
|
22
|
-
ScheduledQueryRulesCreateOrUpdateResponse,
|
|
23
24
|
ScheduledQueryRulesGetOptionalParams,
|
|
24
25
|
ScheduledQueryRulesGetResponse,
|
|
25
|
-
|
|
26
|
+
ScheduledQueryRulesCreateOrUpdateOptionalParams,
|
|
27
|
+
ScheduledQueryRulesCreateOrUpdateResponse,
|
|
28
|
+
ScheduledQueryRuleResourcePatch,
|
|
26
29
|
ScheduledQueryRulesUpdateOptionalParams,
|
|
27
30
|
ScheduledQueryRulesUpdateResponse,
|
|
28
|
-
ScheduledQueryRulesDeleteOptionalParams
|
|
31
|
+
ScheduledQueryRulesDeleteOptionalParams,
|
|
32
|
+
ScheduledQueryRulesListBySubscriptionNextResponse,
|
|
33
|
+
ScheduledQueryRulesListByResourceGroupNextResponse
|
|
29
34
|
} from "../models";
|
|
30
35
|
|
|
31
36
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -42,12 +47,12 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
/**
|
|
45
|
-
*
|
|
50
|
+
* Retrieve a scheduled query rule definitions in a subscription.
|
|
46
51
|
* @param options The options parameters.
|
|
47
52
|
*/
|
|
48
53
|
public listBySubscription(
|
|
49
54
|
options?: ScheduledQueryRulesListBySubscriptionOptionalParams
|
|
50
|
-
): PagedAsyncIterableIterator<
|
|
55
|
+
): PagedAsyncIterableIterator<ScheduledQueryRuleResource> {
|
|
51
56
|
const iter = this.listBySubscriptionPagingAll(options);
|
|
52
57
|
return {
|
|
53
58
|
next() {
|
|
@@ -67,30 +72,43 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
67
72
|
|
|
68
73
|
private async *listBySubscriptionPagingPage(
|
|
69
74
|
options?: ScheduledQueryRulesListBySubscriptionOptionalParams,
|
|
70
|
-
|
|
71
|
-
): AsyncIterableIterator<
|
|
75
|
+
settings?: PageSettings
|
|
76
|
+
): AsyncIterableIterator<ScheduledQueryRuleResource[]> {
|
|
72
77
|
let result: ScheduledQueryRulesListBySubscriptionResponse;
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
let continuationToken = settings?.continuationToken;
|
|
79
|
+
if (!continuationToken) {
|
|
80
|
+
result = await this._listBySubscription(options);
|
|
81
|
+
let page = result.value || [];
|
|
82
|
+
continuationToken = result.nextLink;
|
|
83
|
+
setContinuationToken(page, continuationToken);
|
|
84
|
+
yield page;
|
|
85
|
+
}
|
|
86
|
+
while (continuationToken) {
|
|
87
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
let page = result.value || [];
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
private async *listBySubscriptionPagingAll(
|
|
78
96
|
options?: ScheduledQueryRulesListBySubscriptionOptionalParams
|
|
79
|
-
): AsyncIterableIterator<
|
|
97
|
+
): AsyncIterableIterator<ScheduledQueryRuleResource> {
|
|
80
98
|
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
81
99
|
yield* page;
|
|
82
100
|
}
|
|
83
101
|
}
|
|
84
102
|
|
|
85
103
|
/**
|
|
86
|
-
*
|
|
104
|
+
* Retrieve scheduled query rule definitions in a resource group.
|
|
87
105
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
88
106
|
* @param options The options parameters.
|
|
89
107
|
*/
|
|
90
108
|
public listByResourceGroup(
|
|
91
109
|
resourceGroupName: string,
|
|
92
110
|
options?: ScheduledQueryRulesListByResourceGroupOptionalParams
|
|
93
|
-
): PagedAsyncIterableIterator<
|
|
111
|
+
): PagedAsyncIterableIterator<ScheduledQueryRuleResource> {
|
|
94
112
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
95
113
|
return {
|
|
96
114
|
next() {
|
|
@@ -115,17 +133,34 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
115
133
|
private async *listByResourceGroupPagingPage(
|
|
116
134
|
resourceGroupName: string,
|
|
117
135
|
options?: ScheduledQueryRulesListByResourceGroupOptionalParams,
|
|
118
|
-
|
|
119
|
-
): AsyncIterableIterator<
|
|
136
|
+
settings?: PageSettings
|
|
137
|
+
): AsyncIterableIterator<ScheduledQueryRuleResource[]> {
|
|
120
138
|
let result: ScheduledQueryRulesListByResourceGroupResponse;
|
|
121
|
-
|
|
122
|
-
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = await this._listByResourceGroupNext(
|
|
149
|
+
resourceGroupName,
|
|
150
|
+
continuationToken,
|
|
151
|
+
options
|
|
152
|
+
);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
123
158
|
}
|
|
124
159
|
|
|
125
160
|
private async *listByResourceGroupPagingAll(
|
|
126
161
|
resourceGroupName: string,
|
|
127
162
|
options?: ScheduledQueryRulesListByResourceGroupOptionalParams
|
|
128
|
-
): AsyncIterableIterator<
|
|
163
|
+
): AsyncIterableIterator<ScheduledQueryRuleResource> {
|
|
129
164
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
130
165
|
resourceGroupName,
|
|
131
166
|
options
|
|
@@ -135,26 +170,35 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
135
170
|
}
|
|
136
171
|
|
|
137
172
|
/**
|
|
138
|
-
*
|
|
173
|
+
* Retrieve a scheduled query rule definitions in a subscription.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
private _listBySubscription(
|
|
177
|
+
options?: ScheduledQueryRulesListBySubscriptionOptionalParams
|
|
178
|
+
): Promise<ScheduledQueryRulesListBySubscriptionResponse> {
|
|
179
|
+
return this.client.sendOperationRequest(
|
|
180
|
+
{ options },
|
|
181
|
+
listBySubscriptionOperationSpec
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Retrieve scheduled query rule definitions in a resource group.
|
|
139
187
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
140
|
-
* @param ruleName The name of the rule.
|
|
141
|
-
* @param parameters The parameters of the rule to create or update.
|
|
142
188
|
* @param options The options parameters.
|
|
143
189
|
*/
|
|
144
|
-
|
|
190
|
+
private _listByResourceGroup(
|
|
145
191
|
resourceGroupName: string,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
options?: ScheduledQueryRulesCreateOrUpdateOptionalParams
|
|
149
|
-
): Promise<ScheduledQueryRulesCreateOrUpdateResponse> {
|
|
192
|
+
options?: ScheduledQueryRulesListByResourceGroupOptionalParams
|
|
193
|
+
): Promise<ScheduledQueryRulesListByResourceGroupResponse> {
|
|
150
194
|
return this.client.sendOperationRequest(
|
|
151
|
-
{ resourceGroupName,
|
|
152
|
-
|
|
195
|
+
{ resourceGroupName, options },
|
|
196
|
+
listByResourceGroupOperationSpec
|
|
153
197
|
);
|
|
154
198
|
}
|
|
155
199
|
|
|
156
200
|
/**
|
|
157
|
-
*
|
|
201
|
+
* Retrieve an scheduled query rule definition.
|
|
158
202
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
159
203
|
* @param ruleName The name of the rule.
|
|
160
204
|
* @param options The options parameters.
|
|
@@ -171,7 +215,26 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
171
215
|
}
|
|
172
216
|
|
|
173
217
|
/**
|
|
174
|
-
*
|
|
218
|
+
* Creates or updates a scheduled query rule.
|
|
219
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
220
|
+
* @param ruleName The name of the rule.
|
|
221
|
+
* @param parameters The parameters of the rule to create or update.
|
|
222
|
+
* @param options The options parameters.
|
|
223
|
+
*/
|
|
224
|
+
createOrUpdate(
|
|
225
|
+
resourceGroupName: string,
|
|
226
|
+
ruleName: string,
|
|
227
|
+
parameters: ScheduledQueryRuleResource,
|
|
228
|
+
options?: ScheduledQueryRulesCreateOrUpdateOptionalParams
|
|
229
|
+
): Promise<ScheduledQueryRulesCreateOrUpdateResponse> {
|
|
230
|
+
return this.client.sendOperationRequest(
|
|
231
|
+
{ resourceGroupName, ruleName, parameters, options },
|
|
232
|
+
createOrUpdateOperationSpec
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Update a scheduled query rule.
|
|
175
238
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
176
239
|
* @param ruleName The name of the rule.
|
|
177
240
|
* @param parameters The parameters of the rule to update.
|
|
@@ -180,7 +243,7 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
180
243
|
update(
|
|
181
244
|
resourceGroupName: string,
|
|
182
245
|
ruleName: string,
|
|
183
|
-
parameters:
|
|
246
|
+
parameters: ScheduledQueryRuleResourcePatch,
|
|
184
247
|
options?: ScheduledQueryRulesUpdateOptionalParams
|
|
185
248
|
): Promise<ScheduledQueryRulesUpdateResponse> {
|
|
186
249
|
return this.client.sendOperationRequest(
|
|
@@ -190,7 +253,7 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
190
253
|
}
|
|
191
254
|
|
|
192
255
|
/**
|
|
193
|
-
* Deletes a
|
|
256
|
+
* Deletes a scheduled query rule.
|
|
194
257
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
195
258
|
* @param ruleName The name of the rule.
|
|
196
259
|
* @param options The options parameters.
|
|
@@ -207,70 +270,85 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
207
270
|
}
|
|
208
271
|
|
|
209
272
|
/**
|
|
210
|
-
*
|
|
273
|
+
* ListBySubscriptionNext
|
|
274
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
211
275
|
* @param options The options parameters.
|
|
212
276
|
*/
|
|
213
|
-
private
|
|
214
|
-
|
|
215
|
-
|
|
277
|
+
private _listBySubscriptionNext(
|
|
278
|
+
nextLink: string,
|
|
279
|
+
options?: ScheduledQueryRulesListBySubscriptionNextOptionalParams
|
|
280
|
+
): Promise<ScheduledQueryRulesListBySubscriptionNextResponse> {
|
|
216
281
|
return this.client.sendOperationRequest(
|
|
217
|
-
{ options },
|
|
218
|
-
|
|
282
|
+
{ nextLink, options },
|
|
283
|
+
listBySubscriptionNextOperationSpec
|
|
219
284
|
);
|
|
220
285
|
}
|
|
221
286
|
|
|
222
287
|
/**
|
|
223
|
-
*
|
|
288
|
+
* ListByResourceGroupNext
|
|
224
289
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
290
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
225
291
|
* @param options The options parameters.
|
|
226
292
|
*/
|
|
227
|
-
private
|
|
293
|
+
private _listByResourceGroupNext(
|
|
228
294
|
resourceGroupName: string,
|
|
229
|
-
|
|
230
|
-
|
|
295
|
+
nextLink: string,
|
|
296
|
+
options?: ScheduledQueryRulesListByResourceGroupNextOptionalParams
|
|
297
|
+
): Promise<ScheduledQueryRulesListByResourceGroupNextResponse> {
|
|
231
298
|
return this.client.sendOperationRequest(
|
|
232
|
-
{ resourceGroupName, options },
|
|
233
|
-
|
|
299
|
+
{ resourceGroupName, nextLink, options },
|
|
300
|
+
listByResourceGroupNextOperationSpec
|
|
234
301
|
);
|
|
235
302
|
}
|
|
236
303
|
}
|
|
237
304
|
// Operation Specifications
|
|
238
305
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
239
306
|
|
|
240
|
-
const
|
|
307
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
241
308
|
path:
|
|
242
|
-
"/subscriptions/{subscriptionId}/
|
|
243
|
-
httpMethod: "
|
|
309
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules",
|
|
310
|
+
httpMethod: "GET",
|
|
244
311
|
responses: {
|
|
245
312
|
200: {
|
|
246
|
-
bodyMapper: Mappers.
|
|
313
|
+
bodyMapper: Mappers.ScheduledQueryRuleResourceCollection
|
|
247
314
|
},
|
|
248
|
-
|
|
249
|
-
bodyMapper: Mappers.
|
|
315
|
+
default: {
|
|
316
|
+
bodyMapper: Mappers.ErrorContract
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
queryParameters: [Parameters.apiVersion8],
|
|
320
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
321
|
+
headerParameters: [Parameters.accept],
|
|
322
|
+
serializer
|
|
323
|
+
};
|
|
324
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
325
|
+
path:
|
|
326
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules",
|
|
327
|
+
httpMethod: "GET",
|
|
328
|
+
responses: {
|
|
329
|
+
200: {
|
|
330
|
+
bodyMapper: Mappers.ScheduledQueryRuleResourceCollection
|
|
250
331
|
},
|
|
251
332
|
default: {
|
|
252
333
|
bodyMapper: Mappers.ErrorContract
|
|
253
334
|
}
|
|
254
335
|
},
|
|
255
|
-
requestBody: Parameters.parameters6,
|
|
256
336
|
queryParameters: [Parameters.apiVersion8],
|
|
257
337
|
urlParameters: [
|
|
258
338
|
Parameters.$host,
|
|
259
339
|
Parameters.resourceGroupName,
|
|
260
|
-
Parameters.subscriptionId
|
|
261
|
-
Parameters.ruleName
|
|
340
|
+
Parameters.subscriptionId
|
|
262
341
|
],
|
|
263
|
-
headerParameters: [Parameters.accept
|
|
264
|
-
mediaType: "json",
|
|
342
|
+
headerParameters: [Parameters.accept],
|
|
265
343
|
serializer
|
|
266
344
|
};
|
|
267
345
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
268
346
|
path:
|
|
269
|
-
"/subscriptions/{subscriptionId}/
|
|
347
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
|
|
270
348
|
httpMethod: "GET",
|
|
271
349
|
responses: {
|
|
272
350
|
200: {
|
|
273
|
-
bodyMapper: Mappers.
|
|
351
|
+
bodyMapper: Mappers.ScheduledQueryRuleResource
|
|
274
352
|
},
|
|
275
353
|
default: {
|
|
276
354
|
bodyMapper: Mappers.ErrorContract
|
|
@@ -286,13 +364,40 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
286
364
|
headerParameters: [Parameters.accept],
|
|
287
365
|
serializer
|
|
288
366
|
};
|
|
367
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
368
|
+
path:
|
|
369
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
|
|
370
|
+
httpMethod: "PUT",
|
|
371
|
+
responses: {
|
|
372
|
+
200: {
|
|
373
|
+
bodyMapper: Mappers.ScheduledQueryRuleResource
|
|
374
|
+
},
|
|
375
|
+
201: {
|
|
376
|
+
bodyMapper: Mappers.ScheduledQueryRuleResource
|
|
377
|
+
},
|
|
378
|
+
default: {
|
|
379
|
+
bodyMapper: Mappers.ErrorContract
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
requestBody: Parameters.parameters6,
|
|
383
|
+
queryParameters: [Parameters.apiVersion8],
|
|
384
|
+
urlParameters: [
|
|
385
|
+
Parameters.$host,
|
|
386
|
+
Parameters.resourceGroupName,
|
|
387
|
+
Parameters.subscriptionId,
|
|
388
|
+
Parameters.ruleName
|
|
389
|
+
],
|
|
390
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
391
|
+
mediaType: "json",
|
|
392
|
+
serializer
|
|
393
|
+
};
|
|
289
394
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
290
395
|
path:
|
|
291
|
-
"/subscriptions/{subscriptionId}/
|
|
396
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
|
|
292
397
|
httpMethod: "PATCH",
|
|
293
398
|
responses: {
|
|
294
399
|
200: {
|
|
295
|
-
bodyMapper: Mappers.
|
|
400
|
+
bodyMapper: Mappers.ScheduledQueryRuleResource
|
|
296
401
|
},
|
|
297
402
|
default: {
|
|
298
403
|
bodyMapper: Mappers.ErrorContract
|
|
@@ -312,7 +417,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
312
417
|
};
|
|
313
418
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
314
419
|
path:
|
|
315
|
-
"/subscriptions/{subscriptionId}/
|
|
420
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
|
|
316
421
|
httpMethod: "DELETE",
|
|
317
422
|
responses: {
|
|
318
423
|
200: {},
|
|
@@ -331,40 +436,41 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
331
436
|
headerParameters: [Parameters.accept],
|
|
332
437
|
serializer
|
|
333
438
|
};
|
|
334
|
-
const
|
|
335
|
-
path:
|
|
336
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules",
|
|
439
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
440
|
+
path: "{nextLink}",
|
|
337
441
|
httpMethod: "GET",
|
|
338
442
|
responses: {
|
|
339
443
|
200: {
|
|
340
|
-
bodyMapper: Mappers.
|
|
444
|
+
bodyMapper: Mappers.ScheduledQueryRuleResourceCollection
|
|
341
445
|
},
|
|
342
446
|
default: {
|
|
343
447
|
bodyMapper: Mappers.ErrorContract
|
|
344
448
|
}
|
|
345
449
|
},
|
|
346
|
-
|
|
347
|
-
|
|
450
|
+
urlParameters: [
|
|
451
|
+
Parameters.$host,
|
|
452
|
+
Parameters.subscriptionId,
|
|
453
|
+
Parameters.nextLink
|
|
454
|
+
],
|
|
348
455
|
headerParameters: [Parameters.accept],
|
|
349
456
|
serializer
|
|
350
457
|
};
|
|
351
|
-
const
|
|
352
|
-
path:
|
|
353
|
-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules",
|
|
458
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
459
|
+
path: "{nextLink}",
|
|
354
460
|
httpMethod: "GET",
|
|
355
461
|
responses: {
|
|
356
462
|
200: {
|
|
357
|
-
bodyMapper: Mappers.
|
|
463
|
+
bodyMapper: Mappers.ScheduledQueryRuleResourceCollection
|
|
358
464
|
},
|
|
359
465
|
default: {
|
|
360
466
|
bodyMapper: Mappers.ErrorContract
|
|
361
467
|
}
|
|
362
468
|
},
|
|
363
|
-
queryParameters: [Parameters.filter1, Parameters.apiVersion8],
|
|
364
469
|
urlParameters: [
|
|
365
470
|
Parameters.$host,
|
|
366
471
|
Parameters.resourceGroupName,
|
|
367
|
-
Parameters.subscriptionId
|
|
472
|
+
Parameters.subscriptionId,
|
|
473
|
+
Parameters.nextLink
|
|
368
474
|
],
|
|
369
475
|
headerParameters: [Parameters.accept],
|
|
370
476
|
serializer
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
ActionGroupResource,
|
|
13
13
|
ActionGroupsListBySubscriptionIdOptionalParams,
|
|
@@ -113,8 +113,8 @@ export interface ActionGroups {
|
|
|
113
113
|
notificationRequest: NotificationRequestBody,
|
|
114
114
|
options?: ActionGroupsPostTestNotificationsOptionalParams
|
|
115
115
|
): Promise<
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
SimplePollerLike<
|
|
117
|
+
OperationState<ActionGroupsPostTestNotificationsResponse>,
|
|
118
118
|
ActionGroupsPostTestNotificationsResponse
|
|
119
119
|
>
|
|
120
120
|
>;
|
|
@@ -138,8 +138,8 @@ export interface ActionGroups {
|
|
|
138
138
|
notificationRequest: NotificationRequestBody,
|
|
139
139
|
options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams
|
|
140
140
|
): Promise<
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
SimplePollerLike<
|
|
142
|
+
OperationState<
|
|
143
143
|
ActionGroupsCreateNotificationsAtResourceGroupLevelResponse
|
|
144
144
|
>,
|
|
145
145
|
ActionGroupsCreateNotificationsAtResourceGroupLevelResponse
|
|
@@ -169,8 +169,8 @@ export interface ActionGroups {
|
|
|
169
169
|
notificationRequest: NotificationRequestBody,
|
|
170
170
|
options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams
|
|
171
171
|
): Promise<
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
SimplePollerLike<
|
|
173
|
+
OperationState<
|
|
174
174
|
ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse
|
|
175
175
|
>,
|
|
176
176
|
ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
AzureMonitorWorkspaceResource,
|
|
12
|
+
AzureMonitorWorkspacesListByResourceGroupOptionalParams,
|
|
13
|
+
AzureMonitorWorkspacesListBySubscriptionOptionalParams,
|
|
14
|
+
AzureMonitorWorkspacesGetOptionalParams,
|
|
15
|
+
AzureMonitorWorkspacesGetResponse,
|
|
16
|
+
AzureMonitorWorkspacesCreateOptionalParams,
|
|
17
|
+
AzureMonitorWorkspacesCreateResponse,
|
|
18
|
+
AzureMonitorWorkspacesUpdateOptionalParams,
|
|
19
|
+
AzureMonitorWorkspacesUpdateResponse,
|
|
20
|
+
AzureMonitorWorkspacesDeleteOptionalParams
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Interface representing a AzureMonitorWorkspaces. */
|
|
25
|
+
export interface AzureMonitorWorkspaces {
|
|
26
|
+
/**
|
|
27
|
+
* Lists all workspaces in the specified resource group
|
|
28
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listByResourceGroup(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
options?: AzureMonitorWorkspacesListByResourceGroupOptionalParams
|
|
34
|
+
): PagedAsyncIterableIterator<AzureMonitorWorkspaceResource>;
|
|
35
|
+
/**
|
|
36
|
+
* Lists all workspaces in the specified subscription
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
listBySubscription(
|
|
40
|
+
options?: AzureMonitorWorkspacesListBySubscriptionOptionalParams
|
|
41
|
+
): PagedAsyncIterableIterator<AzureMonitorWorkspaceResource>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the specific Azure Monitor workspace
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
|
|
46
|
+
* insensitive
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
get(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
azureMonitorWorkspaceName: string,
|
|
52
|
+
options?: AzureMonitorWorkspacesGetOptionalParams
|
|
53
|
+
): Promise<AzureMonitorWorkspacesGetResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Create or update a workspace
|
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
+
* @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
|
|
58
|
+
* insensitive
|
|
59
|
+
* @param azureMonitorWorkspaceProperties Properties that need to be specified to create a new
|
|
60
|
+
* workspace
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
create(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
azureMonitorWorkspaceName: string,
|
|
66
|
+
azureMonitorWorkspaceProperties: AzureMonitorWorkspaceResource,
|
|
67
|
+
options?: AzureMonitorWorkspacesCreateOptionalParams
|
|
68
|
+
): Promise<AzureMonitorWorkspacesCreateResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Updates part of a workspace
|
|
71
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
72
|
+
* @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
|
|
73
|
+
* insensitive
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
update(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
azureMonitorWorkspaceName: string,
|
|
79
|
+
options?: AzureMonitorWorkspacesUpdateOptionalParams
|
|
80
|
+
): Promise<AzureMonitorWorkspacesUpdateResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Delete a workspace
|
|
83
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
84
|
+
* @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
|
|
85
|
+
* insensitive
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
delete(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
azureMonitorWorkspaceName: string,
|
|
91
|
+
options?: AzureMonitorWorkspacesDeleteOptionalParams
|
|
92
|
+
): Promise<void>;
|
|
93
|
+
}
|
|
@@ -19,7 +19,7 @@ export * from "./activityLogs";
|
|
|
19
19
|
export * from "./eventCategories";
|
|
20
20
|
export * from "./tenantActivityLogs";
|
|
21
21
|
export * from "./metricDefinitions";
|
|
22
|
-
export * from "./
|
|
22
|
+
export * from "./metricsOperations";
|
|
23
23
|
export * from "./baselines";
|
|
24
24
|
export * from "./metricAlerts";
|
|
25
25
|
export * from "./metricAlertsStatus";
|
|
@@ -35,3 +35,5 @@ export * from "./activityLogAlerts";
|
|
|
35
35
|
export * from "./dataCollectionEndpoints";
|
|
36
36
|
export * from "./dataCollectionRuleAssociations";
|
|
37
37
|
export * from "./dataCollectionRules";
|
|
38
|
+
export * from "./azureMonitorWorkspaces";
|
|
39
|
+
export * from "./monitorOperations";
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
import { MetricsListOptionalParams, MetricsListResponse } from "../models";
|
|
10
10
|
|
|
11
|
-
/** Interface representing a
|
|
12
|
-
export interface
|
|
11
|
+
/** Interface representing a MetricsOperations. */
|
|
12
|
+
export interface MetricsOperations {
|
|
13
13
|
/**
|
|
14
14
|
* **Lists the metric values for a resource**.
|
|
15
15
|
* @param resourceUri The identifier of the resource.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
OperationAutoGenerated,
|
|
12
|
+
MonitorOperationsListOptionalParams
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a MonitorOperations. */
|
|
17
|
+
export interface MonitorOperations {
|
|
18
|
+
/**
|
|
19
|
+
* Lists available Operations for this Resource Provider
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
options?: MonitorOperationsListOptionalParams
|
|
24
|
+
): PagedAsyncIterableIterator<OperationAutoGenerated>;
|
|
25
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
10
|
import {
|
|
11
11
|
PrivateEndpointConnectionsGetOptionalParams,
|
|
12
12
|
PrivateEndpointConnectionsGetResponse,
|
|
@@ -48,8 +48,8 @@ export interface PrivateEndpointConnections {
|
|
|
48
48
|
parameters: PrivateEndpointConnection,
|
|
49
49
|
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
50
50
|
): Promise<
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
SimplePollerLike<
|
|
52
|
+
OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
53
53
|
PrivateEndpointConnectionsCreateOrUpdateResponse
|
|
54
54
|
>
|
|
55
55
|
>;
|
|
@@ -80,7 +80,7 @@ export interface PrivateEndpointConnections {
|
|
|
80
80
|
scopeName: string,
|
|
81
81
|
privateEndpointConnectionName: string,
|
|
82
82
|
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
83
|
-
): Promise<
|
|
83
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
84
84
|
/**
|
|
85
85
|
* Deletes a private endpoint connection with a given name.
|
|
86
86
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|