@azure/arm-dynatrace 1.0.2-alpha.20230824.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -10
- package/dist/index.js +257 -258
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/monitorsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js +58 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{monitorsGetAccountCredentialsSample.js → monitorsGetMetricStatusSample.js} +19 -21
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +3 -3
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListHostsSample.js +6 -6
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +7 -3
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsUpdateSample.js +3 -25
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnGetSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnListSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +6 -3
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesGetSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesListSample.js +2 -2
- package/dist-esm/src/dynatraceObservability.js +2 -2
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +54 -69
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +116 -130
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +7 -7
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/monitors.d.ts +19 -13
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +83 -46
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operations/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operations/singleSignOn.js +18 -8
- package/dist-esm/src/operations/singleSignOn.js.map +1 -1
- package/dist-esm/src/operations/tagRules.d.ts +4 -13
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -1
- package/dist-esm/src/operations/tagRules.js +20 -47
- package/dist-esm/src/operations/tagRules.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +18 -12
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +4 -13
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -1
- package/dist-esm/test/dynatrace_examples.spec.js +60 -13
- package/dist-esm/test/dynatrace_examples.spec.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-dynatrace.api.md +40 -40
- package/src/dynatraceObservability.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +62 -76
- package/src/models/mappers.ts +120 -133
- package/src/models/parameters.ts +8 -8
- package/src/operations/monitors.ts +115 -68
- package/src/operations/singleSignOn.ts +27 -14
- package/src/operations/tagRules.ts +30 -72
- package/src/operationsInterfaces/monitors.ts +30 -18
- package/src/operationsInterfaces/singleSignOn.ts +3 -3
- package/src/operationsInterfaces/tagRules.ts +4 -22
- package/types/arm-dynatrace.d.ts +59 -76
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.js +0 -75
- package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +0 -1
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -8,24 +8,26 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
|
|
11
|
-
/** Dynatrace
|
|
12
|
-
export interface
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
/** List of all the resources being monitored by Dynatrace monitor resource */
|
|
12
|
+
export interface MonitoredResourceListResponse {
|
|
13
|
+
/** The items on this page */
|
|
14
|
+
value?: MonitoredResource[];
|
|
15
|
+
/** The link to the next page of items */
|
|
16
|
+
nextLink?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Details of resource being monitored by Dynatrace monitor resource */
|
|
20
|
+
export interface MonitoredResource {
|
|
21
|
+
/** The ARM id of the resource. */
|
|
22
|
+
id?: string;
|
|
23
|
+
/** Flag indicating if resource is sending metrics to Dynatrace. */
|
|
24
|
+
sendingMetrics?: SendingMetricsStatus;
|
|
25
|
+
/** Reason for why the resource is sending metrics (or why it is not sending). */
|
|
26
|
+
reasonForMetricsStatus?: string;
|
|
27
|
+
/** Flag indicating if resource is sending logs to Dynatrace. */
|
|
28
|
+
sendingLogs?: SendingLogsStatus;
|
|
29
|
+
/** Reason for why the resource is sending logs (or why it is not sending). */
|
|
30
|
+
reasonForLogsStatus?: string;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
@@ -77,28 +79,6 @@ export interface ErrorAdditionalInfo {
|
|
|
77
79
|
readonly info?: Record<string, unknown>;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
|
-
/** List of all the resources being monitored by Dynatrace monitor resource */
|
|
81
|
-
export interface MonitoredResourceListResponse {
|
|
82
|
-
/** The items on this page */
|
|
83
|
-
value?: MonitoredResource[];
|
|
84
|
-
/** The link to the next page of items */
|
|
85
|
-
nextLink?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** Details of resource being monitored by Dynatrace monitor resource */
|
|
89
|
-
export interface MonitoredResource {
|
|
90
|
-
/** The ARM id of the resource. */
|
|
91
|
-
id?: string;
|
|
92
|
-
/** Flag indicating if resource is sending metrics to Dynatrace. */
|
|
93
|
-
sendingMetrics?: SendingMetricsStatus;
|
|
94
|
-
/** Reason for why the resource is sending metrics (or why it is not sending). */
|
|
95
|
-
reasonForMetricsStatus?: string;
|
|
96
|
-
/** Flag indicating if resource is sending logs to Dynatrace. */
|
|
97
|
-
sendingLogs?: SendingLogsStatus;
|
|
98
|
-
/** Reason for why the resource is sending logs (or why it is not sending). */
|
|
99
|
-
reasonForLogsStatus?: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
82
|
/** Response of payload to be passed while installing VM agent. */
|
|
103
83
|
export interface VMExtensionPayload {
|
|
104
84
|
/** Ingestion key of the environment */
|
|
@@ -247,16 +227,6 @@ export interface Resource {
|
|
|
247
227
|
export interface MonitorResourceUpdate {
|
|
248
228
|
/** Resource tags. */
|
|
249
229
|
tags?: { [propertyName: string]: string };
|
|
250
|
-
/** Status of the monitor. */
|
|
251
|
-
monitoringStatus?: MonitoringStatus;
|
|
252
|
-
/** Marketplace subscription status. */
|
|
253
|
-
marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
|
|
254
|
-
/** Properties of the Dynatrace environment. */
|
|
255
|
-
dynatraceEnvironmentProperties?: DynatraceEnvironmentProperties;
|
|
256
|
-
/** User info. */
|
|
257
|
-
userInfo?: UserInfo;
|
|
258
|
-
/** Billing plan information. */
|
|
259
|
-
planData?: PlanData;
|
|
260
230
|
}
|
|
261
231
|
|
|
262
232
|
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
|
|
@@ -358,18 +328,12 @@ export interface FilteringTag {
|
|
|
358
328
|
|
|
359
329
|
/** Set of rules for sending metrics for the Monitor resource. */
|
|
360
330
|
export interface MetricRules {
|
|
331
|
+
/** Flag specifying if metrics from Azure resources should be sent for the Monitor resource. */
|
|
332
|
+
sendingMetrics?: SendingMetricsStatus;
|
|
361
333
|
/** List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. */
|
|
362
334
|
filteringTags?: FilteringTag[];
|
|
363
335
|
}
|
|
364
336
|
|
|
365
|
-
/** The updatable properties of the TagRule. */
|
|
366
|
-
export interface TagRuleUpdate {
|
|
367
|
-
/** Set of rules for sending logs for the Monitor resource. */
|
|
368
|
-
logRules?: LogRules;
|
|
369
|
-
/** Set of rules for sending metrics for the Monitor resource. */
|
|
370
|
-
metricRules?: MetricRules;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
337
|
/** The response of a TagRule list operation. */
|
|
374
338
|
export interface TagRuleListResult {
|
|
375
339
|
/** The items on this page */
|
|
@@ -378,6 +342,22 @@ export interface TagRuleListResult {
|
|
|
378
342
|
nextLink?: string;
|
|
379
343
|
}
|
|
380
344
|
|
|
345
|
+
/** Request for getting Marketplace SaaS resource details for a tenant Id */
|
|
346
|
+
export interface MarketplaceSaaSResourceDetailsRequest {
|
|
347
|
+
/** Tenant Id */
|
|
348
|
+
tenantId: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** Marketplace SaaS resource details linked to the given tenant Id */
|
|
352
|
+
export interface MarketplaceSaaSResourceDetailsResponse {
|
|
353
|
+
/** Id of the Marketplace SaaS Resource */
|
|
354
|
+
marketplaceSaaSResourceId?: string;
|
|
355
|
+
/** Id of the plan */
|
|
356
|
+
planId?: string;
|
|
357
|
+
/** Marketplace subscription status */
|
|
358
|
+
marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
|
|
359
|
+
}
|
|
360
|
+
|
|
381
361
|
/** The response of a DynatraceSingleSignOnResource list operation. */
|
|
382
362
|
export interface DynatraceSingleSignOnResourceListResult {
|
|
383
363
|
/** The items on this page */
|
|
@@ -416,6 +396,12 @@ export interface VMInfo {
|
|
|
416
396
|
hostName?: string;
|
|
417
397
|
}
|
|
418
398
|
|
|
399
|
+
/** Response of get metrics status operation */
|
|
400
|
+
export interface MetricsStatusResponse {
|
|
401
|
+
/** Azure resource IDs */
|
|
402
|
+
azureResourceIds?: string[];
|
|
403
|
+
}
|
|
404
|
+
|
|
419
405
|
/** Response of a list App Services Operation. */
|
|
420
406
|
export interface AppServiceListResponse {
|
|
421
407
|
/** The items on this page */
|
|
@@ -449,7 +435,7 @@ export interface AppServiceInfo {
|
|
|
449
435
|
/** Request for getting sso details for a user */
|
|
450
436
|
export interface SSODetailsRequest {
|
|
451
437
|
/** user principal id of the user */
|
|
452
|
-
userPrincipal
|
|
438
|
+
userPrincipal: string;
|
|
453
439
|
}
|
|
454
440
|
|
|
455
441
|
/** SSO details from the Dynatrace partner */
|
|
@@ -469,11 +455,11 @@ export interface SSODetailsResponse {
|
|
|
469
455
|
/** Request for getting all the linkable environments for a user */
|
|
470
456
|
export interface LinkableEnvironmentRequest {
|
|
471
457
|
/** Tenant Id of the user in which they want to link the environment */
|
|
472
|
-
tenantId
|
|
458
|
+
tenantId: string;
|
|
473
459
|
/** user principal id of the user */
|
|
474
|
-
userPrincipal
|
|
460
|
+
userPrincipal: string;
|
|
475
461
|
/** Azure region in which we want to link the environment */
|
|
476
|
-
region
|
|
462
|
+
region: string;
|
|
477
463
|
}
|
|
478
464
|
|
|
479
465
|
/** Response for getting all the linkable environments */
|
|
@@ -1034,13 +1020,6 @@ export enum KnownSSOStatus {
|
|
|
1034
1020
|
*/
|
|
1035
1021
|
export type SSOStatus = string;
|
|
1036
1022
|
|
|
1037
|
-
/** Optional parameters. */
|
|
1038
|
-
export interface MonitorsGetAccountCredentialsOptionalParams
|
|
1039
|
-
extends coreClient.OperationOptions {}
|
|
1040
|
-
|
|
1041
|
-
/** Contains response data for the getAccountCredentials operation. */
|
|
1042
|
-
export type MonitorsGetAccountCredentialsResponse = AccountInfoSecure;
|
|
1043
|
-
|
|
1044
1023
|
/** Optional parameters. */
|
|
1045
1024
|
export interface MonitorsListMonitoredResourcesOptionalParams
|
|
1046
1025
|
extends coreClient.OperationOptions {}
|
|
@@ -1104,6 +1083,13 @@ export interface MonitorsListByResourceGroupOptionalParams
|
|
|
1104
1083
|
/** Contains response data for the listByResourceGroup operation. */
|
|
1105
1084
|
export type MonitorsListByResourceGroupResponse = MonitorResourceListResult;
|
|
1106
1085
|
|
|
1086
|
+
/** Optional parameters. */
|
|
1087
|
+
export interface MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams
|
|
1088
|
+
extends coreClient.OperationOptions {}
|
|
1089
|
+
|
|
1090
|
+
/** Contains response data for the getMarketplaceSaaSResourceDetails operation. */
|
|
1091
|
+
export type MonitorsGetMarketplaceSaaSResourceDetailsResponse = MarketplaceSaaSResourceDetailsResponse;
|
|
1092
|
+
|
|
1107
1093
|
/** Optional parameters. */
|
|
1108
1094
|
export interface MonitorsListHostsOptionalParams
|
|
1109
1095
|
extends coreClient.OperationOptions {}
|
|
@@ -1111,6 +1097,13 @@ export interface MonitorsListHostsOptionalParams
|
|
|
1111
1097
|
/** Contains response data for the listHosts operation. */
|
|
1112
1098
|
export type MonitorsListHostsResponse = VMHostsListResponse;
|
|
1113
1099
|
|
|
1100
|
+
/** Optional parameters. */
|
|
1101
|
+
export interface MonitorsGetMetricStatusOptionalParams
|
|
1102
|
+
extends coreClient.OperationOptions {}
|
|
1103
|
+
|
|
1104
|
+
/** Contains response data for the getMetricStatus operation. */
|
|
1105
|
+
export type MonitorsGetMetricStatusResponse = MetricsStatusResponse;
|
|
1106
|
+
|
|
1114
1107
|
/** Optional parameters. */
|
|
1115
1108
|
export interface MonitorsListAppServicesOptionalParams
|
|
1116
1109
|
extends coreClient.OperationOptions {}
|
|
@@ -1210,13 +1203,6 @@ export interface TagRulesCreateOrUpdateOptionalParams
|
|
|
1210
1203
|
/** Contains response data for the createOrUpdate operation. */
|
|
1211
1204
|
export type TagRulesCreateOrUpdateResponse = TagRule;
|
|
1212
1205
|
|
|
1213
|
-
/** Optional parameters. */
|
|
1214
|
-
export interface TagRulesUpdateOptionalParams
|
|
1215
|
-
extends coreClient.OperationOptions {}
|
|
1216
|
-
|
|
1217
|
-
/** Contains response data for the update operation. */
|
|
1218
|
-
export type TagRulesUpdateResponse = TagRule;
|
|
1219
|
-
|
|
1220
1206
|
/** Optional parameters. */
|
|
1221
1207
|
export interface TagRulesDeleteOptionalParams
|
|
1222
1208
|
extends coreClient.OperationOptions {
|
package/src/models/mappers.ts
CHANGED
|
@@ -8,28 +8,64 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const MonitoredResourceListResponse: coreClient.CompositeMapper = {
|
|
12
12
|
type: {
|
|
13
13
|
name: "Composite",
|
|
14
|
-
className: "
|
|
14
|
+
className: "MonitoredResourceListResponse",
|
|
15
15
|
modelProperties: {
|
|
16
|
-
|
|
17
|
-
serializedName: "
|
|
18
|
-
|
|
16
|
+
value: {
|
|
17
|
+
serializedName: "value",
|
|
18
|
+
type: {
|
|
19
|
+
name: "Sequence",
|
|
20
|
+
element: {
|
|
21
|
+
type: {
|
|
22
|
+
name: "Composite",
|
|
23
|
+
className: "MonitoredResource"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
nextLink: {
|
|
29
|
+
serializedName: "nextLink",
|
|
30
|
+
type: {
|
|
31
|
+
name: "String"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const MonitoredResource: coreClient.CompositeMapper = {
|
|
39
|
+
type: {
|
|
40
|
+
name: "Composite",
|
|
41
|
+
className: "MonitoredResource",
|
|
42
|
+
modelProperties: {
|
|
43
|
+
id: {
|
|
44
|
+
serializedName: "id",
|
|
19
45
|
type: {
|
|
20
46
|
name: "String"
|
|
21
47
|
}
|
|
22
48
|
},
|
|
23
|
-
|
|
24
|
-
serializedName: "
|
|
25
|
-
readOnly: true,
|
|
49
|
+
sendingMetrics: {
|
|
50
|
+
serializedName: "sendingMetrics",
|
|
26
51
|
type: {
|
|
27
52
|
name: "String"
|
|
28
53
|
}
|
|
29
54
|
},
|
|
30
|
-
|
|
31
|
-
serializedName: "
|
|
32
|
-
|
|
55
|
+
reasonForMetricsStatus: {
|
|
56
|
+
serializedName: "reasonForMetricsStatus",
|
|
57
|
+
type: {
|
|
58
|
+
name: "String"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
sendingLogs: {
|
|
62
|
+
serializedName: "sendingLogs",
|
|
63
|
+
type: {
|
|
64
|
+
name: "String"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
reasonForLogsStatus: {
|
|
68
|
+
serializedName: "reasonForLogsStatus",
|
|
33
69
|
type: {
|
|
34
70
|
name: "String"
|
|
35
71
|
}
|
|
@@ -134,72 +170,6 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
|
|
|
134
170
|
}
|
|
135
171
|
};
|
|
136
172
|
|
|
137
|
-
export const MonitoredResourceListResponse: coreClient.CompositeMapper = {
|
|
138
|
-
type: {
|
|
139
|
-
name: "Composite",
|
|
140
|
-
className: "MonitoredResourceListResponse",
|
|
141
|
-
modelProperties: {
|
|
142
|
-
value: {
|
|
143
|
-
serializedName: "value",
|
|
144
|
-
type: {
|
|
145
|
-
name: "Sequence",
|
|
146
|
-
element: {
|
|
147
|
-
type: {
|
|
148
|
-
name: "Composite",
|
|
149
|
-
className: "MonitoredResource"
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
nextLink: {
|
|
155
|
-
serializedName: "nextLink",
|
|
156
|
-
type: {
|
|
157
|
-
name: "String"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
export const MonitoredResource: coreClient.CompositeMapper = {
|
|
165
|
-
type: {
|
|
166
|
-
name: "Composite",
|
|
167
|
-
className: "MonitoredResource",
|
|
168
|
-
modelProperties: {
|
|
169
|
-
id: {
|
|
170
|
-
serializedName: "id",
|
|
171
|
-
type: {
|
|
172
|
-
name: "String"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
sendingMetrics: {
|
|
176
|
-
serializedName: "sendingMetrics",
|
|
177
|
-
type: {
|
|
178
|
-
name: "String"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
reasonForMetricsStatus: {
|
|
182
|
-
serializedName: "reasonForMetricsStatus",
|
|
183
|
-
type: {
|
|
184
|
-
name: "String"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
sendingLogs: {
|
|
188
|
-
serializedName: "sendingLogs",
|
|
189
|
-
type: {
|
|
190
|
-
name: "String"
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
reasonForLogsStatus: {
|
|
194
|
-
serializedName: "reasonForLogsStatus",
|
|
195
|
-
type: {
|
|
196
|
-
name: "String"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
|
|
203
173
|
export const VMExtensionPayload: coreClient.CompositeMapper = {
|
|
204
174
|
type: {
|
|
205
175
|
name: "Composite",
|
|
@@ -584,39 +554,6 @@ export const MonitorResourceUpdate: coreClient.CompositeMapper = {
|
|
|
584
554
|
name: "Dictionary",
|
|
585
555
|
value: { type: { name: "String" } }
|
|
586
556
|
}
|
|
587
|
-
},
|
|
588
|
-
monitoringStatus: {
|
|
589
|
-
serializedName: "monitoringStatus",
|
|
590
|
-
type: {
|
|
591
|
-
name: "String"
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
marketplaceSubscriptionStatus: {
|
|
595
|
-
serializedName: "marketplaceSubscriptionStatus",
|
|
596
|
-
type: {
|
|
597
|
-
name: "String"
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
dynatraceEnvironmentProperties: {
|
|
601
|
-
serializedName: "dynatraceEnvironmentProperties",
|
|
602
|
-
type: {
|
|
603
|
-
name: "Composite",
|
|
604
|
-
className: "DynatraceEnvironmentProperties"
|
|
605
|
-
}
|
|
606
|
-
},
|
|
607
|
-
userInfo: {
|
|
608
|
-
serializedName: "userInfo",
|
|
609
|
-
type: {
|
|
610
|
-
name: "Composite",
|
|
611
|
-
className: "UserInfo"
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
planData: {
|
|
615
|
-
serializedName: "planData",
|
|
616
|
-
type: {
|
|
617
|
-
name: "Composite",
|
|
618
|
-
className: "PlanData"
|
|
619
|
-
}
|
|
620
557
|
}
|
|
621
558
|
}
|
|
622
559
|
}
|
|
@@ -831,6 +768,12 @@ export const MetricRules: coreClient.CompositeMapper = {
|
|
|
831
768
|
name: "Composite",
|
|
832
769
|
className: "MetricRules",
|
|
833
770
|
modelProperties: {
|
|
771
|
+
sendingMetrics: {
|
|
772
|
+
serializedName: "sendingMetrics",
|
|
773
|
+
type: {
|
|
774
|
+
name: "String"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
834
777
|
filteringTags: {
|
|
835
778
|
serializedName: "filteringTags",
|
|
836
779
|
type: {
|
|
@@ -847,29 +790,6 @@ export const MetricRules: coreClient.CompositeMapper = {
|
|
|
847
790
|
}
|
|
848
791
|
};
|
|
849
792
|
|
|
850
|
-
export const TagRuleUpdate: coreClient.CompositeMapper = {
|
|
851
|
-
type: {
|
|
852
|
-
name: "Composite",
|
|
853
|
-
className: "TagRuleUpdate",
|
|
854
|
-
modelProperties: {
|
|
855
|
-
logRules: {
|
|
856
|
-
serializedName: "logRules",
|
|
857
|
-
type: {
|
|
858
|
-
name: "Composite",
|
|
859
|
-
className: "LogRules"
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
metricRules: {
|
|
863
|
-
serializedName: "metricRules",
|
|
864
|
-
type: {
|
|
865
|
-
name: "Composite",
|
|
866
|
-
className: "MetricRules"
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
|
|
873
793
|
export const TagRuleListResult: coreClient.CompositeMapper = {
|
|
874
794
|
type: {
|
|
875
795
|
name: "Composite",
|
|
@@ -898,6 +818,49 @@ export const TagRuleListResult: coreClient.CompositeMapper = {
|
|
|
898
818
|
}
|
|
899
819
|
};
|
|
900
820
|
|
|
821
|
+
export const MarketplaceSaaSResourceDetailsRequest: coreClient.CompositeMapper = {
|
|
822
|
+
type: {
|
|
823
|
+
name: "Composite",
|
|
824
|
+
className: "MarketplaceSaaSResourceDetailsRequest",
|
|
825
|
+
modelProperties: {
|
|
826
|
+
tenantId: {
|
|
827
|
+
serializedName: "tenantId",
|
|
828
|
+
required: true,
|
|
829
|
+
type: {
|
|
830
|
+
name: "String"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
export const MarketplaceSaaSResourceDetailsResponse: coreClient.CompositeMapper = {
|
|
838
|
+
type: {
|
|
839
|
+
name: "Composite",
|
|
840
|
+
className: "MarketplaceSaaSResourceDetailsResponse",
|
|
841
|
+
modelProperties: {
|
|
842
|
+
marketplaceSaaSResourceId: {
|
|
843
|
+
serializedName: "marketplaceSaaSResourceId",
|
|
844
|
+
type: {
|
|
845
|
+
name: "String"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
planId: {
|
|
849
|
+
serializedName: "planId",
|
|
850
|
+
type: {
|
|
851
|
+
name: "String"
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
marketplaceSubscriptionStatus: {
|
|
855
|
+
serializedName: "marketplaceSubscriptionStatus",
|
|
856
|
+
type: {
|
|
857
|
+
name: "String"
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
|
|
901
864
|
export const DynatraceSingleSignOnResourceListResult: coreClient.CompositeMapper = {
|
|
902
865
|
type: {
|
|
903
866
|
name: "Composite",
|
|
@@ -1016,6 +979,26 @@ export const VMInfo: coreClient.CompositeMapper = {
|
|
|
1016
979
|
}
|
|
1017
980
|
};
|
|
1018
981
|
|
|
982
|
+
export const MetricsStatusResponse: coreClient.CompositeMapper = {
|
|
983
|
+
type: {
|
|
984
|
+
name: "Composite",
|
|
985
|
+
className: "MetricsStatusResponse",
|
|
986
|
+
modelProperties: {
|
|
987
|
+
azureResourceIds: {
|
|
988
|
+
serializedName: "azureResourceIds",
|
|
989
|
+
type: {
|
|
990
|
+
name: "Sequence",
|
|
991
|
+
element: {
|
|
992
|
+
type: {
|
|
993
|
+
name: "String"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1019
1002
|
export const AppServiceListResponse: coreClient.CompositeMapper = {
|
|
1020
1003
|
type: {
|
|
1021
1004
|
name: "Composite",
|
|
@@ -1113,6 +1096,7 @@ export const SSODetailsRequest: coreClient.CompositeMapper = {
|
|
|
1113
1096
|
modelProperties: {
|
|
1114
1097
|
userPrincipal: {
|
|
1115
1098
|
serializedName: "userPrincipal",
|
|
1099
|
+
required: true,
|
|
1116
1100
|
type: {
|
|
1117
1101
|
name: "String"
|
|
1118
1102
|
}
|
|
@@ -1177,18 +1161,21 @@ export const LinkableEnvironmentRequest: coreClient.CompositeMapper = {
|
|
|
1177
1161
|
modelProperties: {
|
|
1178
1162
|
tenantId: {
|
|
1179
1163
|
serializedName: "tenantId",
|
|
1164
|
+
required: true,
|
|
1180
1165
|
type: {
|
|
1181
1166
|
name: "String"
|
|
1182
1167
|
}
|
|
1183
1168
|
},
|
|
1184
1169
|
userPrincipal: {
|
|
1185
1170
|
serializedName: "userPrincipal",
|
|
1171
|
+
required: true,
|
|
1186
1172
|
type: {
|
|
1187
1173
|
name: "String"
|
|
1188
1174
|
}
|
|
1189
1175
|
},
|
|
1190
1176
|
region: {
|
|
1191
1177
|
serializedName: "region",
|
|
1178
|
+
required: true,
|
|
1192
1179
|
type: {
|
|
1193
1180
|
name: "String"
|
|
1194
1181
|
}
|
package/src/models/parameters.ts
CHANGED
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
MonitorResource as MonitorResourceMapper,
|
|
16
16
|
MonitorResourceUpdate as MonitorResourceUpdateMapper,
|
|
17
|
+
MarketplaceSaaSResourceDetailsRequest as MarketplaceSaaSResourceDetailsRequestMapper,
|
|
17
18
|
SSODetailsRequest as SSODetailsRequestMapper,
|
|
18
19
|
LinkableEnvironmentRequest as LinkableEnvironmentRequestMapper,
|
|
19
20
|
TagRule as TagRuleMapper,
|
|
20
|
-
TagRuleUpdate as TagRuleUpdateMapper,
|
|
21
21
|
DynatraceSingleSignOnResource as DynatraceSingleSignOnResourceMapper
|
|
22
22
|
} from "../models/mappers";
|
|
23
23
|
|
|
@@ -48,7 +48,7 @@ export const $host: OperationURLParameter = {
|
|
|
48
48
|
export const apiVersion: OperationQueryParameter = {
|
|
49
49
|
parameterPath: "apiVersion",
|
|
50
50
|
mapper: {
|
|
51
|
-
defaultValue: "
|
|
51
|
+
defaultValue: "2023-04-27",
|
|
52
52
|
isConstant: true,
|
|
53
53
|
serializedName: "api-version",
|
|
54
54
|
type: {
|
|
@@ -120,11 +120,16 @@ export const resource1: OperationParameter = {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
export const request: OperationParameter = {
|
|
123
|
+
parameterPath: "request",
|
|
124
|
+
mapper: MarketplaceSaaSResourceDetailsRequestMapper
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const request1: OperationParameter = {
|
|
123
128
|
parameterPath: ["options", "request"],
|
|
124
129
|
mapper: SSODetailsRequestMapper
|
|
125
130
|
};
|
|
126
131
|
|
|
127
|
-
export const
|
|
132
|
+
export const request2: OperationParameter = {
|
|
128
133
|
parameterPath: "request",
|
|
129
134
|
mapper: LinkableEnvironmentRequestMapper
|
|
130
135
|
};
|
|
@@ -158,11 +163,6 @@ export const resource2: OperationParameter = {
|
|
|
158
163
|
};
|
|
159
164
|
|
|
160
165
|
export const resource3: OperationParameter = {
|
|
161
|
-
parameterPath: "resource",
|
|
162
|
-
mapper: TagRuleUpdateMapper
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export const resource4: OperationParameter = {
|
|
166
166
|
parameterPath: "resource",
|
|
167
167
|
mapper: DynatraceSingleSignOnResourceMapper
|
|
168
168
|
};
|