@azure/arm-appservice 30.0.0-alpha.20211001.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/index.js +59024 -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/index.d.ts +6 -0
- package/dist-esm/index.d.ts.map +1 -0
- package/dist-esm/index.js +13 -0
- package/dist-esm/index.js.map +1 -0
- package/dist-esm/lroImpl.d.ts +16 -0
- package/dist-esm/lroImpl.d.ts.map +1 -0
- package/dist-esm/lroImpl.js +29 -0
- package/dist-esm/lroImpl.js.map +1 -0
- package/dist-esm/models/index.d.ts +12050 -0
- package/dist-esm/models/index.d.ts.map +1 -0
- package/dist-esm/models/index.js +227 -0
- package/dist-esm/models/index.js.map +1 -0
- package/dist-esm/models/mappers.d.ts +405 -0
- package/dist-esm/models/mappers.d.ts.map +1 -0
- package/dist-esm/models/mappers.js +19668 -0
- package/dist-esm/models/mappers.js.map +1 -0
- package/dist-esm/models/parameters.d.ts +183 -0
- package/dist-esm/models/parameters.d.ts.map +1 -0
- package/dist-esm/models/parameters.js +1382 -0
- package/dist-esm/models/parameters.js.map +1 -0
- package/dist-esm/operations/appServiceCertificateOrders.d.ts +233 -0
- package/dist-esm/operations/appServiceCertificateOrders.d.ts.map +1 -0
- package/dist-esm/operations/appServiceCertificateOrders.js +1024 -0
- package/dist-esm/operations/appServiceCertificateOrders.js.map +1 -0
- package/dist-esm/operations/appServiceEnvironments.d.ts +780 -0
- package/dist-esm/operations/appServiceEnvironments.d.ts.map +1 -0
- package/dist-esm/operations/appServiceEnvironments.js +3646 -0
- package/dist-esm/operations/appServiceEnvironments.js.map +1 -0
- package/dist-esm/operations/appServicePlans.d.ts +339 -0
- package/dist-esm/operations/appServicePlans.d.ts.map +1 -0
- package/dist-esm/operations/appServicePlans.js +1490 -0
- package/dist-esm/operations/appServicePlans.js.map +1 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.d.ts +48 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.d.ts.map +1 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.js +176 -0
- package/dist-esm/operations/certificateOrdersDiagnostics.js.map +1 -0
- package/dist-esm/operations/certificateRegistrationProvider.d.ts +35 -0
- package/dist-esm/operations/certificateRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operations/certificateRegistrationProvider.js +123 -0
- package/dist-esm/operations/certificateRegistrationProvider.js.map +1 -0
- package/dist-esm/operations/certificates.d.ts +84 -0
- package/dist-esm/operations/certificates.d.ts.map +1 -0
- package/dist-esm/operations/certificates.js +357 -0
- package/dist-esm/operations/certificates.js.map +1 -0
- package/dist-esm/operations/deletedWebApps.d.ts +61 -0
- package/dist-esm/operations/deletedWebApps.d.ts.map +1 -0
- package/dist-esm/operations/deletedWebApps.js +262 -0
- package/dist-esm/operations/deletedWebApps.js.map +1 -0
- package/dist-esm/operations/diagnostics.d.ts +378 -0
- package/dist-esm/operations/diagnostics.d.ts.map +1 -0
- package/dist-esm/operations/diagnostics.js +1624 -0
- package/dist-esm/operations/diagnostics.js.map +1 -0
- package/dist-esm/operations/domainRegistrationProvider.d.ts +35 -0
- package/dist-esm/operations/domainRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operations/domainRegistrationProvider.js +123 -0
- package/dist-esm/operations/domainRegistrationProvider.js.map +1 -0
- package/dist-esm/operations/domains.d.ts +193 -0
- package/dist-esm/operations/domains.d.ts.map +1 -0
- package/dist-esm/operations/domains.js +856 -0
- package/dist-esm/operations/domains.js.map +1 -0
- package/dist-esm/operations/global.d.ts +32 -0
- package/dist-esm/operations/global.d.ts.map +1 -0
- package/dist-esm/operations/global.js +112 -0
- package/dist-esm/operations/global.js.map +1 -0
- package/dist-esm/operations/index.d.ts +19 -0
- package/dist-esm/operations/index.d.ts.map +1 -0
- package/dist-esm/operations/index.js +26 -0
- package/dist-esm/operations/index.js.map +1 -0
- package/dist-esm/operations/kubeEnvironments.d.ts +100 -0
- package/dist-esm/operations/kubeEnvironments.d.ts.map +1 -0
- package/dist-esm/operations/kubeEnvironments.js +454 -0
- package/dist-esm/operations/kubeEnvironments.js.map +1 -0
- package/dist-esm/operations/provider.d.ts +152 -0
- package/dist-esm/operations/provider.d.ts.map +1 -0
- package/dist-esm/operations/provider.js +706 -0
- package/dist-esm/operations/provider.js.map +1 -0
- package/dist-esm/operations/recommendations.d.ts +206 -0
- package/dist-esm/operations/recommendations.d.ts.map +1 -0
- package/dist-esm/operations/recommendations.js +912 -0
- package/dist-esm/operations/recommendations.js.map +1 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.d.ts +126 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.d.ts.map +1 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.js +529 -0
- package/dist-esm/operations/resourceHealthMetadataOperations.js.map +1 -0
- package/dist-esm/operations/staticSites.d.ts +702 -0
- package/dist-esm/operations/staticSites.d.ts.map +1 -0
- package/dist-esm/operations/staticSites.js +3069 -0
- package/dist-esm/operations/staticSites.js.map +1 -0
- package/dist-esm/operations/topLevelDomains.d.ts +63 -0
- package/dist-esm/operations/topLevelDomains.d.ts.map +1 -0
- package/dist-esm/operations/topLevelDomains.js +258 -0
- package/dist-esm/operations/topLevelDomains.js.map +1 -0
- package/dist-esm/operations/webApps.d.ts +5070 -0
- package/dist-esm/operations/webApps.d.ts.map +1 -0
- package/dist-esm/operations/webApps.js +20820 -0
- package/dist-esm/operations/webApps.js.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.d.ts +180 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.js +9 -0
- package/dist-esm/operationsInterfaces/appServiceCertificateOrders.js.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.d.ts +380 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.js +9 -0
- package/dist-esm/operationsInterfaces/appServiceEnvironments.js.map +1 -0
- package/dist-esm/operationsInterfaces/appServicePlans.d.ts +230 -0
- package/dist-esm/operationsInterfaces/appServicePlans.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/appServicePlans.js +9 -0
- package/dist-esm/operationsInterfaces/appServicePlans.js.map +1 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.d.ts +22 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.js +9 -0
- package/dist-esm/operationsInterfaces/certificateOrdersDiagnostics.js.map +1 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.d.ts +13 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.js +9 -0
- package/dist-esm/operationsInterfaces/certificateRegistrationProvider.js.map +1 -0
- package/dist-esm/operationsInterfaces/certificates.d.ts +48 -0
- package/dist-esm/operationsInterfaces/certificates.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/certificates.js +9 -0
- package/dist-esm/operationsInterfaces/certificates.js.map +1 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.d.ts +25 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.js +9 -0
- package/dist-esm/operationsInterfaces/deletedWebApps.js.map +1 -0
- package/dist-esm/operationsInterfaces/diagnostics.d.ts +196 -0
- package/dist-esm/operationsInterfaces/diagnostics.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/diagnostics.js +9 -0
- package/dist-esm/operationsInterfaces/diagnostics.js.map +1 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.d.ts +13 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.js +9 -0
- package/dist-esm/operationsInterfaces/domainRegistrationProvider.js.map +1 -0
- package/dist-esm/operationsInterfaces/domains.d.ts +124 -0
- package/dist-esm/operationsInterfaces/domains.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/domains.js +9 -0
- package/dist-esm/operationsInterfaces/domains.js.map +1 -0
- package/dist-esm/operationsInterfaces/global.d.ts +24 -0
- package/dist-esm/operationsInterfaces/global.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/global.js +9 -0
- package/dist-esm/operationsInterfaces/global.js.map +1 -0
- package/dist-esm/operationsInterfaces/index.d.ts +19 -0
- package/dist-esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/index.js +26 -0
- package/dist-esm/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.d.ts +64 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.js +9 -0
- package/dist-esm/operationsInterfaces/kubeEnvironments.js.map +1 -0
- package/dist-esm/operationsInterfaces/provider.d.ts +45 -0
- package/dist-esm/operationsInterfaces/provider.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/provider.js +9 -0
- package/dist-esm/operationsInterfaces/provider.js.map +1 -0
- package/dist-esm/operationsInterfaces/recommendations.d.ts +114 -0
- package/dist-esm/operationsInterfaces/recommendations.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/recommendations.js +9 -0
- package/dist-esm/operationsInterfaces/recommendations.js.map +1 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.d.ts +51 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.js +9 -0
- package/dist-esm/operationsInterfaces/resourceHealthMetadataOperations.js.map +1 -0
- package/dist-esm/operationsInterfaces/staticSites.d.ts +516 -0
- package/dist-esm/operationsInterfaces/staticSites.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/staticSites.js +9 -0
- package/dist-esm/operationsInterfaces/staticSites.js.map +1 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.d.ts +25 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.js +9 -0
- package/dist-esm/operationsInterfaces/topLevelDomains.js.map +1 -0
- package/dist-esm/operationsInterfaces/webApps.d.ts +3798 -0
- package/dist-esm/operationsInterfaces/webApps.d.ts.map +1 -0
- package/dist-esm/operationsInterfaces/webApps.js +9 -0
- package/dist-esm/operationsInterfaces/webApps.js.map +1 -0
- package/dist-esm/webSiteManagementClient.d.ts +205 -0
- package/dist-esm/webSiteManagementClient.d.ts.map +1 -0
- package/dist-esm/webSiteManagementClient.js +892 -0
- package/dist-esm/webSiteManagementClient.js.map +1 -0
- package/dist-esm/webSiteManagementClientContext.d.ts +17 -0
- package/dist-esm/webSiteManagementClientContext.d.ts.map +1 -0
- package/dist-esm/webSiteManagementClientContext.js +50 -0
- package/dist-esm/webSiteManagementClientContext.js.map +1 -0
- package/package.json +99 -0
- package/review/arm-appservice.api.md +10633 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +14289 -0
- package/src/models/mappers.ts +21388 -0
- package/src/models/parameters.ts +1647 -0
- package/src/operations/appServiceCertificateOrders.ts +1373 -0
- package/src/operations/appServiceEnvironments.ts +5073 -0
- package/src/operations/appServicePlans.ts +1987 -0
- package/src/operations/certificateOrdersDiagnostics.ts +247 -0
- package/src/operations/certificateRegistrationProvider.ts +144 -0
- package/src/operations/certificates.ts +444 -0
- package/src/operations/deletedWebApps.ts +311 -0
- package/src/operations/diagnostics.ts +2273 -0
- package/src/operations/domainRegistrationProvider.ts +144 -0
- package/src/operations/domains.ts +1122 -0
- package/src/operations/global.ts +150 -0
- package/src/operations/index.ts +26 -0
- package/src/operations/kubeEnvironments.ts +594 -0
- package/src/operations/provider.ts +829 -0
- package/src/operations/recommendations.ts +1210 -0
- package/src/operations/resourceHealthMetadataOperations.ts +679 -0
- package/src/operations/staticSites.ts +4336 -0
- package/src/operations/topLevelDomains.ts +319 -0
- package/src/operations/webApps.ts +28925 -0
- package/src/operationsInterfaces/appServiceCertificateOrders.ts +340 -0
- package/src/operationsInterfaces/appServiceEnvironments.ts +725 -0
- package/src/operationsInterfaces/appServicePlans.ts +433 -0
- package/src/operationsInterfaces/certificateOrdersDiagnostics.ts +47 -0
- package/src/operationsInterfaces/certificateRegistrationProvider.ts +27 -0
- package/src/operationsInterfaces/certificates.ts +92 -0
- package/src/operationsInterfaces/deletedWebApps.ts +49 -0
- package/src/operationsInterfaces/diagnostics.ts +368 -0
- package/src/operationsInterfaces/domainRegistrationProvider.ts +27 -0
- package/src/operationsInterfaces/domains.ts +231 -0
- package/src/operationsInterfaces/global.ts +48 -0
- package/src/operationsInterfaces/index.ts +26 -0
- package/src/operationsInterfaces/kubeEnvironments.ts +122 -0
- package/src/operationsInterfaces/provider.ts +82 -0
- package/src/operationsInterfaces/recommendations.ts +204 -0
- package/src/operationsInterfaces/resourceHealthMetadataOperations.ts +93 -0
- package/src/operationsInterfaces/staticSites.ts +963 -0
- package/src/operationsInterfaces/topLevelDomains.ts +51 -0
- package/src/operationsInterfaces/webApps.ts +6889 -0
- package/src/webSiteManagementClient.ts +1177 -0
- package/src/webSiteManagementClientContext.ts +71 -0
- package/tsconfig.json +19 -0
- package/types/arm-appservice.d.ts +20041 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,1210 @@
|
|
|
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
|
+
|
|
9
|
+
import "@azure/core-paging";
|
|
10
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
|
+
import { Recommendations } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { WebSiteManagementClientContext } from "../webSiteManagementClientContext";
|
|
16
|
+
import {
|
|
17
|
+
Recommendation,
|
|
18
|
+
RecommendationsListNextOptionalParams,
|
|
19
|
+
RecommendationsListOptionalParams,
|
|
20
|
+
RecommendationsListHistoryForHostingEnvironmentNextOptionalParams,
|
|
21
|
+
RecommendationsListHistoryForHostingEnvironmentOptionalParams,
|
|
22
|
+
RecommendationsListRecommendedRulesForHostingEnvironmentNextOptionalParams,
|
|
23
|
+
RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams,
|
|
24
|
+
RecommendationsListHistoryForWebAppNextOptionalParams,
|
|
25
|
+
RecommendationsListHistoryForWebAppOptionalParams,
|
|
26
|
+
RecommendationsListRecommendedRulesForWebAppNextOptionalParams,
|
|
27
|
+
RecommendationsListRecommendedRulesForWebAppOptionalParams,
|
|
28
|
+
RecommendationsListResponse,
|
|
29
|
+
RecommendationsResetAllFiltersOptionalParams,
|
|
30
|
+
RecommendationsDisableRecommendationForSubscriptionOptionalParams,
|
|
31
|
+
RecommendationsListHistoryForHostingEnvironmentResponse,
|
|
32
|
+
RecommendationsListRecommendedRulesForHostingEnvironmentResponse,
|
|
33
|
+
RecommendationsDisableAllForHostingEnvironmentOptionalParams,
|
|
34
|
+
RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams,
|
|
35
|
+
RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams,
|
|
36
|
+
RecommendationsGetRuleDetailsByHostingEnvironmentResponse,
|
|
37
|
+
RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams,
|
|
38
|
+
RecommendationsListHistoryForWebAppResponse,
|
|
39
|
+
RecommendationsListRecommendedRulesForWebAppResponse,
|
|
40
|
+
RecommendationsDisableAllForWebAppOptionalParams,
|
|
41
|
+
RecommendationsResetAllFiltersForWebAppOptionalParams,
|
|
42
|
+
RecommendationsGetRuleDetailsByWebAppOptionalParams,
|
|
43
|
+
RecommendationsGetRuleDetailsByWebAppResponse,
|
|
44
|
+
RecommendationsDisableRecommendationForSiteOptionalParams,
|
|
45
|
+
RecommendationsListNextResponse,
|
|
46
|
+
RecommendationsListHistoryForHostingEnvironmentNextResponse,
|
|
47
|
+
RecommendationsListRecommendedRulesForHostingEnvironmentNextResponse,
|
|
48
|
+
RecommendationsListHistoryForWebAppNextResponse,
|
|
49
|
+
RecommendationsListRecommendedRulesForWebAppNextResponse
|
|
50
|
+
} from "../models";
|
|
51
|
+
|
|
52
|
+
/// <reference lib="esnext.asynciterable" />
|
|
53
|
+
/** Class representing a Recommendations. */
|
|
54
|
+
export class RecommendationsImpl implements Recommendations {
|
|
55
|
+
private readonly client: WebSiteManagementClientContext;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Initialize a new instance of the class Recommendations class.
|
|
59
|
+
* @param client Reference to the service client
|
|
60
|
+
*/
|
|
61
|
+
constructor(client: WebSiteManagementClientContext) {
|
|
62
|
+
this.client = client;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Description for List all recommendations for a subscription.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
public list(
|
|
70
|
+
options?: RecommendationsListOptionalParams
|
|
71
|
+
): PagedAsyncIterableIterator<Recommendation> {
|
|
72
|
+
const iter = this.listPagingAll(options);
|
|
73
|
+
return {
|
|
74
|
+
next() {
|
|
75
|
+
return iter.next();
|
|
76
|
+
},
|
|
77
|
+
[Symbol.asyncIterator]() {
|
|
78
|
+
return this;
|
|
79
|
+
},
|
|
80
|
+
byPage: () => {
|
|
81
|
+
return this.listPagingPage(options);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listPagingPage(
|
|
87
|
+
options?: RecommendationsListOptionalParams
|
|
88
|
+
): AsyncIterableIterator<Recommendation[]> {
|
|
89
|
+
let result = await this._list(options);
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
let continuationToken = result.nextLink;
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listNext(continuationToken, options);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
yield result.value || [];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private async *listPagingAll(
|
|
100
|
+
options?: RecommendationsListOptionalParams
|
|
101
|
+
): AsyncIterableIterator<Recommendation> {
|
|
102
|
+
for await (const page of this.listPagingPage(options)) {
|
|
103
|
+
yield* page;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Description for Get past recommendations for an app, optionally specified by the time range.
|
|
109
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
110
|
+
* @param hostingEnvironmentName Name of the hosting environment.
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
public listHistoryForHostingEnvironment(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
hostingEnvironmentName: string,
|
|
116
|
+
options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams
|
|
117
|
+
): PagedAsyncIterableIterator<Recommendation> {
|
|
118
|
+
const iter = this.listHistoryForHostingEnvironmentPagingAll(
|
|
119
|
+
resourceGroupName,
|
|
120
|
+
hostingEnvironmentName,
|
|
121
|
+
options
|
|
122
|
+
);
|
|
123
|
+
return {
|
|
124
|
+
next() {
|
|
125
|
+
return iter.next();
|
|
126
|
+
},
|
|
127
|
+
[Symbol.asyncIterator]() {
|
|
128
|
+
return this;
|
|
129
|
+
},
|
|
130
|
+
byPage: () => {
|
|
131
|
+
return this.listHistoryForHostingEnvironmentPagingPage(
|
|
132
|
+
resourceGroupName,
|
|
133
|
+
hostingEnvironmentName,
|
|
134
|
+
options
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
private async *listHistoryForHostingEnvironmentPagingPage(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
hostingEnvironmentName: string,
|
|
143
|
+
options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams
|
|
144
|
+
): AsyncIterableIterator<Recommendation[]> {
|
|
145
|
+
let result = await this._listHistoryForHostingEnvironment(
|
|
146
|
+
resourceGroupName,
|
|
147
|
+
hostingEnvironmentName,
|
|
148
|
+
options
|
|
149
|
+
);
|
|
150
|
+
yield result.value || [];
|
|
151
|
+
let continuationToken = result.nextLink;
|
|
152
|
+
while (continuationToken) {
|
|
153
|
+
result = await this._listHistoryForHostingEnvironmentNext(
|
|
154
|
+
resourceGroupName,
|
|
155
|
+
hostingEnvironmentName,
|
|
156
|
+
continuationToken,
|
|
157
|
+
options
|
|
158
|
+
);
|
|
159
|
+
continuationToken = result.nextLink;
|
|
160
|
+
yield result.value || [];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
private async *listHistoryForHostingEnvironmentPagingAll(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
hostingEnvironmentName: string,
|
|
167
|
+
options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams
|
|
168
|
+
): AsyncIterableIterator<Recommendation> {
|
|
169
|
+
for await (const page of this.listHistoryForHostingEnvironmentPagingPage(
|
|
170
|
+
resourceGroupName,
|
|
171
|
+
hostingEnvironmentName,
|
|
172
|
+
options
|
|
173
|
+
)) {
|
|
174
|
+
yield* page;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Description for Get all recommendations for a hosting environment.
|
|
180
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
181
|
+
* @param hostingEnvironmentName Name of the app.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
public listRecommendedRulesForHostingEnvironment(
|
|
185
|
+
resourceGroupName: string,
|
|
186
|
+
hostingEnvironmentName: string,
|
|
187
|
+
options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams
|
|
188
|
+
): PagedAsyncIterableIterator<Recommendation> {
|
|
189
|
+
const iter = this.listRecommendedRulesForHostingEnvironmentPagingAll(
|
|
190
|
+
resourceGroupName,
|
|
191
|
+
hostingEnvironmentName,
|
|
192
|
+
options
|
|
193
|
+
);
|
|
194
|
+
return {
|
|
195
|
+
next() {
|
|
196
|
+
return iter.next();
|
|
197
|
+
},
|
|
198
|
+
[Symbol.asyncIterator]() {
|
|
199
|
+
return this;
|
|
200
|
+
},
|
|
201
|
+
byPage: () => {
|
|
202
|
+
return this.listRecommendedRulesForHostingEnvironmentPagingPage(
|
|
203
|
+
resourceGroupName,
|
|
204
|
+
hostingEnvironmentName,
|
|
205
|
+
options
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
private async *listRecommendedRulesForHostingEnvironmentPagingPage(
|
|
212
|
+
resourceGroupName: string,
|
|
213
|
+
hostingEnvironmentName: string,
|
|
214
|
+
options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams
|
|
215
|
+
): AsyncIterableIterator<Recommendation[]> {
|
|
216
|
+
let result = await this._listRecommendedRulesForHostingEnvironment(
|
|
217
|
+
resourceGroupName,
|
|
218
|
+
hostingEnvironmentName,
|
|
219
|
+
options
|
|
220
|
+
);
|
|
221
|
+
yield result.value || [];
|
|
222
|
+
let continuationToken = result.nextLink;
|
|
223
|
+
while (continuationToken) {
|
|
224
|
+
result = await this._listRecommendedRulesForHostingEnvironmentNext(
|
|
225
|
+
resourceGroupName,
|
|
226
|
+
hostingEnvironmentName,
|
|
227
|
+
continuationToken,
|
|
228
|
+
options
|
|
229
|
+
);
|
|
230
|
+
continuationToken = result.nextLink;
|
|
231
|
+
yield result.value || [];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
private async *listRecommendedRulesForHostingEnvironmentPagingAll(
|
|
236
|
+
resourceGroupName: string,
|
|
237
|
+
hostingEnvironmentName: string,
|
|
238
|
+
options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams
|
|
239
|
+
): AsyncIterableIterator<Recommendation> {
|
|
240
|
+
for await (const page of this.listRecommendedRulesForHostingEnvironmentPagingPage(
|
|
241
|
+
resourceGroupName,
|
|
242
|
+
hostingEnvironmentName,
|
|
243
|
+
options
|
|
244
|
+
)) {
|
|
245
|
+
yield* page;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Description for Get past recommendations for an app, optionally specified by the time range.
|
|
251
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
252
|
+
* @param siteName Name of the app.
|
|
253
|
+
* @param options The options parameters.
|
|
254
|
+
*/
|
|
255
|
+
public listHistoryForWebApp(
|
|
256
|
+
resourceGroupName: string,
|
|
257
|
+
siteName: string,
|
|
258
|
+
options?: RecommendationsListHistoryForWebAppOptionalParams
|
|
259
|
+
): PagedAsyncIterableIterator<Recommendation> {
|
|
260
|
+
const iter = this.listHistoryForWebAppPagingAll(
|
|
261
|
+
resourceGroupName,
|
|
262
|
+
siteName,
|
|
263
|
+
options
|
|
264
|
+
);
|
|
265
|
+
return {
|
|
266
|
+
next() {
|
|
267
|
+
return iter.next();
|
|
268
|
+
},
|
|
269
|
+
[Symbol.asyncIterator]() {
|
|
270
|
+
return this;
|
|
271
|
+
},
|
|
272
|
+
byPage: () => {
|
|
273
|
+
return this.listHistoryForWebAppPagingPage(
|
|
274
|
+
resourceGroupName,
|
|
275
|
+
siteName,
|
|
276
|
+
options
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
private async *listHistoryForWebAppPagingPage(
|
|
283
|
+
resourceGroupName: string,
|
|
284
|
+
siteName: string,
|
|
285
|
+
options?: RecommendationsListHistoryForWebAppOptionalParams
|
|
286
|
+
): AsyncIterableIterator<Recommendation[]> {
|
|
287
|
+
let result = await this._listHistoryForWebApp(
|
|
288
|
+
resourceGroupName,
|
|
289
|
+
siteName,
|
|
290
|
+
options
|
|
291
|
+
);
|
|
292
|
+
yield result.value || [];
|
|
293
|
+
let continuationToken = result.nextLink;
|
|
294
|
+
while (continuationToken) {
|
|
295
|
+
result = await this._listHistoryForWebAppNext(
|
|
296
|
+
resourceGroupName,
|
|
297
|
+
siteName,
|
|
298
|
+
continuationToken,
|
|
299
|
+
options
|
|
300
|
+
);
|
|
301
|
+
continuationToken = result.nextLink;
|
|
302
|
+
yield result.value || [];
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
private async *listHistoryForWebAppPagingAll(
|
|
307
|
+
resourceGroupName: string,
|
|
308
|
+
siteName: string,
|
|
309
|
+
options?: RecommendationsListHistoryForWebAppOptionalParams
|
|
310
|
+
): AsyncIterableIterator<Recommendation> {
|
|
311
|
+
for await (const page of this.listHistoryForWebAppPagingPage(
|
|
312
|
+
resourceGroupName,
|
|
313
|
+
siteName,
|
|
314
|
+
options
|
|
315
|
+
)) {
|
|
316
|
+
yield* page;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Description for Get all recommendations for an app.
|
|
322
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
323
|
+
* @param siteName Name of the app.
|
|
324
|
+
* @param options The options parameters.
|
|
325
|
+
*/
|
|
326
|
+
public listRecommendedRulesForWebApp(
|
|
327
|
+
resourceGroupName: string,
|
|
328
|
+
siteName: string,
|
|
329
|
+
options?: RecommendationsListRecommendedRulesForWebAppOptionalParams
|
|
330
|
+
): PagedAsyncIterableIterator<Recommendation> {
|
|
331
|
+
const iter = this.listRecommendedRulesForWebAppPagingAll(
|
|
332
|
+
resourceGroupName,
|
|
333
|
+
siteName,
|
|
334
|
+
options
|
|
335
|
+
);
|
|
336
|
+
return {
|
|
337
|
+
next() {
|
|
338
|
+
return iter.next();
|
|
339
|
+
},
|
|
340
|
+
[Symbol.asyncIterator]() {
|
|
341
|
+
return this;
|
|
342
|
+
},
|
|
343
|
+
byPage: () => {
|
|
344
|
+
return this.listRecommendedRulesForWebAppPagingPage(
|
|
345
|
+
resourceGroupName,
|
|
346
|
+
siteName,
|
|
347
|
+
options
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
private async *listRecommendedRulesForWebAppPagingPage(
|
|
354
|
+
resourceGroupName: string,
|
|
355
|
+
siteName: string,
|
|
356
|
+
options?: RecommendationsListRecommendedRulesForWebAppOptionalParams
|
|
357
|
+
): AsyncIterableIterator<Recommendation[]> {
|
|
358
|
+
let result = await this._listRecommendedRulesForWebApp(
|
|
359
|
+
resourceGroupName,
|
|
360
|
+
siteName,
|
|
361
|
+
options
|
|
362
|
+
);
|
|
363
|
+
yield result.value || [];
|
|
364
|
+
let continuationToken = result.nextLink;
|
|
365
|
+
while (continuationToken) {
|
|
366
|
+
result = await this._listRecommendedRulesForWebAppNext(
|
|
367
|
+
resourceGroupName,
|
|
368
|
+
siteName,
|
|
369
|
+
continuationToken,
|
|
370
|
+
options
|
|
371
|
+
);
|
|
372
|
+
continuationToken = result.nextLink;
|
|
373
|
+
yield result.value || [];
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
private async *listRecommendedRulesForWebAppPagingAll(
|
|
378
|
+
resourceGroupName: string,
|
|
379
|
+
siteName: string,
|
|
380
|
+
options?: RecommendationsListRecommendedRulesForWebAppOptionalParams
|
|
381
|
+
): AsyncIterableIterator<Recommendation> {
|
|
382
|
+
for await (const page of this.listRecommendedRulesForWebAppPagingPage(
|
|
383
|
+
resourceGroupName,
|
|
384
|
+
siteName,
|
|
385
|
+
options
|
|
386
|
+
)) {
|
|
387
|
+
yield* page;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Description for List all recommendations for a subscription.
|
|
393
|
+
* @param options The options parameters.
|
|
394
|
+
*/
|
|
395
|
+
private _list(
|
|
396
|
+
options?: RecommendationsListOptionalParams
|
|
397
|
+
): Promise<RecommendationsListResponse> {
|
|
398
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Description for Reset all recommendation opt-out settings for a subscription.
|
|
403
|
+
* @param options The options parameters.
|
|
404
|
+
*/
|
|
405
|
+
resetAllFilters(
|
|
406
|
+
options?: RecommendationsResetAllFiltersOptionalParams
|
|
407
|
+
): Promise<void> {
|
|
408
|
+
return this.client.sendOperationRequest(
|
|
409
|
+
{ options },
|
|
410
|
+
resetAllFiltersOperationSpec
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Description for Disables the specified rule so it will not apply to a subscription in the future.
|
|
416
|
+
* @param name Rule name
|
|
417
|
+
* @param options The options parameters.
|
|
418
|
+
*/
|
|
419
|
+
disableRecommendationForSubscription(
|
|
420
|
+
name: string,
|
|
421
|
+
options?: RecommendationsDisableRecommendationForSubscriptionOptionalParams
|
|
422
|
+
): Promise<void> {
|
|
423
|
+
return this.client.sendOperationRequest(
|
|
424
|
+
{ name, options },
|
|
425
|
+
disableRecommendationForSubscriptionOperationSpec
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Description for Get past recommendations for an app, optionally specified by the time range.
|
|
431
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
432
|
+
* @param hostingEnvironmentName Name of the hosting environment.
|
|
433
|
+
* @param options The options parameters.
|
|
434
|
+
*/
|
|
435
|
+
private _listHistoryForHostingEnvironment(
|
|
436
|
+
resourceGroupName: string,
|
|
437
|
+
hostingEnvironmentName: string,
|
|
438
|
+
options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams
|
|
439
|
+
): Promise<RecommendationsListHistoryForHostingEnvironmentResponse> {
|
|
440
|
+
return this.client.sendOperationRequest(
|
|
441
|
+
{ resourceGroupName, hostingEnvironmentName, options },
|
|
442
|
+
listHistoryForHostingEnvironmentOperationSpec
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Description for Get all recommendations for a hosting environment.
|
|
448
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
449
|
+
* @param hostingEnvironmentName Name of the app.
|
|
450
|
+
* @param options The options parameters.
|
|
451
|
+
*/
|
|
452
|
+
private _listRecommendedRulesForHostingEnvironment(
|
|
453
|
+
resourceGroupName: string,
|
|
454
|
+
hostingEnvironmentName: string,
|
|
455
|
+
options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams
|
|
456
|
+
): Promise<RecommendationsListRecommendedRulesForHostingEnvironmentResponse> {
|
|
457
|
+
return this.client.sendOperationRequest(
|
|
458
|
+
{ resourceGroupName, hostingEnvironmentName, options },
|
|
459
|
+
listRecommendedRulesForHostingEnvironmentOperationSpec
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Description for Disable all recommendations for an app.
|
|
465
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
466
|
+
* @param environmentName Name of the app.
|
|
467
|
+
* @param hostingEnvironmentName
|
|
468
|
+
* @param options The options parameters.
|
|
469
|
+
*/
|
|
470
|
+
disableAllForHostingEnvironment(
|
|
471
|
+
resourceGroupName: string,
|
|
472
|
+
environmentName: string,
|
|
473
|
+
hostingEnvironmentName: string,
|
|
474
|
+
options?: RecommendationsDisableAllForHostingEnvironmentOptionalParams
|
|
475
|
+
): Promise<void> {
|
|
476
|
+
return this.client.sendOperationRequest(
|
|
477
|
+
{ resourceGroupName, environmentName, hostingEnvironmentName, options },
|
|
478
|
+
disableAllForHostingEnvironmentOperationSpec
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Description for Reset all recommendation opt-out settings for an app.
|
|
484
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
485
|
+
* @param environmentName Name of the app.
|
|
486
|
+
* @param hostingEnvironmentName
|
|
487
|
+
* @param options The options parameters.
|
|
488
|
+
*/
|
|
489
|
+
resetAllFiltersForHostingEnvironment(
|
|
490
|
+
resourceGroupName: string,
|
|
491
|
+
environmentName: string,
|
|
492
|
+
hostingEnvironmentName: string,
|
|
493
|
+
options?: RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams
|
|
494
|
+
): Promise<void> {
|
|
495
|
+
return this.client.sendOperationRequest(
|
|
496
|
+
{ resourceGroupName, environmentName, hostingEnvironmentName, options },
|
|
497
|
+
resetAllFiltersForHostingEnvironmentOperationSpec
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Description for Get a recommendation rule for an app.
|
|
503
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
504
|
+
* @param hostingEnvironmentName Name of the hosting environment.
|
|
505
|
+
* @param name Name of the recommendation.
|
|
506
|
+
* @param options The options parameters.
|
|
507
|
+
*/
|
|
508
|
+
getRuleDetailsByHostingEnvironment(
|
|
509
|
+
resourceGroupName: string,
|
|
510
|
+
hostingEnvironmentName: string,
|
|
511
|
+
name: string,
|
|
512
|
+
options?: RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams
|
|
513
|
+
): Promise<RecommendationsGetRuleDetailsByHostingEnvironmentResponse> {
|
|
514
|
+
return this.client.sendOperationRequest(
|
|
515
|
+
{ resourceGroupName, hostingEnvironmentName, name, options },
|
|
516
|
+
getRuleDetailsByHostingEnvironmentOperationSpec
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Description for Disables the specific rule for a web site permanently.
|
|
522
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
523
|
+
* @param environmentName Site name
|
|
524
|
+
* @param name Rule name
|
|
525
|
+
* @param hostingEnvironmentName
|
|
526
|
+
* @param options The options parameters.
|
|
527
|
+
*/
|
|
528
|
+
disableRecommendationForHostingEnvironment(
|
|
529
|
+
resourceGroupName: string,
|
|
530
|
+
environmentName: string,
|
|
531
|
+
name: string,
|
|
532
|
+
hostingEnvironmentName: string,
|
|
533
|
+
options?: RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams
|
|
534
|
+
): Promise<void> {
|
|
535
|
+
return this.client.sendOperationRequest(
|
|
536
|
+
{
|
|
537
|
+
resourceGroupName,
|
|
538
|
+
environmentName,
|
|
539
|
+
name,
|
|
540
|
+
hostingEnvironmentName,
|
|
541
|
+
options
|
|
542
|
+
},
|
|
543
|
+
disableRecommendationForHostingEnvironmentOperationSpec
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Description for Get past recommendations for an app, optionally specified by the time range.
|
|
549
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
550
|
+
* @param siteName Name of the app.
|
|
551
|
+
* @param options The options parameters.
|
|
552
|
+
*/
|
|
553
|
+
private _listHistoryForWebApp(
|
|
554
|
+
resourceGroupName: string,
|
|
555
|
+
siteName: string,
|
|
556
|
+
options?: RecommendationsListHistoryForWebAppOptionalParams
|
|
557
|
+
): Promise<RecommendationsListHistoryForWebAppResponse> {
|
|
558
|
+
return this.client.sendOperationRequest(
|
|
559
|
+
{ resourceGroupName, siteName, options },
|
|
560
|
+
listHistoryForWebAppOperationSpec
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Description for Get all recommendations for an app.
|
|
566
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
567
|
+
* @param siteName Name of the app.
|
|
568
|
+
* @param options The options parameters.
|
|
569
|
+
*/
|
|
570
|
+
private _listRecommendedRulesForWebApp(
|
|
571
|
+
resourceGroupName: string,
|
|
572
|
+
siteName: string,
|
|
573
|
+
options?: RecommendationsListRecommendedRulesForWebAppOptionalParams
|
|
574
|
+
): Promise<RecommendationsListRecommendedRulesForWebAppResponse> {
|
|
575
|
+
return this.client.sendOperationRequest(
|
|
576
|
+
{ resourceGroupName, siteName, options },
|
|
577
|
+
listRecommendedRulesForWebAppOperationSpec
|
|
578
|
+
);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Description for Disable all recommendations for an app.
|
|
583
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
584
|
+
* @param siteName Name of the app.
|
|
585
|
+
* @param options The options parameters.
|
|
586
|
+
*/
|
|
587
|
+
disableAllForWebApp(
|
|
588
|
+
resourceGroupName: string,
|
|
589
|
+
siteName: string,
|
|
590
|
+
options?: RecommendationsDisableAllForWebAppOptionalParams
|
|
591
|
+
): Promise<void> {
|
|
592
|
+
return this.client.sendOperationRequest(
|
|
593
|
+
{ resourceGroupName, siteName, options },
|
|
594
|
+
disableAllForWebAppOperationSpec
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Description for Reset all recommendation opt-out settings for an app.
|
|
600
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
601
|
+
* @param siteName Name of the app.
|
|
602
|
+
* @param options The options parameters.
|
|
603
|
+
*/
|
|
604
|
+
resetAllFiltersForWebApp(
|
|
605
|
+
resourceGroupName: string,
|
|
606
|
+
siteName: string,
|
|
607
|
+
options?: RecommendationsResetAllFiltersForWebAppOptionalParams
|
|
608
|
+
): Promise<void> {
|
|
609
|
+
return this.client.sendOperationRequest(
|
|
610
|
+
{ resourceGroupName, siteName, options },
|
|
611
|
+
resetAllFiltersForWebAppOperationSpec
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Description for Get a recommendation rule for an app.
|
|
617
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
618
|
+
* @param siteName Name of the app.
|
|
619
|
+
* @param name Name of the recommendation.
|
|
620
|
+
* @param options The options parameters.
|
|
621
|
+
*/
|
|
622
|
+
getRuleDetailsByWebApp(
|
|
623
|
+
resourceGroupName: string,
|
|
624
|
+
siteName: string,
|
|
625
|
+
name: string,
|
|
626
|
+
options?: RecommendationsGetRuleDetailsByWebAppOptionalParams
|
|
627
|
+
): Promise<RecommendationsGetRuleDetailsByWebAppResponse> {
|
|
628
|
+
return this.client.sendOperationRequest(
|
|
629
|
+
{ resourceGroupName, siteName, name, options },
|
|
630
|
+
getRuleDetailsByWebAppOperationSpec
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Description for Disables the specific rule for a web site permanently.
|
|
636
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
637
|
+
* @param siteName Site name
|
|
638
|
+
* @param name Rule name
|
|
639
|
+
* @param options The options parameters.
|
|
640
|
+
*/
|
|
641
|
+
disableRecommendationForSite(
|
|
642
|
+
resourceGroupName: string,
|
|
643
|
+
siteName: string,
|
|
644
|
+
name: string,
|
|
645
|
+
options?: RecommendationsDisableRecommendationForSiteOptionalParams
|
|
646
|
+
): Promise<void> {
|
|
647
|
+
return this.client.sendOperationRequest(
|
|
648
|
+
{ resourceGroupName, siteName, name, options },
|
|
649
|
+
disableRecommendationForSiteOperationSpec
|
|
650
|
+
);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* ListNext
|
|
655
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
656
|
+
* @param options The options parameters.
|
|
657
|
+
*/
|
|
658
|
+
private _listNext(
|
|
659
|
+
nextLink: string,
|
|
660
|
+
options?: RecommendationsListNextOptionalParams
|
|
661
|
+
): Promise<RecommendationsListNextResponse> {
|
|
662
|
+
return this.client.sendOperationRequest(
|
|
663
|
+
{ nextLink, options },
|
|
664
|
+
listNextOperationSpec
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* ListHistoryForHostingEnvironmentNext
|
|
670
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
671
|
+
* @param hostingEnvironmentName Name of the hosting environment.
|
|
672
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
673
|
+
* ListHistoryForHostingEnvironment method.
|
|
674
|
+
* @param options The options parameters.
|
|
675
|
+
*/
|
|
676
|
+
private _listHistoryForHostingEnvironmentNext(
|
|
677
|
+
resourceGroupName: string,
|
|
678
|
+
hostingEnvironmentName: string,
|
|
679
|
+
nextLink: string,
|
|
680
|
+
options?: RecommendationsListHistoryForHostingEnvironmentNextOptionalParams
|
|
681
|
+
): Promise<RecommendationsListHistoryForHostingEnvironmentNextResponse> {
|
|
682
|
+
return this.client.sendOperationRequest(
|
|
683
|
+
{ resourceGroupName, hostingEnvironmentName, nextLink, options },
|
|
684
|
+
listHistoryForHostingEnvironmentNextOperationSpec
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* ListRecommendedRulesForHostingEnvironmentNext
|
|
690
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
691
|
+
* @param hostingEnvironmentName Name of the app.
|
|
692
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
693
|
+
* ListRecommendedRulesForHostingEnvironment method.
|
|
694
|
+
* @param options The options parameters.
|
|
695
|
+
*/
|
|
696
|
+
private _listRecommendedRulesForHostingEnvironmentNext(
|
|
697
|
+
resourceGroupName: string,
|
|
698
|
+
hostingEnvironmentName: string,
|
|
699
|
+
nextLink: string,
|
|
700
|
+
options?: RecommendationsListRecommendedRulesForHostingEnvironmentNextOptionalParams
|
|
701
|
+
): Promise<
|
|
702
|
+
RecommendationsListRecommendedRulesForHostingEnvironmentNextResponse
|
|
703
|
+
> {
|
|
704
|
+
return this.client.sendOperationRequest(
|
|
705
|
+
{ resourceGroupName, hostingEnvironmentName, nextLink, options },
|
|
706
|
+
listRecommendedRulesForHostingEnvironmentNextOperationSpec
|
|
707
|
+
);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* ListHistoryForWebAppNext
|
|
712
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
713
|
+
* @param siteName Name of the app.
|
|
714
|
+
* @param nextLink The nextLink from the previous successful call to the ListHistoryForWebApp method.
|
|
715
|
+
* @param options The options parameters.
|
|
716
|
+
*/
|
|
717
|
+
private _listHistoryForWebAppNext(
|
|
718
|
+
resourceGroupName: string,
|
|
719
|
+
siteName: string,
|
|
720
|
+
nextLink: string,
|
|
721
|
+
options?: RecommendationsListHistoryForWebAppNextOptionalParams
|
|
722
|
+
): Promise<RecommendationsListHistoryForWebAppNextResponse> {
|
|
723
|
+
return this.client.sendOperationRequest(
|
|
724
|
+
{ resourceGroupName, siteName, nextLink, options },
|
|
725
|
+
listHistoryForWebAppNextOperationSpec
|
|
726
|
+
);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* ListRecommendedRulesForWebAppNext
|
|
731
|
+
* @param resourceGroupName Name of the resource group to which the resource belongs.
|
|
732
|
+
* @param siteName Name of the app.
|
|
733
|
+
* @param nextLink The nextLink from the previous successful call to the ListRecommendedRulesForWebApp
|
|
734
|
+
* method.
|
|
735
|
+
* @param options The options parameters.
|
|
736
|
+
*/
|
|
737
|
+
private _listRecommendedRulesForWebAppNext(
|
|
738
|
+
resourceGroupName: string,
|
|
739
|
+
siteName: string,
|
|
740
|
+
nextLink: string,
|
|
741
|
+
options?: RecommendationsListRecommendedRulesForWebAppNextOptionalParams
|
|
742
|
+
): Promise<RecommendationsListRecommendedRulesForWebAppNextResponse> {
|
|
743
|
+
return this.client.sendOperationRequest(
|
|
744
|
+
{ resourceGroupName, siteName, nextLink, options },
|
|
745
|
+
listRecommendedRulesForWebAppNextOperationSpec
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
// Operation Specifications
|
|
750
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
751
|
+
|
|
752
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
753
|
+
path:
|
|
754
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations",
|
|
755
|
+
httpMethod: "GET",
|
|
756
|
+
responses: {
|
|
757
|
+
200: {
|
|
758
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
759
|
+
},
|
|
760
|
+
default: {
|
|
761
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
queryParameters: [
|
|
765
|
+
Parameters.apiVersion,
|
|
766
|
+
Parameters.filter,
|
|
767
|
+
Parameters.featured
|
|
768
|
+
],
|
|
769
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
770
|
+
headerParameters: [Parameters.accept],
|
|
771
|
+
serializer
|
|
772
|
+
};
|
|
773
|
+
const resetAllFiltersOperationSpec: coreClient.OperationSpec = {
|
|
774
|
+
path:
|
|
775
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset",
|
|
776
|
+
httpMethod: "POST",
|
|
777
|
+
responses: {
|
|
778
|
+
204: {},
|
|
779
|
+
default: {
|
|
780
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
queryParameters: [Parameters.apiVersion],
|
|
784
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
785
|
+
headerParameters: [Parameters.accept],
|
|
786
|
+
serializer
|
|
787
|
+
};
|
|
788
|
+
const disableRecommendationForSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
789
|
+
path:
|
|
790
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable",
|
|
791
|
+
httpMethod: "POST",
|
|
792
|
+
responses: {
|
|
793
|
+
200: {},
|
|
794
|
+
default: {
|
|
795
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
queryParameters: [Parameters.apiVersion],
|
|
799
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.name],
|
|
800
|
+
headerParameters: [Parameters.accept],
|
|
801
|
+
serializer
|
|
802
|
+
};
|
|
803
|
+
const listHistoryForHostingEnvironmentOperationSpec: coreClient.OperationSpec = {
|
|
804
|
+
path:
|
|
805
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory",
|
|
806
|
+
httpMethod: "GET",
|
|
807
|
+
responses: {
|
|
808
|
+
200: {
|
|
809
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
810
|
+
},
|
|
811
|
+
default: {
|
|
812
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
queryParameters: [
|
|
816
|
+
Parameters.apiVersion,
|
|
817
|
+
Parameters.filter,
|
|
818
|
+
Parameters.expiredOnly
|
|
819
|
+
],
|
|
820
|
+
urlParameters: [
|
|
821
|
+
Parameters.$host,
|
|
822
|
+
Parameters.subscriptionId,
|
|
823
|
+
Parameters.resourceGroupName,
|
|
824
|
+
Parameters.hostingEnvironmentName
|
|
825
|
+
],
|
|
826
|
+
headerParameters: [Parameters.accept],
|
|
827
|
+
serializer
|
|
828
|
+
};
|
|
829
|
+
const listRecommendedRulesForHostingEnvironmentOperationSpec: coreClient.OperationSpec = {
|
|
830
|
+
path:
|
|
831
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations",
|
|
832
|
+
httpMethod: "GET",
|
|
833
|
+
responses: {
|
|
834
|
+
200: {
|
|
835
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
836
|
+
},
|
|
837
|
+
default: {
|
|
838
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
queryParameters: [
|
|
842
|
+
Parameters.apiVersion,
|
|
843
|
+
Parameters.filter,
|
|
844
|
+
Parameters.featured
|
|
845
|
+
],
|
|
846
|
+
urlParameters: [
|
|
847
|
+
Parameters.$host,
|
|
848
|
+
Parameters.subscriptionId,
|
|
849
|
+
Parameters.resourceGroupName,
|
|
850
|
+
Parameters.hostingEnvironmentName
|
|
851
|
+
],
|
|
852
|
+
headerParameters: [Parameters.accept],
|
|
853
|
+
serializer
|
|
854
|
+
};
|
|
855
|
+
const disableAllForHostingEnvironmentOperationSpec: coreClient.OperationSpec = {
|
|
856
|
+
path:
|
|
857
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable",
|
|
858
|
+
httpMethod: "POST",
|
|
859
|
+
responses: {
|
|
860
|
+
204: {},
|
|
861
|
+
default: {
|
|
862
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
queryParameters: [Parameters.apiVersion, Parameters.environmentName],
|
|
866
|
+
urlParameters: [
|
|
867
|
+
Parameters.$host,
|
|
868
|
+
Parameters.subscriptionId,
|
|
869
|
+
Parameters.resourceGroupName,
|
|
870
|
+
Parameters.hostingEnvironmentName
|
|
871
|
+
],
|
|
872
|
+
headerParameters: [Parameters.accept],
|
|
873
|
+
serializer
|
|
874
|
+
};
|
|
875
|
+
const resetAllFiltersForHostingEnvironmentOperationSpec: coreClient.OperationSpec = {
|
|
876
|
+
path:
|
|
877
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset",
|
|
878
|
+
httpMethod: "POST",
|
|
879
|
+
responses: {
|
|
880
|
+
204: {},
|
|
881
|
+
default: {
|
|
882
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
queryParameters: [Parameters.apiVersion, Parameters.environmentName],
|
|
886
|
+
urlParameters: [
|
|
887
|
+
Parameters.$host,
|
|
888
|
+
Parameters.subscriptionId,
|
|
889
|
+
Parameters.resourceGroupName,
|
|
890
|
+
Parameters.hostingEnvironmentName
|
|
891
|
+
],
|
|
892
|
+
headerParameters: [Parameters.accept],
|
|
893
|
+
serializer
|
|
894
|
+
};
|
|
895
|
+
const getRuleDetailsByHostingEnvironmentOperationSpec: coreClient.OperationSpec = {
|
|
896
|
+
path:
|
|
897
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}",
|
|
898
|
+
httpMethod: "GET",
|
|
899
|
+
responses: {
|
|
900
|
+
200: {
|
|
901
|
+
bodyMapper: Mappers.RecommendationRule
|
|
902
|
+
},
|
|
903
|
+
default: {
|
|
904
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
queryParameters: [
|
|
908
|
+
Parameters.apiVersion,
|
|
909
|
+
Parameters.updateSeen,
|
|
910
|
+
Parameters.recommendationId
|
|
911
|
+
],
|
|
912
|
+
urlParameters: [
|
|
913
|
+
Parameters.$host,
|
|
914
|
+
Parameters.subscriptionId,
|
|
915
|
+
Parameters.resourceGroupName,
|
|
916
|
+
Parameters.name,
|
|
917
|
+
Parameters.hostingEnvironmentName
|
|
918
|
+
],
|
|
919
|
+
headerParameters: [Parameters.accept],
|
|
920
|
+
serializer
|
|
921
|
+
};
|
|
922
|
+
const disableRecommendationForHostingEnvironmentOperationSpec: coreClient.OperationSpec = {
|
|
923
|
+
path:
|
|
924
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable",
|
|
925
|
+
httpMethod: "POST",
|
|
926
|
+
responses: {
|
|
927
|
+
200: {},
|
|
928
|
+
default: {
|
|
929
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
queryParameters: [Parameters.apiVersion, Parameters.environmentName],
|
|
933
|
+
urlParameters: [
|
|
934
|
+
Parameters.$host,
|
|
935
|
+
Parameters.subscriptionId,
|
|
936
|
+
Parameters.resourceGroupName,
|
|
937
|
+
Parameters.name,
|
|
938
|
+
Parameters.hostingEnvironmentName
|
|
939
|
+
],
|
|
940
|
+
headerParameters: [Parameters.accept],
|
|
941
|
+
serializer
|
|
942
|
+
};
|
|
943
|
+
const listHistoryForWebAppOperationSpec: coreClient.OperationSpec = {
|
|
944
|
+
path:
|
|
945
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory",
|
|
946
|
+
httpMethod: "GET",
|
|
947
|
+
responses: {
|
|
948
|
+
200: {
|
|
949
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
950
|
+
},
|
|
951
|
+
default: {
|
|
952
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
queryParameters: [
|
|
956
|
+
Parameters.apiVersion,
|
|
957
|
+
Parameters.filter,
|
|
958
|
+
Parameters.expiredOnly
|
|
959
|
+
],
|
|
960
|
+
urlParameters: [
|
|
961
|
+
Parameters.$host,
|
|
962
|
+
Parameters.subscriptionId,
|
|
963
|
+
Parameters.resourceGroupName,
|
|
964
|
+
Parameters.siteName
|
|
965
|
+
],
|
|
966
|
+
headerParameters: [Parameters.accept],
|
|
967
|
+
serializer
|
|
968
|
+
};
|
|
969
|
+
const listRecommendedRulesForWebAppOperationSpec: coreClient.OperationSpec = {
|
|
970
|
+
path:
|
|
971
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations",
|
|
972
|
+
httpMethod: "GET",
|
|
973
|
+
responses: {
|
|
974
|
+
200: {
|
|
975
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
976
|
+
},
|
|
977
|
+
default: {
|
|
978
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
queryParameters: [
|
|
982
|
+
Parameters.apiVersion,
|
|
983
|
+
Parameters.filter,
|
|
984
|
+
Parameters.featured
|
|
985
|
+
],
|
|
986
|
+
urlParameters: [
|
|
987
|
+
Parameters.$host,
|
|
988
|
+
Parameters.subscriptionId,
|
|
989
|
+
Parameters.resourceGroupName,
|
|
990
|
+
Parameters.siteName
|
|
991
|
+
],
|
|
992
|
+
headerParameters: [Parameters.accept],
|
|
993
|
+
serializer
|
|
994
|
+
};
|
|
995
|
+
const disableAllForWebAppOperationSpec: coreClient.OperationSpec = {
|
|
996
|
+
path:
|
|
997
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable",
|
|
998
|
+
httpMethod: "POST",
|
|
999
|
+
responses: {
|
|
1000
|
+
204: {},
|
|
1001
|
+
default: {
|
|
1002
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
queryParameters: [Parameters.apiVersion],
|
|
1006
|
+
urlParameters: [
|
|
1007
|
+
Parameters.$host,
|
|
1008
|
+
Parameters.subscriptionId,
|
|
1009
|
+
Parameters.resourceGroupName,
|
|
1010
|
+
Parameters.siteName
|
|
1011
|
+
],
|
|
1012
|
+
headerParameters: [Parameters.accept],
|
|
1013
|
+
serializer
|
|
1014
|
+
};
|
|
1015
|
+
const resetAllFiltersForWebAppOperationSpec: coreClient.OperationSpec = {
|
|
1016
|
+
path:
|
|
1017
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset",
|
|
1018
|
+
httpMethod: "POST",
|
|
1019
|
+
responses: {
|
|
1020
|
+
204: {},
|
|
1021
|
+
default: {
|
|
1022
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
queryParameters: [Parameters.apiVersion],
|
|
1026
|
+
urlParameters: [
|
|
1027
|
+
Parameters.$host,
|
|
1028
|
+
Parameters.subscriptionId,
|
|
1029
|
+
Parameters.resourceGroupName,
|
|
1030
|
+
Parameters.siteName
|
|
1031
|
+
],
|
|
1032
|
+
headerParameters: [Parameters.accept],
|
|
1033
|
+
serializer
|
|
1034
|
+
};
|
|
1035
|
+
const getRuleDetailsByWebAppOperationSpec: coreClient.OperationSpec = {
|
|
1036
|
+
path:
|
|
1037
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}",
|
|
1038
|
+
httpMethod: "GET",
|
|
1039
|
+
responses: {
|
|
1040
|
+
200: {
|
|
1041
|
+
bodyMapper: Mappers.RecommendationRule
|
|
1042
|
+
},
|
|
1043
|
+
default: {
|
|
1044
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
queryParameters: [
|
|
1048
|
+
Parameters.apiVersion,
|
|
1049
|
+
Parameters.updateSeen,
|
|
1050
|
+
Parameters.recommendationId
|
|
1051
|
+
],
|
|
1052
|
+
urlParameters: [
|
|
1053
|
+
Parameters.$host,
|
|
1054
|
+
Parameters.subscriptionId,
|
|
1055
|
+
Parameters.resourceGroupName,
|
|
1056
|
+
Parameters.name,
|
|
1057
|
+
Parameters.siteName
|
|
1058
|
+
],
|
|
1059
|
+
headerParameters: [Parameters.accept],
|
|
1060
|
+
serializer
|
|
1061
|
+
};
|
|
1062
|
+
const disableRecommendationForSiteOperationSpec: coreClient.OperationSpec = {
|
|
1063
|
+
path:
|
|
1064
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable",
|
|
1065
|
+
httpMethod: "POST",
|
|
1066
|
+
responses: {
|
|
1067
|
+
200: {},
|
|
1068
|
+
default: {
|
|
1069
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
queryParameters: [Parameters.apiVersion],
|
|
1073
|
+
urlParameters: [
|
|
1074
|
+
Parameters.$host,
|
|
1075
|
+
Parameters.subscriptionId,
|
|
1076
|
+
Parameters.resourceGroupName,
|
|
1077
|
+
Parameters.name,
|
|
1078
|
+
Parameters.siteName
|
|
1079
|
+
],
|
|
1080
|
+
headerParameters: [Parameters.accept],
|
|
1081
|
+
serializer
|
|
1082
|
+
};
|
|
1083
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1084
|
+
path: "{nextLink}",
|
|
1085
|
+
httpMethod: "GET",
|
|
1086
|
+
responses: {
|
|
1087
|
+
200: {
|
|
1088
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
1089
|
+
},
|
|
1090
|
+
default: {
|
|
1091
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
queryParameters: [
|
|
1095
|
+
Parameters.apiVersion,
|
|
1096
|
+
Parameters.filter,
|
|
1097
|
+
Parameters.featured
|
|
1098
|
+
],
|
|
1099
|
+
urlParameters: [
|
|
1100
|
+
Parameters.$host,
|
|
1101
|
+
Parameters.subscriptionId,
|
|
1102
|
+
Parameters.nextLink
|
|
1103
|
+
],
|
|
1104
|
+
headerParameters: [Parameters.accept],
|
|
1105
|
+
serializer
|
|
1106
|
+
};
|
|
1107
|
+
const listHistoryForHostingEnvironmentNextOperationSpec: coreClient.OperationSpec = {
|
|
1108
|
+
path: "{nextLink}",
|
|
1109
|
+
httpMethod: "GET",
|
|
1110
|
+
responses: {
|
|
1111
|
+
200: {
|
|
1112
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
1113
|
+
},
|
|
1114
|
+
default: {
|
|
1115
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
queryParameters: [
|
|
1119
|
+
Parameters.apiVersion,
|
|
1120
|
+
Parameters.filter,
|
|
1121
|
+
Parameters.expiredOnly
|
|
1122
|
+
],
|
|
1123
|
+
urlParameters: [
|
|
1124
|
+
Parameters.$host,
|
|
1125
|
+
Parameters.subscriptionId,
|
|
1126
|
+
Parameters.resourceGroupName,
|
|
1127
|
+
Parameters.nextLink,
|
|
1128
|
+
Parameters.hostingEnvironmentName
|
|
1129
|
+
],
|
|
1130
|
+
headerParameters: [Parameters.accept],
|
|
1131
|
+
serializer
|
|
1132
|
+
};
|
|
1133
|
+
const listRecommendedRulesForHostingEnvironmentNextOperationSpec: coreClient.OperationSpec = {
|
|
1134
|
+
path: "{nextLink}",
|
|
1135
|
+
httpMethod: "GET",
|
|
1136
|
+
responses: {
|
|
1137
|
+
200: {
|
|
1138
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
1139
|
+
},
|
|
1140
|
+
default: {
|
|
1141
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
queryParameters: [
|
|
1145
|
+
Parameters.apiVersion,
|
|
1146
|
+
Parameters.filter,
|
|
1147
|
+
Parameters.featured
|
|
1148
|
+
],
|
|
1149
|
+
urlParameters: [
|
|
1150
|
+
Parameters.$host,
|
|
1151
|
+
Parameters.subscriptionId,
|
|
1152
|
+
Parameters.resourceGroupName,
|
|
1153
|
+
Parameters.nextLink,
|
|
1154
|
+
Parameters.hostingEnvironmentName
|
|
1155
|
+
],
|
|
1156
|
+
headerParameters: [Parameters.accept],
|
|
1157
|
+
serializer
|
|
1158
|
+
};
|
|
1159
|
+
const listHistoryForWebAppNextOperationSpec: coreClient.OperationSpec = {
|
|
1160
|
+
path: "{nextLink}",
|
|
1161
|
+
httpMethod: "GET",
|
|
1162
|
+
responses: {
|
|
1163
|
+
200: {
|
|
1164
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
1165
|
+
},
|
|
1166
|
+
default: {
|
|
1167
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
queryParameters: [
|
|
1171
|
+
Parameters.apiVersion,
|
|
1172
|
+
Parameters.filter,
|
|
1173
|
+
Parameters.expiredOnly
|
|
1174
|
+
],
|
|
1175
|
+
urlParameters: [
|
|
1176
|
+
Parameters.$host,
|
|
1177
|
+
Parameters.subscriptionId,
|
|
1178
|
+
Parameters.resourceGroupName,
|
|
1179
|
+
Parameters.nextLink,
|
|
1180
|
+
Parameters.siteName
|
|
1181
|
+
],
|
|
1182
|
+
headerParameters: [Parameters.accept],
|
|
1183
|
+
serializer
|
|
1184
|
+
};
|
|
1185
|
+
const listRecommendedRulesForWebAppNextOperationSpec: coreClient.OperationSpec = {
|
|
1186
|
+
path: "{nextLink}",
|
|
1187
|
+
httpMethod: "GET",
|
|
1188
|
+
responses: {
|
|
1189
|
+
200: {
|
|
1190
|
+
bodyMapper: Mappers.RecommendationCollection
|
|
1191
|
+
},
|
|
1192
|
+
default: {
|
|
1193
|
+
bodyMapper: Mappers.DefaultErrorResponse
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
queryParameters: [
|
|
1197
|
+
Parameters.apiVersion,
|
|
1198
|
+
Parameters.filter,
|
|
1199
|
+
Parameters.featured
|
|
1200
|
+
],
|
|
1201
|
+
urlParameters: [
|
|
1202
|
+
Parameters.$host,
|
|
1203
|
+
Parameters.subscriptionId,
|
|
1204
|
+
Parameters.resourceGroupName,
|
|
1205
|
+
Parameters.nextLink,
|
|
1206
|
+
Parameters.siteName
|
|
1207
|
+
],
|
|
1208
|
+
headerParameters: [Parameters.accept],
|
|
1209
|
+
serializer
|
|
1210
|
+
};
|