@azure/arm-dynatrace 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +3622 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +77 -0
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.js +49 -0
- package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js +49 -0
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +49 -0
- package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +53 -0
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +49 -0
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js +77 -0
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +75 -0
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +73 -0
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.js +77 -0
- package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +83 -0
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +77 -0
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.js +73 -0
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +73 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +62 -0
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/singleSignOnGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/singleSignOnGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/singleSignOnGetSample.js +51 -0
- package/dist-esm/samples-dev/singleSignOnGetSample.js.map +1 -0
- package/dist-esm/samples-dev/singleSignOnListSample.d.ts +2 -0
- package/dist-esm/samples-dev/singleSignOnListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/singleSignOnListSample.js +77 -0
- package/dist-esm/samples-dev/singleSignOnListSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +67 -0
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.js +51 -0
- package/dist-esm/samples-dev/tagRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesGetSample.js +51 -0
- package/dist-esm/samples-dev/tagRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesListSample.js +77 -0
- package/dist-esm/samples-dev/tagRulesListSample.js.map +1 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.js +66 -0
- package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +1 -0
- package/dist-esm/src/dynatraceObservability.d.ts +21 -0
- package/dist-esm/src/dynatraceObservability.d.ts.map +1 -0
- package/dist-esm/src/dynatraceObservability.js +72 -0
- package/dist-esm/src/dynatraceObservability.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1065 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +159 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +44 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1403 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +19 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +149 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/monitors.d.ts +221 -0
- package/dist-esm/src/operations/monitors.d.ts.map +1 -0
- package/dist-esm/src/operations/monitors.js +1007 -0
- package/dist-esm/src/operations/monitors.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/singleSignOn.d.ts +65 -0
- package/dist-esm/src/operations/singleSignOn.d.ts.map +1 -0
- package/dist-esm/src/operations/singleSignOn.js +260 -0
- package/dist-esm/src/operations/singleSignOn.js.map +1 -0
- package/dist-esm/src/operations/tagRules.d.ts +90 -0
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -0
- package/dist-esm/src/operations/tagRules.js +372 -0
- package/dist-esm/src/operations/tagRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +114 -0
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/monitors.js +9 -0
- package/dist-esm/src/operationsInterfaces/monitors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/singleSignOn.js +9 -0
- package/dist-esm/src/operationsInterfaces/singleSignOn.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tagRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/tagRules.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-dynatrace.api.md +910 -0
- package/rollup.config.js +122 -0
- package/src/dynatraceObservability.ts +116 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1218 -0
- package/src/models/mappers.ts +1480 -0
- package/src/models/parameters.ts +179 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/monitors.ts +1367 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/singleSignOn.ts +357 -0
- package/src/operations/tagRules.ts +519 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/monitors.ts +216 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/singleSignOn.ts +82 -0
- package/src/operationsInterfaces/tagRules.ts +127 -0
- package/tsconfig.json +33 -0
- package/types/arm-dynatrace.d.ts +1451 -0
- package/types/tsdoc-metadata.json +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3622 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
+
var tslib = require('tslib');
|
|
8
|
+
var coreLro = require('@azure/core-lro');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
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
|
+
/** Known values of {@link SendingMetricsStatus} that the service accepts. */
|
|
39
|
+
exports.KnownSendingMetricsStatus = void 0;
|
|
40
|
+
(function (KnownSendingMetricsStatus) {
|
|
41
|
+
KnownSendingMetricsStatus["Enabled"] = "Enabled";
|
|
42
|
+
KnownSendingMetricsStatus["Disabled"] = "Disabled";
|
|
43
|
+
})(exports.KnownSendingMetricsStatus || (exports.KnownSendingMetricsStatus = {}));
|
|
44
|
+
/** Known values of {@link SendingLogsStatus} that the service accepts. */
|
|
45
|
+
exports.KnownSendingLogsStatus = void 0;
|
|
46
|
+
(function (KnownSendingLogsStatus) {
|
|
47
|
+
KnownSendingLogsStatus["Enabled"] = "Enabled";
|
|
48
|
+
KnownSendingLogsStatus["Disabled"] = "Disabled";
|
|
49
|
+
})(exports.KnownSendingLogsStatus || (exports.KnownSendingLogsStatus = {}));
|
|
50
|
+
/** Known values of {@link MonitoringStatus} that the service accepts. */
|
|
51
|
+
exports.KnownMonitoringStatus = void 0;
|
|
52
|
+
(function (KnownMonitoringStatus) {
|
|
53
|
+
KnownMonitoringStatus["Enabled"] = "Enabled";
|
|
54
|
+
KnownMonitoringStatus["Disabled"] = "Disabled";
|
|
55
|
+
})(exports.KnownMonitoringStatus || (exports.KnownMonitoringStatus = {}));
|
|
56
|
+
/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
|
|
57
|
+
exports.KnownMarketplaceSubscriptionStatus = void 0;
|
|
58
|
+
(function (KnownMarketplaceSubscriptionStatus) {
|
|
59
|
+
KnownMarketplaceSubscriptionStatus["Active"] = "Active";
|
|
60
|
+
KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
|
|
61
|
+
})(exports.KnownMarketplaceSubscriptionStatus || (exports.KnownMarketplaceSubscriptionStatus = {}));
|
|
62
|
+
/** Known values of {@link SingleSignOnStates} that the service accepts. */
|
|
63
|
+
exports.KnownSingleSignOnStates = void 0;
|
|
64
|
+
(function (KnownSingleSignOnStates) {
|
|
65
|
+
KnownSingleSignOnStates["Initial"] = "Initial";
|
|
66
|
+
KnownSingleSignOnStates["Enable"] = "Enable";
|
|
67
|
+
KnownSingleSignOnStates["Disable"] = "Disable";
|
|
68
|
+
KnownSingleSignOnStates["Existing"] = "Existing";
|
|
69
|
+
})(exports.KnownSingleSignOnStates || (exports.KnownSingleSignOnStates = {}));
|
|
70
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
71
|
+
exports.KnownProvisioningState = void 0;
|
|
72
|
+
(function (KnownProvisioningState) {
|
|
73
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
74
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
75
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
76
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
77
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
78
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
79
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
80
|
+
KnownProvisioningState["Deleted"] = "Deleted";
|
|
81
|
+
KnownProvisioningState["NotSpecified"] = "NotSpecified";
|
|
82
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
83
|
+
/** Known values of {@link LiftrResourceCategories} that the service accepts. */
|
|
84
|
+
exports.KnownLiftrResourceCategories = void 0;
|
|
85
|
+
(function (KnownLiftrResourceCategories) {
|
|
86
|
+
KnownLiftrResourceCategories["Unknown"] = "Unknown";
|
|
87
|
+
KnownLiftrResourceCategories["MonitorLogs"] = "MonitorLogs";
|
|
88
|
+
})(exports.KnownLiftrResourceCategories || (exports.KnownLiftrResourceCategories = {}));
|
|
89
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
90
|
+
exports.KnownCreatedByType = void 0;
|
|
91
|
+
(function (KnownCreatedByType) {
|
|
92
|
+
KnownCreatedByType["User"] = "User";
|
|
93
|
+
KnownCreatedByType["Application"] = "Application";
|
|
94
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
95
|
+
KnownCreatedByType["Key"] = "Key";
|
|
96
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
97
|
+
/** Known values of {@link ManagedIdentityType} that the service accepts. */
|
|
98
|
+
exports.KnownManagedIdentityType = void 0;
|
|
99
|
+
(function (KnownManagedIdentityType) {
|
|
100
|
+
KnownManagedIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
101
|
+
KnownManagedIdentityType["UserAssigned"] = "UserAssigned";
|
|
102
|
+
KnownManagedIdentityType["SystemAndUserAssigned"] = "SystemAndUserAssigned";
|
|
103
|
+
})(exports.KnownManagedIdentityType || (exports.KnownManagedIdentityType = {}));
|
|
104
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
105
|
+
exports.KnownOrigin = void 0;
|
|
106
|
+
(function (KnownOrigin) {
|
|
107
|
+
KnownOrigin["User"] = "user";
|
|
108
|
+
KnownOrigin["System"] = "system";
|
|
109
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
110
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
111
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
112
|
+
exports.KnownActionType = void 0;
|
|
113
|
+
(function (KnownActionType) {
|
|
114
|
+
KnownActionType["Internal"] = "Internal";
|
|
115
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
116
|
+
/** Known values of {@link SendAadLogsStatus} that the service accepts. */
|
|
117
|
+
exports.KnownSendAadLogsStatus = void 0;
|
|
118
|
+
(function (KnownSendAadLogsStatus) {
|
|
119
|
+
KnownSendAadLogsStatus["Enabled"] = "Enabled";
|
|
120
|
+
KnownSendAadLogsStatus["Disabled"] = "Disabled";
|
|
121
|
+
})(exports.KnownSendAadLogsStatus || (exports.KnownSendAadLogsStatus = {}));
|
|
122
|
+
/** Known values of {@link SendSubscriptionLogsStatus} that the service accepts. */
|
|
123
|
+
exports.KnownSendSubscriptionLogsStatus = void 0;
|
|
124
|
+
(function (KnownSendSubscriptionLogsStatus) {
|
|
125
|
+
KnownSendSubscriptionLogsStatus["Enabled"] = "Enabled";
|
|
126
|
+
KnownSendSubscriptionLogsStatus["Disabled"] = "Disabled";
|
|
127
|
+
})(exports.KnownSendSubscriptionLogsStatus || (exports.KnownSendSubscriptionLogsStatus = {}));
|
|
128
|
+
/** Known values of {@link SendActivityLogsStatus} that the service accepts. */
|
|
129
|
+
exports.KnownSendActivityLogsStatus = void 0;
|
|
130
|
+
(function (KnownSendActivityLogsStatus) {
|
|
131
|
+
KnownSendActivityLogsStatus["Enabled"] = "Enabled";
|
|
132
|
+
KnownSendActivityLogsStatus["Disabled"] = "Disabled";
|
|
133
|
+
})(exports.KnownSendActivityLogsStatus || (exports.KnownSendActivityLogsStatus = {}));
|
|
134
|
+
/** Known values of {@link TagAction} that the service accepts. */
|
|
135
|
+
exports.KnownTagAction = void 0;
|
|
136
|
+
(function (KnownTagAction) {
|
|
137
|
+
KnownTagAction["Include"] = "Include";
|
|
138
|
+
KnownTagAction["Exclude"] = "Exclude";
|
|
139
|
+
})(exports.KnownTagAction || (exports.KnownTagAction = {}));
|
|
140
|
+
/** Known values of {@link MonitoringType} that the service accepts. */
|
|
141
|
+
exports.KnownMonitoringType = void 0;
|
|
142
|
+
(function (KnownMonitoringType) {
|
|
143
|
+
KnownMonitoringType["CloudInfrastructure"] = "CLOUD_INFRASTRUCTURE";
|
|
144
|
+
KnownMonitoringType["FullStack"] = "FULL_STACK";
|
|
145
|
+
})(exports.KnownMonitoringType || (exports.KnownMonitoringType = {}));
|
|
146
|
+
/** Known values of {@link AutoUpdateSetting} that the service accepts. */
|
|
147
|
+
exports.KnownAutoUpdateSetting = void 0;
|
|
148
|
+
(function (KnownAutoUpdateSetting) {
|
|
149
|
+
KnownAutoUpdateSetting["Enabled"] = "ENABLED";
|
|
150
|
+
KnownAutoUpdateSetting["Disabled"] = "DISABLED";
|
|
151
|
+
})(exports.KnownAutoUpdateSetting || (exports.KnownAutoUpdateSetting = {}));
|
|
152
|
+
/** Known values of {@link UpdateStatus} that the service accepts. */
|
|
153
|
+
exports.KnownUpdateStatus = void 0;
|
|
154
|
+
(function (KnownUpdateStatus) {
|
|
155
|
+
KnownUpdateStatus["Incompatible"] = "INCOMPATIBLE";
|
|
156
|
+
KnownUpdateStatus["Outdated"] = "OUTDATED";
|
|
157
|
+
KnownUpdateStatus["Scheduled"] = "SCHEDULED";
|
|
158
|
+
KnownUpdateStatus["Suppressed"] = "SUPPRESSED";
|
|
159
|
+
KnownUpdateStatus["Unknown"] = "UNKNOWN";
|
|
160
|
+
KnownUpdateStatus["UP2Date"] = "UP2DATE";
|
|
161
|
+
KnownUpdateStatus["UpdateINProgress"] = "UPDATE_IN_PROGRESS";
|
|
162
|
+
KnownUpdateStatus["UpdatePending"] = "UPDATE_PENDING";
|
|
163
|
+
KnownUpdateStatus["UpdateProblem"] = "UPDATE_PROBLEM";
|
|
164
|
+
})(exports.KnownUpdateStatus || (exports.KnownUpdateStatus = {}));
|
|
165
|
+
/** Known values of {@link AvailabilityState} that the service accepts. */
|
|
166
|
+
exports.KnownAvailabilityState = void 0;
|
|
167
|
+
(function (KnownAvailabilityState) {
|
|
168
|
+
KnownAvailabilityState["Crashed"] = "CRASHED";
|
|
169
|
+
KnownAvailabilityState["Lost"] = "LOST";
|
|
170
|
+
KnownAvailabilityState["Monitored"] = "MONITORED";
|
|
171
|
+
KnownAvailabilityState["PREMonitored"] = "PRE_MONITORED";
|
|
172
|
+
KnownAvailabilityState["Shutdown"] = "SHUTDOWN";
|
|
173
|
+
KnownAvailabilityState["UnexpectedShutdown"] = "UNEXPECTED_SHUTDOWN";
|
|
174
|
+
KnownAvailabilityState["Unknown"] = "UNKNOWN";
|
|
175
|
+
KnownAvailabilityState["Unmonitored"] = "UNMONITORED";
|
|
176
|
+
})(exports.KnownAvailabilityState || (exports.KnownAvailabilityState = {}));
|
|
177
|
+
/** Known values of {@link LogModule} that the service accepts. */
|
|
178
|
+
exports.KnownLogModule = void 0;
|
|
179
|
+
(function (KnownLogModule) {
|
|
180
|
+
KnownLogModule["Enabled"] = "ENABLED";
|
|
181
|
+
KnownLogModule["Disabled"] = "DISABLED";
|
|
182
|
+
})(exports.KnownLogModule || (exports.KnownLogModule = {}));
|
|
183
|
+
/** Known values of {@link SSOStatus} that the service accepts. */
|
|
184
|
+
exports.KnownSSOStatus = void 0;
|
|
185
|
+
(function (KnownSSOStatus) {
|
|
186
|
+
KnownSSOStatus["Enabled"] = "Enabled";
|
|
187
|
+
KnownSSOStatus["Disabled"] = "Disabled";
|
|
188
|
+
})(exports.KnownSSOStatus || (exports.KnownSSOStatus = {}));
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
* Copyright (c) Microsoft Corporation.
|
|
192
|
+
* Licensed under the MIT License.
|
|
193
|
+
*
|
|
194
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
195
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
196
|
+
*/
|
|
197
|
+
const AccountInfoSecure = {
|
|
198
|
+
type: {
|
|
199
|
+
name: "Composite",
|
|
200
|
+
className: "AccountInfoSecure",
|
|
201
|
+
modelProperties: {
|
|
202
|
+
accountId: {
|
|
203
|
+
serializedName: "accountId",
|
|
204
|
+
readOnly: true,
|
|
205
|
+
type: {
|
|
206
|
+
name: "String"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
apiKey: {
|
|
210
|
+
serializedName: "apiKey",
|
|
211
|
+
readOnly: true,
|
|
212
|
+
type: {
|
|
213
|
+
name: "String"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
regionId: {
|
|
217
|
+
serializedName: "regionId",
|
|
218
|
+
readOnly: true,
|
|
219
|
+
type: {
|
|
220
|
+
name: "String"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
const ErrorResponse = {
|
|
227
|
+
type: {
|
|
228
|
+
name: "Composite",
|
|
229
|
+
className: "ErrorResponse",
|
|
230
|
+
modelProperties: {
|
|
231
|
+
error: {
|
|
232
|
+
serializedName: "error",
|
|
233
|
+
type: {
|
|
234
|
+
name: "Composite",
|
|
235
|
+
className: "ErrorDetail"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
const ErrorDetail = {
|
|
242
|
+
type: {
|
|
243
|
+
name: "Composite",
|
|
244
|
+
className: "ErrorDetail",
|
|
245
|
+
modelProperties: {
|
|
246
|
+
code: {
|
|
247
|
+
serializedName: "code",
|
|
248
|
+
readOnly: true,
|
|
249
|
+
type: {
|
|
250
|
+
name: "String"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
message: {
|
|
254
|
+
serializedName: "message",
|
|
255
|
+
readOnly: true,
|
|
256
|
+
type: {
|
|
257
|
+
name: "String"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
target: {
|
|
261
|
+
serializedName: "target",
|
|
262
|
+
readOnly: true,
|
|
263
|
+
type: {
|
|
264
|
+
name: "String"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
details: {
|
|
268
|
+
serializedName: "details",
|
|
269
|
+
readOnly: true,
|
|
270
|
+
type: {
|
|
271
|
+
name: "Sequence",
|
|
272
|
+
element: {
|
|
273
|
+
type: {
|
|
274
|
+
name: "Composite",
|
|
275
|
+
className: "ErrorDetail"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
additionalInfo: {
|
|
281
|
+
serializedName: "additionalInfo",
|
|
282
|
+
readOnly: true,
|
|
283
|
+
type: {
|
|
284
|
+
name: "Sequence",
|
|
285
|
+
element: {
|
|
286
|
+
type: {
|
|
287
|
+
name: "Composite",
|
|
288
|
+
className: "ErrorAdditionalInfo"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
const ErrorAdditionalInfo = {
|
|
297
|
+
type: {
|
|
298
|
+
name: "Composite",
|
|
299
|
+
className: "ErrorAdditionalInfo",
|
|
300
|
+
modelProperties: {
|
|
301
|
+
type: {
|
|
302
|
+
serializedName: "type",
|
|
303
|
+
readOnly: true,
|
|
304
|
+
type: {
|
|
305
|
+
name: "String"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
info: {
|
|
309
|
+
serializedName: "info",
|
|
310
|
+
readOnly: true,
|
|
311
|
+
type: {
|
|
312
|
+
name: "Dictionary",
|
|
313
|
+
value: { type: { name: "any" } }
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
const MonitoredResourceListResponse = {
|
|
320
|
+
type: {
|
|
321
|
+
name: "Composite",
|
|
322
|
+
className: "MonitoredResourceListResponse",
|
|
323
|
+
modelProperties: {
|
|
324
|
+
value: {
|
|
325
|
+
serializedName: "value",
|
|
326
|
+
required: true,
|
|
327
|
+
type: {
|
|
328
|
+
name: "Sequence",
|
|
329
|
+
element: {
|
|
330
|
+
type: {
|
|
331
|
+
name: "Composite",
|
|
332
|
+
className: "MonitoredResource"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
nextLink: {
|
|
338
|
+
serializedName: "nextLink",
|
|
339
|
+
required: true,
|
|
340
|
+
type: {
|
|
341
|
+
name: "String"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
const MonitoredResource = {
|
|
348
|
+
type: {
|
|
349
|
+
name: "Composite",
|
|
350
|
+
className: "MonitoredResource",
|
|
351
|
+
modelProperties: {
|
|
352
|
+
id: {
|
|
353
|
+
serializedName: "id",
|
|
354
|
+
type: {
|
|
355
|
+
name: "String"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
sendingMetrics: {
|
|
359
|
+
serializedName: "sendingMetrics",
|
|
360
|
+
type: {
|
|
361
|
+
name: "String"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
reasonForMetricsStatus: {
|
|
365
|
+
serializedName: "reasonForMetricsStatus",
|
|
366
|
+
type: {
|
|
367
|
+
name: "String"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
sendingLogs: {
|
|
371
|
+
serializedName: "sendingLogs",
|
|
372
|
+
type: {
|
|
373
|
+
name: "String"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
reasonForLogsStatus: {
|
|
377
|
+
serializedName: "reasonForLogsStatus",
|
|
378
|
+
type: {
|
|
379
|
+
name: "String"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
const VMExtensionPayload = {
|
|
386
|
+
type: {
|
|
387
|
+
name: "Composite",
|
|
388
|
+
className: "VMExtensionPayload",
|
|
389
|
+
modelProperties: {
|
|
390
|
+
ingestionKey: {
|
|
391
|
+
serializedName: "ingestionKey",
|
|
392
|
+
type: {
|
|
393
|
+
name: "String"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
environmentId: {
|
|
397
|
+
serializedName: "environmentId",
|
|
398
|
+
type: {
|
|
399
|
+
name: "String"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
const DynatraceEnvironmentProperties = {
|
|
406
|
+
type: {
|
|
407
|
+
name: "Composite",
|
|
408
|
+
className: "DynatraceEnvironmentProperties",
|
|
409
|
+
modelProperties: {
|
|
410
|
+
userId: {
|
|
411
|
+
serializedName: "userId",
|
|
412
|
+
type: {
|
|
413
|
+
name: "String"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
accountInfo: {
|
|
417
|
+
serializedName: "accountInfo",
|
|
418
|
+
type: {
|
|
419
|
+
name: "Composite",
|
|
420
|
+
className: "AccountInfo"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
environmentInfo: {
|
|
424
|
+
serializedName: "environmentInfo",
|
|
425
|
+
type: {
|
|
426
|
+
name: "Composite",
|
|
427
|
+
className: "EnvironmentInfo"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
singleSignOnProperties: {
|
|
431
|
+
serializedName: "singleSignOnProperties",
|
|
432
|
+
type: {
|
|
433
|
+
name: "Composite",
|
|
434
|
+
className: "DynatraceSingleSignOnProperties"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
const AccountInfo = {
|
|
441
|
+
type: {
|
|
442
|
+
name: "Composite",
|
|
443
|
+
className: "AccountInfo",
|
|
444
|
+
modelProperties: {
|
|
445
|
+
accountId: {
|
|
446
|
+
serializedName: "accountId",
|
|
447
|
+
type: {
|
|
448
|
+
name: "String"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
regionId: {
|
|
452
|
+
serializedName: "regionId",
|
|
453
|
+
type: {
|
|
454
|
+
name: "String"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
const EnvironmentInfo = {
|
|
461
|
+
type: {
|
|
462
|
+
name: "Composite",
|
|
463
|
+
className: "EnvironmentInfo",
|
|
464
|
+
modelProperties: {
|
|
465
|
+
environmentId: {
|
|
466
|
+
serializedName: "environmentId",
|
|
467
|
+
type: {
|
|
468
|
+
name: "String"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
ingestionKey: {
|
|
472
|
+
serializedName: "ingestionKey",
|
|
473
|
+
type: {
|
|
474
|
+
name: "String"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
logsIngestionEndpoint: {
|
|
478
|
+
serializedName: "logsIngestionEndpoint",
|
|
479
|
+
type: {
|
|
480
|
+
name: "String"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
landingURL: {
|
|
484
|
+
serializedName: "landingURL",
|
|
485
|
+
type: {
|
|
486
|
+
name: "String"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
const DynatraceSingleSignOnProperties = {
|
|
493
|
+
type: {
|
|
494
|
+
name: "Composite",
|
|
495
|
+
className: "DynatraceSingleSignOnProperties",
|
|
496
|
+
modelProperties: {
|
|
497
|
+
singleSignOnState: {
|
|
498
|
+
serializedName: "singleSignOnState",
|
|
499
|
+
type: {
|
|
500
|
+
name: "String"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
enterpriseAppId: {
|
|
504
|
+
serializedName: "enterpriseAppId",
|
|
505
|
+
type: {
|
|
506
|
+
name: "String"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
singleSignOnUrl: {
|
|
510
|
+
serializedName: "singleSignOnUrl",
|
|
511
|
+
type: {
|
|
512
|
+
name: "String"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
aadDomains: {
|
|
516
|
+
serializedName: "aadDomains",
|
|
517
|
+
type: {
|
|
518
|
+
name: "Sequence",
|
|
519
|
+
element: {
|
|
520
|
+
type: {
|
|
521
|
+
name: "String"
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
provisioningState: {
|
|
527
|
+
serializedName: "provisioningState",
|
|
528
|
+
readOnly: true,
|
|
529
|
+
type: {
|
|
530
|
+
name: "String"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
const UserInfo = {
|
|
537
|
+
type: {
|
|
538
|
+
name: "Composite",
|
|
539
|
+
className: "UserInfo",
|
|
540
|
+
modelProperties: {
|
|
541
|
+
firstName: {
|
|
542
|
+
constraints: {
|
|
543
|
+
MaxLength: 50
|
|
544
|
+
},
|
|
545
|
+
serializedName: "firstName",
|
|
546
|
+
type: {
|
|
547
|
+
name: "String"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
lastName: {
|
|
551
|
+
constraints: {
|
|
552
|
+
MaxLength: 50
|
|
553
|
+
},
|
|
554
|
+
serializedName: "lastName",
|
|
555
|
+
type: {
|
|
556
|
+
name: "String"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
emailAddress: {
|
|
560
|
+
constraints: {
|
|
561
|
+
Pattern: new RegExp("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$")
|
|
562
|
+
},
|
|
563
|
+
serializedName: "emailAddress",
|
|
564
|
+
type: {
|
|
565
|
+
name: "String"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
phoneNumber: {
|
|
569
|
+
constraints: {
|
|
570
|
+
MaxLength: 40
|
|
571
|
+
},
|
|
572
|
+
serializedName: "phoneNumber",
|
|
573
|
+
type: {
|
|
574
|
+
name: "String"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
country: {
|
|
578
|
+
serializedName: "country",
|
|
579
|
+
type: {
|
|
580
|
+
name: "String"
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
const PlanData = {
|
|
587
|
+
type: {
|
|
588
|
+
name: "Composite",
|
|
589
|
+
className: "PlanData",
|
|
590
|
+
modelProperties: {
|
|
591
|
+
usageType: {
|
|
592
|
+
constraints: {
|
|
593
|
+
MaxLength: 50
|
|
594
|
+
},
|
|
595
|
+
serializedName: "usageType",
|
|
596
|
+
type: {
|
|
597
|
+
name: "String"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
billingCycle: {
|
|
601
|
+
constraints: {
|
|
602
|
+
MaxLength: 50
|
|
603
|
+
},
|
|
604
|
+
serializedName: "billingCycle",
|
|
605
|
+
type: {
|
|
606
|
+
name: "String"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
planDetails: {
|
|
610
|
+
constraints: {
|
|
611
|
+
MaxLength: 50
|
|
612
|
+
},
|
|
613
|
+
serializedName: "planDetails",
|
|
614
|
+
type: {
|
|
615
|
+
name: "String"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
effectiveDate: {
|
|
619
|
+
serializedName: "effectiveDate",
|
|
620
|
+
type: {
|
|
621
|
+
name: "DateTime"
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
const SystemData = {
|
|
628
|
+
type: {
|
|
629
|
+
name: "Composite",
|
|
630
|
+
className: "SystemData",
|
|
631
|
+
modelProperties: {
|
|
632
|
+
createdBy: {
|
|
633
|
+
serializedName: "createdBy",
|
|
634
|
+
type: {
|
|
635
|
+
name: "String"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
createdByType: {
|
|
639
|
+
serializedName: "createdByType",
|
|
640
|
+
type: {
|
|
641
|
+
name: "String"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
createdAt: {
|
|
645
|
+
serializedName: "createdAt",
|
|
646
|
+
type: {
|
|
647
|
+
name: "DateTime"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
lastModifiedBy: {
|
|
651
|
+
serializedName: "lastModifiedBy",
|
|
652
|
+
type: {
|
|
653
|
+
name: "String"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
lastModifiedByType: {
|
|
657
|
+
serializedName: "lastModifiedByType",
|
|
658
|
+
type: {
|
|
659
|
+
name: "String"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
lastModifiedAt: {
|
|
663
|
+
serializedName: "lastModifiedAt",
|
|
664
|
+
type: {
|
|
665
|
+
name: "DateTime"
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
const IdentityProperties = {
|
|
672
|
+
type: {
|
|
673
|
+
name: "Composite",
|
|
674
|
+
className: "IdentityProperties",
|
|
675
|
+
modelProperties: {
|
|
676
|
+
tenantId: {
|
|
677
|
+
serializedName: "tenantId",
|
|
678
|
+
readOnly: true,
|
|
679
|
+
type: {
|
|
680
|
+
name: "String"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
principalId: {
|
|
684
|
+
serializedName: "principalId",
|
|
685
|
+
readOnly: true,
|
|
686
|
+
type: {
|
|
687
|
+
name: "String"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
type: {
|
|
691
|
+
serializedName: "type",
|
|
692
|
+
required: true,
|
|
693
|
+
type: {
|
|
694
|
+
name: "String"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
userAssignedIdentities: {
|
|
698
|
+
serializedName: "userAssignedIdentities",
|
|
699
|
+
type: {
|
|
700
|
+
name: "Dictionary",
|
|
701
|
+
value: {
|
|
702
|
+
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
const UserAssignedIdentity = {
|
|
710
|
+
type: {
|
|
711
|
+
name: "Composite",
|
|
712
|
+
className: "UserAssignedIdentity",
|
|
713
|
+
modelProperties: {
|
|
714
|
+
clientId: {
|
|
715
|
+
serializedName: "clientId",
|
|
716
|
+
required: true,
|
|
717
|
+
type: {
|
|
718
|
+
name: "String"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
principalId: {
|
|
722
|
+
serializedName: "principalId",
|
|
723
|
+
required: true,
|
|
724
|
+
type: {
|
|
725
|
+
name: "String"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
const Resource = {
|
|
732
|
+
type: {
|
|
733
|
+
name: "Composite",
|
|
734
|
+
className: "Resource",
|
|
735
|
+
modelProperties: {
|
|
736
|
+
id: {
|
|
737
|
+
serializedName: "id",
|
|
738
|
+
readOnly: true,
|
|
739
|
+
type: {
|
|
740
|
+
name: "String"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
name: {
|
|
744
|
+
serializedName: "name",
|
|
745
|
+
readOnly: true,
|
|
746
|
+
type: {
|
|
747
|
+
name: "String"
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
type: {
|
|
751
|
+
serializedName: "type",
|
|
752
|
+
readOnly: true,
|
|
753
|
+
type: {
|
|
754
|
+
name: "String"
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
const MonitorResourceUpdate = {
|
|
761
|
+
type: {
|
|
762
|
+
name: "Composite",
|
|
763
|
+
className: "MonitorResourceUpdate",
|
|
764
|
+
modelProperties: {
|
|
765
|
+
tags: {
|
|
766
|
+
serializedName: "tags",
|
|
767
|
+
type: {
|
|
768
|
+
name: "Dictionary",
|
|
769
|
+
value: { type: { name: "String" } }
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
monitoringStatus: {
|
|
773
|
+
serializedName: "monitoringStatus",
|
|
774
|
+
type: {
|
|
775
|
+
name: "String"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
marketplaceSubscriptionStatus: {
|
|
779
|
+
serializedName: "marketplaceSubscriptionStatus",
|
|
780
|
+
type: {
|
|
781
|
+
name: "String"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
dynatraceEnvironmentProperties: {
|
|
785
|
+
serializedName: "dynatraceEnvironmentProperties",
|
|
786
|
+
type: {
|
|
787
|
+
name: "Composite",
|
|
788
|
+
className: "DynatraceEnvironmentProperties"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
userInfo: {
|
|
792
|
+
serializedName: "userInfo",
|
|
793
|
+
type: {
|
|
794
|
+
name: "Composite",
|
|
795
|
+
className: "UserInfo"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
planData: {
|
|
799
|
+
serializedName: "planData",
|
|
800
|
+
type: {
|
|
801
|
+
name: "Composite",
|
|
802
|
+
className: "PlanData"
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
const OperationListResult = {
|
|
809
|
+
type: {
|
|
810
|
+
name: "Composite",
|
|
811
|
+
className: "OperationListResult",
|
|
812
|
+
modelProperties: {
|
|
813
|
+
value: {
|
|
814
|
+
serializedName: "value",
|
|
815
|
+
readOnly: true,
|
|
816
|
+
type: {
|
|
817
|
+
name: "Sequence",
|
|
818
|
+
element: {
|
|
819
|
+
type: {
|
|
820
|
+
name: "Composite",
|
|
821
|
+
className: "Operation"
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
nextLink: {
|
|
827
|
+
serializedName: "nextLink",
|
|
828
|
+
readOnly: true,
|
|
829
|
+
type: {
|
|
830
|
+
name: "String"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
const Operation = {
|
|
837
|
+
type: {
|
|
838
|
+
name: "Composite",
|
|
839
|
+
className: "Operation",
|
|
840
|
+
modelProperties: {
|
|
841
|
+
name: {
|
|
842
|
+
serializedName: "name",
|
|
843
|
+
readOnly: true,
|
|
844
|
+
type: {
|
|
845
|
+
name: "String"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
isDataAction: {
|
|
849
|
+
serializedName: "isDataAction",
|
|
850
|
+
readOnly: true,
|
|
851
|
+
type: {
|
|
852
|
+
name: "Boolean"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
display: {
|
|
856
|
+
serializedName: "display",
|
|
857
|
+
type: {
|
|
858
|
+
name: "Composite",
|
|
859
|
+
className: "OperationDisplay"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
origin: {
|
|
863
|
+
serializedName: "origin",
|
|
864
|
+
readOnly: true,
|
|
865
|
+
type: {
|
|
866
|
+
name: "String"
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
actionType: {
|
|
870
|
+
serializedName: "actionType",
|
|
871
|
+
readOnly: true,
|
|
872
|
+
type: {
|
|
873
|
+
name: "String"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
const OperationDisplay = {
|
|
880
|
+
type: {
|
|
881
|
+
name: "Composite",
|
|
882
|
+
className: "OperationDisplay",
|
|
883
|
+
modelProperties: {
|
|
884
|
+
provider: {
|
|
885
|
+
serializedName: "provider",
|
|
886
|
+
readOnly: true,
|
|
887
|
+
type: {
|
|
888
|
+
name: "String"
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
resource: {
|
|
892
|
+
serializedName: "resource",
|
|
893
|
+
readOnly: true,
|
|
894
|
+
type: {
|
|
895
|
+
name: "String"
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
operation: {
|
|
899
|
+
serializedName: "operation",
|
|
900
|
+
readOnly: true,
|
|
901
|
+
type: {
|
|
902
|
+
name: "String"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
description: {
|
|
906
|
+
serializedName: "description",
|
|
907
|
+
readOnly: true,
|
|
908
|
+
type: {
|
|
909
|
+
name: "String"
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
const MonitorResourceListResult = {
|
|
916
|
+
type: {
|
|
917
|
+
name: "Composite",
|
|
918
|
+
className: "MonitorResourceListResult",
|
|
919
|
+
modelProperties: {
|
|
920
|
+
value: {
|
|
921
|
+
serializedName: "value",
|
|
922
|
+
required: true,
|
|
923
|
+
type: {
|
|
924
|
+
name: "Sequence",
|
|
925
|
+
element: {
|
|
926
|
+
type: {
|
|
927
|
+
name: "Composite",
|
|
928
|
+
className: "MonitorResource"
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
nextLink: {
|
|
934
|
+
serializedName: "nextLink",
|
|
935
|
+
required: true,
|
|
936
|
+
type: {
|
|
937
|
+
name: "String"
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
const LogRules = {
|
|
944
|
+
type: {
|
|
945
|
+
name: "Composite",
|
|
946
|
+
className: "LogRules",
|
|
947
|
+
modelProperties: {
|
|
948
|
+
sendAadLogs: {
|
|
949
|
+
serializedName: "sendAadLogs",
|
|
950
|
+
type: {
|
|
951
|
+
name: "String"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
sendSubscriptionLogs: {
|
|
955
|
+
serializedName: "sendSubscriptionLogs",
|
|
956
|
+
type: {
|
|
957
|
+
name: "String"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
sendActivityLogs: {
|
|
961
|
+
serializedName: "sendActivityLogs",
|
|
962
|
+
type: {
|
|
963
|
+
name: "String"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
filteringTags: {
|
|
967
|
+
serializedName: "filteringTags",
|
|
968
|
+
type: {
|
|
969
|
+
name: "Sequence",
|
|
970
|
+
element: {
|
|
971
|
+
type: {
|
|
972
|
+
name: "Composite",
|
|
973
|
+
className: "FilteringTag"
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
const FilteringTag = {
|
|
982
|
+
type: {
|
|
983
|
+
name: "Composite",
|
|
984
|
+
className: "FilteringTag",
|
|
985
|
+
modelProperties: {
|
|
986
|
+
name: {
|
|
987
|
+
serializedName: "name",
|
|
988
|
+
type: {
|
|
989
|
+
name: "String"
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
value: {
|
|
993
|
+
serializedName: "value",
|
|
994
|
+
type: {
|
|
995
|
+
name: "String"
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
action: {
|
|
999
|
+
serializedName: "action",
|
|
1000
|
+
type: {
|
|
1001
|
+
name: "String"
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
const MetricRules = {
|
|
1008
|
+
type: {
|
|
1009
|
+
name: "Composite",
|
|
1010
|
+
className: "MetricRules",
|
|
1011
|
+
modelProperties: {
|
|
1012
|
+
filteringTags: {
|
|
1013
|
+
serializedName: "filteringTags",
|
|
1014
|
+
type: {
|
|
1015
|
+
name: "Sequence",
|
|
1016
|
+
element: {
|
|
1017
|
+
type: {
|
|
1018
|
+
name: "Composite",
|
|
1019
|
+
className: "FilteringTag"
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
1027
|
+
const TagRuleUpdate = {
|
|
1028
|
+
type: {
|
|
1029
|
+
name: "Composite",
|
|
1030
|
+
className: "TagRuleUpdate",
|
|
1031
|
+
modelProperties: {
|
|
1032
|
+
logRules: {
|
|
1033
|
+
serializedName: "logRules",
|
|
1034
|
+
type: {
|
|
1035
|
+
name: "Composite",
|
|
1036
|
+
className: "LogRules"
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
metricRules: {
|
|
1040
|
+
serializedName: "metricRules",
|
|
1041
|
+
type: {
|
|
1042
|
+
name: "Composite",
|
|
1043
|
+
className: "MetricRules"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
const TagRuleListResult = {
|
|
1050
|
+
type: {
|
|
1051
|
+
name: "Composite",
|
|
1052
|
+
className: "TagRuleListResult",
|
|
1053
|
+
modelProperties: {
|
|
1054
|
+
value: {
|
|
1055
|
+
serializedName: "value",
|
|
1056
|
+
required: true,
|
|
1057
|
+
type: {
|
|
1058
|
+
name: "Sequence",
|
|
1059
|
+
element: {
|
|
1060
|
+
type: {
|
|
1061
|
+
name: "Composite",
|
|
1062
|
+
className: "TagRule"
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
nextLink: {
|
|
1068
|
+
serializedName: "nextLink",
|
|
1069
|
+
required: true,
|
|
1070
|
+
type: {
|
|
1071
|
+
name: "String"
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
const DynatraceSingleSignOnResourceListResult = {
|
|
1078
|
+
type: {
|
|
1079
|
+
name: "Composite",
|
|
1080
|
+
className: "DynatraceSingleSignOnResourceListResult",
|
|
1081
|
+
modelProperties: {
|
|
1082
|
+
value: {
|
|
1083
|
+
serializedName: "value",
|
|
1084
|
+
required: true,
|
|
1085
|
+
type: {
|
|
1086
|
+
name: "Sequence",
|
|
1087
|
+
element: {
|
|
1088
|
+
type: {
|
|
1089
|
+
name: "Composite",
|
|
1090
|
+
className: "DynatraceSingleSignOnResource"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
nextLink: {
|
|
1096
|
+
serializedName: "nextLink",
|
|
1097
|
+
required: true,
|
|
1098
|
+
type: {
|
|
1099
|
+
name: "String"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
const VMHostsListResponse = {
|
|
1106
|
+
type: {
|
|
1107
|
+
name: "Composite",
|
|
1108
|
+
className: "VMHostsListResponse",
|
|
1109
|
+
modelProperties: {
|
|
1110
|
+
value: {
|
|
1111
|
+
serializedName: "value",
|
|
1112
|
+
required: true,
|
|
1113
|
+
type: {
|
|
1114
|
+
name: "Sequence",
|
|
1115
|
+
element: {
|
|
1116
|
+
type: {
|
|
1117
|
+
name: "Composite",
|
|
1118
|
+
className: "VMInfo"
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
nextLink: {
|
|
1124
|
+
serializedName: "nextLink",
|
|
1125
|
+
required: true,
|
|
1126
|
+
type: {
|
|
1127
|
+
name: "String"
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
const VMInfo = {
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "Composite",
|
|
1136
|
+
className: "VMInfo",
|
|
1137
|
+
modelProperties: {
|
|
1138
|
+
resourceId: {
|
|
1139
|
+
serializedName: "resourceId",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "String"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
version: {
|
|
1145
|
+
serializedName: "version",
|
|
1146
|
+
type: {
|
|
1147
|
+
name: "String"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
monitoringType: {
|
|
1151
|
+
serializedName: "monitoringType",
|
|
1152
|
+
type: {
|
|
1153
|
+
name: "String"
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
autoUpdateSetting: {
|
|
1157
|
+
serializedName: "autoUpdateSetting",
|
|
1158
|
+
type: {
|
|
1159
|
+
name: "String"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
updateStatus: {
|
|
1163
|
+
serializedName: "updateStatus",
|
|
1164
|
+
type: {
|
|
1165
|
+
name: "String"
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
availabilityState: {
|
|
1169
|
+
serializedName: "availabilityState",
|
|
1170
|
+
type: {
|
|
1171
|
+
name: "String"
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
logModule: {
|
|
1175
|
+
serializedName: "logModule",
|
|
1176
|
+
type: {
|
|
1177
|
+
name: "String"
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
hostGroup: {
|
|
1181
|
+
serializedName: "hostGroup",
|
|
1182
|
+
type: {
|
|
1183
|
+
name: "String"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
hostName: {
|
|
1187
|
+
serializedName: "hostName",
|
|
1188
|
+
type: {
|
|
1189
|
+
name: "String"
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
const AppServiceListResponse = {
|
|
1196
|
+
type: {
|
|
1197
|
+
name: "Composite",
|
|
1198
|
+
className: "AppServiceListResponse",
|
|
1199
|
+
modelProperties: {
|
|
1200
|
+
value: {
|
|
1201
|
+
serializedName: "value",
|
|
1202
|
+
required: true,
|
|
1203
|
+
type: {
|
|
1204
|
+
name: "Sequence",
|
|
1205
|
+
element: {
|
|
1206
|
+
type: {
|
|
1207
|
+
name: "Composite",
|
|
1208
|
+
className: "AppServiceInfo"
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
nextLink: {
|
|
1214
|
+
serializedName: "nextLink",
|
|
1215
|
+
required: true,
|
|
1216
|
+
type: {
|
|
1217
|
+
name: "String"
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
const AppServiceInfo = {
|
|
1224
|
+
type: {
|
|
1225
|
+
name: "Composite",
|
|
1226
|
+
className: "AppServiceInfo",
|
|
1227
|
+
modelProperties: {
|
|
1228
|
+
resourceId: {
|
|
1229
|
+
serializedName: "resourceId",
|
|
1230
|
+
type: {
|
|
1231
|
+
name: "String"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
version: {
|
|
1235
|
+
serializedName: "version",
|
|
1236
|
+
type: {
|
|
1237
|
+
name: "String"
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
monitoringType: {
|
|
1241
|
+
serializedName: "monitoringType",
|
|
1242
|
+
type: {
|
|
1243
|
+
name: "String"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
autoUpdateSetting: {
|
|
1247
|
+
serializedName: "autoUpdateSetting",
|
|
1248
|
+
type: {
|
|
1249
|
+
name: "String"
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
updateStatus: {
|
|
1253
|
+
serializedName: "updateStatus",
|
|
1254
|
+
type: {
|
|
1255
|
+
name: "String"
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
availabilityState: {
|
|
1259
|
+
serializedName: "availabilityState",
|
|
1260
|
+
type: {
|
|
1261
|
+
name: "String"
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
logModule: {
|
|
1265
|
+
serializedName: "logModule",
|
|
1266
|
+
type: {
|
|
1267
|
+
name: "String"
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
hostGroup: {
|
|
1271
|
+
serializedName: "hostGroup",
|
|
1272
|
+
type: {
|
|
1273
|
+
name: "String"
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
hostName: {
|
|
1277
|
+
serializedName: "hostName",
|
|
1278
|
+
type: {
|
|
1279
|
+
name: "String"
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
const SSODetailsRequest = {
|
|
1286
|
+
type: {
|
|
1287
|
+
name: "Composite",
|
|
1288
|
+
className: "SSODetailsRequest",
|
|
1289
|
+
modelProperties: {
|
|
1290
|
+
userPrincipal: {
|
|
1291
|
+
serializedName: "userPrincipal",
|
|
1292
|
+
type: {
|
|
1293
|
+
name: "String"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
const SSODetailsResponse = {
|
|
1300
|
+
type: {
|
|
1301
|
+
name: "Composite",
|
|
1302
|
+
className: "SSODetailsResponse",
|
|
1303
|
+
modelProperties: {
|
|
1304
|
+
isSsoEnabled: {
|
|
1305
|
+
serializedName: "isSsoEnabled",
|
|
1306
|
+
type: {
|
|
1307
|
+
name: "String"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
metadataUrl: {
|
|
1311
|
+
serializedName: "metadataUrl",
|
|
1312
|
+
type: {
|
|
1313
|
+
name: "String"
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
singleSignOnUrl: {
|
|
1317
|
+
serializedName: "singleSignOnUrl",
|
|
1318
|
+
type: {
|
|
1319
|
+
name: "String"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
aadDomains: {
|
|
1323
|
+
serializedName: "aadDomains",
|
|
1324
|
+
type: {
|
|
1325
|
+
name: "Sequence",
|
|
1326
|
+
element: {
|
|
1327
|
+
type: {
|
|
1328
|
+
name: "String"
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
adminUsers: {
|
|
1334
|
+
serializedName: "adminUsers",
|
|
1335
|
+
type: {
|
|
1336
|
+
name: "Sequence",
|
|
1337
|
+
element: {
|
|
1338
|
+
type: {
|
|
1339
|
+
name: "String"
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
const LinkableEnvironmentRequest = {
|
|
1348
|
+
type: {
|
|
1349
|
+
name: "Composite",
|
|
1350
|
+
className: "LinkableEnvironmentRequest",
|
|
1351
|
+
modelProperties: {
|
|
1352
|
+
tenantId: {
|
|
1353
|
+
serializedName: "tenantId",
|
|
1354
|
+
type: {
|
|
1355
|
+
name: "String"
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
userPrincipal: {
|
|
1359
|
+
serializedName: "userPrincipal",
|
|
1360
|
+
type: {
|
|
1361
|
+
name: "String"
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
region: {
|
|
1365
|
+
serializedName: "region",
|
|
1366
|
+
type: {
|
|
1367
|
+
name: "String"
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
const LinkableEnvironmentListResponse = {
|
|
1374
|
+
type: {
|
|
1375
|
+
name: "Composite",
|
|
1376
|
+
className: "LinkableEnvironmentListResponse",
|
|
1377
|
+
modelProperties: {
|
|
1378
|
+
value: {
|
|
1379
|
+
serializedName: "value",
|
|
1380
|
+
type: {
|
|
1381
|
+
name: "Sequence",
|
|
1382
|
+
element: {
|
|
1383
|
+
type: {
|
|
1384
|
+
name: "Composite",
|
|
1385
|
+
className: "LinkableEnvironmentResponse"
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
nextLink: {
|
|
1391
|
+
serializedName: "nextLink",
|
|
1392
|
+
type: {
|
|
1393
|
+
name: "String"
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
const LinkableEnvironmentResponse = {
|
|
1400
|
+
type: {
|
|
1401
|
+
name: "Composite",
|
|
1402
|
+
className: "LinkableEnvironmentResponse",
|
|
1403
|
+
modelProperties: {
|
|
1404
|
+
environmentId: {
|
|
1405
|
+
serializedName: "environmentId",
|
|
1406
|
+
type: {
|
|
1407
|
+
name: "String"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
environmentName: {
|
|
1411
|
+
serializedName: "environmentName",
|
|
1412
|
+
type: {
|
|
1413
|
+
name: "String"
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
planData: {
|
|
1417
|
+
serializedName: "planData",
|
|
1418
|
+
type: {
|
|
1419
|
+
name: "Composite",
|
|
1420
|
+
className: "PlanData"
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
const TrackedResource = {
|
|
1427
|
+
type: {
|
|
1428
|
+
name: "Composite",
|
|
1429
|
+
className: "TrackedResource",
|
|
1430
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1431
|
+
serializedName: "tags",
|
|
1432
|
+
type: {
|
|
1433
|
+
name: "Dictionary",
|
|
1434
|
+
value: { type: { name: "String" } }
|
|
1435
|
+
}
|
|
1436
|
+
}, location: {
|
|
1437
|
+
serializedName: "location",
|
|
1438
|
+
required: true,
|
|
1439
|
+
type: {
|
|
1440
|
+
name: "String"
|
|
1441
|
+
}
|
|
1442
|
+
} })
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
const ProxyResource = {
|
|
1446
|
+
type: {
|
|
1447
|
+
name: "Composite",
|
|
1448
|
+
className: "ProxyResource",
|
|
1449
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
const MonitorResource = {
|
|
1453
|
+
type: {
|
|
1454
|
+
name: "Composite",
|
|
1455
|
+
className: "MonitorResource",
|
|
1456
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
|
|
1457
|
+
serializedName: "systemData",
|
|
1458
|
+
type: {
|
|
1459
|
+
name: "Composite",
|
|
1460
|
+
className: "SystemData"
|
|
1461
|
+
}
|
|
1462
|
+
}, identity: {
|
|
1463
|
+
serializedName: "identity",
|
|
1464
|
+
type: {
|
|
1465
|
+
name: "Composite",
|
|
1466
|
+
className: "IdentityProperties"
|
|
1467
|
+
}
|
|
1468
|
+
}, monitoringStatus: {
|
|
1469
|
+
serializedName: "properties.monitoringStatus",
|
|
1470
|
+
type: {
|
|
1471
|
+
name: "String"
|
|
1472
|
+
}
|
|
1473
|
+
}, marketplaceSubscriptionStatus: {
|
|
1474
|
+
serializedName: "properties.marketplaceSubscriptionStatus",
|
|
1475
|
+
type: {
|
|
1476
|
+
name: "String"
|
|
1477
|
+
}
|
|
1478
|
+
}, dynatraceEnvironmentProperties: {
|
|
1479
|
+
serializedName: "properties.dynatraceEnvironmentProperties",
|
|
1480
|
+
type: {
|
|
1481
|
+
name: "Composite",
|
|
1482
|
+
className: "DynatraceEnvironmentProperties"
|
|
1483
|
+
}
|
|
1484
|
+
}, userInfo: {
|
|
1485
|
+
serializedName: "properties.userInfo",
|
|
1486
|
+
type: {
|
|
1487
|
+
name: "Composite",
|
|
1488
|
+
className: "UserInfo"
|
|
1489
|
+
}
|
|
1490
|
+
}, planData: {
|
|
1491
|
+
serializedName: "properties.planData",
|
|
1492
|
+
type: {
|
|
1493
|
+
name: "Composite",
|
|
1494
|
+
className: "PlanData"
|
|
1495
|
+
}
|
|
1496
|
+
}, liftrResourceCategory: {
|
|
1497
|
+
serializedName: "properties.liftrResourceCategory",
|
|
1498
|
+
readOnly: true,
|
|
1499
|
+
type: {
|
|
1500
|
+
name: "String"
|
|
1501
|
+
}
|
|
1502
|
+
}, liftrResourcePreference: {
|
|
1503
|
+
serializedName: "properties.liftrResourcePreference",
|
|
1504
|
+
readOnly: true,
|
|
1505
|
+
type: {
|
|
1506
|
+
name: "Number"
|
|
1507
|
+
}
|
|
1508
|
+
}, provisioningState: {
|
|
1509
|
+
serializedName: "properties.provisioningState",
|
|
1510
|
+
readOnly: true,
|
|
1511
|
+
type: {
|
|
1512
|
+
name: "String"
|
|
1513
|
+
}
|
|
1514
|
+
} })
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
const TagRule = {
|
|
1518
|
+
type: {
|
|
1519
|
+
name: "Composite",
|
|
1520
|
+
className: "TagRule",
|
|
1521
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1522
|
+
serializedName: "systemData",
|
|
1523
|
+
type: {
|
|
1524
|
+
name: "Composite",
|
|
1525
|
+
className: "SystemData"
|
|
1526
|
+
}
|
|
1527
|
+
}, logRules: {
|
|
1528
|
+
serializedName: "properties.logRules",
|
|
1529
|
+
type: {
|
|
1530
|
+
name: "Composite",
|
|
1531
|
+
className: "LogRules"
|
|
1532
|
+
}
|
|
1533
|
+
}, metricRules: {
|
|
1534
|
+
serializedName: "properties.metricRules",
|
|
1535
|
+
type: {
|
|
1536
|
+
name: "Composite",
|
|
1537
|
+
className: "MetricRules"
|
|
1538
|
+
}
|
|
1539
|
+
}, provisioningState: {
|
|
1540
|
+
serializedName: "properties.provisioningState",
|
|
1541
|
+
readOnly: true,
|
|
1542
|
+
type: {
|
|
1543
|
+
name: "String"
|
|
1544
|
+
}
|
|
1545
|
+
} })
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
const DynatraceSingleSignOnResource = {
|
|
1549
|
+
type: {
|
|
1550
|
+
name: "Composite",
|
|
1551
|
+
className: "DynatraceSingleSignOnResource",
|
|
1552
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1553
|
+
serializedName: "systemData",
|
|
1554
|
+
type: {
|
|
1555
|
+
name: "Composite",
|
|
1556
|
+
className: "SystemData"
|
|
1557
|
+
}
|
|
1558
|
+
}, singleSignOnState: {
|
|
1559
|
+
serializedName: "properties.singleSignOnState",
|
|
1560
|
+
type: {
|
|
1561
|
+
name: "String"
|
|
1562
|
+
}
|
|
1563
|
+
}, enterpriseAppId: {
|
|
1564
|
+
serializedName: "properties.enterpriseAppId",
|
|
1565
|
+
type: {
|
|
1566
|
+
name: "String"
|
|
1567
|
+
}
|
|
1568
|
+
}, singleSignOnUrl: {
|
|
1569
|
+
serializedName: "properties.singleSignOnUrl",
|
|
1570
|
+
type: {
|
|
1571
|
+
name: "String"
|
|
1572
|
+
}
|
|
1573
|
+
}, aadDomains: {
|
|
1574
|
+
serializedName: "properties.aadDomains",
|
|
1575
|
+
type: {
|
|
1576
|
+
name: "Sequence",
|
|
1577
|
+
element: {
|
|
1578
|
+
type: {
|
|
1579
|
+
name: "String"
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}, provisioningState: {
|
|
1584
|
+
serializedName: "properties.provisioningState",
|
|
1585
|
+
readOnly: true,
|
|
1586
|
+
type: {
|
|
1587
|
+
name: "String"
|
|
1588
|
+
}
|
|
1589
|
+
} })
|
|
1590
|
+
}
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1594
|
+
__proto__: null,
|
|
1595
|
+
AccountInfoSecure: AccountInfoSecure,
|
|
1596
|
+
ErrorResponse: ErrorResponse,
|
|
1597
|
+
ErrorDetail: ErrorDetail,
|
|
1598
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1599
|
+
MonitoredResourceListResponse: MonitoredResourceListResponse,
|
|
1600
|
+
MonitoredResource: MonitoredResource,
|
|
1601
|
+
VMExtensionPayload: VMExtensionPayload,
|
|
1602
|
+
DynatraceEnvironmentProperties: DynatraceEnvironmentProperties,
|
|
1603
|
+
AccountInfo: AccountInfo,
|
|
1604
|
+
EnvironmentInfo: EnvironmentInfo,
|
|
1605
|
+
DynatraceSingleSignOnProperties: DynatraceSingleSignOnProperties,
|
|
1606
|
+
UserInfo: UserInfo,
|
|
1607
|
+
PlanData: PlanData,
|
|
1608
|
+
SystemData: SystemData,
|
|
1609
|
+
IdentityProperties: IdentityProperties,
|
|
1610
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1611
|
+
Resource: Resource,
|
|
1612
|
+
MonitorResourceUpdate: MonitorResourceUpdate,
|
|
1613
|
+
OperationListResult: OperationListResult,
|
|
1614
|
+
Operation: Operation,
|
|
1615
|
+
OperationDisplay: OperationDisplay,
|
|
1616
|
+
MonitorResourceListResult: MonitorResourceListResult,
|
|
1617
|
+
LogRules: LogRules,
|
|
1618
|
+
FilteringTag: FilteringTag,
|
|
1619
|
+
MetricRules: MetricRules,
|
|
1620
|
+
TagRuleUpdate: TagRuleUpdate,
|
|
1621
|
+
TagRuleListResult: TagRuleListResult,
|
|
1622
|
+
DynatraceSingleSignOnResourceListResult: DynatraceSingleSignOnResourceListResult,
|
|
1623
|
+
VMHostsListResponse: VMHostsListResponse,
|
|
1624
|
+
VMInfo: VMInfo,
|
|
1625
|
+
AppServiceListResponse: AppServiceListResponse,
|
|
1626
|
+
AppServiceInfo: AppServiceInfo,
|
|
1627
|
+
SSODetailsRequest: SSODetailsRequest,
|
|
1628
|
+
SSODetailsResponse: SSODetailsResponse,
|
|
1629
|
+
LinkableEnvironmentRequest: LinkableEnvironmentRequest,
|
|
1630
|
+
LinkableEnvironmentListResponse: LinkableEnvironmentListResponse,
|
|
1631
|
+
LinkableEnvironmentResponse: LinkableEnvironmentResponse,
|
|
1632
|
+
TrackedResource: TrackedResource,
|
|
1633
|
+
ProxyResource: ProxyResource,
|
|
1634
|
+
MonitorResource: MonitorResource,
|
|
1635
|
+
TagRule: TagRule,
|
|
1636
|
+
DynatraceSingleSignOnResource: DynatraceSingleSignOnResource
|
|
1637
|
+
});
|
|
1638
|
+
|
|
1639
|
+
/*
|
|
1640
|
+
* Copyright (c) Microsoft Corporation.
|
|
1641
|
+
* Licensed under the MIT License.
|
|
1642
|
+
*
|
|
1643
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1644
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1645
|
+
*/
|
|
1646
|
+
const accept = {
|
|
1647
|
+
parameterPath: "accept",
|
|
1648
|
+
mapper: {
|
|
1649
|
+
defaultValue: "application/json",
|
|
1650
|
+
isConstant: true,
|
|
1651
|
+
serializedName: "Accept",
|
|
1652
|
+
type: {
|
|
1653
|
+
name: "String"
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1657
|
+
const $host = {
|
|
1658
|
+
parameterPath: "$host",
|
|
1659
|
+
mapper: {
|
|
1660
|
+
serializedName: "$host",
|
|
1661
|
+
required: true,
|
|
1662
|
+
type: {
|
|
1663
|
+
name: "String"
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
skipEncoding: true
|
|
1667
|
+
};
|
|
1668
|
+
const apiVersion = {
|
|
1669
|
+
parameterPath: "apiVersion",
|
|
1670
|
+
mapper: {
|
|
1671
|
+
defaultValue: "2021-09-01-preview",
|
|
1672
|
+
isConstant: true,
|
|
1673
|
+
serializedName: "api-version",
|
|
1674
|
+
type: {
|
|
1675
|
+
name: "String"
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1679
|
+
const subscriptionId = {
|
|
1680
|
+
parameterPath: "subscriptionId",
|
|
1681
|
+
mapper: {
|
|
1682
|
+
constraints: {
|
|
1683
|
+
MinLength: 1
|
|
1684
|
+
},
|
|
1685
|
+
serializedName: "subscriptionId",
|
|
1686
|
+
required: true,
|
|
1687
|
+
type: {
|
|
1688
|
+
name: "String"
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
const resourceGroupName = {
|
|
1693
|
+
parameterPath: "resourceGroupName",
|
|
1694
|
+
mapper: {
|
|
1695
|
+
constraints: {
|
|
1696
|
+
MaxLength: 90,
|
|
1697
|
+
MinLength: 1
|
|
1698
|
+
},
|
|
1699
|
+
serializedName: "resourceGroupName",
|
|
1700
|
+
required: true,
|
|
1701
|
+
type: {
|
|
1702
|
+
name: "String"
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
const monitorName = {
|
|
1707
|
+
parameterPath: "monitorName",
|
|
1708
|
+
mapper: {
|
|
1709
|
+
serializedName: "monitorName",
|
|
1710
|
+
required: true,
|
|
1711
|
+
type: {
|
|
1712
|
+
name: "String"
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1716
|
+
const contentType = {
|
|
1717
|
+
parameterPath: ["options", "contentType"],
|
|
1718
|
+
mapper: {
|
|
1719
|
+
defaultValue: "application/json",
|
|
1720
|
+
isConstant: true,
|
|
1721
|
+
serializedName: "Content-Type",
|
|
1722
|
+
type: {
|
|
1723
|
+
name: "String"
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1727
|
+
const resource = {
|
|
1728
|
+
parameterPath: "resource",
|
|
1729
|
+
mapper: MonitorResource
|
|
1730
|
+
};
|
|
1731
|
+
const resource1 = {
|
|
1732
|
+
parameterPath: "resource",
|
|
1733
|
+
mapper: MonitorResourceUpdate
|
|
1734
|
+
};
|
|
1735
|
+
const request = {
|
|
1736
|
+
parameterPath: ["options", "request"],
|
|
1737
|
+
mapper: SSODetailsRequest
|
|
1738
|
+
};
|
|
1739
|
+
const request1 = {
|
|
1740
|
+
parameterPath: "request",
|
|
1741
|
+
mapper: LinkableEnvironmentRequest
|
|
1742
|
+
};
|
|
1743
|
+
const nextLink = {
|
|
1744
|
+
parameterPath: "nextLink",
|
|
1745
|
+
mapper: {
|
|
1746
|
+
serializedName: "nextLink",
|
|
1747
|
+
required: true,
|
|
1748
|
+
type: {
|
|
1749
|
+
name: "String"
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
skipEncoding: true
|
|
1753
|
+
};
|
|
1754
|
+
const ruleSetName = {
|
|
1755
|
+
parameterPath: "ruleSetName",
|
|
1756
|
+
mapper: {
|
|
1757
|
+
serializedName: "ruleSetName",
|
|
1758
|
+
required: true,
|
|
1759
|
+
type: {
|
|
1760
|
+
name: "String"
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
};
|
|
1764
|
+
const resource2 = {
|
|
1765
|
+
parameterPath: "resource",
|
|
1766
|
+
mapper: TagRule
|
|
1767
|
+
};
|
|
1768
|
+
const resource3 = {
|
|
1769
|
+
parameterPath: "resource",
|
|
1770
|
+
mapper: TagRuleUpdate
|
|
1771
|
+
};
|
|
1772
|
+
const resource4 = {
|
|
1773
|
+
parameterPath: "resource",
|
|
1774
|
+
mapper: DynatraceSingleSignOnResource
|
|
1775
|
+
};
|
|
1776
|
+
const configurationName = {
|
|
1777
|
+
parameterPath: "configurationName",
|
|
1778
|
+
mapper: {
|
|
1779
|
+
serializedName: "configurationName",
|
|
1780
|
+
required: true,
|
|
1781
|
+
type: {
|
|
1782
|
+
name: "String"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
/*
|
|
1788
|
+
* Copyright (c) Microsoft Corporation.
|
|
1789
|
+
* Licensed under the MIT License.
|
|
1790
|
+
*
|
|
1791
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1792
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1793
|
+
*/
|
|
1794
|
+
class LroImpl {
|
|
1795
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1796
|
+
this.sendOperationFn = sendOperationFn;
|
|
1797
|
+
this.args = args;
|
|
1798
|
+
this.spec = spec;
|
|
1799
|
+
this.requestPath = requestPath;
|
|
1800
|
+
this.requestMethod = requestMethod;
|
|
1801
|
+
}
|
|
1802
|
+
sendInitialRequest() {
|
|
1803
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1804
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
sendPollRequest(path) {
|
|
1808
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1809
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1810
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/*
|
|
1816
|
+
* Copyright (c) Microsoft Corporation.
|
|
1817
|
+
* Licensed under the MIT License.
|
|
1818
|
+
*
|
|
1819
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1820
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1821
|
+
*/
|
|
1822
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1823
|
+
/** Class containing Monitors operations. */
|
|
1824
|
+
class MonitorsImpl {
|
|
1825
|
+
/**
|
|
1826
|
+
* Initialize a new instance of the class Monitors class.
|
|
1827
|
+
* @param client Reference to the service client
|
|
1828
|
+
*/
|
|
1829
|
+
constructor(client) {
|
|
1830
|
+
this.client = client;
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* List the resources currently being monitored by the Dynatrace monitor resource.
|
|
1834
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1835
|
+
* @param monitorName Monitor resource name
|
|
1836
|
+
* @param options The options parameters.
|
|
1837
|
+
*/
|
|
1838
|
+
listMonitoredResources(resourceGroupName, monitorName, options) {
|
|
1839
|
+
const iter = this.listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options);
|
|
1840
|
+
return {
|
|
1841
|
+
next() {
|
|
1842
|
+
return iter.next();
|
|
1843
|
+
},
|
|
1844
|
+
[Symbol.asyncIterator]() {
|
|
1845
|
+
return this;
|
|
1846
|
+
},
|
|
1847
|
+
byPage: () => {
|
|
1848
|
+
return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options);
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options) {
|
|
1853
|
+
return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
|
|
1854
|
+
let result = yield tslib.__await(this._listMonitoredResources(resourceGroupName, monitorName, options));
|
|
1855
|
+
yield yield tslib.__await(result.value || []);
|
|
1856
|
+
let continuationToken = result.nextLink;
|
|
1857
|
+
while (continuationToken) {
|
|
1858
|
+
result = yield tslib.__await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
|
|
1859
|
+
continuationToken = result.nextLink;
|
|
1860
|
+
yield yield tslib.__await(result.value || []);
|
|
1861
|
+
}
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
|
|
1865
|
+
return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
|
|
1866
|
+
var e_1, _a;
|
|
1867
|
+
try {
|
|
1868
|
+
for (var _b = tslib.__asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1869
|
+
const page = _c.value;
|
|
1870
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1874
|
+
finally {
|
|
1875
|
+
try {
|
|
1876
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1877
|
+
}
|
|
1878
|
+
finally { if (e_1) throw e_1.error; }
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* List all MonitorResource by subscriptionId
|
|
1884
|
+
* @param options The options parameters.
|
|
1885
|
+
*/
|
|
1886
|
+
listBySubscriptionId(options) {
|
|
1887
|
+
const iter = this.listBySubscriptionIdPagingAll(options);
|
|
1888
|
+
return {
|
|
1889
|
+
next() {
|
|
1890
|
+
return iter.next();
|
|
1891
|
+
},
|
|
1892
|
+
[Symbol.asyncIterator]() {
|
|
1893
|
+
return this;
|
|
1894
|
+
},
|
|
1895
|
+
byPage: () => {
|
|
1896
|
+
return this.listBySubscriptionIdPagingPage(options);
|
|
1897
|
+
}
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
listBySubscriptionIdPagingPage(options) {
|
|
1901
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
|
|
1902
|
+
let result = yield tslib.__await(this._listBySubscriptionId(options));
|
|
1903
|
+
yield yield tslib.__await(result.value || []);
|
|
1904
|
+
let continuationToken = result.nextLink;
|
|
1905
|
+
while (continuationToken) {
|
|
1906
|
+
result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
|
|
1907
|
+
continuationToken = result.nextLink;
|
|
1908
|
+
yield yield tslib.__await(result.value || []);
|
|
1909
|
+
}
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
listBySubscriptionIdPagingAll(options) {
|
|
1913
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
|
|
1914
|
+
var e_2, _a;
|
|
1915
|
+
try {
|
|
1916
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1917
|
+
const page = _c.value;
|
|
1918
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1922
|
+
finally {
|
|
1923
|
+
try {
|
|
1924
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1925
|
+
}
|
|
1926
|
+
finally { if (e_2) throw e_2.error; }
|
|
1927
|
+
}
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* List MonitorResource resources by resource group
|
|
1932
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1933
|
+
* @param options The options parameters.
|
|
1934
|
+
*/
|
|
1935
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1936
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1937
|
+
return {
|
|
1938
|
+
next() {
|
|
1939
|
+
return iter.next();
|
|
1940
|
+
},
|
|
1941
|
+
[Symbol.asyncIterator]() {
|
|
1942
|
+
return this;
|
|
1943
|
+
},
|
|
1944
|
+
byPage: () => {
|
|
1945
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1946
|
+
}
|
|
1947
|
+
};
|
|
1948
|
+
}
|
|
1949
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1950
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1951
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1952
|
+
yield yield tslib.__await(result.value || []);
|
|
1953
|
+
let continuationToken = result.nextLink;
|
|
1954
|
+
while (continuationToken) {
|
|
1955
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1956
|
+
continuationToken = result.nextLink;
|
|
1957
|
+
yield yield tslib.__await(result.value || []);
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1962
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1963
|
+
var e_3, _a;
|
|
1964
|
+
try {
|
|
1965
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1966
|
+
const page = _c.value;
|
|
1967
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1971
|
+
finally {
|
|
1972
|
+
try {
|
|
1973
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1974
|
+
}
|
|
1975
|
+
finally { if (e_3) throw e_3.error; }
|
|
1976
|
+
}
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* List the compute resources currently being monitored by the Dynatrace resource.
|
|
1981
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1982
|
+
* @param monitorName Monitor resource name
|
|
1983
|
+
* @param options The options parameters.
|
|
1984
|
+
*/
|
|
1985
|
+
listHosts(resourceGroupName, monitorName, options) {
|
|
1986
|
+
const iter = this.listHostsPagingAll(resourceGroupName, monitorName, options);
|
|
1987
|
+
return {
|
|
1988
|
+
next() {
|
|
1989
|
+
return iter.next();
|
|
1990
|
+
},
|
|
1991
|
+
[Symbol.asyncIterator]() {
|
|
1992
|
+
return this;
|
|
1993
|
+
},
|
|
1994
|
+
byPage: () => {
|
|
1995
|
+
return this.listHostsPagingPage(resourceGroupName, monitorName, options);
|
|
1996
|
+
}
|
|
1997
|
+
};
|
|
1998
|
+
}
|
|
1999
|
+
listHostsPagingPage(resourceGroupName, monitorName, options) {
|
|
2000
|
+
return tslib.__asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
|
|
2001
|
+
let result = yield tslib.__await(this._listHosts(resourceGroupName, monitorName, options));
|
|
2002
|
+
yield yield tslib.__await(result.value || []);
|
|
2003
|
+
let continuationToken = result.nextLink;
|
|
2004
|
+
while (continuationToken) {
|
|
2005
|
+
result = yield tslib.__await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
|
|
2006
|
+
continuationToken = result.nextLink;
|
|
2007
|
+
yield yield tslib.__await(result.value || []);
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
listHostsPagingAll(resourceGroupName, monitorName, options) {
|
|
2012
|
+
return tslib.__asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
|
|
2013
|
+
var e_4, _a;
|
|
2014
|
+
try {
|
|
2015
|
+
for (var _b = tslib.__asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2016
|
+
const page = _c.value;
|
|
2017
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
2021
|
+
finally {
|
|
2022
|
+
try {
|
|
2023
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2024
|
+
}
|
|
2025
|
+
finally { if (e_4) throw e_4.error; }
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Gets list of App Services with Dynatrace PaaS OneAgent enabled
|
|
2031
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2032
|
+
* @param monitorName Monitor resource name
|
|
2033
|
+
* @param options The options parameters.
|
|
2034
|
+
*/
|
|
2035
|
+
listAppServices(resourceGroupName, monitorName, options) {
|
|
2036
|
+
const iter = this.listAppServicesPagingAll(resourceGroupName, monitorName, options);
|
|
2037
|
+
return {
|
|
2038
|
+
next() {
|
|
2039
|
+
return iter.next();
|
|
2040
|
+
},
|
|
2041
|
+
[Symbol.asyncIterator]() {
|
|
2042
|
+
return this;
|
|
2043
|
+
},
|
|
2044
|
+
byPage: () => {
|
|
2045
|
+
return this.listAppServicesPagingPage(resourceGroupName, monitorName, options);
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
listAppServicesPagingPage(resourceGroupName, monitorName, options) {
|
|
2050
|
+
return tslib.__asyncGenerator(this, arguments, function* listAppServicesPagingPage_1() {
|
|
2051
|
+
let result = yield tslib.__await(this._listAppServices(resourceGroupName, monitorName, options));
|
|
2052
|
+
yield yield tslib.__await(result.value || []);
|
|
2053
|
+
let continuationToken = result.nextLink;
|
|
2054
|
+
while (continuationToken) {
|
|
2055
|
+
result = yield tslib.__await(this._listAppServicesNext(resourceGroupName, monitorName, continuationToken, options));
|
|
2056
|
+
continuationToken = result.nextLink;
|
|
2057
|
+
yield yield tslib.__await(result.value || []);
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
listAppServicesPagingAll(resourceGroupName, monitorName, options) {
|
|
2062
|
+
return tslib.__asyncGenerator(this, arguments, function* listAppServicesPagingAll_1() {
|
|
2063
|
+
var e_5, _a;
|
|
2064
|
+
try {
|
|
2065
|
+
for (var _b = tslib.__asyncValues(this.listAppServicesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2066
|
+
const page = _c.value;
|
|
2067
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
2071
|
+
finally {
|
|
2072
|
+
try {
|
|
2073
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2074
|
+
}
|
|
2075
|
+
finally { if (e_5) throw e_5.error; }
|
|
2076
|
+
}
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* Gets all the Dynatrace environments that a user can link a azure resource to
|
|
2081
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2082
|
+
* @param monitorName Monitor resource name
|
|
2083
|
+
* @param request The details of the linkable environment request.
|
|
2084
|
+
* @param options The options parameters.
|
|
2085
|
+
*/
|
|
2086
|
+
listLinkableEnvironments(resourceGroupName, monitorName, request, options) {
|
|
2087
|
+
const iter = this.listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options);
|
|
2088
|
+
return {
|
|
2089
|
+
next() {
|
|
2090
|
+
return iter.next();
|
|
2091
|
+
},
|
|
2092
|
+
[Symbol.asyncIterator]() {
|
|
2093
|
+
return this;
|
|
2094
|
+
},
|
|
2095
|
+
byPage: () => {
|
|
2096
|
+
return this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options);
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options) {
|
|
2101
|
+
return tslib.__asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingPage_1() {
|
|
2102
|
+
let result = yield tslib.__await(this._listLinkableEnvironments(resourceGroupName, monitorName, request, options));
|
|
2103
|
+
yield yield tslib.__await(result.value || []);
|
|
2104
|
+
let continuationToken = result.nextLink;
|
|
2105
|
+
while (continuationToken) {
|
|
2106
|
+
result = yield tslib.__await(this._listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, continuationToken, options));
|
|
2107
|
+
continuationToken = result.nextLink;
|
|
2108
|
+
yield yield tslib.__await(result.value || []);
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options) {
|
|
2113
|
+
return tslib.__asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingAll_1() {
|
|
2114
|
+
var e_6, _a;
|
|
2115
|
+
try {
|
|
2116
|
+
for (var _b = tslib.__asyncValues(this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2117
|
+
const page = _c.value;
|
|
2118
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
2122
|
+
finally {
|
|
2123
|
+
try {
|
|
2124
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2125
|
+
}
|
|
2126
|
+
finally { if (e_6) throw e_6.error; }
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
/**
|
|
2131
|
+
* Gets the user account credentials for a Monitor
|
|
2132
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2133
|
+
* @param monitorName Monitor resource name
|
|
2134
|
+
* @param options The options parameters.
|
|
2135
|
+
*/
|
|
2136
|
+
getAccountCredentials(resourceGroupName, monitorName, options) {
|
|
2137
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getAccountCredentialsOperationSpec);
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* List the resources currently being monitored by the Dynatrace monitor resource.
|
|
2141
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2142
|
+
* @param monitorName Monitor resource name
|
|
2143
|
+
* @param options The options parameters.
|
|
2144
|
+
*/
|
|
2145
|
+
_listMonitoredResources(resourceGroupName, monitorName, options) {
|
|
2146
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listMonitoredResourcesOperationSpec);
|
|
2147
|
+
}
|
|
2148
|
+
/**
|
|
2149
|
+
* Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a
|
|
2150
|
+
* VM.
|
|
2151
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2152
|
+
* @param monitorName Monitor resource name
|
|
2153
|
+
* @param options The options parameters.
|
|
2154
|
+
*/
|
|
2155
|
+
getVMHostPayload(resourceGroupName, monitorName, options) {
|
|
2156
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getVMHostPayloadOperationSpec);
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* Get a MonitorResource
|
|
2160
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2161
|
+
* @param monitorName Monitor resource name
|
|
2162
|
+
* @param options The options parameters.
|
|
2163
|
+
*/
|
|
2164
|
+
get(resourceGroupName, monitorName, options) {
|
|
2165
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec$2);
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Create a MonitorResource
|
|
2169
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2170
|
+
* @param monitorName Monitor resource name
|
|
2171
|
+
* @param resource Resource create parameters.
|
|
2172
|
+
* @param options The options parameters.
|
|
2173
|
+
*/
|
|
2174
|
+
beginCreateOrUpdate(resourceGroupName, monitorName, resource, options) {
|
|
2175
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2176
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2178
|
+
});
|
|
2179
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2180
|
+
var _a;
|
|
2181
|
+
let currentRawResponse = undefined;
|
|
2182
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2183
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2184
|
+
currentRawResponse = rawResponse;
|
|
2185
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2186
|
+
};
|
|
2187
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2188
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2189
|
+
return {
|
|
2190
|
+
flatResponse,
|
|
2191
|
+
rawResponse: {
|
|
2192
|
+
statusCode: currentRawResponse.status,
|
|
2193
|
+
body: currentRawResponse.parsedBody,
|
|
2194
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2195
|
+
}
|
|
2196
|
+
};
|
|
2197
|
+
});
|
|
2198
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, resource, options }, createOrUpdateOperationSpec$2);
|
|
2199
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2200
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2201
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2202
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2203
|
+
});
|
|
2204
|
+
yield poller.poll();
|
|
2205
|
+
return poller;
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* Create a MonitorResource
|
|
2210
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2211
|
+
* @param monitorName Monitor resource name
|
|
2212
|
+
* @param resource Resource create parameters.
|
|
2213
|
+
* @param options The options parameters.
|
|
2214
|
+
*/
|
|
2215
|
+
beginCreateOrUpdateAndWait(resourceGroupName, monitorName, resource, options) {
|
|
2216
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2217
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, resource, options);
|
|
2218
|
+
return poller.pollUntilDone();
|
|
2219
|
+
});
|
|
2220
|
+
}
|
|
2221
|
+
/**
|
|
2222
|
+
* Update a MonitorResource
|
|
2223
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2224
|
+
* @param monitorName Monitor resource name
|
|
2225
|
+
* @param resource The resource properties to be updated.
|
|
2226
|
+
* @param options The options parameters.
|
|
2227
|
+
*/
|
|
2228
|
+
update(resourceGroupName, monitorName, resource, options) {
|
|
2229
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, resource, options }, updateOperationSpec$1);
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* Delete a MonitorResource
|
|
2233
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2234
|
+
* @param monitorName Monitor resource name
|
|
2235
|
+
* @param options The options parameters.
|
|
2236
|
+
*/
|
|
2237
|
+
beginDelete(resourceGroupName, monitorName, options) {
|
|
2238
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2239
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2240
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2241
|
+
});
|
|
2242
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2243
|
+
var _a;
|
|
2244
|
+
let currentRawResponse = undefined;
|
|
2245
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2246
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2247
|
+
currentRawResponse = rawResponse;
|
|
2248
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2249
|
+
};
|
|
2250
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2251
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2252
|
+
return {
|
|
2253
|
+
flatResponse,
|
|
2254
|
+
rawResponse: {
|
|
2255
|
+
statusCode: currentRawResponse.status,
|
|
2256
|
+
body: currentRawResponse.parsedBody,
|
|
2257
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2258
|
+
}
|
|
2259
|
+
};
|
|
2260
|
+
});
|
|
2261
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, deleteOperationSpec$1);
|
|
2262
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2263
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2264
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2265
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2266
|
+
});
|
|
2267
|
+
yield poller.poll();
|
|
2268
|
+
return poller;
|
|
2269
|
+
});
|
|
2270
|
+
}
|
|
2271
|
+
/**
|
|
2272
|
+
* Delete a MonitorResource
|
|
2273
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2274
|
+
* @param monitorName Monitor resource name
|
|
2275
|
+
* @param options The options parameters.
|
|
2276
|
+
*/
|
|
2277
|
+
beginDeleteAndWait(resourceGroupName, monitorName, options) {
|
|
2278
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2279
|
+
const poller = yield this.beginDelete(resourceGroupName, monitorName, options);
|
|
2280
|
+
return poller.pollUntilDone();
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
/**
|
|
2284
|
+
* List all MonitorResource by subscriptionId
|
|
2285
|
+
* @param options The options parameters.
|
|
2286
|
+
*/
|
|
2287
|
+
_listBySubscriptionId(options) {
|
|
2288
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
|
|
2289
|
+
}
|
|
2290
|
+
/**
|
|
2291
|
+
* List MonitorResource resources by resource group
|
|
2292
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2293
|
+
* @param options The options parameters.
|
|
2294
|
+
*/
|
|
2295
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
2296
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* List the compute resources currently being monitored by the Dynatrace resource.
|
|
2300
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2301
|
+
* @param monitorName Monitor resource name
|
|
2302
|
+
* @param options The options parameters.
|
|
2303
|
+
*/
|
|
2304
|
+
_listHosts(resourceGroupName, monitorName, options) {
|
|
2305
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listHostsOperationSpec);
|
|
2306
|
+
}
|
|
2307
|
+
/**
|
|
2308
|
+
* Gets list of App Services with Dynatrace PaaS OneAgent enabled
|
|
2309
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2310
|
+
* @param monitorName Monitor resource name
|
|
2311
|
+
* @param options The options parameters.
|
|
2312
|
+
*/
|
|
2313
|
+
_listAppServices(resourceGroupName, monitorName, options) {
|
|
2314
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listAppServicesOperationSpec);
|
|
2315
|
+
}
|
|
2316
|
+
/**
|
|
2317
|
+
* Gets the SSO configuration details from the partner.
|
|
2318
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2319
|
+
* @param monitorName Monitor resource name
|
|
2320
|
+
* @param options The options parameters.
|
|
2321
|
+
*/
|
|
2322
|
+
getSSODetails(resourceGroupName, monitorName, options) {
|
|
2323
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getSSODetailsOperationSpec);
|
|
2324
|
+
}
|
|
2325
|
+
/**
|
|
2326
|
+
* Gets all the Dynatrace environments that a user can link a azure resource to
|
|
2327
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2328
|
+
* @param monitorName Monitor resource name
|
|
2329
|
+
* @param request The details of the linkable environment request.
|
|
2330
|
+
* @param options The options parameters.
|
|
2331
|
+
*/
|
|
2332
|
+
_listLinkableEnvironments(resourceGroupName, monitorName, request, options) {
|
|
2333
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, listLinkableEnvironmentsOperationSpec);
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* ListMonitoredResourcesNext
|
|
2337
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2338
|
+
* @param monitorName Monitor resource name
|
|
2339
|
+
* @param nextLink The nextLink from the previous successful call to the ListMonitoredResources method.
|
|
2340
|
+
* @param options The options parameters.
|
|
2341
|
+
*/
|
|
2342
|
+
_listMonitoredResourcesNext(resourceGroupName, monitorName, nextLink, options) {
|
|
2343
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listMonitoredResourcesNextOperationSpec);
|
|
2344
|
+
}
|
|
2345
|
+
/**
|
|
2346
|
+
* ListBySubscriptionIdNext
|
|
2347
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
|
|
2348
|
+
* @param options The options parameters.
|
|
2349
|
+
*/
|
|
2350
|
+
_listBySubscriptionIdNext(nextLink, options) {
|
|
2351
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* ListByResourceGroupNext
|
|
2355
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2356
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2357
|
+
* @param options The options parameters.
|
|
2358
|
+
*/
|
|
2359
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2360
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
* ListHostsNext
|
|
2364
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2365
|
+
* @param monitorName Monitor resource name
|
|
2366
|
+
* @param nextLink The nextLink from the previous successful call to the ListHosts method.
|
|
2367
|
+
* @param options The options parameters.
|
|
2368
|
+
*/
|
|
2369
|
+
_listHostsNext(resourceGroupName, monitorName, nextLink, options) {
|
|
2370
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listHostsNextOperationSpec);
|
|
2371
|
+
}
|
|
2372
|
+
/**
|
|
2373
|
+
* ListAppServicesNext
|
|
2374
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2375
|
+
* @param monitorName Monitor resource name
|
|
2376
|
+
* @param nextLink The nextLink from the previous successful call to the ListAppServices method.
|
|
2377
|
+
* @param options The options parameters.
|
|
2378
|
+
*/
|
|
2379
|
+
_listAppServicesNext(resourceGroupName, monitorName, nextLink, options) {
|
|
2380
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listAppServicesNextOperationSpec);
|
|
2381
|
+
}
|
|
2382
|
+
/**
|
|
2383
|
+
* ListLinkableEnvironmentsNext
|
|
2384
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2385
|
+
* @param monitorName Monitor resource name
|
|
2386
|
+
* @param request The details of the linkable environment request.
|
|
2387
|
+
* @param nextLink The nextLink from the previous successful call to the ListLinkableEnvironments
|
|
2388
|
+
* method.
|
|
2389
|
+
* @param options The options parameters.
|
|
2390
|
+
*/
|
|
2391
|
+
_listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, nextLink, options) {
|
|
2392
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, nextLink, options }, listLinkableEnvironmentsNextOperationSpec);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
// Operation Specifications
|
|
2396
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2397
|
+
const getAccountCredentialsOperationSpec = {
|
|
2398
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getAccountCredentials",
|
|
2399
|
+
httpMethod: "POST",
|
|
2400
|
+
responses: {
|
|
2401
|
+
200: {
|
|
2402
|
+
bodyMapper: AccountInfoSecure
|
|
2403
|
+
},
|
|
2404
|
+
default: {
|
|
2405
|
+
bodyMapper: ErrorResponse
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2408
|
+
queryParameters: [apiVersion],
|
|
2409
|
+
urlParameters: [
|
|
2410
|
+
$host,
|
|
2411
|
+
subscriptionId,
|
|
2412
|
+
resourceGroupName,
|
|
2413
|
+
monitorName
|
|
2414
|
+
],
|
|
2415
|
+
headerParameters: [accept],
|
|
2416
|
+
serializer: serializer$3
|
|
2417
|
+
};
|
|
2418
|
+
const listMonitoredResourcesOperationSpec = {
|
|
2419
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listMonitoredResources",
|
|
2420
|
+
httpMethod: "POST",
|
|
2421
|
+
responses: {
|
|
2422
|
+
200: {
|
|
2423
|
+
bodyMapper: MonitoredResourceListResponse
|
|
2424
|
+
},
|
|
2425
|
+
default: {
|
|
2426
|
+
bodyMapper: ErrorResponse
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2429
|
+
queryParameters: [apiVersion],
|
|
2430
|
+
urlParameters: [
|
|
2431
|
+
$host,
|
|
2432
|
+
subscriptionId,
|
|
2433
|
+
resourceGroupName,
|
|
2434
|
+
monitorName
|
|
2435
|
+
],
|
|
2436
|
+
headerParameters: [accept],
|
|
2437
|
+
serializer: serializer$3
|
|
2438
|
+
};
|
|
2439
|
+
const getVMHostPayloadOperationSpec = {
|
|
2440
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getVMHostPayload",
|
|
2441
|
+
httpMethod: "POST",
|
|
2442
|
+
responses: {
|
|
2443
|
+
200: {
|
|
2444
|
+
bodyMapper: VMExtensionPayload
|
|
2445
|
+
},
|
|
2446
|
+
default: {
|
|
2447
|
+
bodyMapper: ErrorResponse
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
queryParameters: [apiVersion],
|
|
2451
|
+
urlParameters: [
|
|
2452
|
+
$host,
|
|
2453
|
+
subscriptionId,
|
|
2454
|
+
resourceGroupName,
|
|
2455
|
+
monitorName
|
|
2456
|
+
],
|
|
2457
|
+
headerParameters: [accept],
|
|
2458
|
+
serializer: serializer$3
|
|
2459
|
+
};
|
|
2460
|
+
const getOperationSpec$2 = {
|
|
2461
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
|
|
2462
|
+
httpMethod: "GET",
|
|
2463
|
+
responses: {
|
|
2464
|
+
200: {
|
|
2465
|
+
bodyMapper: MonitorResource
|
|
2466
|
+
},
|
|
2467
|
+
default: {
|
|
2468
|
+
bodyMapper: ErrorResponse
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
queryParameters: [apiVersion],
|
|
2472
|
+
urlParameters: [
|
|
2473
|
+
$host,
|
|
2474
|
+
subscriptionId,
|
|
2475
|
+
resourceGroupName,
|
|
2476
|
+
monitorName
|
|
2477
|
+
],
|
|
2478
|
+
headerParameters: [accept],
|
|
2479
|
+
serializer: serializer$3
|
|
2480
|
+
};
|
|
2481
|
+
const createOrUpdateOperationSpec$2 = {
|
|
2482
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
|
|
2483
|
+
httpMethod: "PUT",
|
|
2484
|
+
responses: {
|
|
2485
|
+
200: {
|
|
2486
|
+
bodyMapper: MonitorResource
|
|
2487
|
+
},
|
|
2488
|
+
201: {
|
|
2489
|
+
bodyMapper: MonitorResource
|
|
2490
|
+
},
|
|
2491
|
+
202: {
|
|
2492
|
+
bodyMapper: MonitorResource
|
|
2493
|
+
},
|
|
2494
|
+
204: {
|
|
2495
|
+
bodyMapper: MonitorResource
|
|
2496
|
+
},
|
|
2497
|
+
default: {
|
|
2498
|
+
bodyMapper: ErrorResponse
|
|
2499
|
+
}
|
|
2500
|
+
},
|
|
2501
|
+
requestBody: resource,
|
|
2502
|
+
queryParameters: [apiVersion],
|
|
2503
|
+
urlParameters: [
|
|
2504
|
+
$host,
|
|
2505
|
+
subscriptionId,
|
|
2506
|
+
resourceGroupName,
|
|
2507
|
+
monitorName
|
|
2508
|
+
],
|
|
2509
|
+
headerParameters: [accept, contentType],
|
|
2510
|
+
mediaType: "json",
|
|
2511
|
+
serializer: serializer$3
|
|
2512
|
+
};
|
|
2513
|
+
const updateOperationSpec$1 = {
|
|
2514
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
|
|
2515
|
+
httpMethod: "PATCH",
|
|
2516
|
+
responses: {
|
|
2517
|
+
200: {
|
|
2518
|
+
bodyMapper: MonitorResource
|
|
2519
|
+
},
|
|
2520
|
+
default: {
|
|
2521
|
+
bodyMapper: ErrorResponse
|
|
2522
|
+
}
|
|
2523
|
+
},
|
|
2524
|
+
requestBody: resource1,
|
|
2525
|
+
queryParameters: [apiVersion],
|
|
2526
|
+
urlParameters: [
|
|
2527
|
+
$host,
|
|
2528
|
+
subscriptionId,
|
|
2529
|
+
resourceGroupName,
|
|
2530
|
+
monitorName
|
|
2531
|
+
],
|
|
2532
|
+
headerParameters: [accept, contentType],
|
|
2533
|
+
mediaType: "json",
|
|
2534
|
+
serializer: serializer$3
|
|
2535
|
+
};
|
|
2536
|
+
const deleteOperationSpec$1 = {
|
|
2537
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
|
|
2538
|
+
httpMethod: "DELETE",
|
|
2539
|
+
responses: {
|
|
2540
|
+
200: {},
|
|
2541
|
+
201: {},
|
|
2542
|
+
202: {},
|
|
2543
|
+
204: {},
|
|
2544
|
+
default: {
|
|
2545
|
+
bodyMapper: ErrorResponse
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
queryParameters: [apiVersion],
|
|
2549
|
+
urlParameters: [
|
|
2550
|
+
$host,
|
|
2551
|
+
subscriptionId,
|
|
2552
|
+
resourceGroupName,
|
|
2553
|
+
monitorName
|
|
2554
|
+
],
|
|
2555
|
+
headerParameters: [accept],
|
|
2556
|
+
serializer: serializer$3
|
|
2557
|
+
};
|
|
2558
|
+
const listBySubscriptionIdOperationSpec = {
|
|
2559
|
+
path: "/subscriptions/{subscriptionId}/providers/Dynatrace.Observability/monitors",
|
|
2560
|
+
httpMethod: "GET",
|
|
2561
|
+
responses: {
|
|
2562
|
+
200: {
|
|
2563
|
+
bodyMapper: MonitorResourceListResult
|
|
2564
|
+
},
|
|
2565
|
+
default: {
|
|
2566
|
+
bodyMapper: ErrorResponse
|
|
2567
|
+
}
|
|
2568
|
+
},
|
|
2569
|
+
queryParameters: [apiVersion],
|
|
2570
|
+
urlParameters: [$host, subscriptionId],
|
|
2571
|
+
headerParameters: [accept],
|
|
2572
|
+
serializer: serializer$3
|
|
2573
|
+
};
|
|
2574
|
+
const listByResourceGroupOperationSpec = {
|
|
2575
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors",
|
|
2576
|
+
httpMethod: "GET",
|
|
2577
|
+
responses: {
|
|
2578
|
+
200: {
|
|
2579
|
+
bodyMapper: MonitorResourceListResult
|
|
2580
|
+
},
|
|
2581
|
+
default: {
|
|
2582
|
+
bodyMapper: ErrorResponse
|
|
2583
|
+
}
|
|
2584
|
+
},
|
|
2585
|
+
queryParameters: [apiVersion],
|
|
2586
|
+
urlParameters: [
|
|
2587
|
+
$host,
|
|
2588
|
+
subscriptionId,
|
|
2589
|
+
resourceGroupName
|
|
2590
|
+
],
|
|
2591
|
+
headerParameters: [accept],
|
|
2592
|
+
serializer: serializer$3
|
|
2593
|
+
};
|
|
2594
|
+
const listHostsOperationSpec = {
|
|
2595
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listHosts",
|
|
2596
|
+
httpMethod: "POST",
|
|
2597
|
+
responses: {
|
|
2598
|
+
200: {
|
|
2599
|
+
bodyMapper: VMHostsListResponse
|
|
2600
|
+
},
|
|
2601
|
+
default: {
|
|
2602
|
+
bodyMapper: ErrorResponse
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
queryParameters: [apiVersion],
|
|
2606
|
+
urlParameters: [
|
|
2607
|
+
$host,
|
|
2608
|
+
subscriptionId,
|
|
2609
|
+
resourceGroupName,
|
|
2610
|
+
monitorName
|
|
2611
|
+
],
|
|
2612
|
+
headerParameters: [accept],
|
|
2613
|
+
serializer: serializer$3
|
|
2614
|
+
};
|
|
2615
|
+
const listAppServicesOperationSpec = {
|
|
2616
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listAppServices",
|
|
2617
|
+
httpMethod: "POST",
|
|
2618
|
+
responses: {
|
|
2619
|
+
200: {
|
|
2620
|
+
bodyMapper: AppServiceListResponse
|
|
2621
|
+
},
|
|
2622
|
+
default: {
|
|
2623
|
+
bodyMapper: ErrorResponse
|
|
2624
|
+
}
|
|
2625
|
+
},
|
|
2626
|
+
queryParameters: [apiVersion],
|
|
2627
|
+
urlParameters: [
|
|
2628
|
+
$host,
|
|
2629
|
+
subscriptionId,
|
|
2630
|
+
resourceGroupName,
|
|
2631
|
+
monitorName
|
|
2632
|
+
],
|
|
2633
|
+
headerParameters: [accept],
|
|
2634
|
+
serializer: serializer$3
|
|
2635
|
+
};
|
|
2636
|
+
const getSSODetailsOperationSpec = {
|
|
2637
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getSSODetails",
|
|
2638
|
+
httpMethod: "POST",
|
|
2639
|
+
responses: {
|
|
2640
|
+
200: {
|
|
2641
|
+
bodyMapper: SSODetailsResponse
|
|
2642
|
+
},
|
|
2643
|
+
401: {
|
|
2644
|
+
isError: true
|
|
2645
|
+
},
|
|
2646
|
+
default: {
|
|
2647
|
+
bodyMapper: ErrorResponse
|
|
2648
|
+
}
|
|
2649
|
+
},
|
|
2650
|
+
requestBody: request,
|
|
2651
|
+
queryParameters: [apiVersion],
|
|
2652
|
+
urlParameters: [
|
|
2653
|
+
$host,
|
|
2654
|
+
subscriptionId,
|
|
2655
|
+
resourceGroupName,
|
|
2656
|
+
monitorName
|
|
2657
|
+
],
|
|
2658
|
+
headerParameters: [accept, contentType],
|
|
2659
|
+
mediaType: "json",
|
|
2660
|
+
serializer: serializer$3
|
|
2661
|
+
};
|
|
2662
|
+
const listLinkableEnvironmentsOperationSpec = {
|
|
2663
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listLinkableEnvironments",
|
|
2664
|
+
httpMethod: "POST",
|
|
2665
|
+
responses: {
|
|
2666
|
+
200: {
|
|
2667
|
+
bodyMapper: LinkableEnvironmentListResponse
|
|
2668
|
+
},
|
|
2669
|
+
default: {
|
|
2670
|
+
bodyMapper: ErrorResponse
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
requestBody: request1,
|
|
2674
|
+
queryParameters: [apiVersion],
|
|
2675
|
+
urlParameters: [
|
|
2676
|
+
$host,
|
|
2677
|
+
subscriptionId,
|
|
2678
|
+
resourceGroupName,
|
|
2679
|
+
monitorName
|
|
2680
|
+
],
|
|
2681
|
+
headerParameters: [accept, contentType],
|
|
2682
|
+
mediaType: "json",
|
|
2683
|
+
serializer: serializer$3
|
|
2684
|
+
};
|
|
2685
|
+
const listMonitoredResourcesNextOperationSpec = {
|
|
2686
|
+
path: "{nextLink}",
|
|
2687
|
+
httpMethod: "GET",
|
|
2688
|
+
responses: {
|
|
2689
|
+
200: {
|
|
2690
|
+
bodyMapper: MonitoredResourceListResponse
|
|
2691
|
+
},
|
|
2692
|
+
default: {
|
|
2693
|
+
bodyMapper: ErrorResponse
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
queryParameters: [apiVersion],
|
|
2697
|
+
urlParameters: [
|
|
2698
|
+
$host,
|
|
2699
|
+
subscriptionId,
|
|
2700
|
+
resourceGroupName,
|
|
2701
|
+
monitorName,
|
|
2702
|
+
nextLink
|
|
2703
|
+
],
|
|
2704
|
+
headerParameters: [accept],
|
|
2705
|
+
serializer: serializer$3
|
|
2706
|
+
};
|
|
2707
|
+
const listBySubscriptionIdNextOperationSpec = {
|
|
2708
|
+
path: "{nextLink}",
|
|
2709
|
+
httpMethod: "GET",
|
|
2710
|
+
responses: {
|
|
2711
|
+
200: {
|
|
2712
|
+
bodyMapper: MonitorResourceListResult
|
|
2713
|
+
},
|
|
2714
|
+
default: {
|
|
2715
|
+
bodyMapper: ErrorResponse
|
|
2716
|
+
}
|
|
2717
|
+
},
|
|
2718
|
+
queryParameters: [apiVersion],
|
|
2719
|
+
urlParameters: [
|
|
2720
|
+
$host,
|
|
2721
|
+
subscriptionId,
|
|
2722
|
+
nextLink
|
|
2723
|
+
],
|
|
2724
|
+
headerParameters: [accept],
|
|
2725
|
+
serializer: serializer$3
|
|
2726
|
+
};
|
|
2727
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2728
|
+
path: "{nextLink}",
|
|
2729
|
+
httpMethod: "GET",
|
|
2730
|
+
responses: {
|
|
2731
|
+
200: {
|
|
2732
|
+
bodyMapper: MonitorResourceListResult
|
|
2733
|
+
},
|
|
2734
|
+
default: {
|
|
2735
|
+
bodyMapper: ErrorResponse
|
|
2736
|
+
}
|
|
2737
|
+
},
|
|
2738
|
+
queryParameters: [apiVersion],
|
|
2739
|
+
urlParameters: [
|
|
2740
|
+
$host,
|
|
2741
|
+
subscriptionId,
|
|
2742
|
+
resourceGroupName,
|
|
2743
|
+
nextLink
|
|
2744
|
+
],
|
|
2745
|
+
headerParameters: [accept],
|
|
2746
|
+
serializer: serializer$3
|
|
2747
|
+
};
|
|
2748
|
+
const listHostsNextOperationSpec = {
|
|
2749
|
+
path: "{nextLink}",
|
|
2750
|
+
httpMethod: "GET",
|
|
2751
|
+
responses: {
|
|
2752
|
+
200: {
|
|
2753
|
+
bodyMapper: VMHostsListResponse
|
|
2754
|
+
},
|
|
2755
|
+
default: {
|
|
2756
|
+
bodyMapper: ErrorResponse
|
|
2757
|
+
}
|
|
2758
|
+
},
|
|
2759
|
+
queryParameters: [apiVersion],
|
|
2760
|
+
urlParameters: [
|
|
2761
|
+
$host,
|
|
2762
|
+
subscriptionId,
|
|
2763
|
+
resourceGroupName,
|
|
2764
|
+
monitorName,
|
|
2765
|
+
nextLink
|
|
2766
|
+
],
|
|
2767
|
+
headerParameters: [accept],
|
|
2768
|
+
serializer: serializer$3
|
|
2769
|
+
};
|
|
2770
|
+
const listAppServicesNextOperationSpec = {
|
|
2771
|
+
path: "{nextLink}",
|
|
2772
|
+
httpMethod: "GET",
|
|
2773
|
+
responses: {
|
|
2774
|
+
200: {
|
|
2775
|
+
bodyMapper: AppServiceListResponse
|
|
2776
|
+
},
|
|
2777
|
+
default: {
|
|
2778
|
+
bodyMapper: ErrorResponse
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2781
|
+
queryParameters: [apiVersion],
|
|
2782
|
+
urlParameters: [
|
|
2783
|
+
$host,
|
|
2784
|
+
subscriptionId,
|
|
2785
|
+
resourceGroupName,
|
|
2786
|
+
monitorName,
|
|
2787
|
+
nextLink
|
|
2788
|
+
],
|
|
2789
|
+
headerParameters: [accept],
|
|
2790
|
+
serializer: serializer$3
|
|
2791
|
+
};
|
|
2792
|
+
const listLinkableEnvironmentsNextOperationSpec = {
|
|
2793
|
+
path: "{nextLink}",
|
|
2794
|
+
httpMethod: "GET",
|
|
2795
|
+
responses: {
|
|
2796
|
+
200: {
|
|
2797
|
+
bodyMapper: LinkableEnvironmentListResponse
|
|
2798
|
+
},
|
|
2799
|
+
default: {
|
|
2800
|
+
bodyMapper: ErrorResponse
|
|
2801
|
+
}
|
|
2802
|
+
},
|
|
2803
|
+
queryParameters: [apiVersion],
|
|
2804
|
+
urlParameters: [
|
|
2805
|
+
$host,
|
|
2806
|
+
subscriptionId,
|
|
2807
|
+
resourceGroupName,
|
|
2808
|
+
monitorName,
|
|
2809
|
+
nextLink
|
|
2810
|
+
],
|
|
2811
|
+
headerParameters: [accept, contentType],
|
|
2812
|
+
mediaType: "json",
|
|
2813
|
+
serializer: serializer$3
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
/*
|
|
2817
|
+
* Copyright (c) Microsoft Corporation.
|
|
2818
|
+
* Licensed under the MIT License.
|
|
2819
|
+
*
|
|
2820
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2821
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2822
|
+
*/
|
|
2823
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2824
|
+
/** Class containing Operations operations. */
|
|
2825
|
+
class OperationsImpl {
|
|
2826
|
+
/**
|
|
2827
|
+
* Initialize a new instance of the class Operations class.
|
|
2828
|
+
* @param client Reference to the service client
|
|
2829
|
+
*/
|
|
2830
|
+
constructor(client) {
|
|
2831
|
+
this.client = client;
|
|
2832
|
+
}
|
|
2833
|
+
/**
|
|
2834
|
+
* List the operations for Dynatrace.Observability
|
|
2835
|
+
* @param options The options parameters.
|
|
2836
|
+
*/
|
|
2837
|
+
list(options) {
|
|
2838
|
+
const iter = this.listPagingAll(options);
|
|
2839
|
+
return {
|
|
2840
|
+
next() {
|
|
2841
|
+
return iter.next();
|
|
2842
|
+
},
|
|
2843
|
+
[Symbol.asyncIterator]() {
|
|
2844
|
+
return this;
|
|
2845
|
+
},
|
|
2846
|
+
byPage: () => {
|
|
2847
|
+
return this.listPagingPage(options);
|
|
2848
|
+
}
|
|
2849
|
+
};
|
|
2850
|
+
}
|
|
2851
|
+
listPagingPage(options) {
|
|
2852
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2853
|
+
let result = yield tslib.__await(this._list(options));
|
|
2854
|
+
yield yield tslib.__await(result.value || []);
|
|
2855
|
+
let continuationToken = result.nextLink;
|
|
2856
|
+
while (continuationToken) {
|
|
2857
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2858
|
+
continuationToken = result.nextLink;
|
|
2859
|
+
yield yield tslib.__await(result.value || []);
|
|
2860
|
+
}
|
|
2861
|
+
});
|
|
2862
|
+
}
|
|
2863
|
+
listPagingAll(options) {
|
|
2864
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2865
|
+
var e_1, _a;
|
|
2866
|
+
try {
|
|
2867
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2868
|
+
const page = _c.value;
|
|
2869
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2873
|
+
finally {
|
|
2874
|
+
try {
|
|
2875
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2876
|
+
}
|
|
2877
|
+
finally { if (e_1) throw e_1.error; }
|
|
2878
|
+
}
|
|
2879
|
+
});
|
|
2880
|
+
}
|
|
2881
|
+
/**
|
|
2882
|
+
* List the operations for Dynatrace.Observability
|
|
2883
|
+
* @param options The options parameters.
|
|
2884
|
+
*/
|
|
2885
|
+
_list(options) {
|
|
2886
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
2887
|
+
}
|
|
2888
|
+
/**
|
|
2889
|
+
* ListNext
|
|
2890
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2891
|
+
* @param options The options parameters.
|
|
2892
|
+
*/
|
|
2893
|
+
_listNext(nextLink, options) {
|
|
2894
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
// Operation Specifications
|
|
2898
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2899
|
+
const listOperationSpec$2 = {
|
|
2900
|
+
path: "/providers/Dynatrace.Observability/operations",
|
|
2901
|
+
httpMethod: "GET",
|
|
2902
|
+
responses: {
|
|
2903
|
+
200: {
|
|
2904
|
+
bodyMapper: OperationListResult
|
|
2905
|
+
},
|
|
2906
|
+
default: {
|
|
2907
|
+
bodyMapper: ErrorResponse
|
|
2908
|
+
}
|
|
2909
|
+
},
|
|
2910
|
+
queryParameters: [apiVersion],
|
|
2911
|
+
urlParameters: [$host],
|
|
2912
|
+
headerParameters: [accept],
|
|
2913
|
+
serializer: serializer$2
|
|
2914
|
+
};
|
|
2915
|
+
const listNextOperationSpec$2 = {
|
|
2916
|
+
path: "{nextLink}",
|
|
2917
|
+
httpMethod: "GET",
|
|
2918
|
+
responses: {
|
|
2919
|
+
200: {
|
|
2920
|
+
bodyMapper: OperationListResult
|
|
2921
|
+
},
|
|
2922
|
+
default: {
|
|
2923
|
+
bodyMapper: ErrorResponse
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
queryParameters: [apiVersion],
|
|
2927
|
+
urlParameters: [$host, nextLink],
|
|
2928
|
+
headerParameters: [accept],
|
|
2929
|
+
serializer: serializer$2
|
|
2930
|
+
};
|
|
2931
|
+
|
|
2932
|
+
/*
|
|
2933
|
+
* Copyright (c) Microsoft Corporation.
|
|
2934
|
+
* Licensed under the MIT License.
|
|
2935
|
+
*
|
|
2936
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2937
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2938
|
+
*/
|
|
2939
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2940
|
+
/** Class containing TagRules operations. */
|
|
2941
|
+
class TagRulesImpl {
|
|
2942
|
+
/**
|
|
2943
|
+
* Initialize a new instance of the class TagRules class.
|
|
2944
|
+
* @param client Reference to the service client
|
|
2945
|
+
*/
|
|
2946
|
+
constructor(client) {
|
|
2947
|
+
this.client = client;
|
|
2948
|
+
}
|
|
2949
|
+
/**
|
|
2950
|
+
* List all TagRule by monitorName
|
|
2951
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2952
|
+
* @param monitorName Monitor resource name
|
|
2953
|
+
* @param options The options parameters.
|
|
2954
|
+
*/
|
|
2955
|
+
list(resourceGroupName, monitorName, options) {
|
|
2956
|
+
const iter = this.listPagingAll(resourceGroupName, monitorName, options);
|
|
2957
|
+
return {
|
|
2958
|
+
next() {
|
|
2959
|
+
return iter.next();
|
|
2960
|
+
},
|
|
2961
|
+
[Symbol.asyncIterator]() {
|
|
2962
|
+
return this;
|
|
2963
|
+
},
|
|
2964
|
+
byPage: () => {
|
|
2965
|
+
return this.listPagingPage(resourceGroupName, monitorName, options);
|
|
2966
|
+
}
|
|
2967
|
+
};
|
|
2968
|
+
}
|
|
2969
|
+
listPagingPage(resourceGroupName, monitorName, options) {
|
|
2970
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2971
|
+
let result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
|
|
2972
|
+
yield yield tslib.__await(result.value || []);
|
|
2973
|
+
let continuationToken = result.nextLink;
|
|
2974
|
+
while (continuationToken) {
|
|
2975
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, monitorName, continuationToken, options));
|
|
2976
|
+
continuationToken = result.nextLink;
|
|
2977
|
+
yield yield tslib.__await(result.value || []);
|
|
2978
|
+
}
|
|
2979
|
+
});
|
|
2980
|
+
}
|
|
2981
|
+
listPagingAll(resourceGroupName, monitorName, options) {
|
|
2982
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2983
|
+
var e_1, _a;
|
|
2984
|
+
try {
|
|
2985
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2986
|
+
const page = _c.value;
|
|
2987
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2991
|
+
finally {
|
|
2992
|
+
try {
|
|
2993
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2994
|
+
}
|
|
2995
|
+
finally { if (e_1) throw e_1.error; }
|
|
2996
|
+
}
|
|
2997
|
+
});
|
|
2998
|
+
}
|
|
2999
|
+
/**
|
|
3000
|
+
* Get a TagRule
|
|
3001
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3002
|
+
* @param monitorName Monitor resource name
|
|
3003
|
+
* @param ruleSetName Monitor resource name
|
|
3004
|
+
* @param options The options parameters.
|
|
3005
|
+
*/
|
|
3006
|
+
get(resourceGroupName, monitorName, ruleSetName, options) {
|
|
3007
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec$1);
|
|
3008
|
+
}
|
|
3009
|
+
/**
|
|
3010
|
+
* Create a TagRule
|
|
3011
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3012
|
+
* @param monitorName Monitor resource name
|
|
3013
|
+
* @param ruleSetName Monitor resource name
|
|
3014
|
+
* @param resource Resource create parameters.
|
|
3015
|
+
* @param options The options parameters.
|
|
3016
|
+
*/
|
|
3017
|
+
beginCreateOrUpdate(resourceGroupName, monitorName, ruleSetName, resource, options) {
|
|
3018
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3019
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3020
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3021
|
+
});
|
|
3022
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3023
|
+
var _a;
|
|
3024
|
+
let currentRawResponse = undefined;
|
|
3025
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3026
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3027
|
+
currentRawResponse = rawResponse;
|
|
3028
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3029
|
+
};
|
|
3030
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3031
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3032
|
+
return {
|
|
3033
|
+
flatResponse,
|
|
3034
|
+
rawResponse: {
|
|
3035
|
+
statusCode: currentRawResponse.status,
|
|
3036
|
+
body: currentRawResponse.parsedBody,
|
|
3037
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3038
|
+
}
|
|
3039
|
+
};
|
|
3040
|
+
});
|
|
3041
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, ruleSetName, resource, options }, createOrUpdateOperationSpec$1);
|
|
3042
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3043
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3044
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3045
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
3046
|
+
});
|
|
3047
|
+
yield poller.poll();
|
|
3048
|
+
return poller;
|
|
3049
|
+
});
|
|
3050
|
+
}
|
|
3051
|
+
/**
|
|
3052
|
+
* Create a TagRule
|
|
3053
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3054
|
+
* @param monitorName Monitor resource name
|
|
3055
|
+
* @param ruleSetName Monitor resource name
|
|
3056
|
+
* @param resource Resource create parameters.
|
|
3057
|
+
* @param options The options parameters.
|
|
3058
|
+
*/
|
|
3059
|
+
beginCreateOrUpdateAndWait(resourceGroupName, monitorName, ruleSetName, resource, options) {
|
|
3060
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3061
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, ruleSetName, resource, options);
|
|
3062
|
+
return poller.pollUntilDone();
|
|
3063
|
+
});
|
|
3064
|
+
}
|
|
3065
|
+
/**
|
|
3066
|
+
* Update a TagRule
|
|
3067
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3068
|
+
* @param monitorName Monitor resource name
|
|
3069
|
+
* @param ruleSetName Monitor resource name
|
|
3070
|
+
* @param resource The resource properties to be updated.
|
|
3071
|
+
* @param options The options parameters.
|
|
3072
|
+
*/
|
|
3073
|
+
update(resourceGroupName, monitorName, ruleSetName, resource, options) {
|
|
3074
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, resource, options }, updateOperationSpec);
|
|
3075
|
+
}
|
|
3076
|
+
/**
|
|
3077
|
+
* Delete a TagRule
|
|
3078
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3079
|
+
* @param monitorName Monitor resource name
|
|
3080
|
+
* @param ruleSetName Monitor resource name
|
|
3081
|
+
* @param options The options parameters.
|
|
3082
|
+
*/
|
|
3083
|
+
beginDelete(resourceGroupName, monitorName, ruleSetName, options) {
|
|
3084
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3085
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3086
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3087
|
+
});
|
|
3088
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3089
|
+
var _a;
|
|
3090
|
+
let currentRawResponse = undefined;
|
|
3091
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3092
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3093
|
+
currentRawResponse = rawResponse;
|
|
3094
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3095
|
+
};
|
|
3096
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3097
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3098
|
+
return {
|
|
3099
|
+
flatResponse,
|
|
3100
|
+
rawResponse: {
|
|
3101
|
+
statusCode: currentRawResponse.status,
|
|
3102
|
+
body: currentRawResponse.parsedBody,
|
|
3103
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3104
|
+
}
|
|
3105
|
+
};
|
|
3106
|
+
});
|
|
3107
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, ruleSetName, options }, deleteOperationSpec);
|
|
3108
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3109
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3110
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3111
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
3112
|
+
});
|
|
3113
|
+
yield poller.poll();
|
|
3114
|
+
return poller;
|
|
3115
|
+
});
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* Delete a TagRule
|
|
3119
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3120
|
+
* @param monitorName Monitor resource name
|
|
3121
|
+
* @param ruleSetName Monitor resource name
|
|
3122
|
+
* @param options The options parameters.
|
|
3123
|
+
*/
|
|
3124
|
+
beginDeleteAndWait(resourceGroupName, monitorName, ruleSetName, options) {
|
|
3125
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3126
|
+
const poller = yield this.beginDelete(resourceGroupName, monitorName, ruleSetName, options);
|
|
3127
|
+
return poller.pollUntilDone();
|
|
3128
|
+
});
|
|
3129
|
+
}
|
|
3130
|
+
/**
|
|
3131
|
+
* List all TagRule by monitorName
|
|
3132
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3133
|
+
* @param monitorName Monitor resource name
|
|
3134
|
+
* @param options The options parameters.
|
|
3135
|
+
*/
|
|
3136
|
+
_list(resourceGroupName, monitorName, options) {
|
|
3137
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$1);
|
|
3138
|
+
}
|
|
3139
|
+
/**
|
|
3140
|
+
* ListNext
|
|
3141
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3142
|
+
* @param monitorName Monitor resource name
|
|
3143
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3144
|
+
* @param options The options parameters.
|
|
3145
|
+
*/
|
|
3146
|
+
_listNext(resourceGroupName, monitorName, nextLink, options) {
|
|
3147
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec$1);
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
// Operation Specifications
|
|
3151
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3152
|
+
const getOperationSpec$1 = {
|
|
3153
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
3154
|
+
httpMethod: "GET",
|
|
3155
|
+
responses: {
|
|
3156
|
+
200: {
|
|
3157
|
+
bodyMapper: TagRule
|
|
3158
|
+
},
|
|
3159
|
+
default: {
|
|
3160
|
+
bodyMapper: ErrorResponse
|
|
3161
|
+
}
|
|
3162
|
+
},
|
|
3163
|
+
queryParameters: [apiVersion],
|
|
3164
|
+
urlParameters: [
|
|
3165
|
+
$host,
|
|
3166
|
+
subscriptionId,
|
|
3167
|
+
resourceGroupName,
|
|
3168
|
+
monitorName,
|
|
3169
|
+
ruleSetName
|
|
3170
|
+
],
|
|
3171
|
+
headerParameters: [accept],
|
|
3172
|
+
serializer: serializer$1
|
|
3173
|
+
};
|
|
3174
|
+
const createOrUpdateOperationSpec$1 = {
|
|
3175
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
3176
|
+
httpMethod: "PUT",
|
|
3177
|
+
responses: {
|
|
3178
|
+
200: {
|
|
3179
|
+
bodyMapper: TagRule
|
|
3180
|
+
},
|
|
3181
|
+
201: {
|
|
3182
|
+
bodyMapper: TagRule
|
|
3183
|
+
},
|
|
3184
|
+
202: {
|
|
3185
|
+
bodyMapper: TagRule
|
|
3186
|
+
},
|
|
3187
|
+
204: {
|
|
3188
|
+
bodyMapper: TagRule
|
|
3189
|
+
},
|
|
3190
|
+
default: {
|
|
3191
|
+
bodyMapper: ErrorResponse
|
|
3192
|
+
}
|
|
3193
|
+
},
|
|
3194
|
+
requestBody: resource2,
|
|
3195
|
+
queryParameters: [apiVersion],
|
|
3196
|
+
urlParameters: [
|
|
3197
|
+
$host,
|
|
3198
|
+
subscriptionId,
|
|
3199
|
+
resourceGroupName,
|
|
3200
|
+
monitorName,
|
|
3201
|
+
ruleSetName
|
|
3202
|
+
],
|
|
3203
|
+
headerParameters: [accept, contentType],
|
|
3204
|
+
mediaType: "json",
|
|
3205
|
+
serializer: serializer$1
|
|
3206
|
+
};
|
|
3207
|
+
const updateOperationSpec = {
|
|
3208
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
3209
|
+
httpMethod: "PATCH",
|
|
3210
|
+
responses: {
|
|
3211
|
+
200: {
|
|
3212
|
+
bodyMapper: TagRule
|
|
3213
|
+
},
|
|
3214
|
+
default: {
|
|
3215
|
+
bodyMapper: ErrorResponse
|
|
3216
|
+
}
|
|
3217
|
+
},
|
|
3218
|
+
requestBody: resource3,
|
|
3219
|
+
queryParameters: [apiVersion],
|
|
3220
|
+
urlParameters: [
|
|
3221
|
+
$host,
|
|
3222
|
+
subscriptionId,
|
|
3223
|
+
resourceGroupName,
|
|
3224
|
+
monitorName,
|
|
3225
|
+
ruleSetName
|
|
3226
|
+
],
|
|
3227
|
+
headerParameters: [accept, contentType],
|
|
3228
|
+
mediaType: "json",
|
|
3229
|
+
serializer: serializer$1
|
|
3230
|
+
};
|
|
3231
|
+
const deleteOperationSpec = {
|
|
3232
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
|
|
3233
|
+
httpMethod: "DELETE",
|
|
3234
|
+
responses: {
|
|
3235
|
+
200: {},
|
|
3236
|
+
201: {},
|
|
3237
|
+
202: {},
|
|
3238
|
+
204: {},
|
|
3239
|
+
default: {
|
|
3240
|
+
bodyMapper: ErrorResponse
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
queryParameters: [apiVersion],
|
|
3244
|
+
urlParameters: [
|
|
3245
|
+
$host,
|
|
3246
|
+
subscriptionId,
|
|
3247
|
+
resourceGroupName,
|
|
3248
|
+
monitorName,
|
|
3249
|
+
ruleSetName
|
|
3250
|
+
],
|
|
3251
|
+
headerParameters: [accept],
|
|
3252
|
+
serializer: serializer$1
|
|
3253
|
+
};
|
|
3254
|
+
const listOperationSpec$1 = {
|
|
3255
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/tagRules",
|
|
3256
|
+
httpMethod: "GET",
|
|
3257
|
+
responses: {
|
|
3258
|
+
200: {
|
|
3259
|
+
bodyMapper: TagRuleListResult
|
|
3260
|
+
},
|
|
3261
|
+
default: {
|
|
3262
|
+
bodyMapper: ErrorResponse
|
|
3263
|
+
}
|
|
3264
|
+
},
|
|
3265
|
+
queryParameters: [apiVersion],
|
|
3266
|
+
urlParameters: [
|
|
3267
|
+
$host,
|
|
3268
|
+
subscriptionId,
|
|
3269
|
+
resourceGroupName,
|
|
3270
|
+
monitorName
|
|
3271
|
+
],
|
|
3272
|
+
headerParameters: [accept],
|
|
3273
|
+
serializer: serializer$1
|
|
3274
|
+
};
|
|
3275
|
+
const listNextOperationSpec$1 = {
|
|
3276
|
+
path: "{nextLink}",
|
|
3277
|
+
httpMethod: "GET",
|
|
3278
|
+
responses: {
|
|
3279
|
+
200: {
|
|
3280
|
+
bodyMapper: TagRuleListResult
|
|
3281
|
+
},
|
|
3282
|
+
default: {
|
|
3283
|
+
bodyMapper: ErrorResponse
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
queryParameters: [apiVersion],
|
|
3287
|
+
urlParameters: [
|
|
3288
|
+
$host,
|
|
3289
|
+
subscriptionId,
|
|
3290
|
+
resourceGroupName,
|
|
3291
|
+
monitorName,
|
|
3292
|
+
nextLink
|
|
3293
|
+
],
|
|
3294
|
+
headerParameters: [accept],
|
|
3295
|
+
serializer: serializer$1
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
/*
|
|
3299
|
+
* Copyright (c) Microsoft Corporation.
|
|
3300
|
+
* Licensed under the MIT License.
|
|
3301
|
+
*
|
|
3302
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3303
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3304
|
+
*/
|
|
3305
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3306
|
+
/** Class containing SingleSignOn operations. */
|
|
3307
|
+
class SingleSignOnImpl {
|
|
3308
|
+
/**
|
|
3309
|
+
* Initialize a new instance of the class SingleSignOn class.
|
|
3310
|
+
* @param client Reference to the service client
|
|
3311
|
+
*/
|
|
3312
|
+
constructor(client) {
|
|
3313
|
+
this.client = client;
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* List all DynatraceSingleSignOnResource by monitorName
|
|
3317
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3318
|
+
* @param monitorName Monitor resource name
|
|
3319
|
+
* @param options The options parameters.
|
|
3320
|
+
*/
|
|
3321
|
+
list(resourceGroupName, monitorName, options) {
|
|
3322
|
+
const iter = this.listPagingAll(resourceGroupName, monitorName, options);
|
|
3323
|
+
return {
|
|
3324
|
+
next() {
|
|
3325
|
+
return iter.next();
|
|
3326
|
+
},
|
|
3327
|
+
[Symbol.asyncIterator]() {
|
|
3328
|
+
return this;
|
|
3329
|
+
},
|
|
3330
|
+
byPage: () => {
|
|
3331
|
+
return this.listPagingPage(resourceGroupName, monitorName, options);
|
|
3332
|
+
}
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
listPagingPage(resourceGroupName, monitorName, options) {
|
|
3336
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3337
|
+
let result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
|
|
3338
|
+
yield yield tslib.__await(result.value || []);
|
|
3339
|
+
let continuationToken = result.nextLink;
|
|
3340
|
+
while (continuationToken) {
|
|
3341
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, monitorName, continuationToken, options));
|
|
3342
|
+
continuationToken = result.nextLink;
|
|
3343
|
+
yield yield tslib.__await(result.value || []);
|
|
3344
|
+
}
|
|
3345
|
+
});
|
|
3346
|
+
}
|
|
3347
|
+
listPagingAll(resourceGroupName, monitorName, options) {
|
|
3348
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3349
|
+
var e_1, _a;
|
|
3350
|
+
try {
|
|
3351
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3352
|
+
const page = _c.value;
|
|
3353
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3357
|
+
finally {
|
|
3358
|
+
try {
|
|
3359
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3360
|
+
}
|
|
3361
|
+
finally { if (e_1) throw e_1.error; }
|
|
3362
|
+
}
|
|
3363
|
+
});
|
|
3364
|
+
}
|
|
3365
|
+
/**
|
|
3366
|
+
* Create a DynatraceSingleSignOnResource
|
|
3367
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3368
|
+
* @param monitorName Monitor resource name
|
|
3369
|
+
* @param configurationName Single Sign On Configuration Name
|
|
3370
|
+
* @param resource Resource create parameters.
|
|
3371
|
+
* @param options The options parameters.
|
|
3372
|
+
*/
|
|
3373
|
+
beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, resource, options) {
|
|
3374
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3375
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3376
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3377
|
+
});
|
|
3378
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3379
|
+
var _a;
|
|
3380
|
+
let currentRawResponse = undefined;
|
|
3381
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3382
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3383
|
+
currentRawResponse = rawResponse;
|
|
3384
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3385
|
+
};
|
|
3386
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3387
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3388
|
+
return {
|
|
3389
|
+
flatResponse,
|
|
3390
|
+
rawResponse: {
|
|
3391
|
+
statusCode: currentRawResponse.status,
|
|
3392
|
+
body: currentRawResponse.parsedBody,
|
|
3393
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3394
|
+
}
|
|
3395
|
+
};
|
|
3396
|
+
});
|
|
3397
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, configurationName, resource, options }, createOrUpdateOperationSpec);
|
|
3398
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3399
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3400
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3401
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
3402
|
+
});
|
|
3403
|
+
yield poller.poll();
|
|
3404
|
+
return poller;
|
|
3405
|
+
});
|
|
3406
|
+
}
|
|
3407
|
+
/**
|
|
3408
|
+
* Create a DynatraceSingleSignOnResource
|
|
3409
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3410
|
+
* @param monitorName Monitor resource name
|
|
3411
|
+
* @param configurationName Single Sign On Configuration Name
|
|
3412
|
+
* @param resource Resource create parameters.
|
|
3413
|
+
* @param options The options parameters.
|
|
3414
|
+
*/
|
|
3415
|
+
beginCreateOrUpdateAndWait(resourceGroupName, monitorName, configurationName, resource, options) {
|
|
3416
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3417
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, resource, options);
|
|
3418
|
+
return poller.pollUntilDone();
|
|
3419
|
+
});
|
|
3420
|
+
}
|
|
3421
|
+
/**
|
|
3422
|
+
* Get a DynatraceSingleSignOnResource
|
|
3423
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3424
|
+
* @param monitorName Monitor resource name
|
|
3425
|
+
* @param configurationName Single Sign On Configuration Name
|
|
3426
|
+
* @param options The options parameters.
|
|
3427
|
+
*/
|
|
3428
|
+
get(resourceGroupName, monitorName, configurationName, options) {
|
|
3429
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec);
|
|
3430
|
+
}
|
|
3431
|
+
/**
|
|
3432
|
+
* List all DynatraceSingleSignOnResource by monitorName
|
|
3433
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3434
|
+
* @param monitorName Monitor resource name
|
|
3435
|
+
* @param options The options parameters.
|
|
3436
|
+
*/
|
|
3437
|
+
_list(resourceGroupName, monitorName, options) {
|
|
3438
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec);
|
|
3439
|
+
}
|
|
3440
|
+
/**
|
|
3441
|
+
* ListNext
|
|
3442
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3443
|
+
* @param monitorName Monitor resource name
|
|
3444
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3445
|
+
* @param options The options parameters.
|
|
3446
|
+
*/
|
|
3447
|
+
_listNext(resourceGroupName, monitorName, nextLink, options) {
|
|
3448
|
+
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec);
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
// Operation Specifications
|
|
3452
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3453
|
+
const createOrUpdateOperationSpec = {
|
|
3454
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
|
3455
|
+
httpMethod: "PUT",
|
|
3456
|
+
responses: {
|
|
3457
|
+
200: {
|
|
3458
|
+
bodyMapper: DynatraceSingleSignOnResource
|
|
3459
|
+
},
|
|
3460
|
+
201: {
|
|
3461
|
+
bodyMapper: DynatraceSingleSignOnResource
|
|
3462
|
+
},
|
|
3463
|
+
202: {
|
|
3464
|
+
bodyMapper: DynatraceSingleSignOnResource
|
|
3465
|
+
},
|
|
3466
|
+
204: {
|
|
3467
|
+
bodyMapper: DynatraceSingleSignOnResource
|
|
3468
|
+
},
|
|
3469
|
+
default: {
|
|
3470
|
+
bodyMapper: ErrorResponse
|
|
3471
|
+
}
|
|
3472
|
+
},
|
|
3473
|
+
requestBody: resource4,
|
|
3474
|
+
queryParameters: [apiVersion],
|
|
3475
|
+
urlParameters: [
|
|
3476
|
+
$host,
|
|
3477
|
+
subscriptionId,
|
|
3478
|
+
resourceGroupName,
|
|
3479
|
+
monitorName,
|
|
3480
|
+
configurationName
|
|
3481
|
+
],
|
|
3482
|
+
headerParameters: [accept, contentType],
|
|
3483
|
+
mediaType: "json",
|
|
3484
|
+
serializer
|
|
3485
|
+
};
|
|
3486
|
+
const getOperationSpec = {
|
|
3487
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
|
3488
|
+
httpMethod: "GET",
|
|
3489
|
+
responses: {
|
|
3490
|
+
200: {
|
|
3491
|
+
bodyMapper: DynatraceSingleSignOnResource
|
|
3492
|
+
},
|
|
3493
|
+
default: {
|
|
3494
|
+
bodyMapper: ErrorResponse
|
|
3495
|
+
}
|
|
3496
|
+
},
|
|
3497
|
+
queryParameters: [apiVersion],
|
|
3498
|
+
urlParameters: [
|
|
3499
|
+
$host,
|
|
3500
|
+
subscriptionId,
|
|
3501
|
+
resourceGroupName,
|
|
3502
|
+
monitorName,
|
|
3503
|
+
configurationName
|
|
3504
|
+
],
|
|
3505
|
+
headerParameters: [accept],
|
|
3506
|
+
serializer
|
|
3507
|
+
};
|
|
3508
|
+
const listOperationSpec = {
|
|
3509
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/singleSignOnConfigurations",
|
|
3510
|
+
httpMethod: "GET",
|
|
3511
|
+
responses: {
|
|
3512
|
+
200: {
|
|
3513
|
+
bodyMapper: DynatraceSingleSignOnResourceListResult
|
|
3514
|
+
},
|
|
3515
|
+
default: {
|
|
3516
|
+
bodyMapper: ErrorResponse
|
|
3517
|
+
}
|
|
3518
|
+
},
|
|
3519
|
+
queryParameters: [apiVersion],
|
|
3520
|
+
urlParameters: [
|
|
3521
|
+
$host,
|
|
3522
|
+
subscriptionId,
|
|
3523
|
+
resourceGroupName,
|
|
3524
|
+
monitorName
|
|
3525
|
+
],
|
|
3526
|
+
headerParameters: [accept],
|
|
3527
|
+
serializer
|
|
3528
|
+
};
|
|
3529
|
+
const listNextOperationSpec = {
|
|
3530
|
+
path: "{nextLink}",
|
|
3531
|
+
httpMethod: "GET",
|
|
3532
|
+
responses: {
|
|
3533
|
+
200: {
|
|
3534
|
+
bodyMapper: DynatraceSingleSignOnResourceListResult
|
|
3535
|
+
},
|
|
3536
|
+
default: {
|
|
3537
|
+
bodyMapper: ErrorResponse
|
|
3538
|
+
}
|
|
3539
|
+
},
|
|
3540
|
+
queryParameters: [apiVersion],
|
|
3541
|
+
urlParameters: [
|
|
3542
|
+
$host,
|
|
3543
|
+
subscriptionId,
|
|
3544
|
+
resourceGroupName,
|
|
3545
|
+
monitorName,
|
|
3546
|
+
nextLink
|
|
3547
|
+
],
|
|
3548
|
+
headerParameters: [accept],
|
|
3549
|
+
serializer
|
|
3550
|
+
};
|
|
3551
|
+
|
|
3552
|
+
/*
|
|
3553
|
+
* Copyright (c) Microsoft Corporation.
|
|
3554
|
+
* Licensed under the MIT License.
|
|
3555
|
+
*
|
|
3556
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3557
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3558
|
+
*/
|
|
3559
|
+
class DynatraceObservability extends coreClient__namespace.ServiceClient {
|
|
3560
|
+
/**
|
|
3561
|
+
* Initializes a new instance of the DynatraceObservability class.
|
|
3562
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3563
|
+
* @param subscriptionId The ID of the target subscription.
|
|
3564
|
+
* @param options The parameter options
|
|
3565
|
+
*/
|
|
3566
|
+
constructor(credentials, subscriptionId, options) {
|
|
3567
|
+
var _a, _b;
|
|
3568
|
+
if (credentials === undefined) {
|
|
3569
|
+
throw new Error("'credentials' cannot be null");
|
|
3570
|
+
}
|
|
3571
|
+
if (subscriptionId === undefined) {
|
|
3572
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
3573
|
+
}
|
|
3574
|
+
// Initializing default values for options
|
|
3575
|
+
if (!options) {
|
|
3576
|
+
options = {};
|
|
3577
|
+
}
|
|
3578
|
+
const defaults = {
|
|
3579
|
+
requestContentType: "application/json; charset=utf-8",
|
|
3580
|
+
credential: credentials
|
|
3581
|
+
};
|
|
3582
|
+
const packageDetails = `azsdk-js-arm-dynatrace/1.0.0-beta.1`;
|
|
3583
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3584
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3585
|
+
: `${packageDetails}`;
|
|
3586
|
+
if (!options.credentialScopes) {
|
|
3587
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3588
|
+
}
|
|
3589
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3590
|
+
userAgentPrefix
|
|
3591
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3592
|
+
super(optionsWithDefaults);
|
|
3593
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3594
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3595
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3596
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3597
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
3598
|
+
this.pipeline.removePolicy({
|
|
3599
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3600
|
+
});
|
|
3601
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3602
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
3603
|
+
challengeCallbacks: {
|
|
3604
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3605
|
+
}
|
|
3606
|
+
}));
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
// Parameter assignments
|
|
3610
|
+
this.subscriptionId = subscriptionId;
|
|
3611
|
+
// Assigning values to Constant parameters
|
|
3612
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
3613
|
+
this.apiVersion = options.apiVersion || "2021-09-01-preview";
|
|
3614
|
+
this.monitors = new MonitorsImpl(this);
|
|
3615
|
+
this.operations = new OperationsImpl(this);
|
|
3616
|
+
this.tagRules = new TagRulesImpl(this);
|
|
3617
|
+
this.singleSignOn = new SingleSignOnImpl(this);
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
exports.DynatraceObservability = DynatraceObservability;
|
|
3622
|
+
//# sourceMappingURL=index.js.map
|