@azure/arm-advisor 2.1.1 → 3.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 +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -81
- package/dist/index.js +1913 -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/advisorManagementClient.d.ts +22 -0
- package/dist-esm/src/advisorManagementClient.d.ts.map +1 -0
- package/dist-esm/src/advisorManagementClient.js +55 -0
- package/dist-esm/src/advisorManagementClient.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/models/index.d.ts +457 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +55 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +315 -268
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +19 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +81 -61
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +62 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +260 -0
- package/dist-esm/src/operations/configurations.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 +3 -5
- package/dist-esm/src/operations/index.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/recommendationMetadata.d.ts +38 -0
- package/dist-esm/src/operations/recommendationMetadata.d.ts.map +1 -0
- package/dist-esm/src/operations/recommendationMetadata.js +148 -0
- package/dist-esm/src/operations/recommendationMetadata.js.map +1 -0
- package/dist-esm/src/operations/recommendations.d.ts +57 -0
- package/dist-esm/src/operations/recommendations.d.ts.map +1 -0
- package/dist-esm/src/operations/recommendations.js +220 -0
- package/dist-esm/src/operations/recommendations.js.map +1 -0
- package/dist-esm/src/operations/suppressions.d.ts +65 -0
- package/dist-esm/src/operations/suppressions.d.ts.map +1 -0
- package/dist-esm/src/operations/suppressions.js +242 -0
- package/dist-esm/src/operations/suppressions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +33 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/configurations.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/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recommendationMetadata.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/recommendationMetadata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recommendationMetadata.js +9 -0
- package/dist-esm/src/operationsInterfaces/recommendationMetadata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recommendations.d.ts +35 -0
- package/dist-esm/src/operationsInterfaces/recommendations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recommendations.js +9 -0
- package/dist-esm/src/operationsInterfaces/recommendations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/suppressions.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/suppressions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/suppressions.js +9 -0
- package/dist-esm/src/operationsInterfaces/suppressions.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +43 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +63 -32
- package/review/arm-advisor.api.md +466 -0
- package/rollup.config.js +181 -30
- package/src/advisorManagementClient.ts +82 -43
- package/src/index.ts +12 -0
- package/src/models/index.ts +408 -691
- package/src/models/mappers.ts +324 -269
- package/src/models/parameters.ts +105 -62
- package/src/operations/configurations.ts +210 -202
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +89 -75
- package/src/operations/recommendationMetadata.ts +111 -114
- package/src/operations/recommendations.ts +172 -203
- package/src/operations/suppressions.ts +201 -239
- package/src/operationsInterfaces/configurations.ts +65 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/recommendationMetadata.ts +36 -0
- package/src/operationsInterfaces/recommendations.ts +63 -0
- package/src/operationsInterfaces/suppressions.ts +78 -0
- package/tsconfig.json +3 -3
- package/types/arm-advisor.d.ts +679 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-advisor.js +0 -1737
- package/dist/arm-advisor.js.map +0 -1
- package/dist/arm-advisor.min.js +0 -1
- package/dist/arm-advisor.min.js.map +0 -1
- package/esm/advisorManagementClient.d.ts +0 -28
- package/esm/advisorManagementClient.d.ts.map +0 -1
- package/esm/advisorManagementClient.js +0 -42
- package/esm/advisorManagementClient.js.map +0 -1
- package/esm/advisorManagementClientContext.d.ts +0 -22
- package/esm/advisorManagementClientContext.d.ts.map +0 -1
- package/esm/advisorManagementClientContext.js +0 -61
- package/esm/advisorManagementClientContext.js.map +0 -1
- package/esm/models/configurationsMappers.d.ts +0 -2
- package/esm/models/configurationsMappers.d.ts.map +0 -1
- package/esm/models/configurationsMappers.js +0 -9
- package/esm/models/configurationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -746
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -23
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.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 +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/recommendationMetadataMappers.d.ts +0 -2
- package/esm/models/recommendationMetadataMappers.d.ts.map +0 -1
- package/esm/models/recommendationMetadataMappers.js +0 -9
- package/esm/models/recommendationMetadataMappers.js.map +0 -1
- package/esm/models/recommendationsMappers.d.ts +0 -2
- package/esm/models/recommendationsMappers.d.ts.map +0 -1
- package/esm/models/recommendationsMappers.js +0 -9
- package/esm/models/recommendationsMappers.js.map +0 -1
- package/esm/models/suppressionsMappers.d.ts +0 -2
- package/esm/models/suppressionsMappers.d.ts.map +0 -1
- package/esm/models/suppressionsMappers.js +0 -9
- package/esm/models/suppressionsMappers.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -109
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -178
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.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 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/recommendationMetadata.d.ts +0 -64
- package/esm/operations/recommendationMetadata.d.ts.map +0 -1
- package/esm/operations/recommendationMetadata.js +0 -108
- package/esm/operations/recommendationMetadata.js.map +0 -1
- package/esm/operations/recommendations.d.ts +0 -112
- package/esm/operations/recommendations.d.ts.map +0 -1
- package/esm/operations/recommendations.js +0 -168
- package/esm/operations/recommendations.js.map +0 -1
- package/esm/operations/suppressions.d.ts +0 -135
- package/esm/operations/suppressions.d.ts.map +0 -1
- package/esm/operations/suppressions.js +0 -182
- package/esm/operations/suppressions.js.map +0 -1
- package/src/advisorManagementClientContext.ts +0 -68
- package/src/models/configurationsMappers.ts +0 -21
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/recommendationMetadataMappers.ts +0 -15
- package/src/models/recommendationsMappers.ts +0 -21
- package/src/models/suppressionsMappers.ts +0 -20
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Suppressions } from "../operationsInterfaces";
|
|
3
|
+
import { AdvisorManagementClient } from "../advisorManagementClient";
|
|
4
|
+
import { SuppressionContract, SuppressionsListOptionalParams, SuppressionsGetOptionalParams, SuppressionsGetResponse, SuppressionsCreateOptionalParams, SuppressionsCreateResponse, SuppressionsDeleteOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Suppressions operations. */
|
|
6
|
+
export declare class SuppressionsImpl implements Suppressions {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Suppressions class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AdvisorManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed
|
|
15
|
+
* attribute of a recommendation is referred to as a suppression.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: SuppressionsListOptionalParams): PagedAsyncIterableIterator<SuppressionContract>;
|
|
19
|
+
private listPagingPage;
|
|
20
|
+
private listPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Obtains the details of a suppression.
|
|
23
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
24
|
+
* the recommendation applies.
|
|
25
|
+
* @param recommendationId The recommendation ID.
|
|
26
|
+
* @param name The name of the suppression.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
get(resourceUri: string, recommendationId: string, name: string, options?: SuppressionsGetOptionalParams): Promise<SuppressionsGetResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute
|
|
32
|
+
* is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of
|
|
33
|
+
* a recommendation.
|
|
34
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
35
|
+
* the recommendation applies.
|
|
36
|
+
* @param recommendationId The recommendation ID.
|
|
37
|
+
* @param name The name of the suppression.
|
|
38
|
+
* @param suppressionContract The snoozed or dismissed attribute; for example, the snooze duration.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
create(resourceUri: string, recommendationId: string, name: string, suppressionContract: SuppressionContract, options?: SuppressionsCreateOptionalParams): Promise<SuppressionsCreateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute
|
|
44
|
+
* of a recommendation is referred to as a suppression.
|
|
45
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
46
|
+
* the recommendation applies.
|
|
47
|
+
* @param recommendationId The recommendation ID.
|
|
48
|
+
* @param name The name of the suppression.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
delete(resourceUri: string, recommendationId: string, name: string, options?: SuppressionsDeleteOptionalParams): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed
|
|
54
|
+
* attribute of a recommendation is referred to as a suppression.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
private _list;
|
|
58
|
+
/**
|
|
59
|
+
* ListNext
|
|
60
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
private _listNext;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=suppressions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suppressions.d.ts","sourceRoot":"","sources":["../../../src/operations/suppressions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEnB,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAGjC,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,8BAA8B,GACvC,0BAA0B,CAAC,mBAAmB,CAAC;YAenC,cAAc;YAad,aAAa;IAQ5B;;;;;;;OAOG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;;;;OAQG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Suppressions operations. */
|
|
14
|
+
export class SuppressionsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Suppressions class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed
|
|
24
|
+
* attribute of a recommendation is referred to as a suppression.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: () => {
|
|
37
|
+
return this.listPagingPage(options);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
listPagingPage(options) {
|
|
42
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
43
|
+
let result = yield __await(this._list(options));
|
|
44
|
+
yield yield __await(result.value || []);
|
|
45
|
+
let continuationToken = result.nextLink;
|
|
46
|
+
while (continuationToken) {
|
|
47
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
48
|
+
continuationToken = result.nextLink;
|
|
49
|
+
yield yield __await(result.value || []);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
listPagingAll(options) {
|
|
54
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
55
|
+
var e_1, _a;
|
|
56
|
+
try {
|
|
57
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
58
|
+
const page = _c.value;
|
|
59
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_1) throw e_1.error; }
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Obtains the details of a suppression.
|
|
73
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
74
|
+
* the recommendation applies.
|
|
75
|
+
* @param recommendationId The recommendation ID.
|
|
76
|
+
* @param name The name of the suppression.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
get(resourceUri, recommendationId, name, options) {
|
|
80
|
+
return this.client.sendOperationRequest({ resourceUri, recommendationId, name, options }, getOperationSpec);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute
|
|
84
|
+
* is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of
|
|
85
|
+
* a recommendation.
|
|
86
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
87
|
+
* the recommendation applies.
|
|
88
|
+
* @param recommendationId The recommendation ID.
|
|
89
|
+
* @param name The name of the suppression.
|
|
90
|
+
* @param suppressionContract The snoozed or dismissed attribute; for example, the snooze duration.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
create(resourceUri, recommendationId, name, suppressionContract, options) {
|
|
94
|
+
return this.client.sendOperationRequest({ resourceUri, recommendationId, name, suppressionContract, options }, createOperationSpec);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute
|
|
98
|
+
* of a recommendation is referred to as a suppression.
|
|
99
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
100
|
+
* the recommendation applies.
|
|
101
|
+
* @param recommendationId The recommendation ID.
|
|
102
|
+
* @param name The name of the suppression.
|
|
103
|
+
* @param options The options parameters.
|
|
104
|
+
*/
|
|
105
|
+
delete(resourceUri, recommendationId, name, options) {
|
|
106
|
+
return this.client.sendOperationRequest({ resourceUri, recommendationId, name, options }, deleteOperationSpec);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed
|
|
110
|
+
* attribute of a recommendation is referred to as a suppression.
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
_list(options) {
|
|
114
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* ListNext
|
|
118
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
119
|
+
* @param options The options parameters.
|
|
120
|
+
*/
|
|
121
|
+
_listNext(nextLink, options) {
|
|
122
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// Operation Specifications
|
|
126
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
127
|
+
const getOperationSpec = {
|
|
128
|
+
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}",
|
|
129
|
+
httpMethod: "GET",
|
|
130
|
+
responses: {
|
|
131
|
+
200: {
|
|
132
|
+
bodyMapper: Mappers.SuppressionContract
|
|
133
|
+
},
|
|
134
|
+
404: {
|
|
135
|
+
bodyMapper: Mappers.ArmErrorResponse,
|
|
136
|
+
isError: true
|
|
137
|
+
},
|
|
138
|
+
default: {
|
|
139
|
+
bodyMapper: Mappers.ArmErrorResponse
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
queryParameters: [Parameters.apiVersion],
|
|
143
|
+
urlParameters: [
|
|
144
|
+
Parameters.$host,
|
|
145
|
+
Parameters.name,
|
|
146
|
+
Parameters.resourceUri,
|
|
147
|
+
Parameters.recommendationId
|
|
148
|
+
],
|
|
149
|
+
headerParameters: [Parameters.accept],
|
|
150
|
+
serializer
|
|
151
|
+
};
|
|
152
|
+
const createOperationSpec = {
|
|
153
|
+
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}",
|
|
154
|
+
httpMethod: "PUT",
|
|
155
|
+
responses: {
|
|
156
|
+
200: {
|
|
157
|
+
bodyMapper: Mappers.SuppressionContract
|
|
158
|
+
},
|
|
159
|
+
404: {
|
|
160
|
+
bodyMapper: Mappers.ArmErrorResponse,
|
|
161
|
+
isError: true
|
|
162
|
+
},
|
|
163
|
+
default: {
|
|
164
|
+
bodyMapper: Mappers.ArmErrorResponse
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
requestBody: Parameters.suppressionContract,
|
|
168
|
+
queryParameters: [Parameters.apiVersion],
|
|
169
|
+
urlParameters: [
|
|
170
|
+
Parameters.$host,
|
|
171
|
+
Parameters.name,
|
|
172
|
+
Parameters.resourceUri,
|
|
173
|
+
Parameters.recommendationId
|
|
174
|
+
],
|
|
175
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
176
|
+
mediaType: "json",
|
|
177
|
+
serializer
|
|
178
|
+
};
|
|
179
|
+
const deleteOperationSpec = {
|
|
180
|
+
path: "/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}",
|
|
181
|
+
httpMethod: "DELETE",
|
|
182
|
+
responses: {
|
|
183
|
+
204: {},
|
|
184
|
+
default: {
|
|
185
|
+
bodyMapper: Mappers.ArmErrorResponse
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
queryParameters: [Parameters.apiVersion],
|
|
189
|
+
urlParameters: [
|
|
190
|
+
Parameters.$host,
|
|
191
|
+
Parameters.name,
|
|
192
|
+
Parameters.resourceUri,
|
|
193
|
+
Parameters.recommendationId
|
|
194
|
+
],
|
|
195
|
+
headerParameters: [Parameters.accept],
|
|
196
|
+
serializer
|
|
197
|
+
};
|
|
198
|
+
const listOperationSpec = {
|
|
199
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions",
|
|
200
|
+
httpMethod: "GET",
|
|
201
|
+
responses: {
|
|
202
|
+
200: {
|
|
203
|
+
bodyMapper: Mappers.SuppressionContractListResult
|
|
204
|
+
},
|
|
205
|
+
default: {
|
|
206
|
+
bodyMapper: Mappers.ArmErrorResponse
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
queryParameters: [
|
|
210
|
+
Parameters.apiVersion,
|
|
211
|
+
Parameters.top,
|
|
212
|
+
Parameters.skipToken
|
|
213
|
+
],
|
|
214
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
215
|
+
headerParameters: [Parameters.accept],
|
|
216
|
+
serializer
|
|
217
|
+
};
|
|
218
|
+
const listNextOperationSpec = {
|
|
219
|
+
path: "{nextLink}",
|
|
220
|
+
httpMethod: "GET",
|
|
221
|
+
responses: {
|
|
222
|
+
200: {
|
|
223
|
+
bodyMapper: Mappers.SuppressionContractListResult
|
|
224
|
+
},
|
|
225
|
+
default: {
|
|
226
|
+
bodyMapper: Mappers.ArmErrorResponse
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
queryParameters: [
|
|
230
|
+
Parameters.apiVersion,
|
|
231
|
+
Parameters.top,
|
|
232
|
+
Parameters.skipToken
|
|
233
|
+
],
|
|
234
|
+
urlParameters: [
|
|
235
|
+
Parameters.$host,
|
|
236
|
+
Parameters.nextLink,
|
|
237
|
+
Parameters.subscriptionId
|
|
238
|
+
],
|
|
239
|
+
headerParameters: [Parameters.accept],
|
|
240
|
+
serializer
|
|
241
|
+
};
|
|
242
|
+
//# sourceMappingURL=suppressions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suppressions.js","sourceRoot":"","sources":["../../../src/operations/suppressions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAwC;QAExC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACz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rC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,0EAA0E;IAC5E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,GAAG;QACd,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,GAAG;QACd,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { ConfigData, ConfigurationsListBySubscriptionOptionalParams, ConfigurationsListByResourceGroupOptionalParams, ConfigurationName, ConfigurationsCreateInSubscriptionOptionalParams, ConfigurationsCreateInSubscriptionResponse, ConfigurationsCreateInResourceGroupOptionalParams, ConfigurationsCreateInResourceGroupResponse } from "../models";
|
|
3
|
+
/** Interface representing a Configurations. */
|
|
4
|
+
export interface Configurations {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
listBySubscription(options?: ConfigurationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ConfigData>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve Azure Advisor configurations.
|
|
12
|
+
* @param resourceGroup The name of the Azure resource group.
|
|
13
|
+
* @param options The options parameters.
|
|
14
|
+
*/
|
|
15
|
+
listByResourceGroup(resourceGroup: string, options?: ConfigurationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConfigData>;
|
|
16
|
+
/**
|
|
17
|
+
* Create/Overwrite Azure Advisor configuration and also delete all configurations of contained
|
|
18
|
+
* resource groups.
|
|
19
|
+
* @param configurationName Advisor configuration name. Value must be 'default'
|
|
20
|
+
* @param configContract The Azure Advisor configuration data structure.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
createInSubscription(configurationName: ConfigurationName, configContract: ConfigData, options?: ConfigurationsCreateInSubscriptionOptionalParams): Promise<ConfigurationsCreateInSubscriptionResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Create/Overwrite Azure Advisor configuration.
|
|
26
|
+
* @param configurationName Advisor configuration name. Value must be 'default'
|
|
27
|
+
* @param resourceGroup The name of the Azure resource group.
|
|
28
|
+
* @param configContract The Azure Advisor configuration data structure.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
createInResourceGroup(configurationName: ConfigurationName, resourceGroup: string, configContract: ConfigData, options?: ConfigurationsCreateInResourceGroupOptionalParams): Promise<ConfigurationsCreateInResourceGroupResponse>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=configurations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/configurations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,UAAU,EACV,8CAA8C,EAC9C,+CAA+C,EAC/C,iBAAiB,EACjB,gDAAgD,EAChD,0CAA0C,EAC1C,iDAAiD,EACjD,2CAA2C,EAC5C,MAAM,WAAW,CAAC;AAGnB,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;;OAIG;IACH,mBAAmB,CACjB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,UAAU,EAC1B,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACvD;;;;;;OAMG;IACH,qBAAqB,CACnB,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,UAAU,EAC1B,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=configurations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/configurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./recommendationMetadata";
|
|
9
|
+
export * from "./configurations";
|
|
10
|
+
export * from "./recommendations";
|
|
11
|
+
export * from "./operations";
|
|
12
|
+
export * from "./suppressions";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { OperationEntity, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* Lists all the available Advisor REST API operations.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationEntity>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAG1E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,eAAe,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { MetadataEntity, RecommendationMetadataListOptionalParams, RecommendationMetadataGetOptionalParams, RecommendationMetadataGetResponse } from "../models";
|
|
3
|
+
/** Interface representing a RecommendationMetadata. */
|
|
4
|
+
export interface RecommendationMetadata {
|
|
5
|
+
/**
|
|
6
|
+
* Gets the list of metadata entities.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: RecommendationMetadataListOptionalParams): PagedAsyncIterableIterator<MetadataEntity>;
|
|
10
|
+
/**
|
|
11
|
+
* Gets the metadata entity.
|
|
12
|
+
* @param name Name of metadata entity.
|
|
13
|
+
* @param options The options parameters.
|
|
14
|
+
*/
|
|
15
|
+
get(name: string, options?: RecommendationMetadataGetOptionalParams): Promise<RecommendationMetadataGetResponse>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=recommendationMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendationMetadata.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/recommendationMetadata.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,cAAc,EACd,wCAAwC,EACxC,uCAAuC,EACvC,iCAAiC,EAClC,MAAM,WAAW,CAAC;AAGnB,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;OAIG;IACH,GAAG,CACD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=recommendationMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendationMetadata.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/recommendationMetadata.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { ResourceRecommendationBase, RecommendationsListOptionalParams, RecommendationsGenerateOptionalParams, RecommendationsGenerateResponse, RecommendationsGetGenerateStatusOptionalParams, RecommendationsGetOptionalParams, RecommendationsGetResponse } from "../models";
|
|
3
|
+
/** Interface representing a Recommendations. */
|
|
4
|
+
export interface Recommendations {
|
|
5
|
+
/**
|
|
6
|
+
* Obtains cached recommendations for a subscription. The recommendations are generated or computed by
|
|
7
|
+
* invoking generateRecommendations.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: RecommendationsListOptionalParams): PagedAsyncIterableIterator<ResourceRecommendationBase>;
|
|
11
|
+
/**
|
|
12
|
+
* Initiates the recommendation generation or computation process for a subscription. This operation is
|
|
13
|
+
* asynchronous. The generated recommendations are stored in a cache in the Advisor service.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
generate(options?: RecommendationsGenerateOptionalParams): Promise<RecommendationsGenerateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the status of the recommendation computation or generation process. Invoke this API after
|
|
19
|
+
* calling the generation recommendation. The URI of this API is returned in the Location field of the
|
|
20
|
+
* response header.
|
|
21
|
+
* @param operationId The operation ID, which can be found from the Location field in the generate
|
|
22
|
+
* recommendation response header.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
getGenerateStatus(operationId: string, options?: RecommendationsGetGenerateStatusOptionalParams): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Obtains details of a cached recommendation.
|
|
28
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
29
|
+
* the recommendation applies.
|
|
30
|
+
* @param recommendationId The recommendation ID.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
get(resourceUri: string, recommendationId: string, options?: RecommendationsGetOptionalParams): Promise<RecommendationsGetResponse>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=recommendations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/recommendations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,iCAAiC,EACjC,qCAAqC,EACrC,+BAA+B,EAC/B,8CAA8C,EAC9C,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,0BAA0B,CAAC,CAAC;IAC1D;;;;OAIG;IACH,QAAQ,CACN,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,iBAAiB,CACf,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=recommendations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/recommendations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SuppressionContract, SuppressionsListOptionalParams, SuppressionsGetOptionalParams, SuppressionsGetResponse, SuppressionsCreateOptionalParams, SuppressionsCreateResponse, SuppressionsDeleteOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Suppressions. */
|
|
4
|
+
export interface Suppressions {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed
|
|
7
|
+
* attribute of a recommendation is referred to as a suppression.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: SuppressionsListOptionalParams): PagedAsyncIterableIterator<SuppressionContract>;
|
|
11
|
+
/**
|
|
12
|
+
* Obtains the details of a suppression.
|
|
13
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
14
|
+
* the recommendation applies.
|
|
15
|
+
* @param recommendationId The recommendation ID.
|
|
16
|
+
* @param name The name of the suppression.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
get(resourceUri: string, recommendationId: string, name: string, options?: SuppressionsGetOptionalParams): Promise<SuppressionsGetResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute
|
|
22
|
+
* is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of
|
|
23
|
+
* a recommendation.
|
|
24
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
25
|
+
* the recommendation applies.
|
|
26
|
+
* @param recommendationId The recommendation ID.
|
|
27
|
+
* @param name The name of the suppression.
|
|
28
|
+
* @param suppressionContract The snoozed or dismissed attribute; for example, the snooze duration.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
create(resourceUri: string, recommendationId: string, name: string, suppressionContract: SuppressionContract, options?: SuppressionsCreateOptionalParams): Promise<SuppressionsCreateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute
|
|
34
|
+
* of a recommendation is referred to as a suppression.
|
|
35
|
+
* @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which
|
|
36
|
+
* the recommendation applies.
|
|
37
|
+
* @param recommendationId The recommendation ID.
|
|
38
|
+
* @param name The name of the suppression.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
delete(resourceUri: string, recommendationId: string, name: string, options?: SuppressionsDeleteOptionalParams): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=suppressions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suppressions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/suppressions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,8BAA8B,GACvC,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;;;;OAQG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=suppressions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suppressions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/suppressions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import { record, isPlaybackMode } from "@azure-tools/test-recorder";
|
|
10
|
+
const recorderEnvSetup = {
|
|
11
|
+
replaceableVariables: {
|
|
12
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
13
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
14
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
15
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
16
|
+
},
|
|
17
|
+
customizationsOnRecordings: [
|
|
18
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
+
],
|
|
20
|
+
queryParametersToSkip: []
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("My test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
beforeEach(function () {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
recorder = record(this, recorderEnvSetup);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
afterEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
yield recorder.stop();
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
it("sample test", function () {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
console.log("Hi, I'm a test!");
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=sampleTest.js.map
|