@azure/arm-dynatrace 1.0.2-alpha.20230824.1 → 2.0.0
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 +29 -10
- package/dist/index.js +257 -258
- 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/monitorsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/monitorsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js +58 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{monitorsGetAccountCredentialsSample.js → monitorsGetMetricStatusSample.js} +19 -21
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +3 -3
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListHostsSample.js +6 -6
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +7 -3
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsUpdateSample.js +3 -25
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnGetSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnListSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +6 -3
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesGetSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesListSample.js +2 -2
- package/dist-esm/src/dynatraceObservability.js +2 -2
- 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 +54 -69
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +116 -130
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +7 -7
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/monitors.d.ts +19 -13
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +83 -46
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operations/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operations/singleSignOn.js +18 -8
- package/dist-esm/src/operations/singleSignOn.js.map +1 -1
- package/dist-esm/src/operations/tagRules.d.ts +4 -13
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -1
- package/dist-esm/src/operations/tagRules.js +20 -47
- package/dist-esm/src/operations/tagRules.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +18 -12
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +4 -13
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -1
- package/dist-esm/test/dynatrace_examples.spec.js +60 -13
- package/dist-esm/test/dynatrace_examples.spec.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-dynatrace.api.md +40 -40
- package/src/dynatraceObservability.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +62 -76
- package/src/models/mappers.ts +120 -133
- package/src/models/parameters.ts +8 -8
- package/src/operations/monitors.ts +115 -68
- package/src/operations/singleSignOn.ts +27 -14
- package/src/operations/tagRules.ts +30 -72
- package/src/operationsInterfaces/monitors.ts +30 -18
- package/src/operationsInterfaces/singleSignOn.ts +3 -3
- package/src/operationsInterfaces/tagRules.ts +4 -22
- package/types/arm-dynatrace.d.ts +59 -76
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.js +0 -75
- package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +0 -1
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { DynatraceObservability } from "../dynatraceObservability";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
MonitoredResource,
|
|
20
24
|
MonitorsListMonitoredResourcesNextOptionalParams,
|
|
@@ -40,8 +44,6 @@ import {
|
|
|
40
44
|
MonitorsListLinkableEnvironmentsNextOptionalParams,
|
|
41
45
|
MonitorsListLinkableEnvironmentsOptionalParams,
|
|
42
46
|
MonitorsListLinkableEnvironmentsResponse,
|
|
43
|
-
MonitorsGetAccountCredentialsOptionalParams,
|
|
44
|
-
MonitorsGetAccountCredentialsResponse,
|
|
45
47
|
MonitorsGetVMHostPayloadOptionalParams,
|
|
46
48
|
MonitorsGetVMHostPayloadResponse,
|
|
47
49
|
MonitorsGetOptionalParams,
|
|
@@ -52,6 +54,11 @@ import {
|
|
|
52
54
|
MonitorsUpdateOptionalParams,
|
|
53
55
|
MonitorsUpdateResponse,
|
|
54
56
|
MonitorsDeleteOptionalParams,
|
|
57
|
+
MarketplaceSaaSResourceDetailsRequest,
|
|
58
|
+
MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams,
|
|
59
|
+
MonitorsGetMarketplaceSaaSResourceDetailsResponse,
|
|
60
|
+
MonitorsGetMetricStatusOptionalParams,
|
|
61
|
+
MonitorsGetMetricStatusResponse,
|
|
55
62
|
MonitorsGetSSODetailsOptionalParams,
|
|
56
63
|
MonitorsGetSSODetailsResponse,
|
|
57
64
|
MonitorsListMonitoredResourcesNextResponse,
|
|
@@ -283,7 +290,7 @@ export class MonitorsImpl implements Monitors {
|
|
|
283
290
|
}
|
|
284
291
|
|
|
285
292
|
/**
|
|
286
|
-
* List the
|
|
293
|
+
* List the VM/VMSS resources currently being monitored by the Dynatrace resource.
|
|
287
294
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
288
295
|
* @param monitorName Monitor resource name
|
|
289
296
|
* @param options The options parameters.
|
|
@@ -539,23 +546,6 @@ export class MonitorsImpl implements Monitors {
|
|
|
539
546
|
}
|
|
540
547
|
}
|
|
541
548
|
|
|
542
|
-
/**
|
|
543
|
-
* Gets the user account credentials for a Monitor
|
|
544
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
545
|
-
* @param monitorName Monitor resource name
|
|
546
|
-
* @param options The options parameters.
|
|
547
|
-
*/
|
|
548
|
-
getAccountCredentials(
|
|
549
|
-
resourceGroupName: string,
|
|
550
|
-
monitorName: string,
|
|
551
|
-
options?: MonitorsGetAccountCredentialsOptionalParams
|
|
552
|
-
): Promise<MonitorsGetAccountCredentialsResponse> {
|
|
553
|
-
return this.client.sendOperationRequest(
|
|
554
|
-
{ resourceGroupName, monitorName, options },
|
|
555
|
-
getAccountCredentialsOperationSpec
|
|
556
|
-
);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
549
|
/**
|
|
560
550
|
* List the resources currently being monitored by the Dynatrace monitor resource.
|
|
561
551
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -621,8 +611,8 @@ export class MonitorsImpl implements Monitors {
|
|
|
621
611
|
resource: MonitorResource,
|
|
622
612
|
options?: MonitorsCreateOrUpdateOptionalParams
|
|
623
613
|
): Promise<
|
|
624
|
-
|
|
625
|
-
|
|
614
|
+
SimplePollerLike<
|
|
615
|
+
OperationState<MonitorsCreateOrUpdateResponse>,
|
|
626
616
|
MonitorsCreateOrUpdateResponse
|
|
627
617
|
>
|
|
628
618
|
> {
|
|
@@ -632,7 +622,7 @@ export class MonitorsImpl implements Monitors {
|
|
|
632
622
|
): Promise<MonitorsCreateOrUpdateResponse> => {
|
|
633
623
|
return this.client.sendOperationRequest(args, spec);
|
|
634
624
|
};
|
|
635
|
-
const
|
|
625
|
+
const sendOperationFn = async (
|
|
636
626
|
args: coreClient.OperationArguments,
|
|
637
627
|
spec: coreClient.OperationSpec
|
|
638
628
|
) => {
|
|
@@ -665,15 +655,18 @@ export class MonitorsImpl implements Monitors {
|
|
|
665
655
|
};
|
|
666
656
|
};
|
|
667
657
|
|
|
668
|
-
const lro =
|
|
669
|
-
|
|
670
|
-
{ resourceGroupName, monitorName, resource, options },
|
|
671
|
-
createOrUpdateOperationSpec
|
|
672
|
-
);
|
|
673
|
-
const poller =
|
|
674
|
-
|
|
658
|
+
const lro = createLroSpec({
|
|
659
|
+
sendOperationFn,
|
|
660
|
+
args: { resourceGroupName, monitorName, resource, options },
|
|
661
|
+
spec: createOrUpdateOperationSpec
|
|
662
|
+
});
|
|
663
|
+
const poller = await createHttpPoller<
|
|
664
|
+
MonitorsCreateOrUpdateResponse,
|
|
665
|
+
OperationState<MonitorsCreateOrUpdateResponse>
|
|
666
|
+
>(lro, {
|
|
667
|
+
restoreFrom: options?.resumeFrom,
|
|
675
668
|
intervalInMs: options?.updateIntervalInMs,
|
|
676
|
-
|
|
669
|
+
resourceLocationConfig: "azure-async-operation"
|
|
677
670
|
});
|
|
678
671
|
await poller.poll();
|
|
679
672
|
return poller;
|
|
@@ -730,14 +723,14 @@ export class MonitorsImpl implements Monitors {
|
|
|
730
723
|
resourceGroupName: string,
|
|
731
724
|
monitorName: string,
|
|
732
725
|
options?: MonitorsDeleteOptionalParams
|
|
733
|
-
): Promise<
|
|
726
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
734
727
|
const directSendOperation = async (
|
|
735
728
|
args: coreClient.OperationArguments,
|
|
736
729
|
spec: coreClient.OperationSpec
|
|
737
730
|
): Promise<void> => {
|
|
738
731
|
return this.client.sendOperationRequest(args, spec);
|
|
739
732
|
};
|
|
740
|
-
const
|
|
733
|
+
const sendOperationFn = async (
|
|
741
734
|
args: coreClient.OperationArguments,
|
|
742
735
|
spec: coreClient.OperationSpec
|
|
743
736
|
) => {
|
|
@@ -770,15 +763,15 @@ export class MonitorsImpl implements Monitors {
|
|
|
770
763
|
};
|
|
771
764
|
};
|
|
772
765
|
|
|
773
|
-
const lro =
|
|
774
|
-
|
|
775
|
-
{ resourceGroupName, monitorName, options },
|
|
776
|
-
deleteOperationSpec
|
|
777
|
-
);
|
|
778
|
-
const poller =
|
|
779
|
-
|
|
766
|
+
const lro = createLroSpec({
|
|
767
|
+
sendOperationFn,
|
|
768
|
+
args: { resourceGroupName, monitorName, options },
|
|
769
|
+
spec: deleteOperationSpec
|
|
770
|
+
});
|
|
771
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
772
|
+
restoreFrom: options?.resumeFrom,
|
|
780
773
|
intervalInMs: options?.updateIntervalInMs,
|
|
781
|
-
|
|
774
|
+
resourceLocationConfig: "azure-async-operation"
|
|
782
775
|
});
|
|
783
776
|
await poller.poll();
|
|
784
777
|
return poller;
|
|
@@ -832,7 +825,22 @@ export class MonitorsImpl implements Monitors {
|
|
|
832
825
|
}
|
|
833
826
|
|
|
834
827
|
/**
|
|
835
|
-
*
|
|
828
|
+
* Get Marketplace SaaS resource details of a tenant under a specific subscription
|
|
829
|
+
* @param request Tenant Id
|
|
830
|
+
* @param options The options parameters.
|
|
831
|
+
*/
|
|
832
|
+
getMarketplaceSaaSResourceDetails(
|
|
833
|
+
request: MarketplaceSaaSResourceDetailsRequest,
|
|
834
|
+
options?: MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams
|
|
835
|
+
): Promise<MonitorsGetMarketplaceSaaSResourceDetailsResponse> {
|
|
836
|
+
return this.client.sendOperationRequest(
|
|
837
|
+
{ request, options },
|
|
838
|
+
getMarketplaceSaaSResourceDetailsOperationSpec
|
|
839
|
+
);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* List the VM/VMSS resources currently being monitored by the Dynatrace resource.
|
|
836
844
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
837
845
|
* @param monitorName Monitor resource name
|
|
838
846
|
* @param options The options parameters.
|
|
@@ -848,6 +856,23 @@ export class MonitorsImpl implements Monitors {
|
|
|
848
856
|
);
|
|
849
857
|
}
|
|
850
858
|
|
|
859
|
+
/**
|
|
860
|
+
* Get metric status
|
|
861
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
862
|
+
* @param monitorName Name of the Monitor resource
|
|
863
|
+
* @param options The options parameters.
|
|
864
|
+
*/
|
|
865
|
+
getMetricStatus(
|
|
866
|
+
resourceGroupName: string,
|
|
867
|
+
monitorName: string,
|
|
868
|
+
options?: MonitorsGetMetricStatusOptionalParams
|
|
869
|
+
): Promise<MonitorsGetMetricStatusResponse> {
|
|
870
|
+
return this.client.sendOperationRequest(
|
|
871
|
+
{ resourceGroupName, monitorName, options },
|
|
872
|
+
getMetricStatusOperationSpec
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
|
|
851
876
|
/**
|
|
852
877
|
* Gets list of App Services with Dynatrace PaaS OneAgent enabled
|
|
853
878
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1015,28 +1040,6 @@ export class MonitorsImpl implements Monitors {
|
|
|
1015
1040
|
// Operation Specifications
|
|
1016
1041
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1017
1042
|
|
|
1018
|
-
const getAccountCredentialsOperationSpec: coreClient.OperationSpec = {
|
|
1019
|
-
path:
|
|
1020
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getAccountCredentials",
|
|
1021
|
-
httpMethod: "POST",
|
|
1022
|
-
responses: {
|
|
1023
|
-
200: {
|
|
1024
|
-
bodyMapper: Mappers.AccountInfoSecure
|
|
1025
|
-
},
|
|
1026
|
-
default: {
|
|
1027
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
queryParameters: [Parameters.apiVersion],
|
|
1031
|
-
urlParameters: [
|
|
1032
|
-
Parameters.$host,
|
|
1033
|
-
Parameters.subscriptionId,
|
|
1034
|
-
Parameters.resourceGroupName,
|
|
1035
|
-
Parameters.monitorName
|
|
1036
|
-
],
|
|
1037
|
-
headerParameters: [Parameters.accept],
|
|
1038
|
-
serializer
|
|
1039
|
-
};
|
|
1040
1043
|
const listMonitoredResourcesOperationSpec: coreClient.OperationSpec = {
|
|
1041
1044
|
path:
|
|
1042
1045
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listMonitoredResources",
|
|
@@ -1221,6 +1224,28 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
1221
1224
|
headerParameters: [Parameters.accept],
|
|
1222
1225
|
serializer
|
|
1223
1226
|
};
|
|
1227
|
+
const getMarketplaceSaaSResourceDetailsOperationSpec: coreClient.OperationSpec = {
|
|
1228
|
+
path:
|
|
1229
|
+
"/subscriptions/{subscriptionId}/providers/Dynatrace.Observability/getMarketplaceSaaSResourceDetails",
|
|
1230
|
+
httpMethod: "POST",
|
|
1231
|
+
responses: {
|
|
1232
|
+
200: {
|
|
1233
|
+
bodyMapper: Mappers.MarketplaceSaaSResourceDetailsResponse
|
|
1234
|
+
},
|
|
1235
|
+
404: {
|
|
1236
|
+
isError: true
|
|
1237
|
+
},
|
|
1238
|
+
default: {
|
|
1239
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
requestBody: Parameters.request,
|
|
1243
|
+
queryParameters: [Parameters.apiVersion],
|
|
1244
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1245
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1246
|
+
mediaType: "json",
|
|
1247
|
+
serializer
|
|
1248
|
+
};
|
|
1224
1249
|
const listHostsOperationSpec: coreClient.OperationSpec = {
|
|
1225
1250
|
path:
|
|
1226
1251
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listHosts",
|
|
@@ -1243,6 +1268,28 @@ const listHostsOperationSpec: coreClient.OperationSpec = {
|
|
|
1243
1268
|
headerParameters: [Parameters.accept],
|
|
1244
1269
|
serializer
|
|
1245
1270
|
};
|
|
1271
|
+
const getMetricStatusOperationSpec: coreClient.OperationSpec = {
|
|
1272
|
+
path:
|
|
1273
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getMetricStatus",
|
|
1274
|
+
httpMethod: "POST",
|
|
1275
|
+
responses: {
|
|
1276
|
+
200: {
|
|
1277
|
+
bodyMapper: Mappers.MetricsStatusResponse
|
|
1278
|
+
},
|
|
1279
|
+
default: {
|
|
1280
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
queryParameters: [Parameters.apiVersion],
|
|
1284
|
+
urlParameters: [
|
|
1285
|
+
Parameters.$host,
|
|
1286
|
+
Parameters.subscriptionId,
|
|
1287
|
+
Parameters.resourceGroupName,
|
|
1288
|
+
Parameters.monitorName
|
|
1289
|
+
],
|
|
1290
|
+
headerParameters: [Parameters.accept],
|
|
1291
|
+
serializer
|
|
1292
|
+
};
|
|
1246
1293
|
const listAppServicesOperationSpec: coreClient.OperationSpec = {
|
|
1247
1294
|
path:
|
|
1248
1295
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listAppServices",
|
|
@@ -1280,7 +1327,7 @@ const getSSODetailsOperationSpec: coreClient.OperationSpec = {
|
|
|
1280
1327
|
bodyMapper: Mappers.ErrorResponse
|
|
1281
1328
|
}
|
|
1282
1329
|
},
|
|
1283
|
-
requestBody: Parameters.
|
|
1330
|
+
requestBody: Parameters.request1,
|
|
1284
1331
|
queryParameters: [Parameters.apiVersion],
|
|
1285
1332
|
urlParameters: [
|
|
1286
1333
|
Parameters.$host,
|
|
@@ -1304,7 +1351,7 @@ const listLinkableEnvironmentsOperationSpec: coreClient.OperationSpec = {
|
|
|
1304
1351
|
bodyMapper: Mappers.ErrorResponse
|
|
1305
1352
|
}
|
|
1306
1353
|
},
|
|
1307
|
-
requestBody: Parameters.
|
|
1354
|
+
requestBody: Parameters.request2,
|
|
1308
1355
|
queryParameters: [Parameters.apiVersion],
|
|
1309
1356
|
urlParameters: [
|
|
1310
1357
|
Parameters.$host,
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { DynatraceObservability } from "../dynatraceObservability";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
DynatraceSingleSignOnResource,
|
|
20
24
|
SingleSignOnListNextOptionalParams,
|
|
@@ -131,8 +135,8 @@ export class SingleSignOnImpl implements SingleSignOn {
|
|
|
131
135
|
resource: DynatraceSingleSignOnResource,
|
|
132
136
|
options?: SingleSignOnCreateOrUpdateOptionalParams
|
|
133
137
|
): Promise<
|
|
134
|
-
|
|
135
|
-
|
|
138
|
+
SimplePollerLike<
|
|
139
|
+
OperationState<SingleSignOnCreateOrUpdateResponse>,
|
|
136
140
|
SingleSignOnCreateOrUpdateResponse
|
|
137
141
|
>
|
|
138
142
|
> {
|
|
@@ -142,7 +146,7 @@ export class SingleSignOnImpl implements SingleSignOn {
|
|
|
142
146
|
): Promise<SingleSignOnCreateOrUpdateResponse> => {
|
|
143
147
|
return this.client.sendOperationRequest(args, spec);
|
|
144
148
|
};
|
|
145
|
-
const
|
|
149
|
+
const sendOperationFn = async (
|
|
146
150
|
args: coreClient.OperationArguments,
|
|
147
151
|
spec: coreClient.OperationSpec
|
|
148
152
|
) => {
|
|
@@ -175,15 +179,24 @@ export class SingleSignOnImpl implements SingleSignOn {
|
|
|
175
179
|
};
|
|
176
180
|
};
|
|
177
181
|
|
|
178
|
-
const lro =
|
|
179
|
-
|
|
180
|
-
{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
const lro = createLroSpec({
|
|
183
|
+
sendOperationFn,
|
|
184
|
+
args: {
|
|
185
|
+
resourceGroupName,
|
|
186
|
+
monitorName,
|
|
187
|
+
configurationName,
|
|
188
|
+
resource,
|
|
189
|
+
options
|
|
190
|
+
},
|
|
191
|
+
spec: createOrUpdateOperationSpec
|
|
192
|
+
});
|
|
193
|
+
const poller = await createHttpPoller<
|
|
194
|
+
SingleSignOnCreateOrUpdateResponse,
|
|
195
|
+
OperationState<SingleSignOnCreateOrUpdateResponse>
|
|
196
|
+
>(lro, {
|
|
197
|
+
restoreFrom: options?.resumeFrom,
|
|
185
198
|
intervalInMs: options?.updateIntervalInMs,
|
|
186
|
-
|
|
199
|
+
resourceLocationConfig: "azure-async-operation"
|
|
187
200
|
});
|
|
188
201
|
await poller.poll();
|
|
189
202
|
return poller;
|
|
@@ -293,7 +306,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
293
306
|
bodyMapper: Mappers.ErrorResponse
|
|
294
307
|
}
|
|
295
308
|
},
|
|
296
|
-
requestBody: Parameters.
|
|
309
|
+
requestBody: Parameters.resource3,
|
|
297
310
|
queryParameters: [Parameters.apiVersion],
|
|
298
311
|
urlParameters: [
|
|
299
312
|
Parameters.$host,
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { DynatraceObservability } from "../dynatraceObservability";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
TagRule,
|
|
20
24
|
TagRulesListNextOptionalParams,
|
|
@@ -24,9 +28,6 @@ import {
|
|
|
24
28
|
TagRulesGetResponse,
|
|
25
29
|
TagRulesCreateOrUpdateOptionalParams,
|
|
26
30
|
TagRulesCreateOrUpdateResponse,
|
|
27
|
-
TagRuleUpdate,
|
|
28
|
-
TagRulesUpdateOptionalParams,
|
|
29
|
-
TagRulesUpdateResponse,
|
|
30
31
|
TagRulesDeleteOptionalParams,
|
|
31
32
|
TagRulesListNextResponse
|
|
32
33
|
} from "../models";
|
|
@@ -154,8 +155,8 @@ export class TagRulesImpl implements TagRules {
|
|
|
154
155
|
resource: TagRule,
|
|
155
156
|
options?: TagRulesCreateOrUpdateOptionalParams
|
|
156
157
|
): Promise<
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
SimplePollerLike<
|
|
159
|
+
OperationState<TagRulesCreateOrUpdateResponse>,
|
|
159
160
|
TagRulesCreateOrUpdateResponse
|
|
160
161
|
>
|
|
161
162
|
> {
|
|
@@ -165,7 +166,7 @@ export class TagRulesImpl implements TagRules {
|
|
|
165
166
|
): Promise<TagRulesCreateOrUpdateResponse> => {
|
|
166
167
|
return this.client.sendOperationRequest(args, spec);
|
|
167
168
|
};
|
|
168
|
-
const
|
|
169
|
+
const sendOperationFn = async (
|
|
169
170
|
args: coreClient.OperationArguments,
|
|
170
171
|
spec: coreClient.OperationSpec
|
|
171
172
|
) => {
|
|
@@ -198,15 +199,18 @@ export class TagRulesImpl implements TagRules {
|
|
|
198
199
|
};
|
|
199
200
|
};
|
|
200
201
|
|
|
201
|
-
const lro =
|
|
202
|
-
|
|
203
|
-
{ resourceGroupName, monitorName, ruleSetName, resource, options },
|
|
204
|
-
createOrUpdateOperationSpec
|
|
205
|
-
);
|
|
206
|
-
const poller =
|
|
207
|
-
|
|
202
|
+
const lro = createLroSpec({
|
|
203
|
+
sendOperationFn,
|
|
204
|
+
args: { resourceGroupName, monitorName, ruleSetName, resource, options },
|
|
205
|
+
spec: createOrUpdateOperationSpec
|
|
206
|
+
});
|
|
207
|
+
const poller = await createHttpPoller<
|
|
208
|
+
TagRulesCreateOrUpdateResponse,
|
|
209
|
+
OperationState<TagRulesCreateOrUpdateResponse>
|
|
210
|
+
>(lro, {
|
|
211
|
+
restoreFrom: options?.resumeFrom,
|
|
208
212
|
intervalInMs: options?.updateIntervalInMs,
|
|
209
|
-
|
|
213
|
+
resourceLocationConfig: "azure-async-operation"
|
|
210
214
|
});
|
|
211
215
|
await poller.poll();
|
|
212
216
|
return poller;
|
|
@@ -237,27 +241,6 @@ export class TagRulesImpl implements TagRules {
|
|
|
237
241
|
return poller.pollUntilDone();
|
|
238
242
|
}
|
|
239
243
|
|
|
240
|
-
/**
|
|
241
|
-
* Update a TagRule
|
|
242
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
243
|
-
* @param monitorName Monitor resource name
|
|
244
|
-
* @param ruleSetName Monitor resource name
|
|
245
|
-
* @param resource The resource properties to be updated.
|
|
246
|
-
* @param options The options parameters.
|
|
247
|
-
*/
|
|
248
|
-
update(
|
|
249
|
-
resourceGroupName: string,
|
|
250
|
-
monitorName: string,
|
|
251
|
-
ruleSetName: string,
|
|
252
|
-
resource: TagRuleUpdate,
|
|
253
|
-
options?: TagRulesUpdateOptionalParams
|
|
254
|
-
): Promise<TagRulesUpdateResponse> {
|
|
255
|
-
return this.client.sendOperationRequest(
|
|
256
|
-
{ resourceGroupName, monitorName, ruleSetName, resource, options },
|
|
257
|
-
updateOperationSpec
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
244
|
/**
|
|
262
245
|
* Delete a TagRule
|
|
263
246
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -270,14 +253,14 @@ export class TagRulesImpl implements TagRules {
|
|
|
270
253
|
monitorName: string,
|
|
271
254
|
ruleSetName: string,
|
|
272
255
|
options?: TagRulesDeleteOptionalParams
|
|
273
|
-
): Promise<
|
|
256
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
274
257
|
const directSendOperation = async (
|
|
275
258
|
args: coreClient.OperationArguments,
|
|
276
259
|
spec: coreClient.OperationSpec
|
|
277
260
|
): Promise<void> => {
|
|
278
261
|
return this.client.sendOperationRequest(args, spec);
|
|
279
262
|
};
|
|
280
|
-
const
|
|
263
|
+
const sendOperationFn = async (
|
|
281
264
|
args: coreClient.OperationArguments,
|
|
282
265
|
spec: coreClient.OperationSpec
|
|
283
266
|
) => {
|
|
@@ -310,15 +293,15 @@ export class TagRulesImpl implements TagRules {
|
|
|
310
293
|
};
|
|
311
294
|
};
|
|
312
295
|
|
|
313
|
-
const lro =
|
|
314
|
-
|
|
315
|
-
{ resourceGroupName, monitorName, ruleSetName, options },
|
|
316
|
-
deleteOperationSpec
|
|
317
|
-
);
|
|
318
|
-
const poller =
|
|
319
|
-
|
|
296
|
+
const lro = createLroSpec({
|
|
297
|
+
sendOperationFn,
|
|
298
|
+
args: { resourceGroupName, monitorName, ruleSetName, options },
|
|
299
|
+
spec: deleteOperationSpec
|
|
300
|
+
});
|
|
301
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
302
|
+
restoreFrom: options?.resumeFrom,
|
|
320
303
|
intervalInMs: options?.updateIntervalInMs,
|
|
321
|
-
|
|
304
|
+
resourceLocationConfig: "azure-async-operation"
|
|
322
305
|
});
|
|
323
306
|
await poller.poll();
|
|
324
307
|
return poller;
|
|
@@ -442,31 +425,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
442
425
|
mediaType: "json",
|
|
443
426
|
serializer
|
|
444
427
|
};
|
|
445
|
-
const updateOperationSpec: coreClient.OperationSpec = {
|
|
446
|
-
path:
|
|
447
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
448
|
-
httpMethod: "PATCH",
|
|
449
|
-
responses: {
|
|
450
|
-
200: {
|
|
451
|
-
bodyMapper: Mappers.TagRule
|
|
452
|
-
},
|
|
453
|
-
default: {
|
|
454
|
-
bodyMapper: Mappers.ErrorResponse
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
requestBody: Parameters.resource3,
|
|
458
|
-
queryParameters: [Parameters.apiVersion],
|
|
459
|
-
urlParameters: [
|
|
460
|
-
Parameters.$host,
|
|
461
|
-
Parameters.subscriptionId,
|
|
462
|
-
Parameters.resourceGroupName,
|
|
463
|
-
Parameters.monitorName,
|
|
464
|
-
Parameters.ruleSetName
|
|
465
|
-
],
|
|
466
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
467
|
-
mediaType: "json",
|
|
468
|
-
serializer
|
|
469
|
-
};
|
|
470
428
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
471
429
|
path:
|
|
472
430
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
@@ -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
|
MonitoredResource,
|
|
13
13
|
MonitorsListMonitoredResourcesOptionalParams,
|
|
@@ -21,8 +21,6 @@ import {
|
|
|
21
21
|
LinkableEnvironmentResponse,
|
|
22
22
|
LinkableEnvironmentRequest,
|
|
23
23
|
MonitorsListLinkableEnvironmentsOptionalParams,
|
|
24
|
-
MonitorsGetAccountCredentialsOptionalParams,
|
|
25
|
-
MonitorsGetAccountCredentialsResponse,
|
|
26
24
|
MonitorsGetVMHostPayloadOptionalParams,
|
|
27
25
|
MonitorsGetVMHostPayloadResponse,
|
|
28
26
|
MonitorsGetOptionalParams,
|
|
@@ -33,6 +31,11 @@ import {
|
|
|
33
31
|
MonitorsUpdateOptionalParams,
|
|
34
32
|
MonitorsUpdateResponse,
|
|
35
33
|
MonitorsDeleteOptionalParams,
|
|
34
|
+
MarketplaceSaaSResourceDetailsRequest,
|
|
35
|
+
MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams,
|
|
36
|
+
MonitorsGetMarketplaceSaaSResourceDetailsResponse,
|
|
37
|
+
MonitorsGetMetricStatusOptionalParams,
|
|
38
|
+
MonitorsGetMetricStatusResponse,
|
|
36
39
|
MonitorsGetSSODetailsOptionalParams,
|
|
37
40
|
MonitorsGetSSODetailsResponse
|
|
38
41
|
} from "../models";
|
|
@@ -68,7 +71,7 @@ export interface Monitors {
|
|
|
68
71
|
options?: MonitorsListByResourceGroupOptionalParams
|
|
69
72
|
): PagedAsyncIterableIterator<MonitorResource>;
|
|
70
73
|
/**
|
|
71
|
-
* List the
|
|
74
|
+
* List the VM/VMSS resources currently being monitored by the Dynatrace resource.
|
|
72
75
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
73
76
|
* @param monitorName Monitor resource name
|
|
74
77
|
* @param options The options parameters.
|
|
@@ -102,17 +105,6 @@ export interface Monitors {
|
|
|
102
105
|
request: LinkableEnvironmentRequest,
|
|
103
106
|
options?: MonitorsListLinkableEnvironmentsOptionalParams
|
|
104
107
|
): PagedAsyncIterableIterator<LinkableEnvironmentResponse>;
|
|
105
|
-
/**
|
|
106
|
-
* Gets the user account credentials for a Monitor
|
|
107
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
108
|
-
* @param monitorName Monitor resource name
|
|
109
|
-
* @param options The options parameters.
|
|
110
|
-
*/
|
|
111
|
-
getAccountCredentials(
|
|
112
|
-
resourceGroupName: string,
|
|
113
|
-
monitorName: string,
|
|
114
|
-
options?: MonitorsGetAccountCredentialsOptionalParams
|
|
115
|
-
): Promise<MonitorsGetAccountCredentialsResponse>;
|
|
116
108
|
/**
|
|
117
109
|
* Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a
|
|
118
110
|
* VM.
|
|
@@ -149,8 +141,8 @@ export interface Monitors {
|
|
|
149
141
|
resource: MonitorResource,
|
|
150
142
|
options?: MonitorsCreateOrUpdateOptionalParams
|
|
151
143
|
): Promise<
|
|
152
|
-
|
|
153
|
-
|
|
144
|
+
SimplePollerLike<
|
|
145
|
+
OperationState<MonitorsCreateOrUpdateResponse>,
|
|
154
146
|
MonitorsCreateOrUpdateResponse
|
|
155
147
|
>
|
|
156
148
|
>;
|
|
@@ -190,7 +182,7 @@ export interface Monitors {
|
|
|
190
182
|
resourceGroupName: string,
|
|
191
183
|
monitorName: string,
|
|
192
184
|
options?: MonitorsDeleteOptionalParams
|
|
193
|
-
): Promise<
|
|
185
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
194
186
|
/**
|
|
195
187
|
* Delete a MonitorResource
|
|
196
188
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -202,6 +194,26 @@ export interface Monitors {
|
|
|
202
194
|
monitorName: string,
|
|
203
195
|
options?: MonitorsDeleteOptionalParams
|
|
204
196
|
): Promise<void>;
|
|
197
|
+
/**
|
|
198
|
+
* Get Marketplace SaaS resource details of a tenant under a specific subscription
|
|
199
|
+
* @param request Tenant Id
|
|
200
|
+
* @param options The options parameters.
|
|
201
|
+
*/
|
|
202
|
+
getMarketplaceSaaSResourceDetails(
|
|
203
|
+
request: MarketplaceSaaSResourceDetailsRequest,
|
|
204
|
+
options?: MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams
|
|
205
|
+
): Promise<MonitorsGetMarketplaceSaaSResourceDetailsResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* Get metric status
|
|
208
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
209
|
+
* @param monitorName Name of the Monitor resource
|
|
210
|
+
* @param options The options parameters.
|
|
211
|
+
*/
|
|
212
|
+
getMetricStatus(
|
|
213
|
+
resourceGroupName: string,
|
|
214
|
+
monitorName: string,
|
|
215
|
+
options?: MonitorsGetMetricStatusOptionalParams
|
|
216
|
+
): Promise<MonitorsGetMetricStatusResponse>;
|
|
205
217
|
/**
|
|
206
218
|
* Gets the SSO configuration details from the partner.
|
|
207
219
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -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
|
DynatraceSingleSignOnResource,
|
|
13
13
|
SingleSignOnListOptionalParams,
|
|
@@ -46,8 +46,8 @@ export interface SingleSignOn {
|
|
|
46
46
|
resource: DynatraceSingleSignOnResource,
|
|
47
47
|
options?: SingleSignOnCreateOrUpdateOptionalParams
|
|
48
48
|
): Promise<
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
SimplePollerLike<
|
|
50
|
+
OperationState<SingleSignOnCreateOrUpdateResponse>,
|
|
51
51
|
SingleSignOnCreateOrUpdateResponse
|
|
52
52
|
>
|
|
53
53
|
>;
|