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