@azure/arm-advisor 3.2.0-alpha.20250718.1 → 3.2.0-alpha.20250730.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/dist/commonjs/advisorManagementClient.js +17 -5
- package/dist/commonjs/advisorManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +59 -28
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/configurations.js +32 -65
- package/dist/commonjs/operations/configurations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/recommendationMetadata.js +23 -39
- package/dist/commonjs/operations/recommendationMetadata.js.map +1 -1
- package/dist/commonjs/operations/recommendations.js +23 -39
- package/dist/commonjs/operations/recommendations.js.map +1 -1
- package/dist/commonjs/operations/suppressions.js +23 -39
- package/dist/commonjs/operations/suppressions.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/advisorManagementClient.js +17 -5
- package/dist/esm/advisorManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +59 -28
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/configurations.js +32 -66
- package/dist/esm/operations/configurations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/recommendationMetadata.js +23 -40
- package/dist/esm/operations/recommendationMetadata.js.map +1 -1
- package/dist/esm/operations/recommendations.js +23 -40
- package/dist/esm/operations/recommendations.js.map +1 -1
- package/dist/esm/operations/suppressions.js +23 -40
- package/dist/esm/operations/suppressions.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-advisor-node.api.md +446 -446
|
@@ -13,8 +13,10 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
17
|
-
var _a, _b, _c;
|
|
18
20
|
if (credentials === undefined) {
|
|
19
21
|
throw new Error("'credentials' cannot be null");
|
|
20
22
|
}
|
|
@@ -37,12 +39,17 @@ class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
|
37
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
41
|
: `${packageDetails}`;
|
|
40
|
-
const optionsWithDefaults =
|
|
42
|
+
const optionsWithDefaults = {
|
|
43
|
+
...defaults,
|
|
44
|
+
...options,
|
|
45
|
+
userAgentOptions: {
|
|
41
46
|
userAgentPrefix,
|
|
42
|
-
},
|
|
47
|
+
},
|
|
48
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
49
|
+
};
|
|
43
50
|
super(optionsWithDefaults);
|
|
44
51
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
45
|
-
if (
|
|
52
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
46
53
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
47
54
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
48
55
|
}
|
|
@@ -55,7 +62,7 @@ class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
|
55
62
|
});
|
|
56
63
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
64
|
credential: credentials,
|
|
58
|
-
scopes:
|
|
65
|
+
scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
|
|
59
66
|
challengeCallbacks: {
|
|
60
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
61
68
|
},
|
|
@@ -98,6 +105,11 @@ class AdvisorManagementClient extends coreClient.ServiceClient {
|
|
|
98
105
|
};
|
|
99
106
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
100
107
|
}
|
|
108
|
+
recommendationMetadata;
|
|
109
|
+
configurations;
|
|
110
|
+
recommendations;
|
|
111
|
+
operations;
|
|
112
|
+
suppressions;
|
|
101
113
|
}
|
|
102
114
|
exports.AdvisorManagementClient = AdvisorManagementClient;
|
|
103
115
|
//# sourceMappingURL=advisorManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advisorManagementClient.js","sourceRoot":"","sources":["../../src/advisorManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAM+B;AAU/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"advisorManagementClient.js","sourceRoot":"","sources":["../../src/advisorManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAM+B;AAU/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAAwE,EACxE,OAA+C;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAA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GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;gBAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,sBAAsB,CAAyB;IAC/C,cAAc,CAAiB;IAC/B,eAAe,CAAkB;IACjC,UAAU,CAAa;IACvB,YAAY,CAAe;CAC5B;AAvID,0DAuIC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n RecommendationMetadataImpl,\n ConfigurationsImpl,\n RecommendationsImpl,\n OperationsImpl,\n SuppressionsImpl,\n} from \"./operations/index.js\";\nimport {\n RecommendationMetadata,\n Configurations,\n Recommendations,\n Operations,\n Suppressions,\n} from \"./operationsInterfaces/index.js\";\nimport { AdvisorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AdvisorManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AdvisorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AdvisorManagementClientOptionalParams | string,\n options?: AdvisorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AdvisorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-advisor/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-01-01\";\n this.recommendationMetadata = new RecommendationMetadataImpl(this);\n this.configurations = new ConfigurationsImpl(this);\n this.recommendations = new RecommendationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.suppressions = new SuppressionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n recommendationMetadata: RecommendationMetadata;\n configurations: Configurations;\n recommendations: Recommendations;\n operations: Operations;\n suppressions: Suppressions;\n}\n"]}
|
|
@@ -455,17 +455,21 @@ exports.ConfigData = {
|
|
|
455
455
|
type: {
|
|
456
456
|
name: "Composite",
|
|
457
457
|
className: "ConfigData",
|
|
458
|
-
modelProperties:
|
|
458
|
+
modelProperties: {
|
|
459
|
+
...exports.Resource.type.modelProperties,
|
|
460
|
+
exclude: {
|
|
459
461
|
serializedName: "properties.exclude",
|
|
460
462
|
type: {
|
|
461
463
|
name: "Boolean",
|
|
462
464
|
},
|
|
463
|
-
},
|
|
465
|
+
},
|
|
466
|
+
lowCpuThreshold: {
|
|
464
467
|
serializedName: "properties.lowCpuThreshold",
|
|
465
468
|
type: {
|
|
466
469
|
name: "String",
|
|
467
470
|
},
|
|
468
|
-
},
|
|
471
|
+
},
|
|
472
|
+
digests: {
|
|
469
473
|
serializedName: "properties.digests",
|
|
470
474
|
type: {
|
|
471
475
|
name: "Sequence",
|
|
@@ -476,39 +480,47 @@ exports.ConfigData = {
|
|
|
476
480
|
},
|
|
477
481
|
},
|
|
478
482
|
},
|
|
479
|
-
}
|
|
483
|
+
},
|
|
484
|
+
},
|
|
480
485
|
},
|
|
481
486
|
};
|
|
482
487
|
exports.ResourceRecommendationBase = {
|
|
483
488
|
type: {
|
|
484
489
|
name: "Composite",
|
|
485
490
|
className: "ResourceRecommendationBase",
|
|
486
|
-
modelProperties:
|
|
491
|
+
modelProperties: {
|
|
492
|
+
...exports.Resource.type.modelProperties,
|
|
493
|
+
category: {
|
|
487
494
|
serializedName: "properties.category",
|
|
488
495
|
type: {
|
|
489
496
|
name: "String",
|
|
490
497
|
},
|
|
491
|
-
},
|
|
498
|
+
},
|
|
499
|
+
impact: {
|
|
492
500
|
serializedName: "properties.impact",
|
|
493
501
|
type: {
|
|
494
502
|
name: "String",
|
|
495
503
|
},
|
|
496
|
-
},
|
|
504
|
+
},
|
|
505
|
+
impactedField: {
|
|
497
506
|
serializedName: "properties.impactedField",
|
|
498
507
|
type: {
|
|
499
508
|
name: "String",
|
|
500
509
|
},
|
|
501
|
-
},
|
|
510
|
+
},
|
|
511
|
+
impactedValue: {
|
|
502
512
|
serializedName: "properties.impactedValue",
|
|
503
513
|
type: {
|
|
504
514
|
name: "String",
|
|
505
515
|
},
|
|
506
|
-
},
|
|
516
|
+
},
|
|
517
|
+
lastUpdated: {
|
|
507
518
|
serializedName: "properties.lastUpdated",
|
|
508
519
|
type: {
|
|
509
520
|
name: "DateTime",
|
|
510
521
|
},
|
|
511
|
-
},
|
|
522
|
+
},
|
|
523
|
+
metadata: {
|
|
512
524
|
serializedName: "properties.metadata",
|
|
513
525
|
type: {
|
|
514
526
|
name: "Dictionary",
|
|
@@ -516,23 +528,27 @@ exports.ResourceRecommendationBase = {
|
|
|
516
528
|
type: { name: "Dictionary", value: { type: { name: "any" } } },
|
|
517
529
|
},
|
|
518
530
|
},
|
|
519
|
-
},
|
|
531
|
+
},
|
|
532
|
+
recommendationTypeId: {
|
|
520
533
|
serializedName: "properties.recommendationTypeId",
|
|
521
534
|
type: {
|
|
522
535
|
name: "String",
|
|
523
536
|
},
|
|
524
|
-
},
|
|
537
|
+
},
|
|
538
|
+
risk: {
|
|
525
539
|
serializedName: "properties.risk",
|
|
526
540
|
type: {
|
|
527
541
|
name: "String",
|
|
528
542
|
},
|
|
529
|
-
},
|
|
543
|
+
},
|
|
544
|
+
shortDescription: {
|
|
530
545
|
serializedName: "properties.shortDescription",
|
|
531
546
|
type: {
|
|
532
547
|
name: "Composite",
|
|
533
548
|
className: "ShortDescription",
|
|
534
549
|
},
|
|
535
|
-
},
|
|
550
|
+
},
|
|
551
|
+
suppressionIds: {
|
|
536
552
|
serializedName: "properties.suppressionIds",
|
|
537
553
|
type: {
|
|
538
554
|
name: "Sequence",
|
|
@@ -542,39 +558,46 @@ exports.ResourceRecommendationBase = {
|
|
|
542
558
|
},
|
|
543
559
|
},
|
|
544
560
|
},
|
|
545
|
-
},
|
|
561
|
+
},
|
|
562
|
+
extendedProperties: {
|
|
546
563
|
serializedName: "properties.extendedProperties",
|
|
547
564
|
type: {
|
|
548
565
|
name: "Dictionary",
|
|
549
566
|
value: { type: { name: "String" } },
|
|
550
567
|
},
|
|
551
|
-
},
|
|
568
|
+
},
|
|
569
|
+
resourceMetadata: {
|
|
552
570
|
serializedName: "properties.resourceMetadata",
|
|
553
571
|
type: {
|
|
554
572
|
name: "Composite",
|
|
555
573
|
className: "ResourceMetadata",
|
|
556
574
|
},
|
|
557
|
-
},
|
|
575
|
+
},
|
|
576
|
+
description: {
|
|
558
577
|
serializedName: "properties.description",
|
|
559
578
|
type: {
|
|
560
579
|
name: "String",
|
|
561
580
|
},
|
|
562
|
-
},
|
|
581
|
+
},
|
|
582
|
+
label: {
|
|
563
583
|
serializedName: "properties.label",
|
|
564
584
|
type: {
|
|
565
585
|
name: "String",
|
|
566
586
|
},
|
|
567
|
-
},
|
|
587
|
+
},
|
|
588
|
+
learnMoreLink: {
|
|
568
589
|
serializedName: "properties.learnMoreLink",
|
|
569
590
|
type: {
|
|
570
591
|
name: "String",
|
|
571
592
|
},
|
|
572
|
-
},
|
|
593
|
+
},
|
|
594
|
+
potentialBenefits: {
|
|
573
595
|
serializedName: "properties.potentialBenefits",
|
|
574
596
|
type: {
|
|
575
597
|
name: "String",
|
|
576
598
|
},
|
|
577
|
-
},
|
|
599
|
+
},
|
|
600
|
+
actions: {
|
|
578
601
|
serializedName: "properties.actions",
|
|
579
602
|
type: {
|
|
580
603
|
name: "Sequence",
|
|
@@ -587,7 +610,8 @@ exports.ResourceRecommendationBase = {
|
|
|
587
610
|
},
|
|
588
611
|
},
|
|
589
612
|
},
|
|
590
|
-
},
|
|
613
|
+
},
|
|
614
|
+
remediation: {
|
|
591
615
|
serializedName: "properties.remediation",
|
|
592
616
|
type: {
|
|
593
617
|
name: "Dictionary",
|
|
@@ -595,7 +619,8 @@ exports.ResourceRecommendationBase = {
|
|
|
595
619
|
type: { name: "Dictionary", value: { type: { name: "any" } } },
|
|
596
620
|
},
|
|
597
621
|
},
|
|
598
|
-
},
|
|
622
|
+
},
|
|
623
|
+
exposedMetadataProperties: {
|
|
599
624
|
serializedName: "properties.exposedMetadataProperties",
|
|
600
625
|
type: {
|
|
601
626
|
name: "Dictionary",
|
|
@@ -603,30 +628,36 @@ exports.ResourceRecommendationBase = {
|
|
|
603
628
|
type: { name: "Dictionary", value: { type: { name: "any" } } },
|
|
604
629
|
},
|
|
605
630
|
},
|
|
606
|
-
}
|
|
631
|
+
},
|
|
632
|
+
},
|
|
607
633
|
},
|
|
608
634
|
};
|
|
609
635
|
exports.SuppressionContract = {
|
|
610
636
|
type: {
|
|
611
637
|
name: "Composite",
|
|
612
638
|
className: "SuppressionContract",
|
|
613
|
-
modelProperties:
|
|
639
|
+
modelProperties: {
|
|
640
|
+
...exports.Resource.type.modelProperties,
|
|
641
|
+
suppressionId: {
|
|
614
642
|
serializedName: "properties.suppressionId",
|
|
615
643
|
type: {
|
|
616
644
|
name: "String",
|
|
617
645
|
},
|
|
618
|
-
},
|
|
646
|
+
},
|
|
647
|
+
ttl: {
|
|
619
648
|
serializedName: "properties.ttl",
|
|
620
649
|
type: {
|
|
621
650
|
name: "String",
|
|
622
651
|
},
|
|
623
|
-
},
|
|
652
|
+
},
|
|
653
|
+
expirationTimeStamp: {
|
|
624
654
|
serializedName: "properties.expirationTimeStamp",
|
|
625
655
|
readOnly: true,
|
|
626
656
|
type: {
|
|
627
657
|
name: "DateTime",
|
|
628
658
|
},
|
|
629
|
-
}
|
|
659
|
+
},
|
|
660
|
+
},
|
|
630
661
|
},
|
|
631
662
|
};
|
|
632
663
|
exports.RecommendationsGenerateHeaders = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,cAAc,GAA+B;IACxD,IA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QAChC,eAAe,kCACV,gBAAQ,CAAC,IAAI,CAAC,eAAe,KAChC,aAAa,EAAE;gBACb,cAAc,EAAE,0BAA0B;gBAC1C,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,GAAG,EAAE;gBACH,cAAc,EAAE,gBAAgB;gBAChC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,mBAAmB,EAAE;gBACnB,cAAc,EAAE,gCAAgC;gBAChD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,GACF;KACF;CACF,CAAC;AAEW,QAAA,8BAA8B,GAA+B;IACxE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gCAAgC;QAC3C,eAAe,EAAE;YACf,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const MetadataEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\",\n },\n },\n dependsOn: {\n serializedName: \"properties.dependsOn\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n applicableScenarios: {\n serializedName: \"properties.applicableScenarios\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n supportedValues: {\n serializedName: \"properties.supportedValues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const MetadataSupportedValueDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ARMErrorResponseBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ArmErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ArmErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n },\n },\n },\n },\n};\n\nexport const MetadataEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigurationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const DigestConfig: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n actionGroupResourceId: {\n serializedName: \"actionGroupResourceId\",\n type: {\n name: \"String\",\n },\n },\n frequency: {\n serializedName: \"frequency\",\n type: {\n name: \"Number\",\n },\n },\n categories: {\n serializedName: \"categories\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n language: {\n serializedName: \"language\",\n type: {\n name: \"String\",\n },\n },\n state: {\n serializedName: \"state\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBaseListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBaseListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ShortDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n modelProperties: {\n problem: {\n serializedName: \"problem\",\n type: {\n name: \"String\",\n },\n },\n solution: {\n serializedName: \"solution\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceMetadata: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n modelProperties: {\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\",\n },\n },\n source: {\n serializedName: \"source\",\n type: {\n name: \"String\",\n },\n },\n action: {\n serializedName: \"action\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n singular: {\n serializedName: \"singular\",\n type: {\n name: \"String\",\n },\n },\n plural: {\n serializedName: \"plural\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n },\n },\n },\n },\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SuppressionContractListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContractListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ConfigData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n modelProperties: {\n ...Resource.type.modelProperties,\n exclude: {\n serializedName: \"properties.exclude\",\n type: {\n name: \"Boolean\",\n },\n },\n lowCpuThreshold: {\n serializedName: \"properties.lowCpuThreshold\",\n type: {\n name: \"String\",\n },\n },\n digests: {\n serializedName: \"properties.digests\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n modelProperties: {\n ...Resource.type.modelProperties,\n category: {\n serializedName: \"properties.category\",\n type: {\n name: \"String\",\n },\n },\n impact: {\n serializedName: \"properties.impact\",\n type: {\n name: \"String\",\n },\n },\n impactedField: {\n serializedName: \"properties.impactedField\",\n type: {\n name: \"String\",\n },\n },\n impactedValue: {\n serializedName: \"properties.impactedValue\",\n type: {\n name: \"String\",\n },\n },\n lastUpdated: {\n serializedName: \"properties.lastUpdated\",\n type: {\n name: \"DateTime\",\n },\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n recommendationTypeId: {\n serializedName: \"properties.recommendationTypeId\",\n type: {\n name: \"String\",\n },\n },\n risk: {\n serializedName: \"properties.risk\",\n type: {\n name: \"String\",\n },\n },\n shortDescription: {\n serializedName: \"properties.shortDescription\",\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n },\n },\n suppressionIds: {\n serializedName: \"properties.suppressionIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Uuid\",\n },\n },\n },\n },\n extendedProperties: {\n serializedName: \"properties.extendedProperties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n resourceMetadata: {\n serializedName: \"properties.resourceMetadata\",\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n },\n },\n description: {\n serializedName: \"properties.description\",\n type: {\n name: \"String\",\n },\n },\n label: {\n serializedName: \"properties.label\",\n type: {\n name: \"String\",\n },\n },\n learnMoreLink: {\n serializedName: \"properties.learnMoreLink\",\n type: {\n name: \"String\",\n },\n },\n potentialBenefits: {\n serializedName: \"properties.potentialBenefits\",\n type: {\n name: \"String\",\n },\n },\n actions: {\n serializedName: \"properties.actions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n remediation: {\n serializedName: \"properties.remediation\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n exposedMetadataProperties: {\n serializedName: \"properties.exposedMetadataProperties\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n};\n\nexport const SuppressionContract: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n modelProperties: {\n ...Resource.type.modelProperties,\n suppressionId: {\n serializedName: \"properties.suppressionId\",\n type: {\n name: \"String\",\n },\n },\n ttl: {\n serializedName: \"properties.ttl\",\n type: {\n name: \"String\",\n },\n },\n expirationTimeStamp: {\n serializedName: \"properties.expirationTimeStamp\",\n readOnly: true,\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const RecommendationsGenerateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RecommendationsGenerateHeaders\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,cAAc,GAA+B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gBAAgB;QAC3B,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,wBAAwB;gBACxC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,mBAAmB,EAAE;gBACnB,cAAc,EAAE,gCAAgC;gBAChD,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,eAAe,EAAE;gBACf,cAAc,EAAE,4BAA4B;gBAC5C,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,8BAA8B;yBAC1C;qBACF;iBACF;aACF;SACF;KACF;CACF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KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;qBAC/D;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,GAAG,gBAAQ,CAAC,IAAI,CAAC,eAAe;YAChC,aAAa,EAAE;gBACb,cAAc,EAAE,0BAA0B;gBAC1C,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,GAAG,EAAE;gBACH,cAAc,EAAE,gBAAgB;gBAChC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,mBAAmB,EAAE;gBACnB,cAAc,EAAE,gCAAgC;gBAChD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,8BAA8B,GAA+B;IACxE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gCAAgC;QAC3C,eAAe,EAAE;YACf,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const MetadataEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\",\n },\n },\n dependsOn: {\n serializedName: \"properties.dependsOn\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n applicableScenarios: {\n serializedName: \"properties.applicableScenarios\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n supportedValues: {\n serializedName: \"properties.supportedValues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const MetadataSupportedValueDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ARMErrorResponseBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ArmErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ArmErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n },\n },\n },\n },\n};\n\nexport const MetadataEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigurationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const DigestConfig: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n actionGroupResourceId: {\n serializedName: \"actionGroupResourceId\",\n type: {\n name: \"String\",\n },\n },\n frequency: {\n serializedName: \"frequency\",\n type: {\n name: \"Number\",\n },\n },\n categories: {\n serializedName: \"categories\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n language: {\n serializedName: \"language\",\n type: {\n name: \"String\",\n },\n },\n state: {\n serializedName: \"state\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBaseListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBaseListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ShortDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n modelProperties: {\n problem: {\n serializedName: \"problem\",\n type: {\n name: \"String\",\n },\n },\n solution: {\n serializedName: \"solution\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceMetadata: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n modelProperties: {\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\",\n },\n },\n source: {\n serializedName: \"source\",\n type: {\n name: \"String\",\n },\n },\n action: {\n serializedName: \"action\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n singular: {\n serializedName: \"singular\",\n type: {\n name: \"String\",\n },\n },\n plural: {\n serializedName: \"plural\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n },\n },\n },\n },\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SuppressionContractListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContractListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ConfigData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n modelProperties: {\n ...Resource.type.modelProperties,\n exclude: {\n serializedName: \"properties.exclude\",\n type: {\n name: \"Boolean\",\n },\n },\n lowCpuThreshold: {\n serializedName: \"properties.lowCpuThreshold\",\n type: {\n name: \"String\",\n },\n },\n digests: {\n serializedName: \"properties.digests\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n modelProperties: {\n ...Resource.type.modelProperties,\n category: {\n serializedName: \"properties.category\",\n type: {\n name: \"String\",\n },\n },\n impact: {\n serializedName: \"properties.impact\",\n type: {\n name: \"String\",\n },\n },\n impactedField: {\n serializedName: \"properties.impactedField\",\n type: {\n name: \"String\",\n },\n },\n impactedValue: {\n serializedName: \"properties.impactedValue\",\n type: {\n name: \"String\",\n },\n },\n lastUpdated: {\n serializedName: \"properties.lastUpdated\",\n type: {\n name: \"DateTime\",\n },\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n recommendationTypeId: {\n serializedName: \"properties.recommendationTypeId\",\n type: {\n name: \"String\",\n },\n },\n risk: {\n serializedName: \"properties.risk\",\n type: {\n name: \"String\",\n },\n },\n shortDescription: {\n serializedName: \"properties.shortDescription\",\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n },\n },\n suppressionIds: {\n serializedName: \"properties.suppressionIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Uuid\",\n },\n },\n },\n },\n extendedProperties: {\n serializedName: \"properties.extendedProperties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n resourceMetadata: {\n serializedName: \"properties.resourceMetadata\",\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n },\n },\n description: {\n serializedName: \"properties.description\",\n type: {\n name: \"String\",\n },\n },\n label: {\n serializedName: \"properties.label\",\n type: {\n name: \"String\",\n },\n },\n learnMoreLink: {\n serializedName: \"properties.learnMoreLink\",\n type: {\n name: \"String\",\n },\n },\n potentialBenefits: {\n serializedName: \"properties.potentialBenefits\",\n type: {\n name: \"String\",\n },\n },\n actions: {\n serializedName: \"properties.actions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n remediation: {\n serializedName: \"properties.remediation\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n exposedMetadataProperties: {\n serializedName: \"properties.exposedMetadataProperties\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n};\n\nexport const SuppressionContract: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n modelProperties: {\n ...Resource.type.modelProperties,\n suppressionId: {\n serializedName: \"properties.suppressionId\",\n type: {\n name: \"String\",\n },\n },\n ttl: {\n serializedName: \"properties.ttl\",\n type: {\n name: \"String\",\n },\n },\n expirationTimeStamp: {\n serializedName: \"properties.expirationTimeStamp\",\n readOnly: true,\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const RecommendationsGenerateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RecommendationsGenerateHeaders\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Configurations operations. */
|
|
18
18
|
class ConfigurationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Configurations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class ConfigurationsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listBySubscription(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listBySubscriptionPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listBySubscriptionPagingAll(options) {
|
|
67
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Retrieve Azure Advisor configurations.
|
|
@@ -99,39 +83,22 @@ class ConfigurationsImpl {
|
|
|
99
83
|
return this;
|
|
100
84
|
},
|
|
101
85
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
103
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
88
|
}
|
|
105
89
|
return this.listByResourceGroupPagingPage(resourceGroup, options, settings);
|
|
106
90
|
},
|
|
107
91
|
};
|
|
108
92
|
}
|
|
109
|
-
listByResourceGroupPagingPage(resourceGroup, options, _settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
yield yield tslib_1.__await(result.value || []);
|
|
114
|
-
});
|
|
93
|
+
async *listByResourceGroupPagingPage(resourceGroup, options, _settings) {
|
|
94
|
+
let result;
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroup, options);
|
|
96
|
+
yield result.value || [];
|
|
115
97
|
}
|
|
116
|
-
listByResourceGroupPagingAll(resourceGroup, options) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroup, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
121
|
-
_c = _f.value;
|
|
122
|
-
_d = false;
|
|
123
|
-
const page = _c;
|
|
124
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
128
|
-
finally {
|
|
129
|
-
try {
|
|
130
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
131
|
-
}
|
|
132
|
-
finally { if (e_2) throw e_2.error; }
|
|
133
|
-
}
|
|
134
|
-
});
|
|
98
|
+
async *listByResourceGroupPagingAll(resourceGroup, options) {
|
|
99
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroup, options)) {
|
|
100
|
+
yield* page;
|
|
101
|
+
}
|
|
135
102
|
}
|
|
136
103
|
/**
|
|
137
104
|
* Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
|