From 5ac0e47b5a307536ebc74cab392f1f86960a0acb Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 25 Oct 2018 13:39:16 -0700 Subject: [PATCH 01/10] [AutoPR web/resource-manager] Fix network trace API REST format (#249) * Generated from 5d96e9d924cbd71c7d5a54352736be5621364013 Fix network trace API REST format * Generated from f05337dd6b902f7f9125a4cc1d2096d315646214 Fix operationIds * Generated from 25ba387503fdb8834ed08a9334068c0d8a0b2698 Fix operation Ids --- packages/@azure/arm-appservice/.npmignore | 35 + packages/@azure/arm-appservice/LICENSE.txt | 21 + packages/@azure/arm-appservice/README.md | 77 + .../appServiceCertificateOrdersMappers.ts | 192 + .../models/appServiceEnvironmentsMappers.ts | 207 + .../lib/models/appServicePlansMappers.ts | 200 + .../certificateRegistrationProviderMappers.ts | 25 + .../lib/models/certificatesMappers.ts | 188 + .../lib/models/deletedWebAppsMappers.ts | 187 + .../lib/models/diagnosticsMappers.ts | 190 + .../domainRegistrationProviderMappers.ts | 25 + .../lib/models/domainsMappers.ts | 194 + .../@azure/arm-appservice/lib/models/index.ts | 23358 ++++++++++++++ .../arm-appservice/lib/models/mappers.ts | 14261 +++++++++ .../arm-appservice/lib/models/parameters.ts | 853 + .../lib/models/providerMappers.ts | 29 + .../lib/models/recommendationsMappers.ts | 188 + ...resourceHealthMetadataOperationsMappers.ts | 187 + .../lib/models/topLevelDomainsMappers.ts | 190 + .../lib/models/webAppsMappers.ts | 226 + .../operations/appServiceCertificateOrders.ts | 1451 + .../lib/operations/appServiceEnvironments.ts | 3774 +++ .../lib/operations/appServicePlans.ts | 2329 ++ .../certificateRegistrationProvider.ts | 129 + .../lib/operations/certificates.ts | 484 + .../lib/operations/deletedWebApps.ts | 128 + .../lib/operations/diagnostics.ts | 2052 ++ .../operations/domainRegistrationProvider.ts | 129 + .../arm-appservice/lib/operations/domains.ts | 1152 + .../arm-appservice/lib/operations/index.ts | 24 + .../arm-appservice/lib/operations/provider.ts | 324 + .../lib/operations/recommendations.ts | 685 + .../resourceHealthMetadataOperations.ts | 575 + .../lib/operations/topLevelDomains.ts | 295 + .../arm-appservice/lib/operations/webApps.ts | 26704 ++++++++++++++++ .../lib/webSiteManagementClient.ts | 1212 + .../lib/webSiteManagementClientContext.ts | 66 + packages/@azure/arm-appservice/package.json | 42 + .../@azure/arm-appservice/rollup.config.js | 31 + packages/@azure/arm-appservice/tsconfig.json | 19 + 40 files changed, 82438 insertions(+) create mode 100644 packages/@azure/arm-appservice/.npmignore create mode 100644 packages/@azure/arm-appservice/LICENSE.txt create mode 100644 packages/@azure/arm-appservice/README.md create mode 100644 packages/@azure/arm-appservice/lib/models/appServiceCertificateOrdersMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/appServiceEnvironmentsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/appServicePlansMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/certificateRegistrationProviderMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/certificatesMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/deletedWebAppsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/diagnosticsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/domainRegistrationProviderMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/domainsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/index.ts create mode 100644 packages/@azure/arm-appservice/lib/models/mappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/parameters.ts create mode 100644 packages/@azure/arm-appservice/lib/models/providerMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/recommendationsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/resourceHealthMetadataOperationsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/topLevelDomainsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/models/webAppsMappers.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/appServiceCertificateOrders.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/appServiceEnvironments.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/appServicePlans.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/certificateRegistrationProvider.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/certificates.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/deletedWebApps.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/diagnostics.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/domainRegistrationProvider.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/domains.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/index.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/provider.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/recommendations.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/resourceHealthMetadataOperations.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/topLevelDomains.ts create mode 100644 packages/@azure/arm-appservice/lib/operations/webApps.ts create mode 100644 packages/@azure/arm-appservice/lib/webSiteManagementClient.ts create mode 100644 packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts create mode 100644 packages/@azure/arm-appservice/package.json create mode 100644 packages/@azure/arm-appservice/rollup.config.js create mode 100644 packages/@azure/arm-appservice/tsconfig.json diff --git a/packages/@azure/arm-appservice/.npmignore b/packages/@azure/arm-appservice/.npmignore new file mode 100644 index 000000000000..a07a455ac10c --- /dev/null +++ b/packages/@azure/arm-appservice/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-appservice/LICENSE.txt b/packages/@azure/arm-appservice/LICENSE.txt new file mode 100644 index 000000000000..5431ba98b936 --- /dev/null +++ b/packages/@azure/arm-appservice/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-appservice/README.md b/packages/@azure/arm-appservice/README.md new file mode 100644 index 000000000000..54c44a99e138 --- /dev/null +++ b/packages/@azure/arm-appservice/README.md @@ -0,0 +1,77 @@ +# Azure WebSiteManagementClient SDK for JavaScript +This package contains an isomorphic SDK for WebSiteManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-appservice +``` + + +## How to use + +### nodejs - Authentication, client creation and list appServiceCertificateOrders as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { WebSiteManagementClient, WebSiteManagementModels, WebSiteManagementMappers } from "@azure/arm-appservice"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new WebSiteManagementClient(creds, subscriptionId); + client.appServiceCertificateOrders.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list appServiceCertificateOrders as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-appservice sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-appservice/lib/models/appServiceCertificateOrdersMappers.ts b/packages/@azure/arm-appservice/lib/models/appServiceCertificateOrdersMappers.ts new file mode 100644 index 000000000000..4259e87164d7 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/appServiceCertificateOrdersMappers.ts @@ -0,0 +1,192 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AppServiceCertificateOrderCollection, + AppServiceCertificateOrder, + Resource, + BaseResource, + AppServiceCertificate, + CertificateDetails, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CloudError, + AppServiceCertificateOrderPatchResource, + ProxyOnlyResource, + AppServiceCertificateCollection, + AppServiceCertificateResource, + AppServiceCertificatePatchResource, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + NameIdentifier, + SiteSealRequest, + SiteSeal, + CertificateOrderAction, + CertificateEmail, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Site, + HostNameSslState, + SiteConfig, + NameValuePair, + AzureStorageInfoValue, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + HostingEnvironmentProfile, + CloningInfo, + SlotSwapStatus, + ManagedServiceIdentity, + AppServicePlan, + SkuDescription, + SkuCapacity, + Capability, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/appServiceEnvironmentsMappers.ts b/packages/@azure/arm-appservice/lib/models/appServiceEnvironmentsMappers.ts new file mode 100644 index 000000000000..2ed046d7bab1 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/appServiceEnvironmentsMappers.ts @@ -0,0 +1,207 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AppServiceEnvironmentCollection, + AppServiceEnvironmentResource, + Resource, + BaseResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + NameValuePair, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CloudError, + AppServiceEnvironmentPatchResource, + ProxyOnlyResource, + StampCapacityCollection, + AddressResponse, + WebAppCollection, + Site, + HostNameSslState, + SiteConfig, + AzureStorageInfoValue, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + PushSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + HostingEnvironmentProfile, + CloningInfo, + SlotSwapStatus, + ManagedServiceIdentity, + HostingEnvironmentDiagnostics, + MetricDefinition, + MetricAvailabilily, + ResourceMetricCollection, + ResourceMetric, + ResourceMetricName, + ResourceMetricValue, + ResourceMetricProperty, + WorkerPoolCollection, + WorkerPoolResource, + SkuDescription, + SkuCapacity, + Capability, + ResourceMetricDefinitionCollection, + ResourceMetricDefinition, + ResourceMetricAvailability, + SkuInfoCollection, + SkuInfo, + UsageCollection, + Usage, + Operation, + ErrorEntity, + AppServicePlanCollection, + AppServicePlan, + CsmUsageQuotaCollection, + CsmUsageQuota, + LocalizableString, + AppServiceCertificateResource, + AppServiceCertificateOrder, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificateOrderPatchResource, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/appServicePlansMappers.ts b/packages/@azure/arm-appservice/lib/models/appServicePlansMappers.ts new file mode 100644 index 000000000000..fdf07a0995e6 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/appServicePlansMappers.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AppServicePlanCollection, + AppServicePlan, + Resource, + BaseResource, + HostingEnvironmentProfile, + SkuDescription, + SkuCapacity, + Capability, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CloudError, + AppServicePlanPatchResource, + ProxyOnlyResource, + HybridConnection, + HybridConnectionKey, + ResourceCollection, + HybridConnectionLimits, + HybridConnectionCollection, + ResourceMetricDefinitionCollection, + ResourceMetricDefinition, + ResourceMetricAvailability, + ResourceMetricCollection, + ResourceMetric, + ResourceMetricName, + ResourceMetricValue, + ResourceMetricProperty, + WebAppCollection, + Site, + HostNameSslState, + SiteConfig, + NameValuePair, + AzureStorageInfoValue, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + PushSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + CloningInfo, + SlotSwapStatus, + ManagedServiceIdentity, + CsmUsageQuotaCollection, + CsmUsageQuota, + LocalizableString, + VnetInfo, + VnetRoute, + VnetGateway, + AppServiceCertificateResource, + AppServiceCertificateOrder, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificateOrderPatchResource, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + User, + Snapshot, + Identifier, + DeletedSite, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + ResourceHealthMetadata +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/certificateRegistrationProviderMappers.ts b/packages/@azure/arm-appservice/lib/models/certificateRegistrationProviderMappers.ts new file mode 100644 index 000000000000..8fdb86ba9e15 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/certificateRegistrationProviderMappers.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CsmOperationCollection, + CsmOperationDescription, + CsmOperationDisplay, + CsmOperationDescriptionProperties, + ServiceSpecification, + MetricSpecification, + Dimension, + MetricAvailability, + LogSpecification, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/certificatesMappers.ts b/packages/@azure/arm-appservice/lib/models/certificatesMappers.ts new file mode 100644 index 000000000000..dc54d0db9642 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/certificatesMappers.ts @@ -0,0 +1,188 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CertificateCollection, + Certificate, + Resource, + BaseResource, + HostingEnvironmentProfile, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CloudError, + CertificatePatchResource, + ProxyOnlyResource, + AppServiceCertificateResource, + AppServiceCertificateOrder, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificateOrderPatchResource, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Site, + HostNameSslState, + SiteConfig, + NameValuePair, + AzureStorageInfoValue, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + CloningInfo, + SlotSwapStatus, + ManagedServiceIdentity, + AppServicePlan, + SkuDescription, + SkuCapacity, + Capability, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/deletedWebAppsMappers.ts b/packages/@azure/arm-appservice/lib/models/deletedWebAppsMappers.ts new file mode 100644 index 000000000000..d36b03fb1cbc --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/deletedWebAppsMappers.ts @@ -0,0 +1,187 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DeletedWebAppCollection, + DeletedSite, + ProxyOnlyResource, + BaseResource, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + AppServiceCertificateOrderPatchResource, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + Resource, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + HostingEnvironmentProfile, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + NameValuePair, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + AzureStorageInfoValue, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + HostNameSslState, + SiteConfig, + CloningInfo, + SlotSwapStatus, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + SkuDescription, + SkuCapacity, + Capability, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata, + AppServiceCertificateResource, + AppServiceCertificateOrder, + Site, + ManagedServiceIdentity, + AppServicePlan +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/diagnosticsMappers.ts b/packages/@azure/arm-appservice/lib/models/diagnosticsMappers.ts new file mode 100644 index 000000000000..b1c78aaa8573 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/diagnosticsMappers.ts @@ -0,0 +1,190 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DetectorResponseCollection, + DetectorResponse, + ProxyOnlyResource, + BaseResource, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DiagnosticCategoryCollection, + DiagnosticCategory, + DiagnosticAnalysisCollection, + AnalysisDefinition, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + NameValuePair, + Solution, + AnalysisData, + DetectorDefinition, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticDetectorCollection, + DiagnosticDetectorResponse, + AppServiceCertificateOrderPatchResource, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Resource, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + HostingEnvironmentProfile, + CertificatePatchResource, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + AzureStorageInfoValue, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + HostNameSslState, + SiteConfig, + CloningInfo, + SlotSwapStatus, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + SkuDescription, + SkuCapacity, + Capability, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata, + AppServiceCertificateResource, + AppServiceCertificateOrder, + Site, + ManagedServiceIdentity, + AppServicePlan +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/domainRegistrationProviderMappers.ts b/packages/@azure/arm-appservice/lib/models/domainRegistrationProviderMappers.ts new file mode 100644 index 000000000000..8fdb86ba9e15 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/domainRegistrationProviderMappers.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CsmOperationCollection, + CsmOperationDescription, + CsmOperationDisplay, + CsmOperationDescriptionProperties, + ServiceSpecification, + MetricSpecification, + Dimension, + MetricAvailability, + LogSpecification, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/domainsMappers.ts b/packages/@azure/arm-appservice/lib/models/domainsMappers.ts new file mode 100644 index 000000000000..620c86b22956 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/domainsMappers.ts @@ -0,0 +1,194 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + NameIdentifier, + DomainAvailablilityCheckResult, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DomainCollection, + Domain, + Resource, + BaseResource, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainControlCenterSsoRequest, + DomainRecommendationSearchParameters, + NameIdentifierCollection, + CloudError, + DomainPatchResource, + ProxyOnlyResource, + DomainOwnershipIdentifierCollection, + DomainOwnershipIdentifier, + AppServiceCertificateResource, + AppServiceCertificateOrder, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificateOrderPatchResource, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Site, + HostNameSslState, + SiteConfig, + NameValuePair, + AzureStorageInfoValue, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + HostingEnvironmentProfile, + CloningInfo, + SlotSwapStatus, + ManagedServiceIdentity, + AppServicePlan, + SkuDescription, + SkuCapacity, + Capability, + TopLevelDomain, + Certificate, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts new file mode 100644 index 000000000000..c69c21e69afd --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -0,0 +1,23358 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing AppServiceCertificate. + * Key Vault container for a certificate that is purchased through Azure. + * + */ +export interface AppServiceCertificate { + /** + * @member {string} [keyVaultId] Key Vault resource Id. + */ + keyVaultId?: string; + /** + * @member {string} [keyVaultSecretName] Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * @member {KeyVaultSecretStatus} [provisioningState] Status of the Key Vault + * secret. Possible values include: 'Initialized', + * 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', + * 'OperationNotPermittedOnKeyVault', + * 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + * 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: KeyVaultSecretStatus; +} + +/** + * @interface + * An interface representing Resource. + * Azure resource. This resource is tracked in Azure Resource Manager + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource Name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [kind] Kind of resource. + */ + kind?: string; + /** + * @member {string} location Resource Location. + */ + location: string; + /** + * @member {string} [type] Resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing AppServiceCertificateResource. + * Key Vault container ARM resource for a certificate that is purchased through + * Azure. + * + * @extends Resource + */ +export interface AppServiceCertificateResource extends Resource { + /** + * @member {string} [keyVaultId] Key Vault resource Id. + */ + keyVaultId?: string; + /** + * @member {string} [keyVaultSecretName] Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * @member {KeyVaultSecretStatus} [provisioningState] Status of the Key Vault + * secret. Possible values include: 'Initialized', + * 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', + * 'OperationNotPermittedOnKeyVault', + * 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + * 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: KeyVaultSecretStatus; +} + +/** + * @interface + * An interface representing CertificateDetails. + * SSL certificate details. + * + */ +export interface CertificateDetails { + /** + * @member {number} [version] Certificate Version. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly version?: number; + /** + * @member {string} [serialNumber] Certificate Serial Number. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly serialNumber?: string; + /** + * @member {string} [thumbprint] Certificate Thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly thumbprint?: string; + /** + * @member {string} [subject] Certificate Subject. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subject?: string; + /** + * @member {Date} [notBefore] Date Certificate is valid from. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly notBefore?: Date; + /** + * @member {Date} [notAfter] Date Certificate is valid to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly notAfter?: Date; + /** + * @member {string} [signatureAlgorithm] Certificate Signature algorithm. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly signatureAlgorithm?: string; + /** + * @member {string} [issuer] Certificate Issuer. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly issuer?: string; + /** + * @member {string} [rawData] Raw certificate data. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly rawData?: string; +} + +/** + * @interface + * An interface representing AppServiceCertificateOrder. + * SSL certificate purchase order. + * + * @extends Resource + */ +export interface AppServiceCertificateOrder extends Resource { + /** + * @member {{ [propertyName: string]: AppServiceCertificate }} [certificates] + * State of the Key Vault secret. + */ + certificates?: { [propertyName: string]: AppServiceCertificate }; + /** + * @member {string} [distinguishedName] Certificate distinguished name. + */ + distinguishedName?: string; + /** + * @member {string} [domainVerificationToken] Domain verification token. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly domainVerificationToken?: string; + /** + * @member {number} [validityInYears] Duration in years (must be between 1 + * and 3). Default value: 1 . + */ + validityInYears?: number; + /** + * @member {number} [keySize] Certificate key size. Default value: 2048 . + */ + keySize?: number; + /** + * @member {CertificateProductType} productType Certificate product type. + * Possible values include: 'StandardDomainValidatedSsl', + * 'StandardDomainValidatedWildCardSsl' + */ + productType: CertificateProductType; + /** + * @member {boolean} [autoRenew] true if the certificate should + * be automatically renewed when it expires; otherwise, false. + * Default value: true . + */ + autoRenew?: boolean; + /** + * @member {ProvisioningState} [provisioningState] Status of certificate + * order. Possible values include: 'Succeeded', 'Failed', 'Canceled', + * 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {CertificateOrderStatus} [status] Current order status. Possible + * values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', + * 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', + * 'NotSubmitted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: CertificateOrderStatus; + /** + * @member {CertificateDetails} [signedCertificate] Signed certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly signedCertificate?: CertificateDetails; + /** + * @member {string} [csr] Last CSR that was created for this order. + */ + csr?: string; + /** + * @member {CertificateDetails} [intermediate] Intermediate certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly intermediate?: CertificateDetails; + /** + * @member {CertificateDetails} [root] Root certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly root?: CertificateDetails; + /** + * @member {string} [serialNumber] Current serial number of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly serialNumber?: string; + /** + * @member {Date} [lastCertificateIssuanceTime] Certificate last issuance + * time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastCertificateIssuanceTime?: Date; + /** + * @member {Date} [expirationTime] Certificate expiration time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expirationTime?: Date; + /** + * @member {boolean} [isPrivateKeyExternal] true if private key + * is external; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isPrivateKeyExternal?: boolean; + /** + * @member {string[]} [appServiceCertificateNotRenewableReasons] Reasons why + * App Service Certificate is not renewable at the current moment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly appServiceCertificateNotRenewableReasons?: string[]; + /** + * @member {Date} [nextAutoRenewalTimeStamp] Time stamp when the certificate + * would be auto renewed next + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextAutoRenewalTimeStamp?: Date; +} + +/** + * @interface + * An interface representing ProxyOnlyResource. + * Azure proxy only resource. This resource is not tracked by Azure Resource + * Manager. + * + * @extends BaseResource + */ +export interface ProxyOnlyResource extends BaseResource { + /** + * @member {string} [id] Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource Name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [kind] Kind of resource. + */ + kind?: string; + /** + * @member {string} [type] Resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing AppServiceCertificateOrderPatchResource. + * ARM resource for a certificate order that is purchased through Azure. + * + * @extends ProxyOnlyResource + */ +export interface AppServiceCertificateOrderPatchResource extends ProxyOnlyResource { + /** + * @member {{ [propertyName: string]: AppServiceCertificate }} [certificates] + * State of the Key Vault secret. + */ + certificates?: { [propertyName: string]: AppServiceCertificate }; + /** + * @member {string} [distinguishedName] Certificate distinguished name. + */ + distinguishedName?: string; + /** + * @member {string} [domainVerificationToken] Domain verification token. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly domainVerificationToken?: string; + /** + * @member {number} [validityInYears] Duration in years (must be between 1 + * and 3). Default value: 1 . + */ + validityInYears?: number; + /** + * @member {number} [keySize] Certificate key size. Default value: 2048 . + */ + keySize?: number; + /** + * @member {CertificateProductType} productType Certificate product type. + * Possible values include: 'StandardDomainValidatedSsl', + * 'StandardDomainValidatedWildCardSsl' + */ + productType: CertificateProductType; + /** + * @member {boolean} [autoRenew] true if the certificate should + * be automatically renewed when it expires; otherwise, false. + * Default value: true . + */ + autoRenew?: boolean; + /** + * @member {ProvisioningState} [provisioningState] Status of certificate + * order. Possible values include: 'Succeeded', 'Failed', 'Canceled', + * 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {CertificateOrderStatus} [status] Current order status. Possible + * values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', + * 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', + * 'NotSubmitted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: CertificateOrderStatus; + /** + * @member {CertificateDetails} [signedCertificate] Signed certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly signedCertificate?: CertificateDetails; + /** + * @member {string} [csr] Last CSR that was created for this order. + */ + csr?: string; + /** + * @member {CertificateDetails} [intermediate] Intermediate certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly intermediate?: CertificateDetails; + /** + * @member {CertificateDetails} [root] Root certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly root?: CertificateDetails; + /** + * @member {string} [serialNumber] Current serial number of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly serialNumber?: string; + /** + * @member {Date} [lastCertificateIssuanceTime] Certificate last issuance + * time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastCertificateIssuanceTime?: Date; + /** + * @member {Date} [expirationTime] Certificate expiration time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expirationTime?: Date; + /** + * @member {boolean} [isPrivateKeyExternal] true if private key + * is external; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isPrivateKeyExternal?: boolean; + /** + * @member {string[]} [appServiceCertificateNotRenewableReasons] Reasons why + * App Service Certificate is not renewable at the current moment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly appServiceCertificateNotRenewableReasons?: string[]; + /** + * @member {Date} [nextAutoRenewalTimeStamp] Time stamp when the certificate + * would be auto renewed next + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextAutoRenewalTimeStamp?: Date; +} + +/** + * @interface + * An interface representing AppServiceCertificatePatchResource. + * Key Vault container ARM resource for a certificate that is purchased through + * Azure. + * + * @extends ProxyOnlyResource + */ +export interface AppServiceCertificatePatchResource extends ProxyOnlyResource { + /** + * @member {string} [keyVaultId] Key Vault resource Id. + */ + keyVaultId?: string; + /** + * @member {string} [keyVaultSecretName] Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * @member {KeyVaultSecretStatus} [provisioningState] Status of the Key Vault + * secret. Possible values include: 'Initialized', + * 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', + * 'OperationNotPermittedOnKeyVault', + * 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + * 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: KeyVaultSecretStatus; +} + +/** + * @interface + * An interface representing CertificateEmail. + * SSL certificate email. + * + * @extends ProxyOnlyResource + */ +export interface CertificateEmail extends ProxyOnlyResource { + /** + * @member {string} [emailId] Email id. + */ + emailId?: string; + /** + * @member {Date} [timeStamp] Time stamp. + */ + timeStamp?: Date; +} + +/** + * @interface + * An interface representing CertificateOrderAction. + * Certificate order action. + * + * @extends ProxyOnlyResource + */ +export interface CertificateOrderAction extends ProxyOnlyResource { + /** + * @member {CertificateOrderActionType} [actionType] Action type. Possible + * values include: 'CertificateIssued', 'CertificateOrderCanceled', + * 'CertificateOrderCreated', 'CertificateRevoked', + * 'DomainValidationComplete', 'FraudDetected', 'OrgNameChange', + * 'OrgValidationComplete', 'SanDrop', 'FraudCleared', 'CertificateExpired', + * 'CertificateExpirationWarning', 'FraudDocumentationRequired', 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly actionType?: CertificateOrderActionType; + /** + * @member {Date} [createdAt] Time at which the certificate action was + * performed. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly createdAt?: Date; +} + +/** + * @interface + * An interface representing ReissueCertificateOrderRequest. + * Class representing certificate reissue request. + * + * @extends ProxyOnlyResource + */ +export interface ReissueCertificateOrderRequest extends ProxyOnlyResource { + /** + * @member {number} [keySize] Certificate Key Size. + */ + keySize?: number; + /** + * @member {number} [delayExistingRevokeInHours] Delay in hours to revoke + * existing certificate after the new certificate is issued. + */ + delayExistingRevokeInHours?: number; + /** + * @member {string} [csr] Csr to be used for re-key operation. + */ + csr?: string; + /** + * @member {boolean} [isPrivateKeyExternal] Should we change the ASC type + * (from managed private key to external private key and vice versa). + */ + isPrivateKeyExternal?: boolean; +} + +/** + * @interface + * An interface representing RenewCertificateOrderRequest. + * Class representing certificate renew request. + * + * @extends ProxyOnlyResource + */ +export interface RenewCertificateOrderRequest extends ProxyOnlyResource { + /** + * @member {number} [keySize] Certificate Key Size. + */ + keySize?: number; + /** + * @member {string} [csr] Csr to be used for re-key operation. + */ + csr?: string; + /** + * @member {boolean} [isPrivateKeyExternal] Should we change the ASC type + * (from managed private key to external private key and vice versa). + */ + isPrivateKeyExternal?: boolean; +} + +/** + * @interface + * An interface representing SiteSeal. + * Site seal + * + */ +export interface SiteSeal { + /** + * @member {string} html HTML snippet + */ + html: string; +} + +/** + * @interface + * An interface representing SiteSealRequest. + * Site seal request. + * + */ +export interface SiteSealRequest { + /** + * @member {boolean} [lightTheme] If true use the light color + * theme for site seal; otherwise, use the default color theme. + */ + lightTheme?: boolean; + /** + * @member {string} [locale] Locale of site seal. + */ + locale?: string; +} + +/** + * @interface + * An interface representing VnetRoute. + * Virtual Network route contract used to pass routing information for a + * Virtual Network. + * + * @extends ProxyOnlyResource + */ +export interface VnetRoute extends ProxyOnlyResource { + /** + * @member {string} [startAddress] The starting address for this route. This + * may also include a CIDR notation, in which case the end address must not + * be specified. + */ + startAddress?: string; + /** + * @member {string} [endAddress] The ending address for this route. If the + * start address is specified in CIDR notation, this must be omitted. + */ + endAddress?: string; + /** + * @member {RouteType} [routeType] The type of route this is: + * DEFAULT - By default, every app has routes to the local address ranges + * specified by RFC1918 + * INHERITED - Routes inherited from the real Virtual Network routes + * STATIC - Static route set on the app only + * + * These values will be used for syncing an app's routes with those from a + * Virtual Network. Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + */ + routeType?: RouteType; +} + +/** + * @interface + * An interface representing VnetInfo. + * Virtual Network information contract. + * + * @extends ProxyOnlyResource + */ +export interface VnetInfo extends ProxyOnlyResource { + /** + * @member {string} [vnetResourceId] The Virtual Network's resource ID. + */ + vnetResourceId?: string; + /** + * @member {string} [certThumbprint] The client certificate thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly certThumbprint?: string; + /** + * @member {Uint8Array} [certBlob] A certificate file (.cer) blob containing + * the public key of the private key used to authenticate a + * Point-To-Site VPN connection. + */ + certBlob?: Uint8Array; + /** + * @member {VnetRoute[]} [routes] The routes that this Virtual Network + * connection uses. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly routes?: VnetRoute[]; + /** + * @member {boolean} [resyncRequired] true if a resync is + * required; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resyncRequired?: boolean; + /** + * @member {string} [dnsServers] DNS servers to be used by this Virtual + * Network. This should be a comma-separated list of IP addresses. + */ + dnsServers?: string; +} + +/** + * @interface + * An interface representing VnetGateway. + * The Virtual Network gateway contract. This is used to give the Virtual + * Network gateway access to the VPN package. + * + * @extends ProxyOnlyResource + */ +export interface VnetGateway extends ProxyOnlyResource { + /** + * @member {string} [vnetName] The Virtual Network name. + */ + vnetName?: string; + /** + * @member {string} vpnPackageUri The URI where the VPN package can be + * downloaded. + */ + vpnPackageUri: string; +} + +/** + * @interface + * An interface representing User. + * User crendentials used for publishing activity. + * + * @extends ProxyOnlyResource + */ +export interface User extends ProxyOnlyResource { + /** + * @member {string} publishingUserName Username used for publishing. + */ + publishingUserName: string; + /** + * @member {string} [publishingPassword] Password used for publishing. + */ + publishingPassword?: string; + /** + * @member {string} [publishingPasswordHash] Password hash used for + * publishing. + */ + publishingPasswordHash?: string; + /** + * @member {string} [publishingPasswordHashSalt] Password hash salt used for + * publishing. + */ + publishingPasswordHashSalt?: string; + /** + * @member {string} [scmUri] Url of SCM site. + */ + scmUri?: string; +} + +/** + * @interface + * An interface representing Snapshot. + * A snapshot of an app. + * + * @extends ProxyOnlyResource + */ +export interface Snapshot extends ProxyOnlyResource { + /** + * @member {string} [time] The time the snapshot was taken. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly time?: string; +} + +/** + * @interface + * An interface representing ResourceMetricAvailability. + * Metrics availability and retention. + * + */ +export interface ResourceMetricAvailability { + /** + * @member {string} [timeGrain] Time grain . + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly timeGrain?: string; + /** + * @member {string} [retention] Retention period for the current time grain. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly retention?: string; +} + +/** + * @interface + * An interface representing ResourceMetricDefinition. + * Metadata for the metrics. + * + * @extends ProxyOnlyResource + */ +export interface ResourceMetricDefinition extends ProxyOnlyResource { + /** + * @member {string} [unit] Unit of the metric. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unit?: string; + /** + * @member {string} [primaryAggregationType] Primary aggregation type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly primaryAggregationType?: string; + /** + * @member {ResourceMetricAvailability[]} [metricAvailabilities] List of time + * grains supported for the metric together with retention period. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly metricAvailabilities?: ResourceMetricAvailability[]; + /** + * @member {string} [resourceUri] Resource URI. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceUri?: string; + /** + * @member {{ [propertyName: string]: string }} [properties] Resource metric + * definition properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly properties?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing PushSettings. + * Push settings for the App. + * + * @extends ProxyOnlyResource + */ +export interface PushSettings extends ProxyOnlyResource { + /** + * @member {boolean} isPushEnabled Gets or sets a flag indicating whether the + * Push endpoint is enabled. + */ + isPushEnabled: boolean; + /** + * @member {string} [tagWhitelistJson] Gets or sets a JSON string containing + * a list of tags that are whitelisted for use by the push registration + * endpoint. + */ + tagWhitelistJson?: string; + /** + * @member {string} [tagsRequiringAuth] Gets or sets a JSON string containing + * a list of tags that require user authentication to be used in the push + * registration endpoint. + * Tags can consist of alphanumeric characters and the following: + * '_', '@', '#', '.', ':', '-'. + * Validation should be performed at the PushRequestHandler. + */ + tagsRequiringAuth?: string; + /** + * @member {string} [dynamicTagsJson] Gets or sets a JSON string containing a + * list of dynamic tags that will be evaluated from user claims in the push + * registration endpoint. + */ + dynamicTagsJson?: string; +} + +/** + * @interface + * An interface representing Identifier. + * A domain specific resource identifier. + * + * @extends ProxyOnlyResource + */ +export interface Identifier extends ProxyOnlyResource { + /** + * @member {string} [identifierId] String representation of the identity. + */ + identifierId?: string; +} + +/** + * @interface + * An interface representing HybridConnectionKey. + * Hybrid Connection key contract. This has the send key name and value for a + * Hybrid Connection. + * + * @extends ProxyOnlyResource + */ +export interface HybridConnectionKey extends ProxyOnlyResource { + /** + * @member {string} [sendKeyName] The name of the send key. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sendKeyName?: string; + /** + * @member {string} [sendKeyValue] The value of the send key. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sendKeyValue?: string; +} + +/** + * @interface + * An interface representing HybridConnection. + * Hybrid Connection contract. This is used to configure a Hybrid Connection. + * + * @extends ProxyOnlyResource + */ +export interface HybridConnection extends ProxyOnlyResource { + /** + * @member {string} [serviceBusNamespace] The name of the Service Bus + * namespace. + */ + serviceBusNamespace?: string; + /** + * @member {string} [relayName] The name of the Service Bus relay. + */ + relayName?: string; + /** + * @member {string} [relayArmUri] The ARM URI to the Service Bus relay. + */ + relayArmUri?: string; + /** + * @member {string} [hostname] The hostname of the endpoint. + */ + hostname?: string; + /** + * @member {number} [port] The port of the endpoint. + */ + port?: number; + /** + * @member {string} [sendKeyName] The name of the Service Bus key which has + * Send permissions. This is used to authenticate to Service Bus. + */ + sendKeyName?: string; + /** + * @member {string} [sendKeyValue] The value of the Service Bus key. This is + * used to authenticate to Service Bus. In ARM this key will not be returned + * normally, use the POST /listKeys API instead. + */ + sendKeyValue?: string; + /** + * @member {string} [serviceBusSuffix] The suffix for the service bus + * endpoint. By default this is .servicebus.windows.net + */ + serviceBusSuffix?: string; +} + +/** + * @interface + * An interface representing DeletedSite. + * A deleted app. + * + * @extends ProxyOnlyResource + */ +export interface DeletedSite extends ProxyOnlyResource { + /** + * @member {number} [deletedSiteId] Numeric id for the deleted site + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deletedSiteId?: number; + /** + * @member {string} [deletedTimestamp] Time in UTC when the app was deleted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deletedTimestamp?: string; + /** + * @member {string} [subscription] Subscription containing the deleted site + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscription?: string; + /** + * @member {string} [resourceGroup] ResourceGroup that contained the deleted + * site + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {string} [deletedSiteName] Name of the deleted site + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deletedSiteName?: string; + /** + * @member {string} [slot] Slot of the deleted site + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly slot?: string; + /** + * @member {string} [deletedSiteKind] Kind of site that was deleted + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deletedSiteKind?: string; +} + +/** + * @interface + * An interface representing ManagedServiceIdentity. + * Managed service identity. + * + */ +export interface ManagedServiceIdentity { + /** + * @member {ManagedServiceIdentityType} [type] Type of managed service + * identity. Possible values include: 'SystemAssigned', 'UserAssigned' + */ + type?: ManagedServiceIdentityType; + /** + * @member {string} [tenantId] Tenant of managed service identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tenantId?: string; + /** + * @member {string} [principalId] Principal Id of managed service identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly principalId?: string; + /** + * @member {string[]} [identityIds] Array of UserAssigned managed service + * identities. + */ + identityIds?: string[]; +} + +/** + * @interface + * An interface representing SlotSwapStatus. + * The status of the last successfull slot swap operation. + * + */ +export interface SlotSwapStatus { + /** + * @member {Date} [timestampUtc] The time the last successful slot swap + * completed. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly timestampUtc?: Date; + /** + * @member {string} [sourceSlotName] The source slot of the last swap + * operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceSlotName?: string; + /** + * @member {string} [destinationSlotName] The destination slot of the last + * swap operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly destinationSlotName?: string; +} + +/** + * @interface + * An interface representing CloningInfo. + * Information needed for cloning operation. + * + */ +export interface CloningInfo { + /** + * @member {string} [correlationId] Correlation ID of cloning operation. This + * ID ties multiple cloning operations + * together to use the same snapshot. + */ + correlationId?: string; + /** + * @member {boolean} [overwrite] true to overwrite destination + * app; otherwise, false. + */ + overwrite?: boolean; + /** + * @member {boolean} [cloneCustomHostNames] true to clone custom + * hostnames from source app; otherwise, false. + */ + cloneCustomHostNames?: boolean; + /** + * @member {boolean} [cloneSourceControl] true to clone source + * control from source app; otherwise, false. + */ + cloneSourceControl?: boolean; + /** + * @member {string} sourceWebAppId ARM resource ID of the source app. App + * resource ID is of the form + * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} + * for production slots and + * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} + * for other slots. + */ + sourceWebAppId: string; + /** + * @member {string} [hostingEnvironment] App Service Environment. + */ + hostingEnvironment?: string; + /** + * @member {{ [propertyName: string]: string }} [appSettingsOverrides] + * Application setting overrides for cloned app. If specified, these settings + * override the settings cloned + * from source app. Otherwise, application settings from source app are + * retained. + */ + appSettingsOverrides?: { [propertyName: string]: string }; + /** + * @member {boolean} [configureLoadBalancing] true to configure + * load balancing for source and destination app. + */ + configureLoadBalancing?: boolean; + /** + * @member {string} [trafficManagerProfileId] ARM resource ID of the Traffic + * Manager profile to use, if it exists. Traffic Manager resource ID is of + * the form + * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}. + */ + trafficManagerProfileId?: string; + /** + * @member {string} [trafficManagerProfileName] Name of Traffic Manager + * profile to create. This is only needed if Traffic Manager profile does not + * already exist. + */ + trafficManagerProfileName?: string; +} + +/** + * @interface + * An interface representing HostingEnvironmentProfile. + * Specification for an App Service Environment to use for this resource. + * + */ +export interface HostingEnvironmentProfile { + /** + * @member {string} [id] Resource ID of the App Service Environment. + */ + id?: string; + /** + * @member {string} [name] Name of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing IpSecurityRestriction. + * IP security restriction on an app. + * + */ +export interface IpSecurityRestriction { + /** + * @member {string} ipAddress IP address the security restriction is valid + * for. + * It can be in form of pure ipv4 address (required SubnetMask property) or + * CIDR notation such as ipv4/mask (leading bit match). For CIDR, + * SubnetMask property must not be specified. + */ + ipAddress: string; + /** + * @member {string} [subnetMask] Subnet mask for the range of IP addresses + * the restriction is valid for. + */ + subnetMask?: string; + /** + * @member {string} [action] Allow or Deny access for this IP range. + */ + action?: string; + /** + * @member {IpFilterTag} [tag] Defines what this IP filter will be used for. + * This is to support IP filtering on proxies. Possible values include: + * 'Default', 'XffProxy' + */ + tag?: IpFilterTag; + /** + * @member {number} [priority] Priority of IP restriction rule. + */ + priority?: number; + /** + * @member {string} [name] IP restriction rule name. + */ + name?: string; + /** + * @member {string} [description] IP restriction rule description. + */ + description?: string; +} + +/** + * @interface + * An interface representing ApiDefinitionInfo. + * Information about the formal API definition for the app. + * + */ +export interface ApiDefinitionInfo { + /** + * @member {string} [url] The URL of the API definition. + */ + url?: string; +} + +/** + * @interface + * An interface representing CorsSettings. + * Cross-Origin Resource Sharing (CORS) settings for the app. + * + */ +export interface CorsSettings { + /** + * @member {string[]} [allowedOrigins] Gets or sets the list of origins that + * should be allowed to make cross-origin + * calls (for example: http://example.com:12345). Use "*" to allow all. + */ + allowedOrigins?: string[]; +} + +/** + * @interface + * An interface representing AutoHealCustomAction. + * Custom action to be executed + * when an auto heal rule is triggered. + * + */ +export interface AutoHealCustomAction { + /** + * @member {string} [exe] Executable to be run. + */ + exe?: string; + /** + * @member {string} [parameters] Parameters for the executable. + */ + parameters?: string; +} + +/** + * @interface + * An interface representing AutoHealActions. + * Actions which to take by the auto-heal module when a rule is triggered. + * + */ +export interface AutoHealActions { + /** + * @member {AutoHealActionType} [actionType] Predefined action to be taken. + * Possible values include: 'Recycle', 'LogEvent', 'CustomAction' + */ + actionType?: AutoHealActionType; + /** + * @member {AutoHealCustomAction} [customAction] Custom action to be taken. + */ + customAction?: AutoHealCustomAction; + /** + * @member {string} [minProcessExecutionTime] Minimum time the process must + * execute + * before taking the action + */ + minProcessExecutionTime?: string; +} + +/** + * @interface + * An interface representing SlowRequestsBasedTrigger. + * Trigger based on request execution time. + * + */ +export interface SlowRequestsBasedTrigger { + /** + * @member {string} [timeTaken] Time taken. + */ + timeTaken?: string; + /** + * @member {number} [count] Request Count. + */ + count?: number; + /** + * @member {string} [timeInterval] Time interval. + */ + timeInterval?: string; +} + +/** + * @interface + * An interface representing StatusCodesBasedTrigger. + * Trigger based on status code. + * + */ +export interface StatusCodesBasedTrigger { + /** + * @member {number} [status] HTTP status code. + */ + status?: number; + /** + * @member {number} [subStatus] Request Sub Status. + */ + subStatus?: number; + /** + * @member {number} [win32Status] Win32 error code. + */ + win32Status?: number; + /** + * @member {number} [count] Request Count. + */ + count?: number; + /** + * @member {string} [timeInterval] Time interval. + */ + timeInterval?: string; +} + +/** + * @interface + * An interface representing RequestsBasedTrigger. + * Trigger based on total requests. + * + */ +export interface RequestsBasedTrigger { + /** + * @member {number} [count] Request Count. + */ + count?: number; + /** + * @member {string} [timeInterval] Time interval. + */ + timeInterval?: string; +} + +/** + * @interface + * An interface representing AutoHealTriggers. + * Triggers for auto-heal. + * + */ +export interface AutoHealTriggers { + /** + * @member {RequestsBasedTrigger} [requests] A rule based on total requests. + */ + requests?: RequestsBasedTrigger; + /** + * @member {number} [privateBytesInKB] A rule based on private bytes. + */ + privateBytesInKB?: number; + /** + * @member {StatusCodesBasedTrigger[]} [statusCodes] A rule based on status + * codes. + */ + statusCodes?: StatusCodesBasedTrigger[]; + /** + * @member {SlowRequestsBasedTrigger} [slowRequests] A rule based on request + * execution time. + */ + slowRequests?: SlowRequestsBasedTrigger; +} + +/** + * @interface + * An interface representing AutoHealRules. + * Rules that can be defined for auto-heal. + * + */ +export interface AutoHealRules { + /** + * @member {AutoHealTriggers} [triggers] Conditions that describe when to + * execute the auto-heal actions. + */ + triggers?: AutoHealTriggers; + /** + * @member {AutoHealActions} [actions] Actions to be executed when a rule is + * triggered. + */ + actions?: AutoHealActions; +} + +/** + * @interface + * An interface representing SiteLimits. + * Metric limits set on an app. + * + */ +export interface SiteLimits { + /** + * @member {number} [maxPercentageCpu] Maximum allowed CPU usage percentage. + */ + maxPercentageCpu?: number; + /** + * @member {number} [maxMemoryInMb] Maximum allowed memory usage in MB. + */ + maxMemoryInMb?: number; + /** + * @member {number} [maxDiskSizeInMb] Maximum allowed disk size usage in MB. + */ + maxDiskSizeInMb?: number; +} + +/** + * @interface + * An interface representing RampUpRule. + * Routing rules for ramp up testing. This rule allows to redirect static + * traffic % to a slot or to gradually change routing % based on performance. + * + */ +export interface RampUpRule { + /** + * @member {string} [actionHostName] Hostname of a slot to which the traffic + * will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. + */ + actionHostName?: string; + /** + * @member {number} [reroutePercentage] Percentage of the traffic which will + * be redirected to ActionHostName. + */ + reroutePercentage?: number; + /** + * @member {number} [changeStep] In auto ramp up scenario this is the step to + * to add/remove from ReroutePercentage until it reaches + * MinReroutePercentage or MaxReroutePercentage. + * Site metrics are checked every N minutes specificed in + * ChangeIntervalInMinutes. + * Custom decision algorithm can be provided in TiPCallback site extension + * which URL can be specified in ChangeDecisionCallbackUrl. + */ + changeStep?: number; + /** + * @member {number} [changeIntervalInMinutes] Specifies interval in mimuntes + * to reevaluate ReroutePercentage. + */ + changeIntervalInMinutes?: number; + /** + * @member {number} [minReroutePercentage] Specifies lower boundary above + * which ReroutePercentage will stay. + */ + minReroutePercentage?: number; + /** + * @member {number} [maxReroutePercentage] Specifies upper boundary below + * which ReroutePercentage will stay. + */ + maxReroutePercentage?: number; + /** + * @member {string} [changeDecisionCallbackUrl] Custom decision algorithm can + * be provided in TiPCallback site extension which URL can be specified. See + * TiPCallback site extension for the scaffold and contracts. + * https://www.siteextensions.net/packages/TiPCallback/ + */ + changeDecisionCallbackUrl?: string; + /** + * @member {string} [name] Name of the routing rule. The recommended name + * would be to point to the slot which will receive the traffic in the + * experiment. + */ + name?: string; +} + +/** + * @interface + * An interface representing Experiments. + * Routing rules in production experiments. + * + */ +export interface Experiments { + /** + * @member {RampUpRule[]} [rampUpRules] List of ramp-up rules. + */ + rampUpRules?: RampUpRule[]; +} + +/** + * @interface + * An interface representing VirtualDirectory. + * Directory for virtual application. + * + */ +export interface VirtualDirectory { + /** + * @member {string} [virtualPath] Path to virtual application. + */ + virtualPath?: string; + /** + * @member {string} [physicalPath] Physical path. + */ + physicalPath?: string; +} + +/** + * @interface + * An interface representing VirtualApplication. + * Virtual application in an app. + * + */ +export interface VirtualApplication { + /** + * @member {string} [virtualPath] Virtual path. + */ + virtualPath?: string; + /** + * @member {string} [physicalPath] Physical path. + */ + physicalPath?: string; + /** + * @member {boolean} [preloadEnabled] true if preloading is + * enabled; otherwise, false. + */ + preloadEnabled?: boolean; + /** + * @member {VirtualDirectory[]} [virtualDirectories] Virtual directories for + * virtual application. + */ + virtualDirectories?: VirtualDirectory[]; +} + +/** + * @interface + * An interface representing HandlerMapping. + * The IIS handler mappings used to define which handler processes HTTP + * requests with certain extension. + * For example, it is used to configure php-cgi.exe process to handle all HTTP + * requests with *.php extension. + * + */ +export interface HandlerMapping { + /** + * @member {string} [extension] Requests with this extension will be handled + * using the specified FastCGI application. + */ + extension?: string; + /** + * @member {string} [scriptProcessor] The absolute path to the FastCGI + * application. + */ + scriptProcessor?: string; + /** + * @member {string} [argumentsProperty] Command-line arguments to be passed + * to the script processor. + */ + argumentsProperty?: string; +} + +/** + * @interface + * An interface representing SiteMachineKey. + * MachineKey of an app. + * + */ +export interface SiteMachineKey { + /** + * @member {string} [validation] MachineKey validation. + */ + validation?: string; + /** + * @member {string} [validationKey] Validation key. + */ + validationKey?: string; + /** + * @member {string} [decryption] Algorithm used for decryption. + */ + decryption?: string; + /** + * @member {string} [decryptionKey] Decryption key. + */ + decryptionKey?: string; +} + +/** + * @interface + * An interface representing ConnStringInfo. + * Database connection string information. + * + */ +export interface ConnStringInfo { + /** + * @member {string} [name] Name of connection string. + */ + name?: string; + /** + * @member {string} [connectionString] Connection string value. + */ + connectionString?: string; + /** + * @member {ConnectionStringType} [type] Type of database. Possible values + * include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom', 'NotificationHub', + * 'ServiceBus', 'EventHub', 'ApiHub', 'DocDb', 'RedisCache', 'PostgreSQL' + */ + type?: ConnectionStringType; +} + +/** + * @interface + * An interface representing AzureStorageInfoValue. + * Azure Files or Blob Storage access information value for dictionary storage. + * + */ +export interface AzureStorageInfoValue { + /** + * @member {AzureStorageType} [type] Type of storage. Possible values + * include: 'AzureFiles', 'AzureBlob' + */ + type?: AzureStorageType; + /** + * @member {string} [accountName] Name of the storage account. + */ + accountName?: string; + /** + * @member {string} [shareName] Name of the file share (container name, for + * Blob storage). + */ + shareName?: string; + /** + * @member {string} [accessKey] Access key for the storage account. + */ + accessKey?: string; + /** + * @member {string} [mountPath] Path to mount the storage within the site's + * runtime environment. + */ + mountPath?: string; + /** + * @member {AzureStorageState} [state] State of the storage account. Possible + * values include: 'Ok', 'InvalidCredentials', 'InvalidShare' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: AzureStorageState; +} + +/** + * @interface + * An interface representing NameValuePair. + * Name value pair. + * + */ +export interface NameValuePair { + /** + * @member {string} [name] Pair name. + */ + name?: string; + /** + * @member {string} [value] Pair value. + */ + value?: string; +} + +/** + * @interface + * An interface representing SiteConfig. + * Configuration of an App Service app. + * + */ +export interface SiteConfig { + /** + * @member {number} [numberOfWorkers] Number of workers. + */ + numberOfWorkers?: number; + /** + * @member {string[]} [defaultDocuments] Default documents. + */ + defaultDocuments?: string[]; + /** + * @member {string} [netFrameworkVersion] .NET Framework version. Default + * value: 'v4.6' . + */ + netFrameworkVersion?: string; + /** + * @member {string} [phpVersion] Version of PHP. + */ + phpVersion?: string; + /** + * @member {string} [pythonVersion] Version of Python. + */ + pythonVersion?: string; + /** + * @member {string} [nodeVersion] Version of Node.js. + */ + nodeVersion?: string; + /** + * @member {string} [linuxFxVersion] Linux App Framework and version + */ + linuxFxVersion?: string; + /** + * @member {string} [windowsFxVersion] Xenon App Framework and version + */ + windowsFxVersion?: string; + /** + * @member {boolean} [requestTracingEnabled] true if request + * tracing is enabled; otherwise, false. + */ + requestTracingEnabled?: boolean; + /** + * @member {Date} [requestTracingExpirationTime] Request tracing expiration + * time. + */ + requestTracingExpirationTime?: Date; + /** + * @member {boolean} [remoteDebuggingEnabled] true if remote + * debugging is enabled; otherwise, false. + */ + remoteDebuggingEnabled?: boolean; + /** + * @member {string} [remoteDebuggingVersion] Remote debugging version. + */ + remoteDebuggingVersion?: string; + /** + * @member {boolean} [httpLoggingEnabled] true if HTTP logging + * is enabled; otherwise, false. + */ + httpLoggingEnabled?: boolean; + /** + * @member {number} [logsDirectorySizeLimit] HTTP logs directory size limit. + */ + logsDirectorySizeLimit?: number; + /** + * @member {boolean} [detailedErrorLoggingEnabled] true if + * detailed error logging is enabled; otherwise, false. + */ + detailedErrorLoggingEnabled?: boolean; + /** + * @member {string} [publishingUsername] Publishing user name. + */ + publishingUsername?: string; + /** + * @member {NameValuePair[]} [appSettings] Application settings. + */ + appSettings?: NameValuePair[]; + /** + * @member {{ [propertyName: string]: AzureStorageInfoValue }} + * [azureStorageAccounts] User-provided Azure storage accounts. + */ + azureStorageAccounts?: { [propertyName: string]: AzureStorageInfoValue }; + /** + * @member {ConnStringInfo[]} [connectionStrings] Connection strings. + */ + connectionStrings?: ConnStringInfo[]; + /** + * @member {SiteMachineKey} [machineKey] Site MachineKey. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly machineKey?: SiteMachineKey; + /** + * @member {HandlerMapping[]} [handlerMappings] Handler mappings. + */ + handlerMappings?: HandlerMapping[]; + /** + * @member {string} [documentRoot] Document root. + */ + documentRoot?: string; + /** + * @member {ScmType} [scmType] SCM type. Possible values include: 'None', + * 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', + * 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', + * 'VSO' + */ + scmType?: ScmType; + /** + * @member {boolean} [use32BitWorkerProcess] true to use 32-bit + * worker process; otherwise, false. + */ + use32BitWorkerProcess?: boolean; + /** + * @member {boolean} [webSocketsEnabled] true if WebSocket is + * enabled; otherwise, false. + */ + webSocketsEnabled?: boolean; + /** + * @member {boolean} [alwaysOn] true if Always On is enabled; + * otherwise, false. + */ + alwaysOn?: boolean; + /** + * @member {string} [javaVersion] Java version. + */ + javaVersion?: string; + /** + * @member {string} [javaContainer] Java container. + */ + javaContainer?: string; + /** + * @member {string} [javaContainerVersion] Java container version. + */ + javaContainerVersion?: string; + /** + * @member {string} [appCommandLine] App command line to launch. + */ + appCommandLine?: string; + /** + * @member {ManagedPipelineMode} [managedPipelineMode] Managed pipeline mode. + * Possible values include: 'Integrated', 'Classic' + */ + managedPipelineMode?: ManagedPipelineMode; + /** + * @member {VirtualApplication[]} [virtualApplications] Virtual applications. + */ + virtualApplications?: VirtualApplication[]; + /** + * @member {SiteLoadBalancing} [loadBalancing] Site load balancing. Possible + * values include: 'WeightedRoundRobin', 'LeastRequests', + * 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' + */ + loadBalancing?: SiteLoadBalancing; + /** + * @member {Experiments} [experiments] This is work around for polymophic + * types. + */ + experiments?: Experiments; + /** + * @member {SiteLimits} [limits] Site limits. + */ + limits?: SiteLimits; + /** + * @member {boolean} [autoHealEnabled] true if Auto Heal is + * enabled; otherwise, false. + */ + autoHealEnabled?: boolean; + /** + * @member {AutoHealRules} [autoHealRules] Auto Heal rules. + */ + autoHealRules?: AutoHealRules; + /** + * @member {string} [tracingOptions] Tracing options. + */ + tracingOptions?: string; + /** + * @member {string} [vnetName] Virtual Network name. + */ + vnetName?: string; + /** + * @member {CorsSettings} [cors] Cross-Origin Resource Sharing (CORS) + * settings. + */ + cors?: CorsSettings; + /** + * @member {PushSettings} [push] Push endpoint settings. + */ + push?: PushSettings; + /** + * @member {ApiDefinitionInfo} [apiDefinition] Information about the formal + * API definition for the app. + */ + apiDefinition?: ApiDefinitionInfo; + /** + * @member {string} [autoSwapSlotName] Auto-swap slot name. + */ + autoSwapSlotName?: string; + /** + * @member {boolean} [localMySqlEnabled] true to enable local + * MySQL; otherwise, false. Default value: false . + */ + localMySqlEnabled?: boolean; + /** + * @member {number} [managedServiceIdentityId] Managed Service Identity Id + */ + managedServiceIdentityId?: number; + /** + * @member {number} [xManagedServiceIdentityId] Explicit Managed Service + * Identity Id + */ + xManagedServiceIdentityId?: number; + /** + * @member {IpSecurityRestriction[]} [ipSecurityRestrictions] IP security + * restrictions. + */ + ipSecurityRestrictions?: IpSecurityRestriction[]; + /** + * @member {boolean} [http20Enabled] Http20Enabled: configures a web site to + * allow clients to connect over http2.0. Default value: true . + */ + http20Enabled?: boolean; + /** + * @member {SupportedTlsVersions} [minTlsVersion] MinTlsVersion: configures + * the minimum version of TLS required for SSL requests. Possible values + * include: '1.0', '1.1', '1.2' + */ + minTlsVersion?: SupportedTlsVersions; + /** + * @member {FtpsState} [ftpsState] State of FTP / FTPS service. Possible + * values include: 'AllAllowed', 'FtpsOnly', 'Disabled' + */ + ftpsState?: FtpsState; + /** + * @member {number} [reservedInstanceCount] Number of reserved instances. + * This setting only applies to the Consumption Plan + */ + reservedInstanceCount?: number; +} + +/** + * @interface + * An interface representing HostNameSslState. + * SSL-enabled hostname. + * + */ +export interface HostNameSslState { + /** + * @member {string} [name] Hostname. + */ + name?: string; + /** + * @member {SslState} [sslState] SSL type. Possible values include: + * 'Disabled', 'SniEnabled', 'IpBasedEnabled' + */ + sslState?: SslState; + /** + * @member {string} [virtualIP] Virtual IP address assigned to the hostname + * if IP based SSL is enabled. + */ + virtualIP?: string; + /** + * @member {string} [thumbprint] SSL certificate thumbprint. + */ + thumbprint?: string; + /** + * @member {boolean} [toUpdate] Set to true to update existing + * hostname. + */ + toUpdate?: boolean; + /** + * @member {HostType} [hostType] Indicates whether the hostname is a standard + * or repository hostname. Possible values include: 'Standard', 'Repository' + */ + hostType?: HostType; +} + +/** + * @interface + * An interface representing Site. + * A web app, a mobile app backend, or an API app. + * + * @extends Resource + */ +export interface Site extends Resource { + /** + * @member {string} [state] Current state of the app. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: string; + /** + * @member {string[]} [hostNames] Hostnames associated with the app. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hostNames?: string[]; + /** + * @member {string} [repositorySiteName] Name of the repository site. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly repositorySiteName?: string; + /** + * @member {UsageState} [usageState] State indicating whether the app has + * exceeded its quota usage. Read-only. Possible values include: 'Normal', + * 'Exceeded' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly usageState?: UsageState; + /** + * @member {boolean} [enabled] true if the app is enabled; + * otherwise, false. Setting this value to false disables the + * app (takes the app offline). + */ + enabled?: boolean; + /** + * @member {string[]} [enabledHostNames] Enabled hostnames for the + * app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, + * the app is not served on those hostnames. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly enabledHostNames?: string[]; + /** + * @member {SiteAvailabilityState} [availabilityState] Management information + * availability state for the app. Possible values include: 'Normal', + * 'Limited', 'DisasterRecoveryMode' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly availabilityState?: SiteAvailabilityState; + /** + * @member {HostNameSslState[]} [hostNameSslStates] Hostname SSL states are + * used to manage the SSL bindings for app's hostnames. + */ + hostNameSslStates?: HostNameSslState[]; + /** + * @member {string} [serverFarmId] Resource ID of the associated App Service + * plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; + /** + * @member {boolean} [reserved] true if reserved; otherwise, + * false. Default value: false . + */ + reserved?: boolean; + /** + * @member {boolean} [isXenon] Obsolete: Hyper-V sandbox. Default value: + * false . + */ + isXenon?: boolean; + /** + * @member {boolean} [hyperV] Hyper-V sandbox. Default value: false . + */ + hyperV?: boolean; + /** + * @member {Date} [lastModifiedTimeUtc] Last time the app was modified, in + * UTC. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTimeUtc?: Date; + /** + * @member {SiteConfig} [siteConfig] Configuration of the app. + */ + siteConfig?: SiteConfig; + /** + * @member {string[]} [trafficManagerHostNames] Azure Traffic Manager + * hostnames associated with the app. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly trafficManagerHostNames?: string[]; + /** + * @member {boolean} [scmSiteAlsoStopped] true to stop SCM + * (KUDU) site when the app is stopped; otherwise, false. The + * default is false. Default value: false . + */ + scmSiteAlsoStopped?: boolean; + /** + * @member {string} [targetSwapSlot] Specifies which deployment slot this app + * will swap into. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetSwapSlot?: string; + /** + * @member {HostingEnvironmentProfile} [hostingEnvironmentProfile] App + * Service Environment to use for the app. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * @member {boolean} [clientAffinityEnabled] true to enable + * client affinity; false to stop sending session affinity + * cookies, which route client requests in the same session to the same + * instance. Default is true. + */ + clientAffinityEnabled?: boolean; + /** + * @member {boolean} [clientCertEnabled] true to enable client + * certificate authentication (TLS mutual authentication); otherwise, + * false. Default is false. + */ + clientCertEnabled?: boolean; + /** + * @member {boolean} [hostNamesDisabled] true to disable the + * public hostnames of the app; otherwise, false. + * If true, the app is only accessible via API management + * process. + */ + hostNamesDisabled?: boolean; + /** + * @member {string} [outboundIpAddresses] List of IP addresses that the app + * uses for outbound connections (e.g. database access). Includes VIPs from + * tenants that site can be hosted with current settings. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly outboundIpAddresses?: string; + /** + * @member {string} [possibleOutboundIpAddresses] List of IP addresses that + * the app uses for outbound connections (e.g. database access). Includes + * VIPs from all tenants. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly possibleOutboundIpAddresses?: string; + /** + * @member {number} [containerSize] Size of the function container. + */ + containerSize?: number; + /** + * @member {number} [dailyMemoryTimeQuota] Maximum allowed daily memory-time + * quota (applicable on dynamic apps only). + */ + dailyMemoryTimeQuota?: number; + /** + * @member {Date} [suspendedTill] App suspended till in case memory-time + * quota is exceeded. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly suspendedTill?: Date; + /** + * @member {number} [maxNumberOfWorkers] Maximum number of workers. + * This only applies to Functions container. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maxNumberOfWorkers?: number; + /** + * @member {CloningInfo} [cloningInfo] If specified during app creation, the + * app is cloned from a source app. + */ + cloningInfo?: CloningInfo; + /** + * @member {string} [resourceGroup] Name of the resource group the app + * belongs to. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {boolean} [isDefaultContainer] true if the app is a + * default container; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isDefaultContainer?: boolean; + /** + * @member {string} [defaultHostName] Default hostname of the app. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly defaultHostName?: string; + /** + * @member {SlotSwapStatus} [slotSwapStatus] Status of the last deployment + * slot swap operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly slotSwapStatus?: SlotSwapStatus; + /** + * @member {boolean} [httpsOnly] HttpsOnly: configures a web site to accept + * only https requests. Issues redirect for + * http requests + */ + httpsOnly?: boolean; + /** + * @member {ManagedServiceIdentity} [identity] + */ + identity?: ManagedServiceIdentity; +} + +/** + * @interface + * An interface representing Capability. + * Describes the capabilities/features allowed for a specific SKU. + * + */ +export interface Capability { + /** + * @member {string} [name] Name of the SKU capability. + */ + name?: string; + /** + * @member {string} [value] Value of the SKU capability. + */ + value?: string; + /** + * @member {string} [reason] Reason of the SKU capability. + */ + reason?: string; +} + +/** + * @interface + * An interface representing SkuCapacity. + * Description of the App Service plan scale options. + * + */ +export interface SkuCapacity { + /** + * @member {number} [minimum] Minimum number of workers for this App Service + * plan SKU. + */ + minimum?: number; + /** + * @member {number} [maximum] Maximum number of workers for this App Service + * plan SKU. + */ + maximum?: number; + /** + * @member {number} [default] Default number of workers for this App Service + * plan SKU. + */ + default?: number; + /** + * @member {string} [scaleType] Available scale configurations for an App + * Service plan. + */ + scaleType?: string; +} + +/** + * @interface + * An interface representing SkuDescription. + * Description of a SKU for a scalable resource. + * + */ +export interface SkuDescription { + /** + * @member {string} [name] Name of the resource SKU. + */ + name?: string; + /** + * @member {string} [tier] Service tier of the resource SKU. + */ + tier?: string; + /** + * @member {string} [size] Size specifier of the resource SKU. + */ + size?: string; + /** + * @member {string} [family] Family code of the resource SKU. + */ + family?: string; + /** + * @member {number} [capacity] Current number of instances assigned to the + * resource. + */ + capacity?: number; + /** + * @member {SkuCapacity} [skuCapacity] Min, max, and default scale values of + * the SKU. + */ + skuCapacity?: SkuCapacity; + /** + * @member {string[]} [locations] Locations of the SKU. + */ + locations?: string[]; + /** + * @member {Capability[]} [capabilities] Capabilities of the SKU, e.g., is + * traffic manager enabled? + */ + capabilities?: Capability[]; +} + +/** + * @interface + * An interface representing AppServicePlan. + * App Service plan. + * + * @extends Resource + */ +export interface AppServicePlan extends Resource { + /** + * @member {string} [workerTierName] Target worker tier assigned to the App + * Service plan. + */ + workerTierName?: string; + /** + * @member {StatusOptions} [status] App Service plan status. Possible values + * include: 'Ready', 'Pending', 'Creating' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: StatusOptions; + /** + * @member {string} [subscription] App Service plan subscription. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscription?: string; + /** + * @member {string} [adminSiteName] App Service plan administration site. + */ + adminSiteName?: string; + /** + * @member {HostingEnvironmentProfile} [hostingEnvironmentProfile] + * Specification for the App Service Environment to use for the App Service + * plan. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * @member {number} [maximumNumberOfWorkers] Maximum number of instances that + * can be assigned to this App Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximumNumberOfWorkers?: number; + /** + * @member {string} [geoRegion] Geographical location for the App Service + * plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly geoRegion?: string; + /** + * @member {boolean} [perSiteScaling] If true, apps assigned to + * this App Service plan can be scaled independently. + * If false, apps assigned to this App Service plan will scale + * to all instances of the plan. Default value: false . + */ + perSiteScaling?: boolean; + /** + * @member {number} [maximumElasticWorkerCount] Maximum number of total + * workers allowed for this ElasticScaleEnabled App Service Plan + */ + maximumElasticWorkerCount?: number; + /** + * @member {number} [numberOfSites] Number of apps assigned to this App + * Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly numberOfSites?: number; + /** + * @member {boolean} [isSpot] If true, this App Service Plan + * owns spot instances. + */ + isSpot?: boolean; + /** + * @member {Date} [spotExpirationTime] The time when the server farm expires. + * Valid only if it is a spot server farm. + */ + spotExpirationTime?: Date; + /** + * @member {Date} [freeOfferExpirationTime] The time when the server farm + * free offer expires. + */ + freeOfferExpirationTime?: Date; + /** + * @member {string} [resourceGroup] Resource group of the App Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {boolean} [reserved] If Linux app service plan true, + * false otherwise. Default value: false . + */ + reserved?: boolean; + /** + * @member {boolean} [isXenon] Obsolete: If Hyper-V container app service + * plan true, false otherwise. Default value: false + * . + */ + isXenon?: boolean; + /** + * @member {boolean} [hyperV] If Hyper-V container app service plan + * true, false otherwise. Default value: false . + */ + hyperV?: boolean; + /** + * @member {number} [targetWorkerCount] Scaling worker count. + */ + targetWorkerCount?: number; + /** + * @member {number} [targetWorkerSizeId] Scaling worker size ID. + */ + targetWorkerSizeId?: number; + /** + * @member {ProvisioningState} [provisioningState] Provisioning state of the + * App Service Environment. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {SkuDescription} [sku] + */ + sku?: SkuDescription; +} + +/** + * @interface + * An interface representing DefaultErrorResponseErrorDetailsItem. + * Detailed errors. + * + */ +export interface DefaultErrorResponseErrorDetailsItem { + /** + * @member {string} [code] Standardized string to programmatically identify + * the error. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly code?: string; + /** + * @member {string} [message] Detailed error description and debugging + * information. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly message?: string; + /** + * @member {string} [target] Detailed error description and debugging + * information. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly target?: string; +} + +/** + * @interface + * An interface representing DefaultErrorResponseError. + * Error model. + * + */ +export interface DefaultErrorResponseError { + /** + * @member {string} [code] Standardized string to programmatically identify + * the error. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly code?: string; + /** + * @member {string} [message] Detailed error description and debugging + * information. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly message?: string; + /** + * @member {string} [target] Detailed error description and debugging + * information. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly target?: string; + /** + * @member {DefaultErrorResponseErrorDetailsItem[]} [details] + */ + details?: DefaultErrorResponseErrorDetailsItem[]; + /** + * @member {string} [innererror] More information to debug error. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly innererror?: string; +} + +/** + * @interface + * An interface representing DefaultErrorResponse. + * App Service error response. + * + */ +export interface DefaultErrorResponse { + /** + * @member {DefaultErrorResponseError} [error] Error model. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly error?: DefaultErrorResponseError; +} + +/** + * @interface + * An interface representing NameIdentifier. + * Identifies an object. + * + */ +export interface NameIdentifier { + /** + * @member {string} [name] Name of the object. + */ + name?: string; +} + +/** + * @interface + * An interface representing LogSpecification. + * Log Definition of a single resource metric. + * + */ +export interface LogSpecification { + /** + * @member {string} [name] + */ + name?: string; + /** + * @member {string} [displayName] + */ + displayName?: string; + /** + * @member {string} [blobDuration] + */ + blobDuration?: string; +} + +/** + * @interface + * An interface representing MetricAvailability. + * Retention policy of a resource metric. + * + */ +export interface MetricAvailability { + /** + * @member {string} [timeGrain] + */ + timeGrain?: string; + /** + * @member {string} [blobDuration] + */ + blobDuration?: string; +} + +/** + * @interface + * An interface representing Dimension. + * Dimension of a resource metric. For e.g. instance specific HTTP requests for + * a web app, + * where instance name is dimension of the metric HTTP request + * + */ +export interface Dimension { + /** + * @member {string} [name] + */ + name?: string; + /** + * @member {string} [displayName] + */ + displayName?: string; + /** + * @member {string} [internalName] + */ + internalName?: string; + /** + * @member {boolean} [toBeExportedForShoebox] + */ + toBeExportedForShoebox?: boolean; +} + +/** + * @interface + * An interface representing MetricSpecification. + * Definition of a single resource metric. + * + */ +export interface MetricSpecification { + /** + * @member {string} [name] + */ + name?: string; + /** + * @member {string} [displayName] + */ + displayName?: string; + /** + * @member {string} [displayDescription] + */ + displayDescription?: string; + /** + * @member {string} [unit] + */ + unit?: string; + /** + * @member {string} [aggregationType] + */ + aggregationType?: string; + /** + * @member {boolean} [supportsInstanceLevelAggregation] + */ + supportsInstanceLevelAggregation?: boolean; + /** + * @member {boolean} [enableRegionalMdmAccount] + */ + enableRegionalMdmAccount?: boolean; + /** + * @member {string} [sourceMdmAccount] + */ + sourceMdmAccount?: string; + /** + * @member {string} [sourceMdmNamespace] + */ + sourceMdmNamespace?: string; + /** + * @member {string} [metricFilterPattern] + */ + metricFilterPattern?: string; + /** + * @member {boolean} [fillGapWithZero] + */ + fillGapWithZero?: boolean; + /** + * @member {boolean} [isInternal] + */ + isInternal?: boolean; + /** + * @member {Dimension[]} [dimensions] + */ + dimensions?: Dimension[]; + /** + * @member {string} [category] + */ + category?: string; + /** + * @member {MetricAvailability[]} [availabilities] + */ + availabilities?: MetricAvailability[]; +} + +/** + * @interface + * An interface representing ServiceSpecification. + * Resource metrics service provided by Microsoft.Insights resource provider. + * + */ +export interface ServiceSpecification { + /** + * @member {MetricSpecification[]} [metricSpecifications] + */ + metricSpecifications?: MetricSpecification[]; + /** + * @member {LogSpecification[]} [logSpecifications] + */ + logSpecifications?: LogSpecification[]; +} + +/** + * @interface + * An interface representing CsmOperationDescriptionProperties. + * Properties available for a Microsoft.Web resource provider operation. + * + */ +export interface CsmOperationDescriptionProperties { + /** + * @member {ServiceSpecification} [serviceSpecification] + */ + serviceSpecification?: ServiceSpecification; +} + +/** + * @interface + * An interface representing CsmOperationDisplay. + * Meta data about operation used for display in portal. + * + */ +export interface CsmOperationDisplay { + /** + * @member {string} [provider] + */ + provider?: string; + /** + * @member {string} [resource] + */ + resource?: string; + /** + * @member {string} [operation] + */ + operation?: string; + /** + * @member {string} [description] + */ + description?: string; +} + +/** + * @interface + * An interface representing CsmOperationDescription. + * Description of an operation available for Microsoft.Web resource provider. + * + */ +export interface CsmOperationDescription { + /** + * @member {string} [name] + */ + name?: string; + /** + * @member {CsmOperationDisplay} [display] + */ + display?: CsmOperationDisplay; + /** + * @member {string} [origin] + */ + origin?: string; + /** + * @member {CsmOperationDescriptionProperties} [properties] + */ + properties?: CsmOperationDescriptionProperties; +} + +/** + * @interface + * An interface representing Address. + * Address information for domain registration. + * + */ +export interface Address { + /** + * @member {string} address1 First line of an Address. + */ + address1: string; + /** + * @member {string} [address2] The second line of the Address. Optional. + */ + address2?: string; + /** + * @member {string} city The city for the address. + */ + city: string; + /** + * @member {string} country The country for the address. + */ + country: string; + /** + * @member {string} postalCode The postal code for the address. + */ + postalCode: string; + /** + * @member {string} state The state or province for the address. + */ + state: string; +} + +/** + * @interface + * An interface representing Contact. + * Contact information for domain registration. If 'Domain Privacy' option is + * not selected then the contact information is made publicly available through + * the Whois + * directories as per ICANN requirements. + * + */ +export interface Contact { + /** + * @member {Address} [addressMailing] Mailing address. + */ + addressMailing?: Address; + /** + * @member {string} email Email address. + */ + email: string; + /** + * @member {string} [fax] Fax number. + */ + fax?: string; + /** + * @member {string} [jobTitle] Job title. + */ + jobTitle?: string; + /** + * @member {string} nameFirst First name. + */ + nameFirst: string; + /** + * @member {string} nameLast Last name. + */ + nameLast: string; + /** + * @member {string} [nameMiddle] Middle name. + */ + nameMiddle?: string; + /** + * @member {string} [organization] Organization contact belongs to. + */ + organization?: string; + /** + * @member {string} phone Phone number. + */ + phone: string; +} + +/** + * @interface + * An interface representing HostName. + * Details of a hostname derived from a domain. + * + */ +export interface HostName { + /** + * @member {string} [name] Name of the hostname. + */ + name?: string; + /** + * @member {string[]} [siteNames] List of apps the hostname is assigned to. + * This list will have more than one app only if the hostname is pointing to + * a Traffic Manager. + */ + siteNames?: string[]; + /** + * @member {string} [azureResourceName] Name of the Azure resource the + * hostname is assigned to. If it is assigned to a Traffic Manager then it + * will be the Traffic Manager name otherwise it will be the app name. + */ + azureResourceName?: string; + /** + * @member {AzureResourceType} [azureResourceType] Type of the Azure resource + * the hostname is assigned to. Possible values include: 'Website', + * 'TrafficManager' + */ + azureResourceType?: AzureResourceType; + /** + * @member {CustomHostNameDnsRecordType} [customHostNameDnsRecordType] Type + * of the DNS record. Possible values include: 'CName', 'A' + */ + customHostNameDnsRecordType?: CustomHostNameDnsRecordType; + /** + * @member {HostNameType} [hostNameType] Type of the hostname. Possible + * values include: 'Verified', 'Managed' + */ + hostNameType?: HostNameType; +} + +/** + * @interface + * An interface representing DomainPurchaseConsent. + * Domain purchase consent object, representing acceptance of applicable legal + * agreements. + * + */ +export interface DomainPurchaseConsent { + /** + * @member {string[]} [agreementKeys] List of applicable legal agreement + * keys. This list can be retrieved using ListLegalAgreements API under + * TopLevelDomain resource. + */ + agreementKeys?: string[]; + /** + * @member {string} [agreedBy] Client IP address. + */ + agreedBy?: string; + /** + * @member {Date} [agreedAt] Timestamp when the agreements were accepted. + */ + agreedAt?: Date; +} + +/** + * @interface + * An interface representing Domain. + * Information about a domain. + * + * @extends Resource + */ +export interface Domain extends Resource { + /** + * @member {Contact} contactAdmin Administrative contact. + */ + contactAdmin: Contact; + /** + * @member {Contact} contactBilling Billing contact. + */ + contactBilling: Contact; + /** + * @member {Contact} contactRegistrant Registrant contact. + */ + contactRegistrant: Contact; + /** + * @member {Contact} contactTech Technical contact. + */ + contactTech: Contact; + /** + * @member {DomainStatus} [registrationStatus] Domain registration status. + * Possible values include: 'Active', 'Awaiting', 'Cancelled', 'Confiscated', + * 'Disabled', 'Excluded', 'Expired', 'Failed', 'Held', 'Locked', 'Parked', + * 'Pending', 'Reserved', 'Reverted', 'Suspended', 'Transferred', 'Unknown', + * 'Unlocked', 'Unparked', 'Updated', 'JsonConverterFailed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly registrationStatus?: DomainStatus; + /** + * @member {ProvisioningState} [provisioningState] Domain provisioning state. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', + * 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {string[]} [nameServers] Name servers. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nameServers?: string[]; + /** + * @member {boolean} [privacy] true if domain privacy is enabled + * for this domain; otherwise, false. + */ + privacy?: boolean; + /** + * @member {Date} [createdTime] Domain creation timestamp. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly createdTime?: Date; + /** + * @member {Date} [expirationTime] Domain expiration timestamp. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expirationTime?: Date; + /** + * @member {Date} [lastRenewedTime] Timestamp when the domain was renewed + * last time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastRenewedTime?: Date; + /** + * @member {boolean} [autoRenew] true if the domain should be + * automatically renewed; otherwise, false. Default value: true + * . + */ + autoRenew?: boolean; + /** + * @member {boolean} [readyForDnsRecordManagement] true if Azure + * can assign this domain to App Service apps; otherwise, false. + * This value will be true if domain registration status is + * active and + * it is hosted on name servers Azure has programmatic access to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly readyForDnsRecordManagement?: boolean; + /** + * @member {HostName[]} [managedHostNames] All hostnames derived from the + * domain and assigned to Azure resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly managedHostNames?: HostName[]; + /** + * @member {DomainPurchaseConsent} consent Legal agreement consent. + */ + consent: DomainPurchaseConsent; + /** + * @member {string[]} [domainNotRenewableReasons] Reasons why domain is not + * renewable. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly domainNotRenewableReasons?: string[]; + /** + * @member {DnsType} [dnsType] Current DNS type. Possible values include: + * 'AzureDns', 'DefaultDomainRegistrarDns' + */ + dnsType?: DnsType; + /** + * @member {string} [dnsZoneId] Azure DNS Zone to use + */ + dnsZoneId?: string; + /** + * @member {DnsType} [targetDnsType] Target DNS type (would be used for + * migration). Possible values include: 'AzureDns', + * 'DefaultDomainRegistrarDns' + */ + targetDnsType?: DnsType; + /** + * @member {string} [authCode] + */ + authCode?: string; +} + +/** + * @interface + * An interface representing DomainAvailablilityCheckResult. + * Domain availablility check result. + * + */ +export interface DomainAvailablilityCheckResult { + /** + * @member {string} [name] Name of the domain. + */ + name?: string; + /** + * @member {boolean} [available] true if domain can be purchased + * using CreateDomain API; otherwise, false. + */ + available?: boolean; + /** + * @member {DomainType} [domainType] Valid values are Regular domain: Azure + * will charge the full price of domain registration, SoftDeleted: Purchasing + * this domain will simply restore it and this operation will not cost + * anything. Possible values include: 'Regular', 'SoftDeleted' + */ + domainType?: DomainType; +} + +/** + * @interface + * An interface representing DomainControlCenterSsoRequest. + * Single sign-on request information for domain management. + * + */ +export interface DomainControlCenterSsoRequest { + /** + * @member {string} [url] URL where the single sign-on request is to be made. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly url?: string; + /** + * @member {string} [postParameterKey] Post parameter key. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly postParameterKey?: string; + /** + * @member {string} [postParameterValue] Post parameter value. Client should + * use 'application/x-www-form-urlencoded' encoding for this value. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly postParameterValue?: string; +} + +/** + * @interface + * An interface representing DomainOwnershipIdentifier. + * Domain ownership Identifier. + * + * @extends ProxyOnlyResource + */ +export interface DomainOwnershipIdentifier extends ProxyOnlyResource { + /** + * @member {string} [ownershipId] Ownership Id. + */ + ownershipId?: string; +} + +/** + * @interface + * An interface representing DomainPatchResource. + * ARM resource for a domain. + * + * @extends ProxyOnlyResource + */ +export interface DomainPatchResource extends ProxyOnlyResource { + /** + * @member {Contact} contactAdmin Administrative contact. + */ + contactAdmin: Contact; + /** + * @member {Contact} contactBilling Billing contact. + */ + contactBilling: Contact; + /** + * @member {Contact} contactRegistrant Registrant contact. + */ + contactRegistrant: Contact; + /** + * @member {Contact} contactTech Technical contact. + */ + contactTech: Contact; + /** + * @member {DomainStatus} [registrationStatus] Domain registration status. + * Possible values include: 'Active', 'Awaiting', 'Cancelled', 'Confiscated', + * 'Disabled', 'Excluded', 'Expired', 'Failed', 'Held', 'Locked', 'Parked', + * 'Pending', 'Reserved', 'Reverted', 'Suspended', 'Transferred', 'Unknown', + * 'Unlocked', 'Unparked', 'Updated', 'JsonConverterFailed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly registrationStatus?: DomainStatus; + /** + * @member {ProvisioningState} [provisioningState] Domain provisioning state. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', + * 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {string[]} [nameServers] Name servers. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nameServers?: string[]; + /** + * @member {boolean} [privacy] true if domain privacy is enabled + * for this domain; otherwise, false. + */ + privacy?: boolean; + /** + * @member {Date} [createdTime] Domain creation timestamp. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly createdTime?: Date; + /** + * @member {Date} [expirationTime] Domain expiration timestamp. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expirationTime?: Date; + /** + * @member {Date} [lastRenewedTime] Timestamp when the domain was renewed + * last time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastRenewedTime?: Date; + /** + * @member {boolean} [autoRenew] true if the domain should be + * automatically renewed; otherwise, false. Default value: true + * . + */ + autoRenew?: boolean; + /** + * @member {boolean} [readyForDnsRecordManagement] true if Azure + * can assign this domain to App Service apps; otherwise, false. + * This value will be true if domain registration status is + * active and + * it is hosted on name servers Azure has programmatic access to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly readyForDnsRecordManagement?: boolean; + /** + * @member {HostName[]} [managedHostNames] All hostnames derived from the + * domain and assigned to Azure resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly managedHostNames?: HostName[]; + /** + * @member {DomainPurchaseConsent} consent Legal agreement consent. + */ + consent: DomainPurchaseConsent; + /** + * @member {string[]} [domainNotRenewableReasons] Reasons why domain is not + * renewable. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly domainNotRenewableReasons?: string[]; + /** + * @member {DnsType} [dnsType] Current DNS type. Possible values include: + * 'AzureDns', 'DefaultDomainRegistrarDns' + */ + dnsType?: DnsType; + /** + * @member {string} [dnsZoneId] Azure DNS Zone to use + */ + dnsZoneId?: string; + /** + * @member {DnsType} [targetDnsType] Target DNS type (would be used for + * migration). Possible values include: 'AzureDns', + * 'DefaultDomainRegistrarDns' + */ + targetDnsType?: DnsType; + /** + * @member {string} [authCode] + */ + authCode?: string; +} + +/** + * @interface + * An interface representing DomainRecommendationSearchParameters. + * Domain recommendation search parameters. + * + */ +export interface DomainRecommendationSearchParameters { + /** + * @member {string} [keywords] Keywords to be used for generating domain + * recommendations. + */ + keywords?: string; + /** + * @member {number} [maxDomainRecommendations] Maximum number of + * recommendations. + */ + maxDomainRecommendations?: number; +} + +/** + * @interface + * An interface representing TldLegalAgreement. + * Legal agreement for a top level domain. + * + */ +export interface TldLegalAgreement { + /** + * @member {string} agreementKey Unique identifier for the agreement. + */ + agreementKey: string; + /** + * @member {string} title Agreement title. + */ + title: string; + /** + * @member {string} content Agreement details. + */ + content: string; + /** + * @member {string} [url] URL where a copy of the agreement details is + * hosted. + */ + url?: string; +} + +/** + * @interface + * An interface representing TopLevelDomain. + * A top level domain object. + * + * @extends ProxyOnlyResource + */ +export interface TopLevelDomain extends ProxyOnlyResource { + /** + * @member {boolean} [privacy] If true, then the top level + * domain supports domain privacy; otherwise, false. + */ + privacy?: boolean; +} + +/** + * @interface + * An interface representing TopLevelDomainAgreementOption. + * Options for retrieving the list of top level domain legal agreements. + * + */ +export interface TopLevelDomainAgreementOption { + /** + * @member {boolean} [includePrivacy] If true, then the list of + * agreements will include agreements for domain privacy as well; otherwise, + * false. + */ + includePrivacy?: boolean; + /** + * @member {boolean} [forTransfer] If true, then the list of + * agreements will include agreements for domain transfer as well; otherwise, + * false. + */ + forTransfer?: boolean; +} + +/** + * @interface + * An interface representing Certificate. + * SSL certificate for an app. + * + * @extends Resource + */ +export interface Certificate extends Resource { + /** + * @member {string} [friendlyName] Friendly name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly friendlyName?: string; + /** + * @member {string} [subjectName] Subject name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subjectName?: string; + /** + * @member {string[]} [hostNames] Host names the certificate applies to. + */ + hostNames?: string[]; + /** + * @member {Uint8Array} [pfxBlob] Pfx blob. + */ + pfxBlob?: Uint8Array; + /** + * @member {string} [siteName] App name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly siteName?: string; + /** + * @member {string} [selfLink] Self link. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly selfLink?: string; + /** + * @member {string} [issuer] Certificate issuer. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly issuer?: string; + /** + * @member {Date} [issueDate] Certificate issue Date. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly issueDate?: Date; + /** + * @member {Date} [expirationDate] Certificate expriration date. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expirationDate?: Date; + /** + * @member {string} password Certificate password. + */ + password: string; + /** + * @member {string} [thumbprint] Certificate thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly thumbprint?: string; + /** + * @member {boolean} [valid] Is the certificate valid?. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly valid?: boolean; + /** + * @member {Uint8Array} [cerBlob] Raw bytes of .cer file + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly cerBlob?: Uint8Array; + /** + * @member {string} [publicKeyHash] Public key hash. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly publicKeyHash?: string; + /** + * @member {HostingEnvironmentProfile} [hostingEnvironmentProfile] + * Specification for the App Service Environment to use for the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * @member {string} [keyVaultId] Key Vault Csm resource Id. + */ + keyVaultId?: string; + /** + * @member {string} [keyVaultSecretName] Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * @member {KeyVaultSecretStatus} [keyVaultSecretStatus] Status of the Key + * Vault secret. Possible values include: 'Initialized', + * 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', + * 'OperationNotPermittedOnKeyVault', + * 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + * 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly keyVaultSecretStatus?: KeyVaultSecretStatus; + /** + * @member {string} [serverFarmId] Resource ID of the associated App Service + * plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; +} + +/** + * @interface + * An interface representing CertificatePatchResource. + * ARM resource for a certificate. + * + * @extends ProxyOnlyResource + */ +export interface CertificatePatchResource extends ProxyOnlyResource { + /** + * @member {string} [friendlyName] Friendly name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly friendlyName?: string; + /** + * @member {string} [subjectName] Subject name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subjectName?: string; + /** + * @member {string[]} [hostNames] Host names the certificate applies to. + */ + hostNames?: string[]; + /** + * @member {Uint8Array} [pfxBlob] Pfx blob. + */ + pfxBlob?: Uint8Array; + /** + * @member {string} [siteName] App name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly siteName?: string; + /** + * @member {string} [selfLink] Self link. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly selfLink?: string; + /** + * @member {string} [issuer] Certificate issuer. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly issuer?: string; + /** + * @member {Date} [issueDate] Certificate issue Date. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly issueDate?: Date; + /** + * @member {Date} [expirationDate] Certificate expriration date. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expirationDate?: Date; + /** + * @member {string} password Certificate password. + */ + password: string; + /** + * @member {string} [thumbprint] Certificate thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly thumbprint?: string; + /** + * @member {boolean} [valid] Is the certificate valid?. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly valid?: boolean; + /** + * @member {Uint8Array} [cerBlob] Raw bytes of .cer file + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly cerBlob?: Uint8Array; + /** + * @member {string} [publicKeyHash] Public key hash. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly publicKeyHash?: string; + /** + * @member {HostingEnvironmentProfile} [hostingEnvironmentProfile] + * Specification for the App Service Environment to use for the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * @member {string} [keyVaultId] Key Vault Csm resource Id. + */ + keyVaultId?: string; + /** + * @member {string} [keyVaultSecretName] Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * @member {KeyVaultSecretStatus} [keyVaultSecretStatus] Status of the Key + * Vault secret. Possible values include: 'Initialized', + * 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', + * 'OperationNotPermittedOnKeyVault', + * 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + * 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly keyVaultSecretStatus?: KeyVaultSecretStatus; + /** + * @member {string} [serverFarmId] Resource ID of the associated App Service + * plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; +} + +/** + * @interface + * An interface representing VirtualNetworkProfile. + * Specification for using a Virtual Network. + * + */ +export interface VirtualNetworkProfile { + /** + * @member {string} [id] Resource id of the Virtual Network. + */ + id?: string; + /** + * @member {string} [name] Name of the Virtual Network (read-only). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type of the Virtual Network (read-only). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [subnet] Subnet within the Virtual Network. + */ + subnet?: string; +} + +/** + * @interface + * An interface representing WorkerPool. + * Worker pool of an App Service Environment. + * + */ +export interface WorkerPool { + /** + * @member {number} [workerSizeId] Worker size ID for referencing this worker + * pool. + */ + workerSizeId?: number; + /** + * @member {ComputeModeOptions} [computeMode] Shared or dedicated app + * hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + */ + computeMode?: ComputeModeOptions; + /** + * @member {string} [workerSize] VM size of the worker pool instances. + */ + workerSize?: string; + /** + * @member {number} [workerCount] Number of instances in the worker pool. + */ + workerCount?: number; + /** + * @member {string[]} [instanceNames] Names of all instances in the worker + * pool (read only). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly instanceNames?: string[]; +} + +/** + * @interface + * An interface representing VirtualIPMapping. + * Virtual IP mapping. + * + */ +export interface VirtualIPMapping { + /** + * @member {string} [virtualIP] Virtual IP address. + */ + virtualIP?: string; + /** + * @member {number} [internalHttpPort] Internal HTTP port. + */ + internalHttpPort?: number; + /** + * @member {number} [internalHttpsPort] Internal HTTPS port. + */ + internalHttpsPort?: number; + /** + * @member {boolean} [inUse] Is virtual IP mapping in use. + */ + inUse?: boolean; +} + +/** + * @interface + * An interface representing StampCapacity. + * Stamp capacity information. + * + */ +export interface StampCapacity { + /** + * @member {string} [name] Name of the stamp. + */ + name?: string; + /** + * @member {number} [availableCapacity] Available capacity (# of machines, + * bytes of storage etc...). + */ + availableCapacity?: number; + /** + * @member {number} [totalCapacity] Total capacity (# of machines, bytes of + * storage etc...). + */ + totalCapacity?: number; + /** + * @member {string} [unit] Name of the unit. + */ + unit?: string; + /** + * @member {ComputeModeOptions} [computeMode] Shared/dedicated workers. + * Possible values include: 'Shared', 'Dedicated', 'Dynamic' + */ + computeMode?: ComputeModeOptions; + /** + * @member {WorkerSizeOptions} [workerSize] Size of the machines. Possible + * values include: 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default' + */ + workerSize?: WorkerSizeOptions; + /** + * @member {number} [workerSizeId] Size ID of machines: + * 0 - Small + * 1 - Medium + * 2 - Large + */ + workerSizeId?: number; + /** + * @member {boolean} [excludeFromCapacityAllocation] If true, it + * includes basic apps. + * Basic apps are not used for capacity allocation. + */ + excludeFromCapacityAllocation?: boolean; + /** + * @member {boolean} [isApplicableForAllComputeModes] true if + * capacity is applicable for all apps; otherwise, false. + */ + isApplicableForAllComputeModes?: boolean; + /** + * @member {string} [siteMode] Shared or Dedicated. + */ + siteMode?: string; + /** + * @member {boolean} [isLinux] Is this a linux stamp capacity + */ + isLinux?: boolean; +} + +/** + * @interface + * An interface representing NetworkAccessControlEntry. + * Network access control entry. + * + */ +export interface NetworkAccessControlEntry { + /** + * @member {AccessControlEntryAction} [action] Action object. Possible values + * include: 'Permit', 'Deny' + */ + action?: AccessControlEntryAction; + /** + * @member {string} [description] Description of network access control + * entry. + */ + description?: string; + /** + * @member {number} [order] Order of precedence. + */ + order?: number; + /** + * @member {string} [remoteSubnet] Remote subnet. + */ + remoteSubnet?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironment. + * Description of an App Service Environment. + * + */ +export interface AppServiceEnvironment { + /** + * @member {string} name Name of the App Service Environment. + */ + name: string; + /** + * @member {string} location Location of the App Service Environment, e.g. + * "West US". + */ + location: string; + /** + * @member {ProvisioningState} [provisioningState] Provisioning state of the + * App Service Environment. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {HostingEnvironmentStatus} [status] Current status of the App + * Service Environment. Possible values include: 'Preparing', 'Ready', + * 'Scaling', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: HostingEnvironmentStatus; + /** + * @member {string} [vnetName] Name of the Virtual Network for the App + * Service Environment. + */ + vnetName?: string; + /** + * @member {string} [vnetResourceGroupName] Resource group of the Virtual + * Network. + */ + vnetResourceGroupName?: string; + /** + * @member {string} [vnetSubnetName] Subnet of the Virtual Network. + */ + vnetSubnetName?: string; + /** + * @member {VirtualNetworkProfile} virtualNetwork Description of the Virtual + * Network. + */ + virtualNetwork: VirtualNetworkProfile; + /** + * @member {InternalLoadBalancingMode} [internalLoadBalancingMode] Specifies + * which endpoints to serve internally in the Virtual Network for the App + * Service Environment. Possible values include: 'None', 'Web', 'Publishing' + */ + internalLoadBalancingMode?: InternalLoadBalancingMode; + /** + * @member {string} [multiSize] Front-end VM size, e.g. "Medium", "Large". + */ + multiSize?: string; + /** + * @member {number} [multiRoleCount] Number of front-end instances. + */ + multiRoleCount?: number; + /** + * @member {WorkerPool[]} workerPools Description of worker pools with worker + * size IDs, VM sizes, and number of workers in each pool. + */ + workerPools: WorkerPool[]; + /** + * @member {number} [ipsslAddressCount] Number of IP SSL addresses reserved + * for the App Service Environment. + */ + ipsslAddressCount?: number; + /** + * @member {string} [databaseEdition] Edition of the metadata database for + * the App Service Environment, e.g. "Standard". + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseEdition?: string; + /** + * @member {string} [databaseServiceObjective] Service objective of the + * metadata database for the App Service Environment, e.g. "S0". + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseServiceObjective?: string; + /** + * @member {number} [upgradeDomains] Number of upgrade domains of the App + * Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly upgradeDomains?: number; + /** + * @member {string} [subscriptionId] Subscription of the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscriptionId?: string; + /** + * @member {string} [dnsSuffix] DNS suffix of the App Service Environment. + */ + dnsSuffix?: string; + /** + * @member {string} [lastAction] Last deployment action on the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastAction?: string; + /** + * @member {string} [lastActionResult] Result of the last deployment action + * on the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastActionResult?: string; + /** + * @member {string} [allowedMultiSizes] List of comma separated strings + * describing which VM sizes are allowed for front-ends. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allowedMultiSizes?: string; + /** + * @member {string} [allowedWorkerSizes] List of comma separated strings + * describing which VM sizes are allowed for workers. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allowedWorkerSizes?: string; + /** + * @member {number} [maximumNumberOfMachines] Maximum number of VMs in the + * App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximumNumberOfMachines?: number; + /** + * @member {VirtualIPMapping[]} [vipMappings] Description of IP SSL mapping + * for the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly vipMappings?: VirtualIPMapping[]; + /** + * @member {StampCapacity[]} [environmentCapacities] Current total, used, and + * available worker capacities. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentCapacities?: StampCapacity[]; + /** + * @member {NetworkAccessControlEntry[]} [networkAccessControlList] Access + * control list for controlling traffic to the App Service Environment. + */ + networkAccessControlList?: NetworkAccessControlEntry[]; + /** + * @member {boolean} [environmentIsHealthy] True/false indicating whether the + * App Service Environment is healthy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentIsHealthy?: boolean; + /** + * @member {string} [environmentStatus] Detailed message about with results + * of the last check of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentStatus?: string; + /** + * @member {string} [resourceGroup] Resource group of the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {number} [frontEndScaleFactor] Scale factor for front-ends. + */ + frontEndScaleFactor?: number; + /** + * @member {number} [defaultFrontEndScaleFactor] Default Scale Factor for + * FrontEnds. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly defaultFrontEndScaleFactor?: number; + /** + * @member {string} [apiManagementAccountId] API Management Account + * associated with the App Service Environment. + */ + apiManagementAccountId?: string; + /** + * @member {boolean} [suspended] true if the App Service + * Environment is suspended; otherwise, false. The environment + * can be suspended, e.g. when the management endpoint is no longer available + * (most likely because NSG blocked the incoming traffic). + */ + suspended?: boolean; + /** + * @member {boolean} [dynamicCacheEnabled] True/false indicating whether the + * App Service Environment is suspended. The environment can be suspended + * e.g. when the management endpoint is no longer available + * (most likely because NSG blocked the incoming traffic). + */ + dynamicCacheEnabled?: boolean; + /** + * @member {NameValuePair[]} [clusterSettings] Custom settings for changing + * the behavior of the App Service Environment. + */ + clusterSettings?: NameValuePair[]; + /** + * @member {string[]} [userWhitelistedIpRanges] User added ip ranges to + * whitelist on ASE db + */ + userWhitelistedIpRanges?: string[]; + /** + * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has + * linux workers or not + */ + hasLinuxWorkers?: boolean; + /** + * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service + * Environment default SSL certificate + */ + sslCertKeyVaultId?: string; + /** + * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB + * App Service Environment default SSL certificate + */ + sslCertKeyVaultSecretName?: string; +} + +/** + * @interface + * An interface representing LocalizableString. + * Localizable string object containing the name and a localized value. + * + */ +export interface LocalizableString { + /** + * @member {string} [value] Non-localized name. + */ + value?: string; + /** + * @member {string} [localizedValue] Localized name. + */ + localizedValue?: string; +} + +/** + * @interface + * An interface representing CsmUsageQuota. + * Usage of the quota resource. + * + */ +export interface CsmUsageQuota { + /** + * @member {string} [unit] Units of measurement for the quota resourse. + */ + unit?: string; + /** + * @member {Date} [nextResetTime] Next reset time for the resource counter. + */ + nextResetTime?: Date; + /** + * @member {number} [currentValue] The current value of the resource counter. + */ + currentValue?: number; + /** + * @member {number} [limit] The resource limit. + */ + limit?: number; + /** + * @member {LocalizableString} [name] Quota name. + */ + name?: LocalizableString; +} + +/** + * @interface + * An interface representing ErrorEntity. + * Body of the error response returned from the API. + * + */ +export interface ErrorEntity { + /** + * @member {string} [extendedCode] Type of error. + */ + extendedCode?: string; + /** + * @member {string} [messageTemplate] Message template. + */ + messageTemplate?: string; + /** + * @member {string[]} [parameters] Parameters for the template. + */ + parameters?: string[]; + /** + * @member {ErrorEntity[]} [innerErrors] Inner errors. + */ + innerErrors?: ErrorEntity[]; + /** + * @member {string} [code] Basic error code. + */ + code?: string; + /** + * @member {string} [message] Any details of the error. + */ + message?: string; +} + +/** + * @interface + * An interface representing Operation. + * An operation on a resource. + * + */ +export interface Operation { + /** + * @member {string} [id] Operation ID. + */ + id?: string; + /** + * @member {string} [name] Operation name. + */ + name?: string; + /** + * @member {OperationStatus} [status] The current status of the operation. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', + * 'Created' + */ + status?: OperationStatus; + /** + * @member {ErrorEntity[]} [errors] Any errors associate with the operation. + */ + errors?: ErrorEntity[]; + /** + * @member {Date} [createdTime] Time when operation has started. + */ + createdTime?: Date; + /** + * @member {Date} [modifiedTime] Time when operation has been updated. + */ + modifiedTime?: Date; + /** + * @member {Date} [expirationTime] Time when operation will expire. + */ + expirationTime?: Date; + /** + * @member {string} [geoMasterOperationId] Applicable only for stamp + * operation ids. + */ + geoMasterOperationId?: string; +} + +/** + * @interface + * An interface representing ResourceMetricName. + * Name of a metric for any resource . + * + */ +export interface ResourceMetricName { + /** + * @member {string} [value] metric name value. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly value?: string; + /** + * @member {string} [localizedValue] Localized metric name value. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly localizedValue?: string; +} + +/** + * @interface + * An interface representing ResourceMetricProperty. + * Resource metric property. + * + */ +export interface ResourceMetricProperty { + /** + * @member {string} [key] Key for resource metric property. + */ + key?: string; + /** + * @member {string} [value] Value of pair. + */ + value?: string; +} + +/** + * @interface + * An interface representing ResourceMetricValue. + * Value of resource metric. + * + */ +export interface ResourceMetricValue { + /** + * @member {string} [timestamp] Value timestamp. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly timestamp?: string; + /** + * @member {number} [average] Value average. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly average?: number; + /** + * @member {number} [minimum] Value minimum. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly minimum?: number; + /** + * @member {number} [maximum] Value maximum. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximum?: number; + /** + * @member {number} [total] Value total. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly total?: number; + /** + * @member {number} [count] Value count. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly count?: number; + /** + * @member {ResourceMetricProperty[]} [properties] Resource metric properties + * collection. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly properties?: ResourceMetricProperty[]; +} + +/** + * @interface + * An interface representing ResourceMetric. + * Object representing a metric for any resource . + * + */ +export interface ResourceMetric { + /** + * @member {ResourceMetricName} [name] Name of metric. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: ResourceMetricName; + /** + * @member {string} [unit] Metric unit. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unit?: string; + /** + * @member {string} [timeGrain] Metric granularity. E.g PT1H, PT5M, P1D + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly timeGrain?: string; + /** + * @member {Date} [startTime] Metric start time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] Metric end time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {string} [resourceId] Metric resource Id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceId?: string; + /** + * @member {string} [id] Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {ResourceMetricValue[]} [metricValues] Metric values. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly metricValues?: ResourceMetricValue[]; + /** + * @member {ResourceMetricProperty[]} [properties] Resource metric properties + * collection. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly properties?: ResourceMetricProperty[]; +} + +/** + * @interface + * An interface representing Solution. + * Class Representing Solution for problems detected. + * + */ +export interface Solution { + /** + * @member {number} [id] Solution Id. + */ + id?: number; + /** + * @member {string} [displayName] Display Name of the solution + */ + displayName?: string; + /** + * @member {number} [order] Order of the solution. + */ + order?: number; + /** + * @member {string} [description] Description of the solution + */ + description?: string; + /** + * @member {SolutionType} [type] Type of Solution. Possible values include: + * 'QuickSolution', 'DeepInvestigation', 'BestPractices' + */ + type?: SolutionType; + /** + * @member {NameValuePair[][]} [data] Solution Data. + */ + data?: NameValuePair[][]; + /** + * @member {NameValuePair[][]} [metadata] Solution Metadata. + */ + metadata?: NameValuePair[][]; +} + +/** + * @interface + * An interface representing DetectorAbnormalTimePeriod. + * Class representing Abnormal Time Period detected. + * + */ +export interface DetectorAbnormalTimePeriod { + /** + * @member {Date} [startTime] Start time of the corelated event + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the corelated event + */ + endTime?: Date; + /** + * @member {string} [message] Message describing the event + */ + message?: string; + /** + * @member {string} [source] Represents the name of the Detector + */ + source?: string; + /** + * @member {number} [priority] Represents the rank of the Detector + */ + priority?: number; + /** + * @member {NameValuePair[][]} [metaData] Downtime metadata + */ + metaData?: NameValuePair[][]; + /** + * @member {IssueType} [type] Represents the type of the Detector. Possible + * values include: 'ServiceIncident', 'AppDeployment', 'AppCrash', + * 'RuntimeIssueDetected', 'AseDeployment', 'UserIssue', 'PlatformIssue', + * 'Other' + */ + type?: IssueType; + /** + * @member {Solution[]} [solutions] List of proposed solutions + */ + solutions?: Solution[]; +} + +/** + * @interface + * An interface representing AbnormalTimePeriod. + * Class representing Abnormal Time Period identified in diagnosis + * + */ +export interface AbnormalTimePeriod { + /** + * @member {Date} [startTime] Start time of the downtime + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the downtime + */ + endTime?: Date; + /** + * @member {DetectorAbnormalTimePeriod[]} [events] List of Possible Cause of + * downtime + */ + events?: DetectorAbnormalTimePeriod[]; + /** + * @member {Solution[]} [solutions] List of proposed solutions + */ + solutions?: Solution[]; +} + +/** + * @interface + * An interface representing DetectorDefinition. + * Class representing detector definition + * + * @extends ProxyOnlyResource + */ +export interface DetectorDefinition extends ProxyOnlyResource { + /** + * @member {string} [displayName] Display name of the detector + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly displayName?: string; + /** + * @member {string} [description] Description of the detector + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {number} [rank] Detector Rank + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly rank?: number; + /** + * @member {boolean} [isEnabled] Flag representing whether detector is + * enabled or not. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isEnabled?: boolean; +} + +/** + * @interface + * An interface representing DiagnosticMetricSample. + * Class representing Diagnostic Metric + * + */ +export interface DiagnosticMetricSample { + /** + * @member {Date} [timestamp] Time at which metric is measured + */ + timestamp?: Date; + /** + * @member {string} [roleInstance] Role Instance. Null if this counter is not + * per instance + * This is returned and should be whichever instance name we desire to be + * returned + * i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) + * where RDWORKERNAME is Machine name below and RoleInstance name in + * parenthesis + */ + roleInstance?: string; + /** + * @member {number} [total] Total value of the metric. If multiple + * measurements are made this will have sum of all. + */ + total?: number; + /** + * @member {number} [maximum] Maximum of the metric sampled during the time + * period + */ + maximum?: number; + /** + * @member {number} [minimum] Minimum of the metric sampled during the time + * period + */ + minimum?: number; + /** + * @member {boolean} [isAggregated] Whether the values are aggregates across + * all workers or not + */ + isAggregated?: boolean; +} + +/** + * @interface + * An interface representing DiagnosticMetricSet. + * Class representing Diagnostic Metric information + * + */ +export interface DiagnosticMetricSet { + /** + * @member {string} [name] Name of the metric + */ + name?: string; + /** + * @member {string} [unit] Metric's unit + */ + unit?: string; + /** + * @member {Date} [startTime] Start time of the period + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the period + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Presented time grain. Supported grains at the + * moment are PT1M, PT1H, P1D + */ + timeGrain?: string; + /** + * @member {DiagnosticMetricSample[]} [values] Collection of metric values + * for the selected period based on the + * {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain} + */ + values?: DiagnosticMetricSample[]; +} + +/** + * @interface + * An interface representing DataSource. + * Class representing data source used by the detectors + * + */ +export interface DataSource { + /** + * @member {string[]} [instructions] Instrunctions if any for the data source + */ + instructions?: string[]; + /** + * @member {NameValuePair[]} [dataSourceUri] Datasource Uri Links + */ + dataSourceUri?: NameValuePair[]; +} + +/** + * @interface + * An interface representing ResponseMetaData. + */ +export interface ResponseMetaData { + /** + * @member {DataSource} [dataSource] Source of the Data + */ + dataSource?: DataSource; +} + +/** + * @interface + * An interface representing AnalysisData. + * Class Representing Detector Evidence used for analysis + * + */ +export interface AnalysisData { + /** + * @member {string} [source] Name of the Detector + */ + source?: string; + /** + * @member {DetectorDefinition} [detectorDefinition] Detector Definition + */ + detectorDefinition?: DetectorDefinition; + /** + * @member {DiagnosticMetricSet[]} [metrics] Source Metrics + */ + metrics?: DiagnosticMetricSet[]; + /** + * @member {NameValuePair[][]} [data] Additional Source Data + */ + data?: NameValuePair[][]; + /** + * @member {ResponseMetaData} [detectorMetaData] Detector Meta Data + */ + detectorMetaData?: ResponseMetaData; +} + +/** + * @interface + * An interface representing AnalysisDefinition. + * Definition of Analysis + * + * @extends ProxyOnlyResource + */ +export interface AnalysisDefinition extends ProxyOnlyResource { + /** + * @member {string} [description] Description of the Analysis + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; +} + +/** + * @interface + * An interface representing DataTableResponseColumn. + * Column definition + * + */ +export interface DataTableResponseColumn { + /** + * @member {string} [columnName] Name of the column + */ + columnName?: string; + /** + * @member {string} [dataType] Data type which looks like 'String' or + * 'Int32'. + */ + dataType?: string; + /** + * @member {string} [columnType] Column Type + */ + columnType?: string; +} + +/** + * @interface + * An interface representing DataTableResponseObject. + * Data Table which defines columns and raw row values + * + */ +export interface DataTableResponseObject { + /** + * @member {string} [tableName] Name of the table + */ + tableName?: string; + /** + * @member {DataTableResponseColumn[]} [columns] List of columns with data + * types + */ + columns?: DataTableResponseColumn[]; + /** + * @member {string[][]} [rows] Raw row values + */ + rows?: string[][]; +} + +/** + * @interface + * An interface representing DetectorInfo. + * Definition of Detector + * + */ +export interface DetectorInfo { + /** + * @member {string} [description] Short description of the detector and its + * purpose + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {string} [category] Support Category + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly category?: string; + /** + * @member {string} [subCategory] Support Sub Category + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subCategory?: string; + /** + * @member {string} [supportTopicId] Support Topic Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly supportTopicId?: string; +} + +/** + * @interface + * An interface representing Rendering. + * Instructions for rendering the data + * + */ +export interface Rendering { + /** + * @member {RenderingType} [type] Rendering Type. Possible values include: + * 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance' + */ + type?: RenderingType; + /** + * @member {string} [title] Title of data + */ + title?: string; + /** + * @member {string} [description] Description of the data that will help it + * be interpreted + */ + description?: string; +} + +/** + * @interface + * An interface representing DiagnosticData. + * Set of data with rendering instructions + * + */ +export interface DiagnosticData { + /** + * @member {DataTableResponseObject} [table] Data in table form + */ + table?: DataTableResponseObject; + /** + * @member {Rendering} [renderingProperties] Properties that describe how the + * table should be rendered + */ + renderingProperties?: Rendering; +} + +/** + * @interface + * An interface representing DetectorResponse. + * Class representing Response from Detector + * + * @extends ProxyOnlyResource + */ +export interface DetectorResponse extends ProxyOnlyResource { + /** + * @member {DetectorInfo} [metadata] metadata for the detector + */ + metadata?: DetectorInfo; + /** + * @member {DiagnosticData[]} [dataset] Data Set + */ + dataset?: DiagnosticData[]; +} + +/** + * @interface + * An interface representing DiagnosticAnalysis. + * Class representing a diagnostic analysis done on an application + * + * @extends ProxyOnlyResource + */ +export interface DiagnosticAnalysis extends ProxyOnlyResource { + /** + * @member {Date} [startTime] Start time of the period + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the period + */ + endTime?: Date; + /** + * @member {AbnormalTimePeriod[]} [abnormalTimePeriods] List of time periods. + */ + abnormalTimePeriods?: AbnormalTimePeriod[]; + /** + * @member {AnalysisData[]} [payload] Data by each detector + */ + payload?: AnalysisData[]; + /** + * @member {DetectorDefinition[]} [nonCorrelatedDetectors] Data by each + * detector for detectors that did not corelate + */ + nonCorrelatedDetectors?: DetectorDefinition[]; +} + +/** + * @interface + * An interface representing DiagnosticCategory. + * Class representing detector definition + * + * @extends ProxyOnlyResource + */ +export interface DiagnosticCategory extends ProxyOnlyResource { + /** + * @member {string} [description] Description of the diagnostic category + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; +} + +/** + * @interface + * An interface representing DiagnosticDetectorResponse. + * Class representing Reponse from Diagnostic Detectors + * + * @extends ProxyOnlyResource + */ +export interface DiagnosticDetectorResponse extends ProxyOnlyResource { + /** + * @member {Date} [startTime] Start time of the period + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the period + */ + endTime?: Date; + /** + * @member {boolean} [issueDetected] Flag representing Issue was detected. + */ + issueDetected?: boolean; + /** + * @member {DetectorDefinition} [detectorDefinition] Detector's definition + */ + detectorDefinition?: DetectorDefinition; + /** + * @member {DiagnosticMetricSet[]} [metrics] Metrics provided by the detector + */ + metrics?: DiagnosticMetricSet[]; + /** + * @member {DetectorAbnormalTimePeriod[]} [abnormalTimePeriods] List of + * Correlated events found by the detector + */ + abnormalTimePeriods?: DetectorAbnormalTimePeriod[]; + /** + * @member {NameValuePair[][]} [data] Additional Data that detector wants to + * send. + */ + data?: NameValuePair[][]; + /** + * @member {ResponseMetaData} [responseMetaData] Meta Data + */ + responseMetaData?: ResponseMetaData; +} + +/** + * @interface + * An interface representing StackMinorVersion. + * Application stack minor version. + * + */ +export interface StackMinorVersion { + /** + * @member {string} [displayVersion] Application stack minor version (display + * only). + */ + displayVersion?: string; + /** + * @member {string} [runtimeVersion] Application stack minor version (runtime + * only). + */ + runtimeVersion?: string; + /** + * @member {boolean} [isDefault] true if this is the default + * minor version; otherwise, false. + */ + isDefault?: boolean; +} + +/** + * @interface + * An interface representing StackMajorVersion. + * Application stack major version. + * + */ +export interface StackMajorVersion { + /** + * @member {string} [displayVersion] Application stack major version (display + * only). + */ + displayVersion?: string; + /** + * @member {string} [runtimeVersion] Application stack major version (runtime + * only). + */ + runtimeVersion?: string; + /** + * @member {boolean} [isDefault] true if this is the default + * major version; otherwise, false. + */ + isDefault?: boolean; + /** + * @member {StackMinorVersion[]} [minorVersions] Minor versions associated + * with the major version. + */ + minorVersions?: StackMinorVersion[]; +} + +/** + * @interface + * An interface representing ApplicationStack. + * Application stack. + * + */ +export interface ApplicationStack { + /** + * @member {string} [name] Application stack name. + */ + name?: string; + /** + * @member {string} [display] Application stack display name. + */ + display?: string; + /** + * @member {string} [dependency] Application stack dependency. + */ + dependency?: string; + /** + * @member {StackMajorVersion[]} [majorVersions] List of major versions + * available. + */ + majorVersions?: StackMajorVersion[]; + /** + * @member {ApplicationStack[]} [frameworks] List of frameworks associated + * with application stack. + */ + frameworks?: ApplicationStack[]; +} + +/** + * @interface + * An interface representing Recommendation. + * Represents a recommendation result generated by the recommendation engine. + * + * @extends ProxyOnlyResource + */ +export interface Recommendation extends ProxyOnlyResource { + /** + * @member {Date} [creationTime] Timestamp when this instance was created. + */ + creationTime?: Date; + /** + * @member {string} [recommendationId] A GUID value that each recommendation + * object is associated with. + */ + recommendationId?: string; + /** + * @member {string} [resourceId] Full ARM resource ID string that this + * recommendation object is associated with. + */ + resourceId?: string; + /** + * @member {ResourceScopeType} [resourceScope] Name of a resource type this + * recommendation applies, e.g. Subscription, ServerFarm, Site. Possible + * values include: 'ServerFarm', 'Subscription', 'WebSite' + */ + resourceScope?: ResourceScopeType; + /** + * @member {string} [ruleName] Unique name of the rule. + */ + ruleName?: string; + /** + * @member {string} [displayName] UI friendly name of the rule (may not be + * unique). + */ + displayName?: string; + /** + * @member {string} [message] Recommendation text. + */ + message?: string; + /** + * @member {NotificationLevel} [level] Level indicating how critical this + * recommendation can impact. Possible values include: 'Critical', 'Warning', + * 'Information', 'NonUrgentSuggestion' + */ + level?: NotificationLevel; + /** + * @member {Channels} [channels] List of channels that this recommendation + * can apply. Possible values include: 'Notification', 'Api', 'Email', + * 'Webhook', 'All' + */ + channels?: Channels; + /** + * @member {string[]} [categoryTags] The list of category tags that this + * recommendation belongs to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly categoryTags?: string[]; + /** + * @member {string} [actionName] Name of action recommended by this object. + */ + actionName?: string; + /** + * @member {number} [enabled] True if this recommendation is still valid + * (i.e. "actionable"). False if it is invalid. + */ + enabled?: number; + /** + * @member {string[]} [states] The list of states of this recommendation. If + * it's null then it shoud be considered "Active". + */ + states?: string[]; + /** + * @member {Date} [startTime] The beginning time in UTC of a range that the + * recommendation refers to. + */ + startTime?: Date; + /** + * @member {Date} [endTime] The end time in UTC of a range that the + * recommendation refers to. + */ + endTime?: Date; + /** + * @member {Date} [nextNotificationTime] When to notify this recommendation + * next in UTC. Null means that this will never be notified anymore. + */ + nextNotificationTime?: Date; + /** + * @member {Date} [notificationExpirationTime] Date and time in UTC when this + * notification expires. + */ + notificationExpirationTime?: Date; + /** + * @member {Date} [notifiedTime] Last timestamp in UTC this instance was + * actually notified. Null means that this recommendation hasn't been + * notified yet. + */ + notifiedTime?: Date; + /** + * @member {number} [score] A metric value measured by the rule. + */ + score?: number; + /** + * @member {boolean} [isDynamic] True if this is associated with a + * dynamically added rule + */ + isDynamic?: boolean; + /** + * @member {string} [extensionName] Extension name of the portal if exists. + */ + extensionName?: string; + /** + * @member {string} [bladeName] Deep link to a blade on the portal. + */ + bladeName?: string; + /** + * @member {string} [forwardLink] Forward link to an external document + * associated with the rule. + */ + forwardLink?: string; +} + +/** + * @interface + * An interface representing RecommendationRule. + * Represents a recommendation rule that the recommendation engine can perform. + * + * @extends ProxyOnlyResource + */ +export interface RecommendationRule extends ProxyOnlyResource { + /** + * @member {string} [recommendationName] Unique name of the rule. + */ + recommendationName?: string; + /** + * @member {string} [displayName] UI friendly name of the rule. + */ + displayName?: string; + /** + * @member {string} [message] Localized name of the rule (Good for UI). + */ + message?: string; + /** + * @member {string} [recommendationId] Recommendation ID of an associated + * recommendation object tied to the rule, if exists. + * If such an object doesn't exist, it is set to null. + */ + recommendationId?: string; + /** + * @member {string} [description] Localized detailed description of the rule. + */ + description?: string; + /** + * @member {string} [actionName] Name of action that is recommended by this + * rule in string. + */ + actionName?: string; + /** + * @member {NotificationLevel} [level] Level of impact indicating how + * critical this rule is. Possible values include: 'Critical', 'Warning', + * 'Information', 'NonUrgentSuggestion' + */ + level?: NotificationLevel; + /** + * @member {Channels} [channels] List of available channels that this rule + * applies. Possible values include: 'Notification', 'Api', 'Email', + * 'Webhook', 'All' + */ + channels?: Channels; + /** + * @member {string[]} [categoryTags] The list of category tags that this + * recommendation rule belongs to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly categoryTags?: string[]; + /** + * @member {boolean} [isDynamic] True if this is associated with a + * dynamically added rule + */ + isDynamic?: boolean; + /** + * @member {string} [extensionName] Extension name of the portal if exists. + * Applicable to dynamic rule only. + */ + extensionName?: string; + /** + * @member {string} [bladeName] Deep link to a blade on the portal. + * Applicable to dynamic rule only. + */ + bladeName?: string; + /** + * @member {string} [forwardLink] Forward link to an external document + * associated with the rule. Applicable to dynamic rule only. + */ + forwardLink?: string; +} + +/** + * @interface + * An interface representing BillingMeter. + * App Service billing entity that contains information about meter which the + * Azure billing system utilizes to charge users for services. + * + * @extends ProxyOnlyResource + */ +export interface BillingMeter extends ProxyOnlyResource { + /** + * @member {string} [meterId] Meter GUID onboarded in Commerce + */ + meterId?: string; + /** + * @member {string} [billingLocation] Azure Location of billable resource + */ + billingLocation?: string; + /** + * @member {string} [shortName] Short Name from App Service Azure pricing + * Page + */ + shortName?: string; + /** + * @member {string} [friendlyName] Friendly name of the meter + */ + friendlyName?: string; + /** + * @member {string} [resourceType] App Service ResourceType meter used for + */ + resourceType?: string; + /** + * @member {string} [osType] App Service OS type meter used for + */ + osType?: string; +} + +/** + * @interface + * An interface representing CsmMoveResourceEnvelope. + * Object with a list of the resources that need to be moved and the resource + * group they should be moved to. + * + */ +export interface CsmMoveResourceEnvelope { + /** + * @member {string} [targetResourceGroup] + */ + targetResourceGroup?: string; + /** + * @member {string[]} [resources] + */ + resources?: string[]; +} + +/** + * @interface + * An interface representing GeoRegion. + * Geographical region. + * + * @extends ProxyOnlyResource + */ +export interface GeoRegion extends ProxyOnlyResource { + /** + * @member {string} [description] Region description. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {string} [displayName] Display name for region. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly displayName?: string; +} + +/** + * @interface + * An interface representing HostingEnvironmentDeploymentInfo. + * Information needed to create resources on an App Service Environment. + * + */ +export interface HostingEnvironmentDeploymentInfo { + /** + * @member {string} [name] Name of the App Service Environment. + */ + name?: string; + /** + * @member {string} [location] Location of the App Service Environment. + */ + location?: string; +} + +/** + * @interface + * An interface representing DeploymentLocations. + * List of available locations (regions or App Service Environments) for + * deployment of App Service resources. + * + */ +export interface DeploymentLocations { + /** + * @member {GeoRegion[]} [locations] Available regions. + */ + locations?: GeoRegion[]; + /** + * @member {AppServiceEnvironment[]} [hostingEnvironments] Available App + * Service Environments with full descriptions of the environments. + */ + hostingEnvironments?: AppServiceEnvironment[]; + /** + * @member {HostingEnvironmentDeploymentInfo[]} + * [hostingEnvironmentDeploymentInfos] Available App Service Environments + * with basic information. + */ + hostingEnvironmentDeploymentInfos?: HostingEnvironmentDeploymentInfo[]; +} + +/** + * @interface + * An interface representing GlobalCsmSkuDescription. + * A Global SKU Description. + * + */ +export interface GlobalCsmSkuDescription { + /** + * @member {string} [name] Name of the resource SKU. + */ + name?: string; + /** + * @member {string} [tier] Service Tier of the resource SKU. + */ + tier?: string; + /** + * @member {string} [size] Size specifier of the resource SKU. + */ + size?: string; + /** + * @member {string} [family] Family code of the resource SKU. + */ + family?: string; + /** + * @member {SkuCapacity} [capacity] Min, max, and default scale values of the + * SKU. + */ + capacity?: SkuCapacity; + /** + * @member {string[]} [locations] Locations of the SKU. + */ + locations?: string[]; + /** + * @member {Capability[]} [capabilities] Capabilities of the SKU, e.g., is + * traffic manager enabled? + */ + capabilities?: Capability[]; +} + +/** + * @interface + * An interface representing PremierAddOnOffer. + * Premier add-on offer. + * + * @extends ProxyOnlyResource + */ +export interface PremierAddOnOffer extends ProxyOnlyResource { + /** + * @member {string} [sku] Premier add on SKU. + */ + sku?: string; + /** + * @member {string} [product] Premier add on offer Product. + */ + product?: string; + /** + * @member {string} [vendor] Premier add on offer Vendor. + */ + vendor?: string; + /** + * @member {boolean} [promoCodeRequired] true if promotion code + * is required; otherwise, false. + */ + promoCodeRequired?: boolean; + /** + * @member {number} [quota] Premier add on offer Quota. + */ + quota?: number; + /** + * @member {AppServicePlanRestrictions} [webHostingPlanRestrictions] App + * Service plans this offer is restricted to. Possible values include: + * 'None', 'Free', 'Shared', 'Basic', 'Standard', 'Premium' + */ + webHostingPlanRestrictions?: AppServicePlanRestrictions; + /** + * @member {string} [privacyPolicyUrl] Privacy policy URL. + */ + privacyPolicyUrl?: string; + /** + * @member {string} [legalTermsUrl] Legal terms URL. + */ + legalTermsUrl?: string; + /** + * @member {string} [marketplacePublisher] Marketplace publisher. + */ + marketplacePublisher?: string; + /** + * @member {string} [marketplaceOffer] Marketplace offer. + */ + marketplaceOffer?: string; +} + +/** + * @interface + * An interface representing ResourceNameAvailability. + * Information regarding availbility of a resource name. + * + */ +export interface ResourceNameAvailability { + /** + * @member {boolean} [nameAvailable] true indicates name is + * valid and available. false indicates the name is invalid, + * unavailable, or both. + */ + nameAvailable?: boolean; + /** + * @member {InAvailabilityReasonType} [reason] Invalid indicates + * the name provided does not match Azure App Service naming requirements. + * AlreadyExists indicates that the name is already in use and + * is therefore unavailable. Possible values include: 'Invalid', + * 'AlreadyExists' + */ + reason?: InAvailabilityReasonType; + /** + * @member {string} [message] If reason == invalid, provide the user with the + * reason why the given name is invalid, and provide the resource naming + * requirements so that the user can select a valid name. If reason == + * AlreadyExists, explain that resource name is already in use, and direct + * them to select a different name. + */ + message?: string; +} + +/** + * @interface + * An interface representing ResourceNameAvailabilityRequest. + * Resource name availability request content. + * + */ +export interface ResourceNameAvailabilityRequest { + /** + * @member {string} name Resource name to verify. + */ + name: string; + /** + * @member {CheckNameResourceTypes} type Resource type used for verification. + * Possible values include: 'Site', 'Slot', 'HostingEnvironment', + * 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', + * 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers' + */ + type: CheckNameResourceTypes; + /** + * @member {boolean} [isFqdn] Is fully qualified domain name. + */ + isFqdn?: boolean; +} + +/** + * @interface + * An interface representing SkuInfos. + * Collection of SKU information. + * + */ +export interface SkuInfos { + /** + * @member {string} [resourceType] Resource type that this SKU applies to. + */ + resourceType?: string; + /** + * @member {GlobalCsmSkuDescription[]} [skus] List of SKUs the subscription + * is able to use. + */ + skus?: GlobalCsmSkuDescription[]; +} + +/** + * @interface + * An interface representing SourceControl. + * The source control OAuth token. + * + * @extends ProxyOnlyResource + */ +export interface SourceControl extends ProxyOnlyResource { + /** + * @member {string} [token] OAuth access token. + */ + token?: string; + /** + * @member {string} [tokenSecret] OAuth access token secret. + */ + tokenSecret?: string; + /** + * @member {string} [refreshToken] OAuth refresh token. + */ + refreshToken?: string; + /** + * @member {Date} [expirationTime] OAuth token expiration. + */ + expirationTime?: Date; +} + +/** + * @interface + * An interface representing ValidateRequest. + * Resource validation request content. + * + */ +export interface ValidateRequest { + /** + * @member {string} name Resource name to verify. + */ + name: string; + /** + * @member {ValidateResourceTypes} type Resource type used for verification. + * Possible values include: 'ServerFarm', 'Site' + */ + type: ValidateResourceTypes; + /** + * @member {string} location Expected location of the resource. + */ + location: string; + /** + * @member {string} [serverFarmId] ARM resource ID of an App Service plan + * that would host the app. + */ + serverFarmId?: string; + /** + * @member {string} [skuName] Name of the target SKU for the App Service + * plan. + */ + skuName?: string; + /** + * @member {boolean} [needLinuxWorkers] true if App Service plan + * is for Linux workers; otherwise, false. + */ + needLinuxWorkers?: boolean; + /** + * @member {boolean} [isSpot] true if App Service plan is for + * Spot instances; otherwise, false. + */ + isSpot?: boolean; + /** + * @member {number} [capacity] Target capacity of the App Service plan + * (number of VM's). + */ + capacity?: number; + /** + * @member {string} [hostingEnvironment] Name of App Service Environment + * where app or App Service plan should be created. + */ + hostingEnvironment?: string; + /** + * @member {boolean} [isXenon] true if App Service plan is + * running as a windows container + */ + isXenon?: boolean; +} + +/** + * @interface + * An interface representing ValidateResponseError. + * Error details for when validation fails. + * + */ +export interface ValidateResponseError { + /** + * @member {string} [code] Validation error code. + */ + code?: string; + /** + * @member {string} [message] Validation error message. + */ + message?: string; +} + +/** + * @interface + * An interface representing ValidateResponse. + * Describes the result of resource validation. + * + */ +export interface ValidateResponse { + /** + * @member {string} [status] Result of validation. + */ + status?: string; + /** + * @member {ValidateResponseError} [error] Error details for the case when + * validation fails. + */ + error?: ValidateResponseError; +} + +/** + * @interface + * An interface representing VnetParameters. + * The required set of inputs to validate a VNET + * + * @extends ProxyOnlyResource + */ +export interface VnetParameters extends ProxyOnlyResource { + /** + * @member {string} [vnetResourceGroup] The Resource Group of the VNET to be + * validated + */ + vnetResourceGroup?: string; + /** + * @member {string} [vnetName] The name of the VNET to be validated + */ + vnetName?: string; + /** + * @member {string} [vnetSubnetName] The subnet name to be validated + */ + vnetSubnetName?: string; +} + +/** + * @interface + * An interface representing VnetValidationTestFailure. + * A class that describes a test that failed during NSG and UDR validation. + * + * @extends ProxyOnlyResource + */ +export interface VnetValidationTestFailure extends ProxyOnlyResource { + /** + * @member {string} [testName] The name of the test that failed. + */ + testName?: string; + /** + * @member {string} [details] The details of what caused the failure, e.g. + * the blocking rule name, etc. + */ + details?: string; +} + +/** + * @interface + * An interface representing VnetValidationFailureDetails. + * A class that describes the reason for a validation failure. + * + * @extends ProxyOnlyResource + */ +export interface VnetValidationFailureDetails extends ProxyOnlyResource { + /** + * @member {boolean} [failed] A flag describing whether or not validation + * failed. + */ + failed?: boolean; + /** + * @member {VnetValidationTestFailure[]} [failedTests] A list of tests that + * failed in the validation. + */ + failedTests?: VnetValidationTestFailure[]; +} + +/** + * @interface + * An interface representing FileSystemApplicationLogsConfig. + * Application logs to file system configuration. + * + */ +export interface FileSystemApplicationLogsConfig { + /** + * @member {LogLevel} [level] Log level. Possible values include: 'Off', + * 'Verbose', 'Information', 'Warning', 'Error'. Default value: 'Off' . + */ + level?: LogLevel; +} + +/** + * @interface + * An interface representing AzureTableStorageApplicationLogsConfig. + * Application logs to Azure table storage configuration. + * + */ +export interface AzureTableStorageApplicationLogsConfig { + /** + * @member {LogLevel} [level] Log level. Possible values include: 'Off', + * 'Verbose', 'Information', 'Warning', 'Error' + */ + level?: LogLevel; + /** + * @member {string} sasUrl SAS URL to an Azure table with add/query/delete + * permissions. + */ + sasUrl: string; +} + +/** + * @interface + * An interface representing AzureBlobStorageApplicationLogsConfig. + * Application logs azure blob storage configuration. + * + */ +export interface AzureBlobStorageApplicationLogsConfig { + /** + * @member {LogLevel} [level] Log level. Possible values include: 'Off', + * 'Verbose', 'Information', 'Warning', 'Error' + */ + level?: LogLevel; + /** + * @member {string} [sasUrl] SAS url to a azure blob container with + * read/write/list/delete permissions. + */ + sasUrl?: string; + /** + * @member {number} [retentionInDays] Retention in days. + * Remove blobs older than X days. + * 0 or lower means no retention. + */ + retentionInDays?: number; +} + +/** + * @interface + * An interface representing ApplicationLogsConfig. + * Application logs configuration. + * + */ +export interface ApplicationLogsConfig { + /** + * @member {FileSystemApplicationLogsConfig} [fileSystem] Application logs to + * file system configuration. + */ + fileSystem?: FileSystemApplicationLogsConfig; + /** + * @member {AzureTableStorageApplicationLogsConfig} [azureTableStorage] + * Application logs to azure table storage configuration. + */ + azureTableStorage?: AzureTableStorageApplicationLogsConfig; + /** + * @member {AzureBlobStorageApplicationLogsConfig} [azureBlobStorage] + * Application logs to blob storage configuration. + */ + azureBlobStorage?: AzureBlobStorageApplicationLogsConfig; +} + +/** + * @interface + * An interface representing AzureBlobStorageHttpLogsConfig. + * Http logs to azure blob storage configuration. + * + */ +export interface AzureBlobStorageHttpLogsConfig { + /** + * @member {string} [sasUrl] SAS url to a azure blob container with + * read/write/list/delete permissions. + */ + sasUrl?: string; + /** + * @member {number} [retentionInDays] Retention in days. + * Remove blobs older than X days. + * 0 or lower means no retention. + */ + retentionInDays?: number; + /** + * @member {boolean} [enabled] True if configuration is enabled, false if it + * is disabled and null if configuration is not set. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing AzureStoragePropertyDictionaryResource. + * AzureStorageInfo dictionary resource. + * + * @extends ProxyOnlyResource + */ +export interface AzureStoragePropertyDictionaryResource extends ProxyOnlyResource { + /** + * @member {{ [propertyName: string]: AzureStorageInfoValue }} [properties] + * Azure storage accounts. + */ + properties?: { [propertyName: string]: AzureStorageInfoValue }; +} + +/** + * @interface + * An interface representing DatabaseBackupSetting. + * Database backup settings. + * + */ +export interface DatabaseBackupSetting { + /** + * @member {DatabaseType} databaseType Database type (e.g. SqlAzure / MySql). + * Possible values include: 'SqlAzure', 'MySql', 'LocalMySql', 'PostgreSql' + */ + databaseType: DatabaseType; + /** + * @member {string} [name] + */ + name?: string; + /** + * @member {string} [connectionStringName] Contains a connection string name + * that is linked to the SiteConfig.ConnectionStrings. + * This is used during restore with overwrite connection strings options. + */ + connectionStringName?: string; + /** + * @member {string} [connectionString] Contains a connection string to a + * database which is being backed up or restored. If the restore should + * happen to a new database, the database name inside is the new one. + */ + connectionString?: string; +} + +/** + * @interface + * An interface representing BackupItem. + * Backup description. + * + * @extends ProxyOnlyResource + */ +export interface BackupItem extends ProxyOnlyResource { + /** + * @member {number} [backupId] Id of the backup. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly backupId?: number; + /** + * @member {string} [storageAccountUrl] SAS URL for the storage account + * container which contains this backup. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly storageAccountUrl?: string; + /** + * @member {string} [blobName] Name of the blob which contains data for this + * backup. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly blobName?: string; + /** + * @member {string} [backupItemName] Name of this backup. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly backupItemName?: string; + /** + * @member {BackupItemStatus} [status] Backup status. Possible values + * include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created', + * 'Skipped', 'PartiallySucceeded', 'DeleteInProgress', 'DeleteFailed', + * 'Deleted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: BackupItemStatus; + /** + * @member {number} [sizeInBytes] Size of the backup in bytes. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sizeInBytes?: number; + /** + * @member {Date} [created] Timestamp of the backup creation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly created?: Date; + /** + * @member {string} [log] Details regarding this backup. Might contain an + * error message. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly log?: string; + /** + * @member {DatabaseBackupSetting[]} [databases] List of databases included + * in the backup. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databases?: DatabaseBackupSetting[]; + /** + * @member {boolean} [scheduled] True if this backup has been created due to + * a schedule being triggered. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly scheduled?: boolean; + /** + * @member {Date} [lastRestoreTimeStamp] Timestamp of a last restore + * operation which used this backup. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastRestoreTimeStamp?: Date; + /** + * @member {Date} [finishedTimeStamp] Timestamp when this backup finished. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly finishedTimeStamp?: Date; + /** + * @member {string} [correlationId] Unique correlation identifier. Please use + * this along with the timestamp while communicating with Azure support. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly correlationId?: string; + /** + * @member {number} [websiteSizeInBytes] Size of the original web app which + * has been backed up. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly websiteSizeInBytes?: number; +} + +/** + * @interface + * An interface representing BackupSchedule. + * Description of a backup schedule. Describes how often should be the backup + * performed and what should be the retention policy. + * + */ +export interface BackupSchedule { + /** + * @member {number} frequencyInterval How often the backup should be executed + * (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should + * be set to Day). Default value: 7 . + */ + frequencyInterval: number; + /** + * @member {FrequencyUnit} frequencyUnit The unit of time for how often the + * backup should be executed (e.g. for weekly backup, this should be set to + * Day and FrequencyInterval should be set to 7). Possible values include: + * 'Day', 'Hour'. Default value: 'Day' . + */ + frequencyUnit: FrequencyUnit; + /** + * @member {boolean} keepAtLeastOneBackup True if the retention policy should + * always keep at least one backup in the storage account, regardless how old + * it is; false otherwise. Default value: true . + */ + keepAtLeastOneBackup: boolean; + /** + * @member {number} retentionPeriodInDays After how many days backups should + * be deleted. Default value: 30 . + */ + retentionPeriodInDays: number; + /** + * @member {Date} [startTime] When the schedule should start working. + */ + startTime?: Date; + /** + * @member {Date} [lastExecutionTime] Last time when this schedule was + * triggered. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastExecutionTime?: Date; +} + +/** + * @interface + * An interface representing BackupRequest. + * Description of a backup which will be performed. + * + * @extends ProxyOnlyResource + */ +export interface BackupRequest extends ProxyOnlyResource { + /** + * @member {string} [backupName] Name of the backup. + */ + backupName?: string; + /** + * @member {boolean} [enabled] True if the backup schedule is enabled (must + * be included in that case), false if the backup schedule should be + * disabled. + */ + enabled?: boolean; + /** + * @member {string} storageAccountUrl SAS URL to the container. + */ + storageAccountUrl: string; + /** + * @member {BackupSchedule} [backupSchedule] Schedule for the backup if it is + * executed periodically. + */ + backupSchedule?: BackupSchedule; + /** + * @member {DatabaseBackupSetting[]} [databases] Databases included in the + * backup. + */ + databases?: DatabaseBackupSetting[]; +} + +/** + * @interface + * An interface representing ConnStringValueTypePair. + * Database connection string value to type pair. + * + */ +export interface ConnStringValueTypePair { + /** + * @member {string} value Value of pair. + */ + value: string; + /** + * @member {ConnectionStringType} type Type of database. Possible values + * include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom', 'NotificationHub', + * 'ServiceBus', 'EventHub', 'ApiHub', 'DocDb', 'RedisCache', 'PostgreSQL' + */ + type: ConnectionStringType; +} + +/** + * @interface + * An interface representing ConnectionStringDictionary. + * String dictionary resource. + * + * @extends ProxyOnlyResource + */ +export interface ConnectionStringDictionary extends ProxyOnlyResource { + /** + * @member {{ [propertyName: string]: ConnStringValueTypePair }} [properties] + * Connection strings. + */ + properties?: { [propertyName: string]: ConnStringValueTypePair }; +} + +/** + * @interface + * An interface representing ContinuousWebJob. + * Continuous Web Job Information. + * + * @extends ProxyOnlyResource + */ +export interface ContinuousWebJob extends ProxyOnlyResource { + /** + * @member {ContinuousWebJobStatus} [status] Job status. Possible values + * include: 'Initializing', 'Starting', 'Running', 'PendingRestart', + * 'Stopped' + */ + status?: ContinuousWebJobStatus; + /** + * @member {string} [detailedStatus] Detailed status. + */ + detailedStatus?: string; + /** + * @member {string} [logUrl] Log URL. + */ + logUrl?: string; + /** + * @member {string} [runCommand] Run command. + */ + runCommand?: string; + /** + * @member {string} [url] Job URL. + */ + url?: string; + /** + * @member {string} [extraInfoUrl] Extra Info URL. + */ + extraInfoUrl?: string; + /** + * @member {WebJobType} [webJobType] Job type. Possible values include: + * 'Continuous', 'Triggered' + */ + webJobType?: WebJobType; + /** + * @member {string} [error] Error information. + */ + error?: string; + /** + * @member {boolean} [usingSdk] Using SDK? + */ + usingSdk?: boolean; + /** + * @member {{ [propertyName: string]: any }} [settings] Job settings. + */ + settings?: { [propertyName: string]: any }; +} + +/** + * @interface + * An interface representing CsmPublishingProfileOptions. + * Publishing options for requested profile. + * + */ +export interface CsmPublishingProfileOptions { + /** + * @member {PublishingProfileFormat} [format] Name of the format. Valid + * values are: + * FileZilla3 + * WebDeploy -- default + * Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + */ + format?: PublishingProfileFormat; + /** + * @member {boolean} [includeDisasterRecoveryEndpoints] Include the + * DisasterRecover endpoint if true + */ + includeDisasterRecoveryEndpoints?: boolean; +} + +/** + * @interface + * An interface representing CsmSlotEntity. + * Deployment slot parameters. + * + */ +export interface CsmSlotEntity { + /** + * @member {string} targetSlot Destination deployment slot during swap + * operation. + */ + targetSlot: string; + /** + * @member {boolean} preserveVnet true to preserve Virtual + * Network to the slot during swap; otherwise, false. + */ + preserveVnet: boolean; +} + +/** + * @interface + * An interface representing CustomHostnameAnalysisResult. + * Custom domain analysis. + * + * @extends ProxyOnlyResource + */ +export interface CustomHostnameAnalysisResult extends ProxyOnlyResource { + /** + * @member {boolean} [isHostnameAlreadyVerified] true if + * hostname is already verified; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isHostnameAlreadyVerified?: boolean; + /** + * @member {DnsVerificationTestResult} [customDomainVerificationTest] DNS + * verification test result. Possible values include: 'Passed', 'Failed', + * 'Skipped' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly customDomainVerificationTest?: DnsVerificationTestResult; + /** + * @member {ErrorEntity} [customDomainVerificationFailureInfo] Raw failure + * information if DNS verification fails. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly customDomainVerificationFailureInfo?: ErrorEntity; + /** + * @member {boolean} [hasConflictOnScaleUnit] true if there is a + * conflict on a scale unit; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hasConflictOnScaleUnit?: boolean; + /** + * @member {boolean} [hasConflictAcrossSubscription] true if + * htere is a conflict across subscriptions; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hasConflictAcrossSubscription?: boolean; + /** + * @member {string} [conflictingAppResourceId] Name of the conflicting app on + * scale unit if it's within the same subscription. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly conflictingAppResourceId?: string; + /** + * @member {string[]} [cNameRecords] CName records controller can see for + * this hostname. + */ + cNameRecords?: string[]; + /** + * @member {string[]} [txtRecords] TXT records controller can see for this + * hostname. + */ + txtRecords?: string[]; + /** + * @member {string[]} [aRecords] A records controller can see for this + * hostname. + */ + aRecords?: string[]; + /** + * @member {string[]} [alternateCNameRecords] Alternate CName records + * controller can see for this hostname. + */ + alternateCNameRecords?: string[]; + /** + * @member {string[]} [alternateTxtRecords] Alternate TXT records controller + * can see for this hostname. + */ + alternateTxtRecords?: string[]; +} + +/** + * @interface + * An interface representing DeletedAppRestoreRequest. + * Details about restoring a deleted app. + * + * @extends ProxyOnlyResource + */ +export interface DeletedAppRestoreRequest extends ProxyOnlyResource { + /** + * @member {string} [deletedSiteId] ARM resource ID of the deleted app. + * Example: + * /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} + */ + deletedSiteId?: string; + /** + * @member {boolean} [recoverConfiguration] If true, deleted site + * configuration, in addition to content, will be restored. + */ + recoverConfiguration?: boolean; + /** + * @member {string} [snapshotTime] Point in time to restore the deleted app + * from, formatted as a DateTime string. + * If unspecified, default value is the time that the app was deleted. + */ + snapshotTime?: string; +} + +/** + * @interface + * An interface representing Deployment. + * User crendentials used for publishing activity. + * + * @extends ProxyOnlyResource + */ +export interface Deployment extends ProxyOnlyResource { + /** + * @member {number} [status] Deployment status. + */ + status?: number; + /** + * @member {string} [message] Details about deployment status. + */ + message?: string; + /** + * @member {string} [author] Who authored the deployment. + */ + author?: string; + /** + * @member {string} [deployer] Who performed the deployment. + */ + deployer?: string; + /** + * @member {string} [authorEmail] Author email. + */ + authorEmail?: string; + /** + * @member {Date} [startTime] Start time. + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time. + */ + endTime?: Date; + /** + * @member {boolean} [active] True if deployment is currently active, false + * if completed and null if not started. + */ + active?: boolean; + /** + * @member {string} [details] Details on deployment. + */ + details?: string; +} + +/** + * @interface + * An interface representing EnabledConfig. + * Enabled configuration. + * + */ +export interface EnabledConfig { + /** + * @member {boolean} [enabled] True if configuration is enabled, false if it + * is disabled and null if configuration is not set. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing FileSystemHttpLogsConfig. + * Http logs to file system configuration. + * + */ +export interface FileSystemHttpLogsConfig { + /** + * @member {number} [retentionInMb] Maximum size in megabytes that http log + * files can use. + * When reached old log files will be removed to make space for new ones. + * Value can range between 25 and 100. + */ + retentionInMb?: number; + /** + * @member {number} [retentionInDays] Retention in days. + * Remove files older than X days. + * 0 or lower means no retention. + */ + retentionInDays?: number; + /** + * @member {boolean} [enabled] True if configuration is enabled, false if it + * is disabled and null if configuration is not set. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing FunctionEnvelope. + * Web Job Information. + * + * @extends ProxyOnlyResource + */ +export interface FunctionEnvelope extends ProxyOnlyResource { + /** + * @member {string} [functionAppId] Function App ID. + */ + functionAppId?: string; + /** + * @member {string} [scriptRootPathHref] Script root path URI. + */ + scriptRootPathHref?: string; + /** + * @member {string} [scriptHref] Script URI. + */ + scriptHref?: string; + /** + * @member {string} [configHref] Config URI. + */ + configHref?: string; + /** + * @member {string} [secretsFileHref] Secrets file URI. + */ + secretsFileHref?: string; + /** + * @member {string} [href] Function URI. + */ + href?: string; + /** + * @member {any} [config] Config information. + */ + config?: any; + /** + * @member {{ [propertyName: string]: string }} [files] File list. + */ + files?: { [propertyName: string]: string }; + /** + * @member {string} [testData] Test data used when testing via the Azure + * Portal. + */ + testData?: string; +} + +/** + * @interface + * An interface representing FunctionSecrets. + * Function secrets. + * + * @extends ProxyOnlyResource + */ +export interface FunctionSecrets extends ProxyOnlyResource { + /** + * @member {string} [key] Secret key. + */ + key?: string; + /** + * @member {string} [triggerUrl] Trigger URL. + */ + triggerUrl?: string; +} + +/** + * @interface + * An interface representing HostNameBinding. + * A hostname binding object. + * + * @extends ProxyOnlyResource + */ +export interface HostNameBinding extends ProxyOnlyResource { + /** + * @member {string} [siteName] App Service app name. + */ + siteName?: string; + /** + * @member {string} [domainId] Fully qualified ARM domain resource URI. + */ + domainId?: string; + /** + * @member {string} [azureResourceName] Azure resource name. + */ + azureResourceName?: string; + /** + * @member {AzureResourceType} [azureResourceType] Azure resource type. + * Possible values include: 'Website', 'TrafficManager' + */ + azureResourceType?: AzureResourceType; + /** + * @member {CustomHostNameDnsRecordType} [customHostNameDnsRecordType] Custom + * DNS record type. Possible values include: 'CName', 'A' + */ + customHostNameDnsRecordType?: CustomHostNameDnsRecordType; + /** + * @member {HostNameType} [hostNameType] Hostname type. Possible values + * include: 'Verified', 'Managed' + */ + hostNameType?: HostNameType; + /** + * @member {SslState} [sslState] SSL type. Possible values include: + * 'Disabled', 'SniEnabled', 'IpBasedEnabled' + */ + sslState?: SslState; + /** + * @member {string} [thumbprint] SSL certificate thumbprint + */ + thumbprint?: string; + /** + * @member {string} [virtualIP] Virtual IP address assigned to the hostname + * if IP based SSL is enabled. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly virtualIP?: string; +} + +/** + * @interface + * An interface representing HttpLogsConfig. + * Http logs configuration. + * + */ +export interface HttpLogsConfig { + /** + * @member {FileSystemHttpLogsConfig} [fileSystem] Http logs to file system + * configuration. + */ + fileSystem?: FileSystemHttpLogsConfig; + /** + * @member {AzureBlobStorageHttpLogsConfig} [azureBlobStorage] Http logs to + * azure blob storage configuration. + */ + azureBlobStorage?: AzureBlobStorageHttpLogsConfig; +} + +/** + * @interface + * An interface representing MSDeploy. + * MSDeploy ARM PUT information + * + * @extends ProxyOnlyResource + */ +export interface MSDeploy extends ProxyOnlyResource { + /** + * @member {string} [packageUri] Package URI + */ + packageUri?: string; + /** + * @member {string} [connectionString] SQL Connection String + */ + connectionString?: string; + /** + * @member {string} [dbType] Database Type + */ + dbType?: string; + /** + * @member {string} [setParametersXmlFileUri] URI of MSDeploy Parameters + * file. Must not be set if SetParameters is used. + */ + setParametersXmlFileUri?: string; + /** + * @member {{ [propertyName: string]: string }} [setParameters] MSDeploy + * Parameters. Must not be set if SetParametersXmlFileUri is used. + */ + setParameters?: { [propertyName: string]: string }; + /** + * @member {boolean} [skipAppData] Controls whether the MSDeploy operation + * skips the App_Data directory. + * If set to true, the existing App_Data directory on the + * destination + * will not be deleted, and any App_Data directory in the source will be + * ignored. + * Setting is false by default. + */ + skipAppData?: boolean; + /** + * @member {boolean} [appOffline] Sets the AppOffline rule while the MSDeploy + * operation executes. + * Setting is false by default. + */ + appOffline?: boolean; +} + +/** + * @interface + * An interface representing MSDeployLogEntry. + * MSDeploy log entry + * + */ +export interface MSDeployLogEntry { + /** + * @member {Date} [time] Timestamp of log entry + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly time?: Date; + /** + * @member {MSDeployLogEntryType} [type] Log entry type. Possible values + * include: 'Message', 'Warning', 'Error' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: MSDeployLogEntryType; + /** + * @member {string} [message] Log entry message + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly message?: string; +} + +/** + * @interface + * An interface representing MSDeployLog. + * MSDeploy log + * + * @extends ProxyOnlyResource + */ +export interface MSDeployLog extends ProxyOnlyResource { + /** + * @member {MSDeployLogEntry[]} [entries] List of log entry messages + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly entries?: MSDeployLogEntry[]; +} + +/** + * @interface + * An interface representing MSDeployStatus. + * MSDeploy ARM response + * + * @extends ProxyOnlyResource + */ +export interface MSDeployStatus extends ProxyOnlyResource { + /** + * @member {string} [deployer] Username of deployer + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deployer?: string; + /** + * @member {MSDeployProvisioningState} [provisioningState] Provisioning + * state. Possible values include: 'accepted', 'running', 'succeeded', + * 'failed', 'canceled' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: MSDeployProvisioningState; + /** + * @member {Date} [startTime] Start time of deploy operation + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] End time of deploy operation + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {boolean} [complete] Whether the deployment operation has + * completed + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly complete?: boolean; +} + +/** + * @interface + * An interface representing MigrateMySqlRequest. + * MySQL migration request. + * + * @extends ProxyOnlyResource + */ +export interface MigrateMySqlRequest extends ProxyOnlyResource { + /** + * @member {string} connectionString Connection string to the remote MySQL + * database. + */ + connectionString: string; + /** + * @member {MySqlMigrationType} migrationType The type of migration operation + * to be done. Possible values include: 'LocalToRemote', 'RemoteToLocal' + */ + migrationType: MySqlMigrationType; +} + +/** + * @interface + * An interface representing MigrateMySqlStatus. + * MySQL migration status. + * + * @extends ProxyOnlyResource + */ +export interface MigrateMySqlStatus extends ProxyOnlyResource { + /** + * @member {OperationStatus} [migrationOperationStatus] Status of the + * migration task. Possible values include: 'InProgress', 'Failed', + * 'Succeeded', 'TimedOut', 'Created' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly migrationOperationStatus?: OperationStatus; + /** + * @member {string} [operationId] Operation ID for the migration task. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly operationId?: string; + /** + * @member {boolean} [localMySqlEnabled] True if the web app has in app MySql + * enabled + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly localMySqlEnabled?: boolean; +} + +/** + * @interface + * An interface representing RelayServiceConnectionEntity. + * Hybrid Connection for an App Service app. + * + * @extends ProxyOnlyResource + */ +export interface RelayServiceConnectionEntity extends ProxyOnlyResource { + /** + * @member {string} [entityName] + */ + entityName?: string; + /** + * @member {string} [entityConnectionString] + */ + entityConnectionString?: string; + /** + * @member {string} [resourceType] + */ + resourceType?: string; + /** + * @member {string} [resourceConnectionString] + */ + resourceConnectionString?: string; + /** + * @member {string} [hostname] + */ + hostname?: string; + /** + * @member {number} [port] + */ + port?: number; + /** + * @member {string} [biztalkUri] + */ + biztalkUri?: string; +} + +/** + * @interface + * An interface representing NetworkFeatures. + * Full view of network features for an app (presently VNET integration and + * Hybrid Connections). + * + * @extends ProxyOnlyResource + */ +export interface NetworkFeatures extends ProxyOnlyResource { + /** + * @member {string} [virtualNetworkName] The Virtual Network name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly virtualNetworkName?: string; + /** + * @member {VnetInfo} [virtualNetworkConnection] The Virtual Network summary + * view. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly virtualNetworkConnection?: VnetInfo; + /** + * @member {RelayServiceConnectionEntity[]} [hybridConnections] The Hybrid + * Connections summary view. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hybridConnections?: RelayServiceConnectionEntity[]; + /** + * @member {HybridConnection[]} [hybridConnectionsV2] The Hybrid Connection + * V2 (Service Bus) view. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hybridConnectionsV2?: HybridConnection[]; +} + +/** + * @interface + * An interface representing NetworkTrace. + * Network trace + * + */ +export interface NetworkTrace { + /** + * @member {string} [path] Local file path for the captured network trace + * file. + */ + path?: string; + /** + * @member {string} [status] Current status of the network trace operation, + * same as Operation.Status (InProgress/Succeeded/Failed). + */ + status?: string; + /** + * @member {string} [message] Detailed message of a network trace operation, + * e.g. error message in case of failure. + */ + message?: string; +} + +/** + * @interface + * An interface representing PerfMonSample. + * Performance monitor sample in a set. + * + */ +export interface PerfMonSample { + /** + * @member {Date} [time] Point in time for which counter was measured. + */ + time?: Date; + /** + * @member {string} [instanceName] Name of the server on which the + * measurement is made. + */ + instanceName?: string; + /** + * @member {number} [value] Value of counter at a certain time. + */ + value?: number; +} + +/** + * @interface + * An interface representing PerfMonSet. + * Metric information. + * + */ +export interface PerfMonSet { + /** + * @member {string} [name] Unique key name of the counter. + */ + name?: string; + /** + * @member {Date} [startTime] Start time of the period. + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time of the period. + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Presented time grain. + */ + timeGrain?: string; + /** + * @member {PerfMonSample[]} [values] Collection of workers that are active + * during this time. + */ + values?: PerfMonSample[]; +} + +/** + * @interface + * An interface representing PerfMonResponse. + * Performance monitor API response. + * + */ +export interface PerfMonResponse { + /** + * @member {string} [code] The response code. + */ + code?: string; + /** + * @member {string} [message] The message. + */ + message?: string; + /** + * @member {PerfMonSet} [data] The performance monitor counters. + */ + data?: PerfMonSet; +} + +/** + * @interface + * An interface representing PremierAddOn. + * Premier add-on. + * + * @extends Resource + */ +export interface PremierAddOn extends Resource { + /** + * @member {string} [sku] Premier add on SKU. + */ + sku?: string; + /** + * @member {string} [product] Premier add on Product. + */ + product?: string; + /** + * @member {string} [vendor] Premier add on Vendor. + */ + vendor?: string; + /** + * @member {string} [marketplacePublisher] Premier add on Marketplace + * publisher. + */ + marketplacePublisher?: string; + /** + * @member {string} [marketplaceOffer] Premier add on Marketplace offer. + */ + marketplaceOffer?: string; +} + +/** + * @interface + * An interface representing PremierAddOnPatchResource. + * ARM resource for a PremierAddOn. + * + * @extends ProxyOnlyResource + */ +export interface PremierAddOnPatchResource extends ProxyOnlyResource { + /** + * @member {string} [sku] Premier add on SKU. + */ + sku?: string; + /** + * @member {string} [product] Premier add on Product. + */ + product?: string; + /** + * @member {string} [vendor] Premier add on Vendor. + */ + vendor?: string; + /** + * @member {string} [marketplacePublisher] Premier add on Marketplace + * publisher. + */ + marketplacePublisher?: string; + /** + * @member {string} [marketplaceOffer] Premier add on Marketplace offer. + */ + marketplaceOffer?: string; +} + +/** + * @interface + * An interface representing PrivateAccessSubnet. + * Description of a Virtual Network subnet that is useable for private site + * access. + * + */ +export interface PrivateAccessSubnet { + /** + * @member {string} [name] The name of the subnet. + */ + name?: string; + /** + * @member {number} [key] The key (ID) of the subnet. + */ + key?: number; +} + +/** + * @interface + * An interface representing PrivateAccessVirtualNetwork. + * Description of a Virtual Network that is useable for private site access. + * + */ +export interface PrivateAccessVirtualNetwork { + /** + * @member {string} [name] The name of the Virtual Network. + */ + name?: string; + /** + * @member {number} [key] The key (ID) of the Virtual Network. + */ + key?: number; + /** + * @member {string} [resourceId] The ARM uri of the Virtual Network + */ + resourceId?: string; + /** + * @member {PrivateAccessSubnet[]} [subnets] A List of subnets that access is + * allowed to on this Virtual Network. An empty array (but not null) is + * interpreted to mean that all subnets are allowed within this Virtual + * Network. + */ + subnets?: PrivateAccessSubnet[]; +} + +/** + * @interface + * An interface representing PrivateAccess. + * Description of the parameters of Private Access for a Web Site. + * + * @extends ProxyOnlyResource + */ +export interface PrivateAccess extends ProxyOnlyResource { + /** + * @member {boolean} [enabled] Whether private access is enabled or not. + */ + enabled?: boolean; + /** + * @member {PrivateAccessVirtualNetwork[]} [virtualNetworks] The Virtual + * Networks (and subnets) allowed to access the site privately. + */ + virtualNetworks?: PrivateAccessVirtualNetwork[]; +} + +/** + * @interface + * An interface representing ProcessThreadInfo. + * Process Thread Information. + * + * @extends ProxyOnlyResource + */ +export interface ProcessThreadInfo extends ProxyOnlyResource { + /** + * @member {number} [identifier] Site extension ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly identifier?: number; + /** + * @member {string} [href] HRef URI. + */ + href?: string; + /** + * @member {string} [process] Process URI. + */ + process?: string; + /** + * @member {string} [startAddress] Start address. + */ + startAddress?: string; + /** + * @member {number} [currentPriority] Current thread priority. + */ + currentPriority?: number; + /** + * @member {string} [priorityLevel] Thread priority level. + */ + priorityLevel?: string; + /** + * @member {number} [basePriority] Base priority. + */ + basePriority?: number; + /** + * @member {Date} [startTime] Start time. + */ + startTime?: Date; + /** + * @member {string} [totalProcessorTime] Total processor time. + */ + totalProcessorTime?: string; + /** + * @member {string} [userProcessorTime] User processor time. + */ + userProcessorTime?: string; + /** + * @member {string} [priviledgedProcessorTime] Priviledged processor time. + */ + priviledgedProcessorTime?: string; + /** + * @member {string} [state] Thread state. + */ + state?: string; + /** + * @member {string} [waitReason] Wait reason. + */ + waitReason?: string; +} + +/** + * @interface + * An interface representing ProcessModuleInfo. + * Process Module Information. + * + * @extends ProxyOnlyResource + */ +export interface ProcessModuleInfo extends ProxyOnlyResource { + /** + * @member {string} [baseAddress] Base address. Used as module identifier in + * ARM resource URI. + */ + baseAddress?: string; + /** + * @member {string} [fileName] File name. + */ + fileName?: string; + /** + * @member {string} [href] HRef URI. + */ + href?: string; + /** + * @member {string} [filePath] File path. + */ + filePath?: string; + /** + * @member {number} [moduleMemorySize] Module memory size. + */ + moduleMemorySize?: number; + /** + * @member {string} [fileVersion] File version. + */ + fileVersion?: string; + /** + * @member {string} [fileDescription] File description. + */ + fileDescription?: string; + /** + * @member {string} [product] Product name. + */ + product?: string; + /** + * @member {string} [productVersion] Product version. + */ + productVersion?: string; + /** + * @member {boolean} [isDebug] Is debug? + */ + isDebug?: boolean; + /** + * @member {string} [language] Module language (locale). + */ + language?: string; +} + +/** + * @interface + * An interface representing ProcessInfo. + * Process Information. + * + * @extends ProxyOnlyResource + */ +export interface ProcessInfo extends ProxyOnlyResource { + /** + * @member {number} [identifier] ARM Identifier for deployment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly identifier?: number; + /** + * @member {string} [deploymentName] Deployment name. + */ + deploymentName?: string; + /** + * @member {string} [href] HRef URI. + */ + href?: string; + /** + * @member {string} [minidump] Minidump URI. + */ + minidump?: string; + /** + * @member {boolean} [isProfileRunning] Is profile running? + */ + isProfileRunning?: boolean; + /** + * @member {boolean} [isIisProfileRunning] Is the IIS Profile running? + */ + isIisProfileRunning?: boolean; + /** + * @member {number} [iisProfileTimeoutInSeconds] IIS Profile timeout + * (seconds). + */ + iisProfileTimeoutInSeconds?: number; + /** + * @member {string} [parent] Parent process. + */ + parent?: string; + /** + * @member {string[]} [children] Child process list. + */ + children?: string[]; + /** + * @member {ProcessThreadInfo[]} [threads] Thread list. + */ + threads?: ProcessThreadInfo[]; + /** + * @member {string[]} [openFileHandles] List of open files. + */ + openFileHandles?: string[]; + /** + * @member {ProcessModuleInfo[]} [modules] List of modules. + */ + modules?: ProcessModuleInfo[]; + /** + * @member {string} [fileName] File name of this process. + */ + fileName?: string; + /** + * @member {string} [commandLine] Command line. + */ + commandLine?: string; + /** + * @member {string} [userName] User name. + */ + userName?: string; + /** + * @member {number} [handleCount] Handle count. + */ + handleCount?: number; + /** + * @member {number} [moduleCount] Module count. + */ + moduleCount?: number; + /** + * @member {number} [threadCount] Thread count. + */ + threadCount?: number; + /** + * @member {Date} [startTime] Start time. + */ + startTime?: Date; + /** + * @member {string} [totalCpuTime] Total CPU time. + */ + totalCpuTime?: string; + /** + * @member {string} [userCpuTime] User CPU time. + */ + userCpuTime?: string; + /** + * @member {string} [privilegedCpuTime] Privileged CPU time. + */ + privilegedCpuTime?: string; + /** + * @member {number} [workingSet] Working set. + */ + workingSet?: number; + /** + * @member {number} [peakWorkingSet] Peak working set. + */ + peakWorkingSet?: number; + /** + * @member {number} [privateMemory] Private memory size. + */ + privateMemory?: number; + /** + * @member {number} [virtualMemory] Virtual memory size. + */ + virtualMemory?: number; + /** + * @member {number} [peakVirtualMemory] Peak virtual memory usage. + */ + peakVirtualMemory?: number; + /** + * @member {number} [pagedSystemMemory] Paged system memory. + */ + pagedSystemMemory?: number; + /** + * @member {number} [nonPagedSystemMemory] Non-paged system memory. + */ + nonPagedSystemMemory?: number; + /** + * @member {number} [pagedMemory] Paged memory. + */ + pagedMemory?: number; + /** + * @member {number} [peakPagedMemory] Peak paged memory. + */ + peakPagedMemory?: number; + /** + * @member {Date} [timeStamp] Time stamp. + */ + timeStamp?: Date; + /** + * @member {{ [propertyName: string]: string }} [environmentVariables] List + * of environment variables. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * @member {boolean} [isScmSite] Is this the SCM site? + */ + isScmSite?: boolean; + /** + * @member {boolean} [isWebjob] Is this a Web Job? + */ + isWebjob?: boolean; + /** + * @member {string} [description] Description of process. + */ + description?: string; +} + +/** + * @interface + * An interface representing PublicCertificate. + * Public certificate object + * + * @extends ProxyOnlyResource + */ +export interface PublicCertificate extends ProxyOnlyResource { + /** + * @member {Uint8Array} [blob] Public Certificate byte array + */ + blob?: Uint8Array; + /** + * @member {PublicCertificateLocation} [publicCertificateLocation] Public + * Certificate Location. Possible values include: 'CurrentUserMy', + * 'LocalMachineMy', 'Unknown' + */ + publicCertificateLocation?: PublicCertificateLocation; + /** + * @member {string} [thumbprint] Certificate Thumbprint + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly thumbprint?: string; +} + +/** + * @interface + * An interface representing RestoreRequest. + * Description of a restore request. + * + * @extends ProxyOnlyResource + */ +export interface RestoreRequest extends ProxyOnlyResource { + /** + * @member {string} storageAccountUrl SAS URL to the container. + */ + storageAccountUrl: string; + /** + * @member {string} [blobName] Name of a blob which contains the backup. + */ + blobName?: string; + /** + * @member {boolean} overwrite true if the restore operation can + * overwrite target app; otherwise, false. true is + * needed if trying to restore over an existing app. + */ + overwrite: boolean; + /** + * @member {string} [siteName] Name of an app. + */ + siteName?: string; + /** + * @member {DatabaseBackupSetting[]} [databases] Collection of databases + * which should be restored. This list has to match the list of databases + * included in the backup. + */ + databases?: DatabaseBackupSetting[]; + /** + * @member {boolean} [ignoreConflictingHostNames] Changes a logic when + * restoring an app with custom domains. true to remove custom + * domains automatically. If false, custom domains are added to + * the app's object when it is being restored, but that might fail due to + * conflicts during the operation. Default value: false . + */ + ignoreConflictingHostNames?: boolean; + /** + * @member {boolean} [ignoreDatabases] Ignore the databases and only restore + * the site content. Default value: false . + */ + ignoreDatabases?: boolean; + /** + * @member {string} [appServicePlan] Specify app service plan that will own + * restored site. + */ + appServicePlan?: string; + /** + * @member {BackupRestoreOperationType} [operationType] Operation type. + * Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', + * 'CloudFS'. Default value: 'Default' . + */ + operationType?: BackupRestoreOperationType; + /** + * @member {boolean} [adjustConnectionStrings] true if + * SiteConfig.ConnectionStrings should be set in new app; otherwise, + * false. + */ + adjustConnectionStrings?: boolean; + /** + * @member {string} [hostingEnvironment] App Service Environment name, if + * needed (only when restoring an app to an App Service Environment). + */ + hostingEnvironment?: string; +} + +/** + * @interface + * An interface representing SiteAuthSettings. + * Configuration settings for the Azure App Service Authentication / + * Authorization feature. + * + * @extends ProxyOnlyResource + */ +export interface SiteAuthSettings extends ProxyOnlyResource { + /** + * @member {boolean} [enabled] true if the Authentication / + * Authorization feature is enabled for the current app; otherwise, + * false. + */ + enabled?: boolean; + /** + * @member {string} [runtimeVersion] The RuntimeVersion of the Authentication + * / Authorization feature in use for the current app. + * The setting in this value can control the behavior of certain features in + * the Authentication / Authorization module. + */ + runtimeVersion?: string; + /** + * @member {UnauthenticatedClientAction} [unauthenticatedClientAction] The + * action to take when an unauthenticated client attempts to access the app. + * Possible values include: 'RedirectToLoginPage', 'AllowAnonymous' + */ + unauthenticatedClientAction?: UnauthenticatedClientAction; + /** + * @member {boolean} [tokenStoreEnabled] true to durably store + * platform-specific security tokens that are obtained during login flows; + * otherwise, false. + * The default is false. + */ + tokenStoreEnabled?: boolean; + /** + * @member {string[]} [allowedExternalRedirectUrls] External URLs that can be + * redirected to as part of logging in or logging out of the app. Note that + * the query string part of the URL is ignored. + * This is an advanced setting typically only needed by Windows Store + * application backends. + * Note that URLs within the current domain are always implicitly allowed. + */ + allowedExternalRedirectUrls?: string[]; + /** + * @member {BuiltInAuthenticationProvider} [defaultProvider] The default + * authentication provider to use when multiple providers are configured. + * This setting is only needed if multiple providers are configured and the + * unauthenticated client + * action is set to "RedirectToLoginPage". Possible values include: + * 'AzureActiveDirectory', 'Facebook', 'Google', 'MicrosoftAccount', + * 'Twitter' + */ + defaultProvider?: BuiltInAuthenticationProvider; + /** + * @member {number} [tokenRefreshExtensionHours] The number of hours after + * session token expiration that a session token can be used to + * call the token refresh API. The default is 72 hours. + */ + tokenRefreshExtensionHours?: number; + /** + * @member {string} [clientId] The Client ID of this relying party + * application, known as the client_id. + * This setting is required for enabling OpenID Connection authentication + * with Azure Active Directory or + * other 3rd party OpenID Connect providers. + * More information on OpenID Connect: + * http://openid.net/specs/openid-connect-core-1_0.html + */ + clientId?: string; + /** + * @member {string} [clientSecret] The Client Secret of this relying party + * application (in Azure Active Directory, this is also referred to as the + * Key). + * This setting is optional. If no client secret is configured, the OpenID + * Connect implicit auth flow is used to authenticate end users. + * Otherwise, the OpenID Connect Authorization Code Flow is used to + * authenticate end users. + * More information on OpenID Connect: + * http://openid.net/specs/openid-connect-core-1_0.html + */ + clientSecret?: string; + /** + * @member {string} [issuer] The OpenID Connect Issuer URI that represents + * the entity which issues access tokens for this application. + * When using Azure Active Directory, this value is the URI of the directory + * tenant, e.g. https://sts.windows.net/{tenant-guid}/. + * This URI is a case-sensitive identifier for the token issuer. + * More information on OpenID Connect Discovery: + * http://openid.net/specs/openid-connect-discovery-1_0.html + */ + issuer?: string; + /** + * @member {boolean} [validateIssuer] Gets a value indicating whether the + * issuer should be a valid HTTPS url and be validated as such. + */ + validateIssuer?: boolean; + /** + * @member {string[]} [allowedAudiences] Allowed audience values to consider + * when validating JWTs issued by + * Azure Active Directory. Note that the ClientID value is + * always considered an + * allowed audience, regardless of this setting. + */ + allowedAudiences?: string[]; + /** + * @member {string[]} [additionalLoginParams] Login parameters to send to the + * OpenID Connect authorization endpoint when + * a user logs in. Each parameter must be in the form "key=value". + */ + additionalLoginParams?: string[]; + /** + * @member {string} [googleClientId] The OpenID Connect Client ID for the + * Google web application. + * This setting is required for enabling Google Sign-In. + * Google Sign-In documentation: + * https://developers.google.com/identity/sign-in/web/ + */ + googleClientId?: string; + /** + * @member {string} [googleClientSecret] The client secret associated with + * the Google web application. + * This setting is required for enabling Google Sign-In. + * Google Sign-In documentation: + * https://developers.google.com/identity/sign-in/web/ + */ + googleClientSecret?: string; + /** + * @member {string[]} [googleOAuthScopes] The OAuth 2.0 scopes that will be + * requested as part of Google Sign-In authentication. + * This setting is optional. If not specified, "openid", "profile", and + * "email" are used as default scopes. + * Google Sign-In documentation: + * https://developers.google.com/identity/sign-in/web/ + */ + googleOAuthScopes?: string[]; + /** + * @member {string} [facebookAppId] The App ID of the Facebook app used for + * login. + * This setting is required for enabling Facebook Login. + * Facebook Login documentation: + * https://developers.facebook.com/docs/facebook-login + */ + facebookAppId?: string; + /** + * @member {string} [facebookAppSecret] The App Secret of the Facebook app + * used for Facebook Login. + * This setting is required for enabling Facebook Login. + * Facebook Login documentation: + * https://developers.facebook.com/docs/facebook-login + */ + facebookAppSecret?: string; + /** + * @member {string[]} [facebookOAuthScopes] The OAuth 2.0 scopes that will be + * requested as part of Facebook Login authentication. + * This setting is optional. + * Facebook Login documentation: + * https://developers.facebook.com/docs/facebook-login + */ + facebookOAuthScopes?: string[]; + /** + * @member {string} [twitterConsumerKey] The OAuth 1.0a consumer key of the + * Twitter application used for sign-in. + * This setting is required for enabling Twitter Sign-In. + * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in + */ + twitterConsumerKey?: string; + /** + * @member {string} [twitterConsumerSecret] The OAuth 1.0a consumer secret of + * the Twitter application used for sign-in. + * This setting is required for enabling Twitter Sign-In. + * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in + */ + twitterConsumerSecret?: string; + /** + * @member {string} [microsoftAccountClientId] The OAuth 2.0 client ID that + * was created for the app used for authentication. + * This setting is required for enabling Microsoft Account authentication. + * Microsoft Account OAuth documentation: + * https://dev.onedrive.com/auth/msa_oauth.htm + */ + microsoftAccountClientId?: string; + /** + * @member {string} [microsoftAccountClientSecret] The OAuth 2.0 client + * secret that was created for the app used for authentication. + * This setting is required for enabling Microsoft Account authentication. + * Microsoft Account OAuth documentation: + * https://dev.onedrive.com/auth/msa_oauth.htm + */ + microsoftAccountClientSecret?: string; + /** + * @member {string[]} [microsoftAccountOAuthScopes] The OAuth 2.0 scopes that + * will be requested as part of Microsoft Account authentication. + * This setting is optional. If not specified, "wl.basic" is used as the + * default scope. + * Microsoft Account Scopes and permissions documentation: + * https://msdn.microsoft.com/en-us/library/dn631845.aspx + */ + microsoftAccountOAuthScopes?: string[]; +} + +/** + * @interface + * An interface representing SiteCloneabilityCriterion. + * An app cloneability criterion. + * + */ +export interface SiteCloneabilityCriterion { + /** + * @member {string} [name] Name of criterion. + */ + name?: string; + /** + * @member {string} [description] Description of criterion. + */ + description?: string; +} + +/** + * @interface + * An interface representing SiteCloneability. + * Represents whether or not an app is cloneable. + * + */ +export interface SiteCloneability { + /** + * @member {CloneAbilityResult} [result] Name of app. Possible values + * include: 'Cloneable', 'PartiallyCloneable', 'NotCloneable' + */ + result?: CloneAbilityResult; + /** + * @member {SiteCloneabilityCriterion[]} [blockingFeatures] List of features + * enabled on app that prevent cloning. + */ + blockingFeatures?: SiteCloneabilityCriterion[]; + /** + * @member {SiteCloneabilityCriterion[]} [unsupportedFeatures] List of + * features enabled on app that are non-blocking but cannot be cloned. The + * app can still be cloned + * but the features in this list will not be set up on cloned app. + */ + unsupportedFeatures?: SiteCloneabilityCriterion[]; + /** + * @member {SiteCloneabilityCriterion[]} [blockingCharacteristics] List of + * blocking application characteristics. + */ + blockingCharacteristics?: SiteCloneabilityCriterion[]; +} + +/** + * @interface + * An interface representing SiteConfigResource. + * Web app configuration ARM resource. + * + * @extends ProxyOnlyResource + */ +export interface SiteConfigResource extends ProxyOnlyResource { + /** + * @member {number} [numberOfWorkers] Number of workers. + */ + numberOfWorkers?: number; + /** + * @member {string[]} [defaultDocuments] Default documents. + */ + defaultDocuments?: string[]; + /** + * @member {string} [netFrameworkVersion] .NET Framework version. Default + * value: 'v4.6' . + */ + netFrameworkVersion?: string; + /** + * @member {string} [phpVersion] Version of PHP. + */ + phpVersion?: string; + /** + * @member {string} [pythonVersion] Version of Python. + */ + pythonVersion?: string; + /** + * @member {string} [nodeVersion] Version of Node.js. + */ + nodeVersion?: string; + /** + * @member {string} [linuxFxVersion] Linux App Framework and version + */ + linuxFxVersion?: string; + /** + * @member {string} [windowsFxVersion] Xenon App Framework and version + */ + windowsFxVersion?: string; + /** + * @member {boolean} [requestTracingEnabled] true if request + * tracing is enabled; otherwise, false. + */ + requestTracingEnabled?: boolean; + /** + * @member {Date} [requestTracingExpirationTime] Request tracing expiration + * time. + */ + requestTracingExpirationTime?: Date; + /** + * @member {boolean} [remoteDebuggingEnabled] true if remote + * debugging is enabled; otherwise, false. + */ + remoteDebuggingEnabled?: boolean; + /** + * @member {string} [remoteDebuggingVersion] Remote debugging version. + */ + remoteDebuggingVersion?: string; + /** + * @member {boolean} [httpLoggingEnabled] true if HTTP logging + * is enabled; otherwise, false. + */ + httpLoggingEnabled?: boolean; + /** + * @member {number} [logsDirectorySizeLimit] HTTP logs directory size limit. + */ + logsDirectorySizeLimit?: number; + /** + * @member {boolean} [detailedErrorLoggingEnabled] true if + * detailed error logging is enabled; otherwise, false. + */ + detailedErrorLoggingEnabled?: boolean; + /** + * @member {string} [publishingUsername] Publishing user name. + */ + publishingUsername?: string; + /** + * @member {NameValuePair[]} [appSettings] Application settings. + */ + appSettings?: NameValuePair[]; + /** + * @member {{ [propertyName: string]: AzureStorageInfoValue }} + * [azureStorageAccounts] User-provided Azure storage accounts. + */ + azureStorageAccounts?: { [propertyName: string]: AzureStorageInfoValue }; + /** + * @member {ConnStringInfo[]} [connectionStrings] Connection strings. + */ + connectionStrings?: ConnStringInfo[]; + /** + * @member {SiteMachineKey} [machineKey] Site MachineKey. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly machineKey?: SiteMachineKey; + /** + * @member {HandlerMapping[]} [handlerMappings] Handler mappings. + */ + handlerMappings?: HandlerMapping[]; + /** + * @member {string} [documentRoot] Document root. + */ + documentRoot?: string; + /** + * @member {ScmType} [scmType] SCM type. Possible values include: 'None', + * 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', + * 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', + * 'VSO' + */ + scmType?: ScmType; + /** + * @member {boolean} [use32BitWorkerProcess] true to use 32-bit + * worker process; otherwise, false. + */ + use32BitWorkerProcess?: boolean; + /** + * @member {boolean} [webSocketsEnabled] true if WebSocket is + * enabled; otherwise, false. + */ + webSocketsEnabled?: boolean; + /** + * @member {boolean} [alwaysOn] true if Always On is enabled; + * otherwise, false. + */ + alwaysOn?: boolean; + /** + * @member {string} [javaVersion] Java version. + */ + javaVersion?: string; + /** + * @member {string} [javaContainer] Java container. + */ + javaContainer?: string; + /** + * @member {string} [javaContainerVersion] Java container version. + */ + javaContainerVersion?: string; + /** + * @member {string} [appCommandLine] App command line to launch. + */ + appCommandLine?: string; + /** + * @member {ManagedPipelineMode} [managedPipelineMode] Managed pipeline mode. + * Possible values include: 'Integrated', 'Classic' + */ + managedPipelineMode?: ManagedPipelineMode; + /** + * @member {VirtualApplication[]} [virtualApplications] Virtual applications. + */ + virtualApplications?: VirtualApplication[]; + /** + * @member {SiteLoadBalancing} [loadBalancing] Site load balancing. Possible + * values include: 'WeightedRoundRobin', 'LeastRequests', + * 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' + */ + loadBalancing?: SiteLoadBalancing; + /** + * @member {Experiments} [experiments] This is work around for polymophic + * types. + */ + experiments?: Experiments; + /** + * @member {SiteLimits} [limits] Site limits. + */ + limits?: SiteLimits; + /** + * @member {boolean} [autoHealEnabled] true if Auto Heal is + * enabled; otherwise, false. + */ + autoHealEnabled?: boolean; + /** + * @member {AutoHealRules} [autoHealRules] Auto Heal rules. + */ + autoHealRules?: AutoHealRules; + /** + * @member {string} [tracingOptions] Tracing options. + */ + tracingOptions?: string; + /** + * @member {string} [vnetName] Virtual Network name. + */ + vnetName?: string; + /** + * @member {CorsSettings} [cors] Cross-Origin Resource Sharing (CORS) + * settings. + */ + cors?: CorsSettings; + /** + * @member {PushSettings} [push] Push endpoint settings. + */ + push?: PushSettings; + /** + * @member {ApiDefinitionInfo} [apiDefinition] Information about the formal + * API definition for the app. + */ + apiDefinition?: ApiDefinitionInfo; + /** + * @member {string} [autoSwapSlotName] Auto-swap slot name. + */ + autoSwapSlotName?: string; + /** + * @member {boolean} [localMySqlEnabled] true to enable local + * MySQL; otherwise, false. Default value: false . + */ + localMySqlEnabled?: boolean; + /** + * @member {number} [managedServiceIdentityId] Managed Service Identity Id + */ + managedServiceIdentityId?: number; + /** + * @member {number} [xManagedServiceIdentityId] Explicit Managed Service + * Identity Id + */ + xManagedServiceIdentityId?: number; + /** + * @member {IpSecurityRestriction[]} [ipSecurityRestrictions] IP security + * restrictions. + */ + ipSecurityRestrictions?: IpSecurityRestriction[]; + /** + * @member {boolean} [http20Enabled] Http20Enabled: configures a web site to + * allow clients to connect over http2.0. Default value: true . + */ + http20Enabled?: boolean; + /** + * @member {SupportedTlsVersions} [minTlsVersion] MinTlsVersion: configures + * the minimum version of TLS required for SSL requests. Possible values + * include: '1.0', '1.1', '1.2' + */ + minTlsVersion?: SupportedTlsVersions; + /** + * @member {FtpsState} [ftpsState] State of FTP / FTPS service. Possible + * values include: 'AllAllowed', 'FtpsOnly', 'Disabled' + */ + ftpsState?: FtpsState; + /** + * @member {number} [reservedInstanceCount] Number of reserved instances. + * This setting only applies to the Consumption Plan + */ + reservedInstanceCount?: number; +} + +/** + * @interface + * An interface representing SiteConfigurationSnapshotInfo. + * A snapshot of a web app configuration. + * + * @extends ProxyOnlyResource + */ +export interface SiteConfigurationSnapshotInfo extends ProxyOnlyResource { + /** + * @member {Date} [time] The time the snapshot was taken. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly time?: Date; + /** + * @member {number} [snapshotId] The id of the snapshot + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly snapshotId?: number; +} + +/** + * @interface + * An interface representing SiteExtensionInfo. + * Site Extension Information. + * + * @extends ProxyOnlyResource + */ +export interface SiteExtensionInfo extends ProxyOnlyResource { + /** + * @member {string} [extensionId] Site extension ID. + */ + extensionId?: string; + /** + * @member {string} [title] + */ + title?: string; + /** + * @member {SiteExtensionType} [extensionType] Site extension type. Possible + * values include: 'Gallery', 'WebRoot' + */ + extensionType?: SiteExtensionType; + /** + * @member {string} [summary] Summary description. + */ + summary?: string; + /** + * @member {string} [description] Detailed description. + */ + description?: string; + /** + * @member {string} [version] Version information. + */ + version?: string; + /** + * @member {string} [extensionUrl] Extension URL. + */ + extensionUrl?: string; + /** + * @member {string} [projectUrl] Project URL. + */ + projectUrl?: string; + /** + * @member {string} [iconUrl] Icon URL. + */ + iconUrl?: string; + /** + * @member {string} [licenseUrl] License URL. + */ + licenseUrl?: string; + /** + * @member {string} [feedUrl] Feed URL. + */ + feedUrl?: string; + /** + * @member {string[]} [authors] List of authors. + */ + authors?: string[]; + /** + * @member {string} [installerCommandLineParams] Installer command line + * parameters. + */ + installerCommandLineParams?: string; + /** + * @member {Date} [publishedDateTime] Published timestamp. + */ + publishedDateTime?: Date; + /** + * @member {number} [downloadCount] Count of downloads. + */ + downloadCount?: number; + /** + * @member {boolean} [localIsLatestVersion] true if the local + * version is the latest version; false otherwise. + */ + localIsLatestVersion?: boolean; + /** + * @member {string} [localPath] Local path. + */ + localPath?: string; + /** + * @member {Date} [installedDateTime] Installed timestamp. + */ + installedDateTime?: Date; + /** + * @member {string} [provisioningState] Provisioning state. + */ + provisioningState?: string; + /** + * @member {string} [comment] Site Extension comment. + */ + comment?: string; +} + +/** + * @interface + * An interface representing SiteInstance. + * Instance of an app. + * + * @extends ProxyOnlyResource + */ +export interface SiteInstance extends ProxyOnlyResource { + /** + * @member {string} [siteInstanceName] Name of instance. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly siteInstanceName?: string; +} + +/** + * @interface + * An interface representing SiteLogsConfig. + * Configuration of App Service site logs. + * + * @extends ProxyOnlyResource + */ +export interface SiteLogsConfig extends ProxyOnlyResource { + /** + * @member {ApplicationLogsConfig} [applicationLogs] Application logs + * configuration. + */ + applicationLogs?: ApplicationLogsConfig; + /** + * @member {HttpLogsConfig} [httpLogs] HTTP logs configuration. + */ + httpLogs?: HttpLogsConfig; + /** + * @member {EnabledConfig} [failedRequestsTracing] Failed requests tracing + * configuration. + */ + failedRequestsTracing?: EnabledConfig; + /** + * @member {EnabledConfig} [detailedErrorMessages] Detailed error messages + * configuration. + */ + detailedErrorMessages?: EnabledConfig; +} + +/** + * @interface + * An interface representing SitePatchResource. + * ARM resource for a site. + * + * @extends ProxyOnlyResource + */ +export interface SitePatchResource extends ProxyOnlyResource { + /** + * @member {string} [state] Current state of the app. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: string; + /** + * @member {string[]} [hostNames] Hostnames associated with the app. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly hostNames?: string[]; + /** + * @member {string} [repositorySiteName] Name of the repository site. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly repositorySiteName?: string; + /** + * @member {UsageState} [usageState] State indicating whether the app has + * exceeded its quota usage. Read-only. Possible values include: 'Normal', + * 'Exceeded' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly usageState?: UsageState; + /** + * @member {boolean} [enabled] true if the app is enabled; + * otherwise, false. Setting this value to false disables the + * app (takes the app offline). + */ + enabled?: boolean; + /** + * @member {string[]} [enabledHostNames] Enabled hostnames for the + * app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, + * the app is not served on those hostnames. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly enabledHostNames?: string[]; + /** + * @member {SiteAvailabilityState} [availabilityState] Management information + * availability state for the app. Possible values include: 'Normal', + * 'Limited', 'DisasterRecoveryMode' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly availabilityState?: SiteAvailabilityState; + /** + * @member {HostNameSslState[]} [hostNameSslStates] Hostname SSL states are + * used to manage the SSL bindings for app's hostnames. + */ + hostNameSslStates?: HostNameSslState[]; + /** + * @member {string} [serverFarmId] Resource ID of the associated App Service + * plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; + /** + * @member {boolean} [reserved] true if reserved; otherwise, + * false. Default value: false . + */ + reserved?: boolean; + /** + * @member {boolean} [isXenon] Obsolete: Hyper-V sandbox. Default value: + * false . + */ + isXenon?: boolean; + /** + * @member {boolean} [hyperV] Hyper-V sandbox. Default value: false . + */ + hyperV?: boolean; + /** + * @member {Date} [lastModifiedTimeUtc] Last time the app was modified, in + * UTC. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTimeUtc?: Date; + /** + * @member {SiteConfig} [siteConfig] Configuration of the app. + */ + siteConfig?: SiteConfig; + /** + * @member {string[]} [trafficManagerHostNames] Azure Traffic Manager + * hostnames associated with the app. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly trafficManagerHostNames?: string[]; + /** + * @member {boolean} [scmSiteAlsoStopped] true to stop SCM + * (KUDU) site when the app is stopped; otherwise, false. The + * default is false. Default value: false . + */ + scmSiteAlsoStopped?: boolean; + /** + * @member {string} [targetSwapSlot] Specifies which deployment slot this app + * will swap into. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetSwapSlot?: string; + /** + * @member {HostingEnvironmentProfile} [hostingEnvironmentProfile] App + * Service Environment to use for the app. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * @member {boolean} [clientAffinityEnabled] true to enable + * client affinity; false to stop sending session affinity + * cookies, which route client requests in the same session to the same + * instance. Default is true. + */ + clientAffinityEnabled?: boolean; + /** + * @member {boolean} [clientCertEnabled] true to enable client + * certificate authentication (TLS mutual authentication); otherwise, + * false. Default is false. + */ + clientCertEnabled?: boolean; + /** + * @member {boolean} [hostNamesDisabled] true to disable the + * public hostnames of the app; otherwise, false. + * If true, the app is only accessible via API management + * process. + */ + hostNamesDisabled?: boolean; + /** + * @member {string} [outboundIpAddresses] List of IP addresses that the app + * uses for outbound connections (e.g. database access). Includes VIPs from + * tenants that site can be hosted with current settings. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly outboundIpAddresses?: string; + /** + * @member {string} [possibleOutboundIpAddresses] List of IP addresses that + * the app uses for outbound connections (e.g. database access). Includes + * VIPs from all tenants. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly possibleOutboundIpAddresses?: string; + /** + * @member {number} [containerSize] Size of the function container. + */ + containerSize?: number; + /** + * @member {number} [dailyMemoryTimeQuota] Maximum allowed daily memory-time + * quota (applicable on dynamic apps only). + */ + dailyMemoryTimeQuota?: number; + /** + * @member {Date} [suspendedTill] App suspended till in case memory-time + * quota is exceeded. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly suspendedTill?: Date; + /** + * @member {number} [maxNumberOfWorkers] Maximum number of workers. + * This only applies to Functions container. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maxNumberOfWorkers?: number; + /** + * @member {CloningInfo} [cloningInfo] If specified during app creation, the + * app is cloned from a source app. + */ + cloningInfo?: CloningInfo; + /** + * @member {string} [resourceGroup] Name of the resource group the app + * belongs to. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {boolean} [isDefaultContainer] true if the app is a + * default container; otherwise, false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isDefaultContainer?: boolean; + /** + * @member {string} [defaultHostName] Default hostname of the app. Read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly defaultHostName?: string; + /** + * @member {SlotSwapStatus} [slotSwapStatus] Status of the last deployment + * slot swap operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly slotSwapStatus?: SlotSwapStatus; + /** + * @member {boolean} [httpsOnly] HttpsOnly: configures a web site to accept + * only https requests. Issues redirect for + * http requests + */ + httpsOnly?: boolean; +} + +/** + * @interface + * An interface representing SitePhpErrorLogFlag. + * Used for getting PHP error logging flag. + * + * @extends ProxyOnlyResource + */ +export interface SitePhpErrorLogFlag extends ProxyOnlyResource { + /** + * @member {string} [localLogErrors] Local log_errors setting. + */ + localLogErrors?: string; + /** + * @member {string} [masterLogErrors] Master log_errors setting. + */ + masterLogErrors?: string; + /** + * @member {string} [localLogErrorsMaxLength] Local log_errors_max_len + * setting. + */ + localLogErrorsMaxLength?: string; + /** + * @member {string} [masterLogErrorsMaxLength] Master log_errors_max_len + * setting. + */ + masterLogErrorsMaxLength?: string; +} + +/** + * @interface + * An interface representing SiteSourceControl. + * Source control configuration for an app. + * + * @extends ProxyOnlyResource + */ +export interface SiteSourceControl extends ProxyOnlyResource { + /** + * @member {string} [repoUrl] Repository or source control URL. + */ + repoUrl?: string; + /** + * @member {string} [branch] Name of branch to use for deployment. + */ + branch?: string; + /** + * @member {boolean} [isManualIntegration] true to limit to + * manual integration; false to enable continuous integration + * (which configures webhooks into online repos like GitHub). + */ + isManualIntegration?: boolean; + /** + * @member {boolean} [deploymentRollbackEnabled] true to enable + * deployment rollback; otherwise, false. + */ + deploymentRollbackEnabled?: boolean; + /** + * @member {boolean} [isMercurial] true for a Mercurial + * repository; false for a Git repository. + */ + isMercurial?: boolean; +} + +/** + * @interface + * An interface representing SlotConfigNamesResource. + * Slot Config names azure resource. + * + * @extends ProxyOnlyResource + */ +export interface SlotConfigNamesResource extends ProxyOnlyResource { + /** + * @member {string[]} [connectionStringNames] List of connection string + * names. + */ + connectionStringNames?: string[]; + /** + * @member {string[]} [appSettingNames] List of application settings names. + */ + appSettingNames?: string[]; + /** + * @member {string[]} [azureStorageConfigNames] List of external Azure + * storage account identifiers. + */ + azureStorageConfigNames?: string[]; +} + +/** + * @interface + * An interface representing SlotDifference. + * A setting difference between two deployment slots of an app. + * + * @extends ProxyOnlyResource + */ +export interface SlotDifference extends ProxyOnlyResource { + /** + * @member {string} [level] Level of the difference: Information, Warning or + * Error. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly level?: string; + /** + * @member {string} [settingType] The type of the setting: General, + * AppSetting or ConnectionString. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly settingType?: string; + /** + * @member {string} [diffRule] Rule that describes how to process the setting + * difference during a slot swap. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly diffRule?: string; + /** + * @member {string} [settingName] Name of the setting. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly settingName?: string; + /** + * @member {string} [valueInCurrentSlot] Value of the setting in the current + * slot. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly valueInCurrentSlot?: string; + /** + * @member {string} [valueInTargetSlot] Value of the setting in the target + * slot. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly valueInTargetSlot?: string; + /** + * @member {string} [description] Description of the setting difference. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; +} + +/** + * @interface + * An interface representing SnapshotRecoverySource. + * Specifies the web app that snapshot contents will be retrieved from. + * + */ +export interface SnapshotRecoverySource { + /** + * @member {string} [location] Geographical location of the source web app, + * e.g. SouthEastAsia, SouthCentralUS + */ + location?: string; + /** + * @member {string} [id] ARM resource ID of the source app. + * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} + * for production slots and + * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} + * for other slots. + */ + id?: string; +} + +/** + * @interface + * An interface representing SnapshotRestoreRequest. + * Details about app recovery operation. + * + * @extends ProxyOnlyResource + */ +export interface SnapshotRestoreRequest extends ProxyOnlyResource { + /** + * @member {string} [snapshotTime] Point in time in which the app restore + * should be done, formatted as a DateTime string. + */ + snapshotTime?: string; + /** + * @member {SnapshotRecoverySource} [recoverySource] Optional. Specifies the + * web app that snapshot contents will be retrieved from. + * If empty, the targeted web app will be used as the source. + */ + recoverySource?: SnapshotRecoverySource; + /** + * @member {boolean} overwrite If true the restore operation can + * overwrite source app; otherwise, false. + */ + overwrite: boolean; + /** + * @member {boolean} [recoverConfiguration] If true, site configuration, in + * addition to content, will be reverted. + */ + recoverConfiguration?: boolean; + /** + * @member {boolean} [ignoreConflictingHostNames] If true, custom hostname + * conflicts will be ignored when recovering to a target web app. + * This setting is only necessary when RecoverConfiguration is enabled. + */ + ignoreConflictingHostNames?: boolean; +} + +/** + * @interface + * An interface representing StorageMigrationOptions. + * Options for app content migration. + * + * @extends ProxyOnlyResource + */ +export interface StorageMigrationOptions extends ProxyOnlyResource { + /** + * @member {string} azurefilesConnectionString AzureFiles connection string. + */ + azurefilesConnectionString: string; + /** + * @member {string} azurefilesShare AzureFiles share. + */ + azurefilesShare: string; + /** + * @member {boolean} [switchSiteAfterMigration] trueif the app + * should be switched over; otherwise, false. Default value: + * false . + */ + switchSiteAfterMigration?: boolean; + /** + * @member {boolean} [blockWriteAccessToSite] true if the app + * should be read only during copy operation; otherwise, false. + * Default value: false . + */ + blockWriteAccessToSite?: boolean; +} + +/** + * @interface + * An interface representing StorageMigrationResponse. + * Response for a migration of app content request. + * + * @extends ProxyOnlyResource + */ +export interface StorageMigrationResponse extends ProxyOnlyResource { + /** + * @member {string} [operationId] When server starts the migration process, + * it will return an operation ID identifying that particular migration + * operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly operationId?: string; +} + +/** + * @interface + * An interface representing StringDictionary. + * String dictionary resource. + * + * @extends ProxyOnlyResource + */ +export interface StringDictionary extends ProxyOnlyResource { + /** + * @member {{ [propertyName: string]: string }} [properties] Settings. + */ + properties?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing SwiftVirtualNetwork. + * Swift Virtual Network Contract. This is used to enable the new Swift way of + * doing virtual network integration. + * + * @extends ProxyOnlyResource + */ +export interface SwiftVirtualNetwork extends ProxyOnlyResource { + /** + * @member {string} [subnetResourceId] The Virtual Network subnet's resource + * ID. This is the subnet that this Web App will join. This subnet must have + * a delegation to Microsoft.Web/serverFarms defined first. + */ + subnetResourceId?: string; + /** + * @member {boolean} [swiftSupported] A flag that specifies if the scale unit + * this Web App is on supports Swift integration. + */ + swiftSupported?: boolean; +} + +/** + * @interface + * An interface representing TriggeredJobRun. + * Triggered Web Job Run Information. + * + * @extends ProxyOnlyResource + */ +export interface TriggeredJobRun extends ProxyOnlyResource { + /** + * @member {string} [webJobId] Job ID. + */ + webJobId?: string; + /** + * @member {string} [webJobName] Job name. + */ + webJobName?: string; + /** + * @member {TriggeredWebJobStatus} [status] Job status. Possible values + * include: 'Success', 'Failed', 'Error' + */ + status?: TriggeredWebJobStatus; + /** + * @member {Date} [startTime] Start time. + */ + startTime?: Date; + /** + * @member {Date} [endTime] End time. + */ + endTime?: Date; + /** + * @member {string} [duration] Job duration. + */ + duration?: string; + /** + * @member {string} [outputUrl] Output URL. + */ + outputUrl?: string; + /** + * @member {string} [errorUrl] Error URL. + */ + errorUrl?: string; + /** + * @member {string} [url] Job URL. + */ + url?: string; + /** + * @member {string} [jobName] Job name. + */ + jobName?: string; + /** + * @member {string} [trigger] Job trigger. + */ + trigger?: string; +} + +/** + * @interface + * An interface representing TriggeredJobHistory. + * Triggered Web Job History. List of Triggered Web Job Run Information + * elements. + * + * @extends ProxyOnlyResource + */ +export interface TriggeredJobHistory extends ProxyOnlyResource { + /** + * @member {TriggeredJobRun[]} [runs] List of triggered web job runs. + */ + runs?: TriggeredJobRun[]; +} + +/** + * @interface + * An interface representing TriggeredWebJob. + * Triggered Web Job Information. + * + * @extends ProxyOnlyResource + */ +export interface TriggeredWebJob extends ProxyOnlyResource { + /** + * @member {TriggeredJobRun} [latestRun] Latest job run information. + */ + latestRun?: TriggeredJobRun; + /** + * @member {string} [historyUrl] History URL. + */ + historyUrl?: string; + /** + * @member {string} [schedulerLogsUrl] Scheduler Logs URL. + */ + schedulerLogsUrl?: string; + /** + * @member {string} [runCommand] Run command. + */ + runCommand?: string; + /** + * @member {string} [url] Job URL. + */ + url?: string; + /** + * @member {string} [extraInfoUrl] Extra Info URL. + */ + extraInfoUrl?: string; + /** + * @member {WebJobType} [webJobType] Job type. Possible values include: + * 'Continuous', 'Triggered' + */ + webJobType?: WebJobType; + /** + * @member {string} [error] Error information. + */ + error?: string; + /** + * @member {boolean} [usingSdk] Using SDK? + */ + usingSdk?: boolean; + /** + * @member {{ [propertyName: string]: any }} [settings] Job settings. + */ + settings?: { [propertyName: string]: any }; +} + +/** + * @interface + * An interface representing WebJob. + * Web Job Information. + * + * @extends ProxyOnlyResource + */ +export interface WebJob extends ProxyOnlyResource { + /** + * @member {string} [runCommand] Run command. + */ + runCommand?: string; + /** + * @member {string} [url] Job URL. + */ + url?: string; + /** + * @member {string} [extraInfoUrl] Extra Info URL. + */ + extraInfoUrl?: string; + /** + * @member {WebJobType} [webJobType] Job type. Possible values include: + * 'Continuous', 'Triggered' + */ + webJobType?: WebJobType; + /** + * @member {string} [error] Error information. + */ + error?: string; + /** + * @member {boolean} [usingSdk] Using SDK? + */ + usingSdk?: boolean; + /** + * @member {{ [propertyName: string]: any }} [settings] Job settings. + */ + settings?: { [propertyName: string]: any }; +} + +/** + * @interface + * An interface representing AddressResponse. + * Describes main public IP address and any extra virtual IPs. + * + */ +export interface AddressResponse { + /** + * @member {string} [serviceIpAddress] Main public virtual IP. + */ + serviceIpAddress?: string; + /** + * @member {string} [internalIpAddress] Virtual Network internal IP address + * of the App Service Environment if it is in internal load-balancing mode. + */ + internalIpAddress?: string; + /** + * @member {string[]} [outboundIpAddresses] IP addresses appearing on + * outbound connections. + */ + outboundIpAddresses?: string[]; + /** + * @member {VirtualIPMapping[]} [vipMappings] Additional virtual IPs. + */ + vipMappings?: VirtualIPMapping[]; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentResource. + * App Service Environment ARM resource. + * + * @extends Resource + */ +export interface AppServiceEnvironmentResource extends Resource { + /** + * @member {string} appServiceEnvironmentResourceName Name of the App Service + * Environment. + */ + appServiceEnvironmentResourceName: string; + /** + * @member {string} appServiceEnvironmentResourceLocation Location of the App + * Service Environment, e.g. "West US". + */ + appServiceEnvironmentResourceLocation: string; + /** + * @member {ProvisioningState} [provisioningState] Provisioning state of the + * App Service Environment. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {HostingEnvironmentStatus} [status] Current status of the App + * Service Environment. Possible values include: 'Preparing', 'Ready', + * 'Scaling', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: HostingEnvironmentStatus; + /** + * @member {string} [vnetName] Name of the Virtual Network for the App + * Service Environment. + */ + vnetName?: string; + /** + * @member {string} [vnetResourceGroupName] Resource group of the Virtual + * Network. + */ + vnetResourceGroupName?: string; + /** + * @member {string} [vnetSubnetName] Subnet of the Virtual Network. + */ + vnetSubnetName?: string; + /** + * @member {VirtualNetworkProfile} virtualNetwork Description of the Virtual + * Network. + */ + virtualNetwork: VirtualNetworkProfile; + /** + * @member {InternalLoadBalancingMode} [internalLoadBalancingMode] Specifies + * which endpoints to serve internally in the Virtual Network for the App + * Service Environment. Possible values include: 'None', 'Web', 'Publishing' + */ + internalLoadBalancingMode?: InternalLoadBalancingMode; + /** + * @member {string} [multiSize] Front-end VM size, e.g. "Medium", "Large". + */ + multiSize?: string; + /** + * @member {number} [multiRoleCount] Number of front-end instances. + */ + multiRoleCount?: number; + /** + * @member {WorkerPool[]} workerPools Description of worker pools with worker + * size IDs, VM sizes, and number of workers in each pool. + */ + workerPools: WorkerPool[]; + /** + * @member {number} [ipsslAddressCount] Number of IP SSL addresses reserved + * for the App Service Environment. + */ + ipsslAddressCount?: number; + /** + * @member {string} [databaseEdition] Edition of the metadata database for + * the App Service Environment, e.g. "Standard". + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseEdition?: string; + /** + * @member {string} [databaseServiceObjective] Service objective of the + * metadata database for the App Service Environment, e.g. "S0". + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseServiceObjective?: string; + /** + * @member {number} [upgradeDomains] Number of upgrade domains of the App + * Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly upgradeDomains?: number; + /** + * @member {string} [subscriptionId] Subscription of the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscriptionId?: string; + /** + * @member {string} [dnsSuffix] DNS suffix of the App Service Environment. + */ + dnsSuffix?: string; + /** + * @member {string} [lastAction] Last deployment action on the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastAction?: string; + /** + * @member {string} [lastActionResult] Result of the last deployment action + * on the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastActionResult?: string; + /** + * @member {string} [allowedMultiSizes] List of comma separated strings + * describing which VM sizes are allowed for front-ends. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allowedMultiSizes?: string; + /** + * @member {string} [allowedWorkerSizes] List of comma separated strings + * describing which VM sizes are allowed for workers. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allowedWorkerSizes?: string; + /** + * @member {number} [maximumNumberOfMachines] Maximum number of VMs in the + * App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximumNumberOfMachines?: number; + /** + * @member {VirtualIPMapping[]} [vipMappings] Description of IP SSL mapping + * for the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly vipMappings?: VirtualIPMapping[]; + /** + * @member {StampCapacity[]} [environmentCapacities] Current total, used, and + * available worker capacities. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentCapacities?: StampCapacity[]; + /** + * @member {NetworkAccessControlEntry[]} [networkAccessControlList] Access + * control list for controlling traffic to the App Service Environment. + */ + networkAccessControlList?: NetworkAccessControlEntry[]; + /** + * @member {boolean} [environmentIsHealthy] True/false indicating whether the + * App Service Environment is healthy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentIsHealthy?: boolean; + /** + * @member {string} [environmentStatus] Detailed message about with results + * of the last check of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentStatus?: string; + /** + * @member {string} [resourceGroup] Resource group of the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {number} [frontEndScaleFactor] Scale factor for front-ends. + */ + frontEndScaleFactor?: number; + /** + * @member {number} [defaultFrontEndScaleFactor] Default Scale Factor for + * FrontEnds. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly defaultFrontEndScaleFactor?: number; + /** + * @member {string} [apiManagementAccountId] API Management Account + * associated with the App Service Environment. + */ + apiManagementAccountId?: string; + /** + * @member {boolean} [suspended] true if the App Service + * Environment is suspended; otherwise, false. The environment + * can be suspended, e.g. when the management endpoint is no longer available + * (most likely because NSG blocked the incoming traffic). + */ + suspended?: boolean; + /** + * @member {boolean} [dynamicCacheEnabled] True/false indicating whether the + * App Service Environment is suspended. The environment can be suspended + * e.g. when the management endpoint is no longer available + * (most likely because NSG blocked the incoming traffic). + */ + dynamicCacheEnabled?: boolean; + /** + * @member {NameValuePair[]} [clusterSettings] Custom settings for changing + * the behavior of the App Service Environment. + */ + clusterSettings?: NameValuePair[]; + /** + * @member {string[]} [userWhitelistedIpRanges] User added ip ranges to + * whitelist on ASE db + */ + userWhitelistedIpRanges?: string[]; + /** + * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has + * linux workers or not + */ + hasLinuxWorkers?: boolean; + /** + * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service + * Environment default SSL certificate + */ + sslCertKeyVaultId?: string; + /** + * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB + * App Service Environment default SSL certificate + */ + sslCertKeyVaultSecretName?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentPatchResource. + * ARM resource for a app service enviroment. + * + * @extends ProxyOnlyResource + */ +export interface AppServiceEnvironmentPatchResource extends ProxyOnlyResource { + /** + * @member {string} appServiceEnvironmentPatchResourceName Name of the App + * Service Environment. + */ + appServiceEnvironmentPatchResourceName: string; + /** + * @member {string} location Location of the App Service Environment, e.g. + * "West US". + */ + location: string; + /** + * @member {ProvisioningState} [provisioningState] Provisioning state of the + * App Service Environment. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * @member {HostingEnvironmentStatus} [status] Current status of the App + * Service Environment. Possible values include: 'Preparing', 'Ready', + * 'Scaling', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: HostingEnvironmentStatus; + /** + * @member {string} [vnetName] Name of the Virtual Network for the App + * Service Environment. + */ + vnetName?: string; + /** + * @member {string} [vnetResourceGroupName] Resource group of the Virtual + * Network. + */ + vnetResourceGroupName?: string; + /** + * @member {string} [vnetSubnetName] Subnet of the Virtual Network. + */ + vnetSubnetName?: string; + /** + * @member {VirtualNetworkProfile} virtualNetwork Description of the Virtual + * Network. + */ + virtualNetwork: VirtualNetworkProfile; + /** + * @member {InternalLoadBalancingMode} [internalLoadBalancingMode] Specifies + * which endpoints to serve internally in the Virtual Network for the App + * Service Environment. Possible values include: 'None', 'Web', 'Publishing' + */ + internalLoadBalancingMode?: InternalLoadBalancingMode; + /** + * @member {string} [multiSize] Front-end VM size, e.g. "Medium", "Large". + */ + multiSize?: string; + /** + * @member {number} [multiRoleCount] Number of front-end instances. + */ + multiRoleCount?: number; + /** + * @member {WorkerPool[]} workerPools Description of worker pools with worker + * size IDs, VM sizes, and number of workers in each pool. + */ + workerPools: WorkerPool[]; + /** + * @member {number} [ipsslAddressCount] Number of IP SSL addresses reserved + * for the App Service Environment. + */ + ipsslAddressCount?: number; + /** + * @member {string} [databaseEdition] Edition of the metadata database for + * the App Service Environment, e.g. "Standard". + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseEdition?: string; + /** + * @member {string} [databaseServiceObjective] Service objective of the + * metadata database for the App Service Environment, e.g. "S0". + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseServiceObjective?: string; + /** + * @member {number} [upgradeDomains] Number of upgrade domains of the App + * Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly upgradeDomains?: number; + /** + * @member {string} [subscriptionId] Subscription of the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscriptionId?: string; + /** + * @member {string} [dnsSuffix] DNS suffix of the App Service Environment. + */ + dnsSuffix?: string; + /** + * @member {string} [lastAction] Last deployment action on the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastAction?: string; + /** + * @member {string} [lastActionResult] Result of the last deployment action + * on the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastActionResult?: string; + /** + * @member {string} [allowedMultiSizes] List of comma separated strings + * describing which VM sizes are allowed for front-ends. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allowedMultiSizes?: string; + /** + * @member {string} [allowedWorkerSizes] List of comma separated strings + * describing which VM sizes are allowed for workers. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly allowedWorkerSizes?: string; + /** + * @member {number} [maximumNumberOfMachines] Maximum number of VMs in the + * App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximumNumberOfMachines?: number; + /** + * @member {VirtualIPMapping[]} [vipMappings] Description of IP SSL mapping + * for the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly vipMappings?: VirtualIPMapping[]; + /** + * @member {StampCapacity[]} [environmentCapacities] Current total, used, and + * available worker capacities. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentCapacities?: StampCapacity[]; + /** + * @member {NetworkAccessControlEntry[]} [networkAccessControlList] Access + * control list for controlling traffic to the App Service Environment. + */ + networkAccessControlList?: NetworkAccessControlEntry[]; + /** + * @member {boolean} [environmentIsHealthy] True/false indicating whether the + * App Service Environment is healthy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentIsHealthy?: boolean; + /** + * @member {string} [environmentStatus] Detailed message about with results + * of the last check of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly environmentStatus?: string; + /** + * @member {string} [resourceGroup] Resource group of the App Service + * Environment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {number} [frontEndScaleFactor] Scale factor for front-ends. + */ + frontEndScaleFactor?: number; + /** + * @member {number} [defaultFrontEndScaleFactor] Default Scale Factor for + * FrontEnds. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly defaultFrontEndScaleFactor?: number; + /** + * @member {string} [apiManagementAccountId] API Management Account + * associated with the App Service Environment. + */ + apiManagementAccountId?: string; + /** + * @member {boolean} [suspended] true if the App Service + * Environment is suspended; otherwise, false. The environment + * can be suspended, e.g. when the management endpoint is no longer available + * (most likely because NSG blocked the incoming traffic). + */ + suspended?: boolean; + /** + * @member {boolean} [dynamicCacheEnabled] True/false indicating whether the + * App Service Environment is suspended. The environment can be suspended + * e.g. when the management endpoint is no longer available + * (most likely because NSG blocked the incoming traffic). + */ + dynamicCacheEnabled?: boolean; + /** + * @member {NameValuePair[]} [clusterSettings] Custom settings for changing + * the behavior of the App Service Environment. + */ + clusterSettings?: NameValuePair[]; + /** + * @member {string[]} [userWhitelistedIpRanges] User added ip ranges to + * whitelist on ASE db + */ + userWhitelistedIpRanges?: string[]; + /** + * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has + * linux workers or not + */ + hasLinuxWorkers?: boolean; + /** + * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service + * Environment default SSL certificate + */ + sslCertKeyVaultId?: string; + /** + * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB + * App Service Environment default SSL certificate + */ + sslCertKeyVaultSecretName?: string; +} + +/** + * @interface + * An interface representing HostingEnvironmentDiagnostics. + * Diagnostics for an App Service Environment. + * + */ +export interface HostingEnvironmentDiagnostics { + /** + * @member {string} [name] Name/identifier of the diagnostics. + */ + name?: string; + /** + * @member {string} [diagnosicsOutput] Diagnostics output. + */ + diagnosicsOutput?: string; +} + +/** + * @interface + * An interface representing MetricAvailabilily. + * Metric availability and retention. + * + */ +export interface MetricAvailabilily { + /** + * @member {string} [timeGrain] Time grain. + */ + timeGrain?: string; + /** + * @member {string} [retention] Retention period for the current time grain. + */ + retention?: string; +} + +/** + * @interface + * An interface representing MetricDefinition. + * Metadata for a metric. + * + * @extends ProxyOnlyResource + */ +export interface MetricDefinition extends ProxyOnlyResource { + /** + * @member {string} [unit] Unit of the metric. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unit?: string; + /** + * @member {string} [primaryAggregationType] Primary aggregation type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly primaryAggregationType?: string; + /** + * @member {MetricAvailabilily[]} [metricAvailabilities] List of time grains + * supported for the metric together with retention period. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly metricAvailabilities?: MetricAvailabilily[]; + /** + * @member {string} [displayName] Friendly name shown in the UI. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly displayName?: string; +} + +/** + * @interface + * An interface representing SkuInfo. + * SKU discovery information. + * + */ +export interface SkuInfo { + /** + * @member {string} [resourceType] Resource type that this SKU applies to. + */ + resourceType?: string; + /** + * @member {SkuDescription} [sku] Name and tier of the SKU. + */ + sku?: SkuDescription; + /** + * @member {SkuCapacity} [capacity] Min, max, and default scale values of the + * SKU. + */ + capacity?: SkuCapacity; +} + +/** + * @interface + * An interface representing Usage. + * Usage of the quota resource. + * + * @extends ProxyOnlyResource + */ +export interface Usage extends ProxyOnlyResource { + /** + * @member {string} [displayName] Friendly name shown in the UI. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly displayName?: string; + /** + * @member {string} [resourceName] Name of the quota resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceName?: string; + /** + * @member {string} [unit] Units of measurement for the quota resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly unit?: string; + /** + * @member {number} [currentValue] The current value of the resource counter. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly currentValue?: number; + /** + * @member {number} [limit] The resource limit. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly limit?: number; + /** + * @member {Date} [nextResetTime] Next reset time for the resource counter. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextResetTime?: Date; + /** + * @member {ComputeModeOptions} [computeMode] Compute mode used for this + * usage. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly computeMode?: ComputeModeOptions; + /** + * @member {string} [siteMode] Site mode used for this usage. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly siteMode?: string; +} + +/** + * @interface + * An interface representing WorkerPoolResource. + * Worker pool of an App Service Environment ARM resource. + * + * @extends ProxyOnlyResource + */ +export interface WorkerPoolResource extends ProxyOnlyResource { + /** + * @member {number} [workerSizeId] Worker size ID for referencing this worker + * pool. + */ + workerSizeId?: number; + /** + * @member {ComputeModeOptions} [computeMode] Shared or dedicated app + * hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + */ + computeMode?: ComputeModeOptions; + /** + * @member {string} [workerSize] VM size of the worker pool instances. + */ + workerSize?: string; + /** + * @member {number} [workerCount] Number of instances in the worker pool. + */ + workerCount?: number; + /** + * @member {string[]} [instanceNames] Names of all instances in the worker + * pool (read only). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly instanceNames?: string[]; + /** + * @member {SkuDescription} [sku] + */ + sku?: SkuDescription; +} + +/** + * @interface + * An interface representing AppServicePlanPatchResource. + * ARM resource for a app service plan. + * + * @extends ProxyOnlyResource + */ +export interface AppServicePlanPatchResource extends ProxyOnlyResource { + /** + * @member {string} [workerTierName] Target worker tier assigned to the App + * Service plan. + */ + workerTierName?: string; + /** + * @member {StatusOptions} [status] App Service plan status. Possible values + * include: 'Ready', 'Pending', 'Creating' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: StatusOptions; + /** + * @member {string} [subscription] App Service plan subscription. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscription?: string; + /** + * @member {string} [adminSiteName] App Service plan administration site. + */ + adminSiteName?: string; + /** + * @member {HostingEnvironmentProfile} [hostingEnvironmentProfile] + * Specification for the App Service Environment to use for the App Service + * plan. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * @member {number} [maximumNumberOfWorkers] Maximum number of instances that + * can be assigned to this App Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximumNumberOfWorkers?: number; + /** + * @member {string} [geoRegion] Geographical location for the App Service + * plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly geoRegion?: string; + /** + * @member {boolean} [perSiteScaling] If true, apps assigned to + * this App Service plan can be scaled independently. + * If false, apps assigned to this App Service plan will scale + * to all instances of the plan. Default value: false . + */ + perSiteScaling?: boolean; + /** + * @member {number} [maximumElasticWorkerCount] Maximum number of total + * workers allowed for this ElasticScaleEnabled App Service Plan + */ + maximumElasticWorkerCount?: number; + /** + * @member {number} [numberOfSites] Number of apps assigned to this App + * Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly numberOfSites?: number; + /** + * @member {boolean} [isSpot] If true, this App Service Plan + * owns spot instances. + */ + isSpot?: boolean; + /** + * @member {Date} [spotExpirationTime] The time when the server farm expires. + * Valid only if it is a spot server farm. + */ + spotExpirationTime?: Date; + /** + * @member {Date} [freeOfferExpirationTime] The time when the server farm + * free offer expires. + */ + freeOfferExpirationTime?: Date; + /** + * @member {string} [resourceGroup] Resource group of the App Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGroup?: string; + /** + * @member {boolean} [reserved] If Linux app service plan true, + * false otherwise. Default value: false . + */ + reserved?: boolean; + /** + * @member {boolean} [isXenon] Obsolete: If Hyper-V container app service + * plan true, false otherwise. Default value: false + * . + */ + isXenon?: boolean; + /** + * @member {boolean} [hyperV] If Hyper-V container app service plan + * true, false otherwise. Default value: false . + */ + hyperV?: boolean; + /** + * @member {number} [targetWorkerCount] Scaling worker count. + */ + targetWorkerCount?: number; + /** + * @member {number} [targetWorkerSizeId] Scaling worker size ID. + */ + targetWorkerSizeId?: number; + /** + * @member {ProvisioningState} [provisioningState] Provisioning state of the + * App Service Environment. Possible values include: 'Succeeded', 'Failed', + * 'Canceled', 'InProgress', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * @interface + * An interface representing HybridConnectionLimits. + * Hybrid Connection limits contract. This is used to return the plan limits of + * Hybrid Connections. + * + * @extends ProxyOnlyResource + */ +export interface HybridConnectionLimits extends ProxyOnlyResource { + /** + * @member {number} [current] The current number of Hybrid Connections. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly current?: number; + /** + * @member {number} [maximum] The maximum number of Hybrid Connections + * allowed. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly maximum?: number; +} + +/** + * @interface + * An interface representing ResourceHealthMetadata. + * Used for getting ResourceHealthCheck settings. + * + * @extends ProxyOnlyResource + */ +export interface ResourceHealthMetadata extends ProxyOnlyResource { + /** + * @member {string} [category] The category that the resource matches in the + * RHC Policy File + */ + category?: string; + /** + * @member {boolean} [signalAvailability] Is there a health signal for the + * resource + */ + signalAvailability?: boolean; +} + +/** + * @interface + * An interface representing AppServiceCertificateOrdersResendRequestEmailsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceCertificateOrdersResendRequestEmailsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [name] Name of the object. + */ + name?: string; +} + +/** + * @interface + * An interface representing DomainsCheckAvailabilityOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DomainsCheckAvailabilityOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [name] Name of the object. + */ + name?: string; +} + +/** + * @interface + * An interface representing DomainsDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DomainsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [forceHardDeleteDomain] Specify true to + * delete the domain immediately. The default is false which + * deletes the domain after 24 hours. + */ + forceHardDeleteDomain?: boolean; +} + +/** + * @interface + * An interface representing DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing DiagnosticsGetSiteDetectorResponseOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsGetSiteDetectorResponseOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing DiagnosticsExecuteSiteAnalysisOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsExecuteSiteAnalysisOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing DiagnosticsExecuteSiteDetectorOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsExecuteSiteDetectorOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing DiagnosticsGetSiteDetectorResponseSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsGetSiteDetectorResponseSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing DiagnosticsExecuteSiteAnalysisSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsExecuteSiteAnalysisSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing DiagnosticsExecuteSiteDetectorSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticsExecuteSiteDetectorSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {Date} [startTime] Start Time + */ + startTime?: Date; + /** + * @member {Date} [endTime] End Time + */ + endTime?: Date; + /** + * @member {string} [timeGrain] Time Grain + */ + timeGrain?: string; +} + +/** + * @interface + * An interface representing ProviderGetAvailableStacksOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProviderGetAvailableStacksOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {OsTypeSelected} [osTypeSelected] Possible values include: + * 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' + */ + osTypeSelected?: OsTypeSelected; +} + +/** + * @interface + * An interface representing ProviderGetAvailableStacksOnPremOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProviderGetAvailableStacksOnPremOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {OsTypeSelected1} [osTypeSelected] Possible values include: + * 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' + */ + osTypeSelected?: OsTypeSelected1; +} + +/** + * @interface + * An interface representing RecommendationsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RecommendationsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [featured] Specify true to return only the + * most critical recommendations. The default is false, which + * returns all recommendations. + */ + featured?: boolean; + /** + * @member {string} [filter] Filter is specified by using OData syntax. + * Example: $filter=channel eq 'Api' or channel eq 'Notification' and + * startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and + * timeGrain eq duration'[PT1H|PT1M|P1D] + */ + filter?: string; +} + +/** + * @interface + * An interface representing RecommendationsListHistoryForWebAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RecommendationsListHistoryForWebAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [expiredOnly] Specify false to return all + * recommendations. The default is true, which returns only + * expired recommendations. + */ + expiredOnly?: boolean; + /** + * @member {string} [filter] Filter is specified by using OData syntax. + * Example: $filter=channel eq 'Api' or channel eq 'Notification' and + * startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and + * timeGrain eq duration'[PT1H|PT1M|P1D] + */ + filter?: string; +} + +/** + * @interface + * An interface representing RecommendationsListRecommendedRulesForWebAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RecommendationsListRecommendedRulesForWebAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [featured] Specify true to return only the + * most critical recommendations. The default is false, which + * returns all recommendations. + */ + featured?: boolean; + /** + * @member {string} [filter] Return only channels specified in the filter. + * Filter is specified by using OData syntax. Example: $filter=channel eq + * 'Api' or channel eq 'Notification' + */ + filter?: string; +} + +/** + * @interface + * An interface representing RecommendationsGetRuleDetailsByWebAppOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RecommendationsGetRuleDetailsByWebAppOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [updateSeen] Specify true to update the + * last-seen timestamp of the recommendation object. + */ + updateSeen?: boolean; + /** + * @member {string} [recommendationId] The GUID of the recommedation object + * if you query an expired one. You don't need to specify it to query an + * active entry. + */ + recommendationId?: string; +} + +/** + * @interface + * An interface representing WebSiteManagementClientListBillingMetersOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebSiteManagementClientListBillingMetersOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [billingLocation] Azure Location of billable resource + */ + billingLocation?: string; + /** + * @member {string} [osType] App Service OS type meters used for + */ + osType?: string; +} + +/** + * @interface + * An interface representing WebSiteManagementClientCheckNameAvailabilityOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebSiteManagementClientCheckNameAvailabilityOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [isFqdn] Is fully qualified domain name. + */ + isFqdn?: boolean; +} + +/** + * @interface + * An interface representing WebSiteManagementClientListGeoRegionsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebSiteManagementClientListGeoRegionsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {SkuName} [sku] Name of SKU used to filter the regions. Possible + * values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', + * 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' + */ + sku?: SkuName; + /** + * @member {boolean} [linuxWorkersEnabled] Specify true if you + * want to filter to only regions that support Linux workers. + */ + linuxWorkersEnabled?: boolean; + /** + * @member {boolean} [xenonWorkersEnabled] Specify true if you + * want to filter to only regions that support Xenon workers. + */ + xenonWorkersEnabled?: boolean; + /** + * @member {boolean} [linuxDynamicWorkersEnabled] Specify true + * if you want to filter to only regions that support Linux Consumption + * Workers. + */ + linuxDynamicWorkersEnabled?: boolean; +} + +/** + * @interface + * An interface representing WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [name] Name of the object. + */ + name?: string; +} + +/** + * @interface + * An interface representing WebAppsListByResourceGroupOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [includeSlots] Specify true to include + * deployment slots in results. The default is false, which only gives you + * the production slot of all apps. + */ + includeSlots?: boolean; +} + +/** + * @interface + * An interface representing WebAppsDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [deleteMetrics] If true, web app metrics are also + * deleted. + */ + deleteMetrics?: boolean; + /** + * @member {boolean} [deleteEmptyServerFarm] Specify true if the App Service + * plan will be empty after app deletion and you want to delete the empty App + * Service plan. By default, the empty App Service plan is not deleted. + */ + deleteEmptyServerFarm?: boolean; +} + +/** + * @interface + * An interface representing WebAppsAnalyzeCustomHostnameOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsAnalyzeCustomHostnameOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [hostName] Custom hostname. + */ + hostName?: string; +} + +/** + * @interface + * An interface representing WebAppsListMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify "true" to include metric details in + * the response. It is "false" by default. + */ + details?: boolean; + /** + * @member {string} [filter] Return only metrics specified in the filter + * (using OData syntax). For example: $filter=(name.value eq 'Metric1' or + * name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime + * eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebAppsStartWebSiteNetworkTraceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartWebSiteNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsStartWebSiteNetworkTraceOperationOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartWebSiteNetworkTraceOperationOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsListPerfMonCountersOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListPerfMonCountersOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebAppsRestartOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [softRestart] Specify true to apply the configuration + * settings and restarts the app only if necessary. By default, the API + * always restarts and reprovisions the app. + */ + softRestart?: boolean; + /** + * @member {boolean} [synchronous] Specify true to block until the app is + * restarted. By default, it is set to false, and the API responds + * immediately (asynchronous). + */ + synchronous?: boolean; +} + +/** + * @interface + * An interface representing WebAppsDeleteSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsDeleteSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [deleteMetrics] If true, web app metrics are also + * deleted. + */ + deleteMetrics?: boolean; + /** + * @member {boolean} [deleteEmptyServerFarm] Specify true if the App Service + * plan will be empty after app deletion and you want to delete the empty App + * Service plan. By default, the empty App Service plan is not deleted. + */ + deleteEmptyServerFarm?: boolean; +} + +/** + * @interface + * An interface representing WebAppsAnalyzeCustomHostnameSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsAnalyzeCustomHostnameSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [hostName] Custom hostname. + */ + hostName?: string; +} + +/** + * @interface + * An interface representing WebAppsListMetricsSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListMetricsSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify "true" to include metric details in + * the response. It is "false" by default. + */ + details?: boolean; + /** + * @member {string} [filter] Return only metrics specified in the filter + * (using OData syntax). For example: $filter=(name.value eq 'Metric1' or + * name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime + * eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebAppsStartWebSiteNetworkTraceSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartWebSiteNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsStartWebSiteNetworkTraceOperationSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartWebSiteNetworkTraceOperationSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsListPerfMonCountersSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListPerfMonCountersSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebAppsRestartSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsRestartSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [softRestart] Specify true to apply the configuration + * settings and restarts the app only if necessary. By default, the API + * always restarts and reprovisions the app. + */ + softRestart?: boolean; + /** + * @member {boolean} [synchronous] Specify true to block until the app is + * restarted. By default, it is set to false, and the API responds + * immediately (asynchronous). + */ + synchronous?: boolean; +} + +/** + * @interface + * An interface representing WebAppsStartNetworkTraceSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsListUsagesSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListUsagesSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] Return only information specified in the filter + * (using OData syntax). For example: $filter=(name.value eq 'Metric1' or + * name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime + * eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebAppsStartNetworkTraceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsListUsagesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] Return only information specified in the filter + * (using OData syntax). For example: $filter=(name.value eq 'Metric1' or + * name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime + * eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebAppsBeginStartWebSiteNetworkTraceOperationOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsBeginStartWebSiteNetworkTraceOperationOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsBeginStartWebSiteNetworkTraceOperationSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsBeginStartWebSiteNetworkTraceOperationSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsBeginStartNetworkTraceSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsBeginStartNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsBeginStartNetworkTraceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsBeginStartNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [forceDelete] Specify true to force the + * deletion even if the App Service Environment contains resources. The + * default is false. + */ + forceDelete?: boolean; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify true to include instance + * details. The default is false. + */ + details?: boolean; + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2') and startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListMultiRolePoolInstanceMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListMultiRolePoolInstanceMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify true to include instance + * details. The default is false. + */ + details?: boolean; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListMultiRoleMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListMultiRoleMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [startTime] Beginning time of the metrics query. + */ + startTime?: string; + /** + * @member {string} [endTime] End time of the metrics query. + */ + endTime?: string; + /** + * @member {string} [timeGrain] Time granularity of the metrics query. + */ + timeGrain?: string; + /** + * @member {boolean} [details] Specify true to include instance + * details. The default is false. + */ + details?: boolean; + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2') and startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListWebAppsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListWebAppsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [propertiesToInclude] Comma separated list of app + * properties to include. + */ + propertiesToInclude?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListUsagesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2') and startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListWorkerPoolInstanceMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListWorkerPoolInstanceMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify true to include instance + * details. The default is false. + */ + details?: boolean; + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2') and startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsListWebWorkerMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsListWebWorkerMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify true to include instance + * details. The default is false. + */ + details?: boolean; + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2') and startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AppServiceEnvironmentsBeginDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServiceEnvironmentsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [forceDelete] Specify true to force the + * deletion even if the App Service Environment contains resources. The + * default is false. + */ + forceDelete?: boolean; +} + +/** + * @interface + * An interface representing AppServicePlansListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServicePlansListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [detailed] Specify true to return all App + * Service plan properties. The default is false, which returns + * a subset of the properties. + * Retrieval of all properties may increase the API latency. + */ + detailed?: boolean; +} + +/** + * @interface + * An interface representing AppServicePlansListMetricsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServicePlansListMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [details] Specify true to include instance + * details. The default is false. + */ + details?: boolean; + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2') and startTime eq + * 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq + * duration'[Hour|Minute|Day]'. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AppServicePlansRestartWebAppsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServicePlansRestartWebAppsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [softRestart] Specify true to performa a + * soft restart, applies the configuration settings and restarts the apps if + * necessary. The default is false, which always restarts and + * reprovisions the apps + */ + softRestart?: boolean; +} + +/** + * @interface + * An interface representing AppServicePlansListWebAppsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServicePlansListWebAppsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [skipToken] Skip to a web app in the list of webapps + * associated with app service plan. If specified, the resulting list will + * contain web apps starting from (including) the skipToken. Otherwise, the + * resulting list contains web apps from the start of the list + */ + skipToken?: string; + /** + * @member {string} [filter] Supported filter: $filter=state eq running. + * Returns only web apps that are currently running + */ + filter?: string; + /** + * @member {string} [top] List page size. If specified, results are paged. + */ + top?: string; +} + +/** + * @interface + * An interface representing AppServicePlansListUsagesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AppServicePlansListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] Return only usages/metrics specified in the + * filter. Filter conforms to odata syntax. Example: $filter=(name.value eq + * 'Metric1' or name.value eq 'Metric2'). + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebSiteManagementClientOptions. + * @extends AzureServiceClientOptions + */ +export interface WebSiteManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + + +/** + * @interface + * An interface representing the AppServiceCertificateOrderCollection. + * Collection of certitificate orders. + * + * @extends Array + */ +export interface AppServiceCertificateOrderCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the AppServiceCertificateCollection. + * Collection of certitificateorder certificates. + * + * @extends Array + */ +export interface AppServiceCertificateCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the CsmOperationCollection. + * Collection of Azure resource manager operation metadata. + * + * @extends Array + */ +export interface CsmOperationCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DomainCollection. + * Collection of domains. + * + * @extends Array + */ +export interface DomainCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the NameIdentifierCollection. + * Collection of domain name identifiers. + * + * @extends Array + */ +export interface NameIdentifierCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DomainOwnershipIdentifierCollection. + * Collection of domain ownership identifiers. + * + * @extends Array + */ +export interface DomainOwnershipIdentifierCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TopLevelDomainCollection. + * Collection of Top-level domains. + * + * @extends Array + */ +export interface TopLevelDomainCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TldLegalAgreementCollection. + * Collection of top-level domain legal agreements. + * + * @extends Array + */ +export interface TldLegalAgreementCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the CertificateCollection. + * Collection of certificates. + * + * @extends Array + */ +export interface CertificateCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DeletedWebAppCollection. + * Collection of deleted apps. + * + * @extends Array + */ +export interface DeletedWebAppCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DetectorResponseCollection. + * Collection of detector responses + * + * @extends Array + */ +export interface DetectorResponseCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DiagnosticCategoryCollection. + * Collection of Diagnostic Categories + * + * @extends Array + */ +export interface DiagnosticCategoryCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DiagnosticAnalysisCollection. + * Collection of Diagnostic Analyses + * + * @extends Array + */ +export interface DiagnosticAnalysisCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DiagnosticDetectorCollection. + * Collection of Diagnostic Detectors + * + * @extends Array + */ +export interface DiagnosticDetectorCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ApplicationStackCollection. + * Collection of Application Stacks + * + * @extends Array + */ +export interface ApplicationStackCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the RecommendationCollection. + * Collection of recommendations. + * + * @extends Array + */ +export interface RecommendationCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SourceControlCollection. + * Collection of source controls. + * + * @extends Array + */ +export interface SourceControlCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the BillingMeterCollection. + * Collection of Billing Meters + * + * @extends Array + */ +export interface BillingMeterCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the GeoRegionCollection. + * Collection of geographical regions. + * + * @extends Array + */ +export interface GeoRegionCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the IdentifierCollection. + * Collection of identifiers. + * + * @extends Array + */ +export interface IdentifierCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the PremierAddOnOfferCollection. + * Collection of premier add-on offers. + * + * @extends Array + */ +export interface PremierAddOnOfferCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the WebAppCollection. + * Collection of App Service apps. + * + * @extends Array + */ +export interface WebAppCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the BackupItemCollection. + * Collection of backup items. + * + * @extends Array + */ +export interface BackupItemCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SiteConfigResourceCollection. + * Collection of site configurations. + * + * @extends Array + */ +export interface SiteConfigResourceCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SiteConfigurationSnapshotInfoCollection. + * Collection of metadata for the app configuration snapshots that can be + * restored. + * + * @extends Array + */ +export interface SiteConfigurationSnapshotInfoCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ContinuousWebJobCollection. + * Collection of Kudu continuous web job information elements. + * + * @extends Array + */ +export interface ContinuousWebJobCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DeploymentCollection. + * Collection of app deployments. + * + * @extends Array + */ +export interface DeploymentCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the FunctionEnvelopeCollection. + * Collection of Kudu function information elements. + * + * @extends Array + */ +export interface FunctionEnvelopeCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the HostNameBindingCollection. + * Collection of hostname bindings. + * + * @extends Array + */ +export interface HostNameBindingCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the WebAppInstanceCollection. + * Collection of app instances. + * + * @extends Array + */ +export interface WebAppInstanceCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ProcessInfoCollection. + * Collection of Kudu process information elements. + * + * @extends Array + */ +export interface ProcessInfoCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ProcessModuleInfoCollection. + * Collection of Kudu thread information elements. + * + * @extends Array + */ +export interface ProcessModuleInfoCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ProcessThreadInfoCollection. + * Collection of Kudu thread information elements. + * + * @extends Array + */ +export interface ProcessThreadInfoCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceMetricDefinitionCollection. + * Collection of metric definitions. + * + * @extends Array + */ +export interface ResourceMetricDefinitionCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceMetricCollection. + * Collection of metric responses. + * + * @extends Array + */ +export interface ResourceMetricCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the PerfMonCounterCollection. + * Collection of performance monitor counters. + * + * @extends Array + */ +export interface PerfMonCounterCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the PublicCertificateCollection. + * Collection of public certificates + * + * @extends Array + */ +export interface PublicCertificateCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SiteExtensionInfoCollection. + * Collection of Kudu site extension information elements. + * + * @extends Array + */ +export interface SiteExtensionInfoCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SlotDifferenceCollection. + * Collection of slot differences. + * + * @extends Array + */ +export interface SlotDifferenceCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SnapshotCollection. + * Collection of snapshots which can be used to revert an app to a previous + * time. + * + * @extends Array + */ +export interface SnapshotCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TriggeredWebJobCollection. + * Collection of Kudu continuous web job information elements. + * + * @extends Array + */ +export interface TriggeredWebJobCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TriggeredJobHistoryCollection. + * Collection of Kudu continuous web job information elements. + * + * @extends Array + */ +export interface TriggeredJobHistoryCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the CsmUsageQuotaCollection. + * Collection of CSM usage quotas. + * + * @extends Array + */ +export interface CsmUsageQuotaCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the WebJobCollection. + * Collection of Kudu web job information elements. + * + * @extends Array + */ +export interface WebJobCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the AppServiceEnvironmentCollection. + * Collection of App Service Environments. + * + * @extends Array + */ +export interface AppServiceEnvironmentCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the StampCapacityCollection. + * Collection of stamp capacities. + * + * @extends Array + */ +export interface StampCapacityCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the WorkerPoolCollection. + * Collection of worker pools. + * + * @extends Array + */ +export interface WorkerPoolCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SkuInfoCollection. + * Collection of SKU information. + * + * @extends Array + */ +export interface SkuInfoCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the UsageCollection. + * Collection of usages. + * + * @extends Array + */ +export interface UsageCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the AppServicePlanCollection. + * Collection of App Service plans. + * + * @extends Array + */ +export interface AppServicePlanCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceCollection. + * Collection of resources. + * + * @extends Array + */ +export interface ResourceCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the HybridConnectionCollection. + * Collection of hostname bindings. + * + * @extends Array + */ +export interface HybridConnectionCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceHealthMetadataCollection. + * Collection of resource health metadata. + * + * @extends Array + */ +export interface ResourceHealthMetadataCollection extends Array { + /** + * @member {string} [nextLink] Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for KeyVaultSecretStatus. + * Possible values include: 'Initialized', 'WaitingOnCertificateOrder', + * 'Succeeded', 'CertificateOrderFailed', 'OperationNotPermittedOnKeyVault', + * 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', + * 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', + * 'Unknown' + * @readonly + * @enum {string} + */ +export enum KeyVaultSecretStatus { + Initialized = 'Initialized', + WaitingOnCertificateOrder = 'WaitingOnCertificateOrder', + Succeeded = 'Succeeded', + CertificateOrderFailed = 'CertificateOrderFailed', + OperationNotPermittedOnKeyVault = 'OperationNotPermittedOnKeyVault', + AzureServiceUnauthorizedToAccessKeyVault = 'AzureServiceUnauthorizedToAccessKeyVault', + KeyVaultDoesNotExist = 'KeyVaultDoesNotExist', + KeyVaultSecretDoesNotExist = 'KeyVaultSecretDoesNotExist', + UnknownError = 'UnknownError', + ExternalPrivateKey = 'ExternalPrivateKey', + Unknown = 'Unknown', +} + +/** + * Defines values for CertificateProductType. + * Possible values include: 'StandardDomainValidatedSsl', + * 'StandardDomainValidatedWildCardSsl' + * @readonly + * @enum {string} + */ +export enum CertificateProductType { + StandardDomainValidatedSsl = 'StandardDomainValidatedSsl', + StandardDomainValidatedWildCardSsl = 'StandardDomainValidatedWildCardSsl', +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', + * 'Deleting' + * @readonly + * @enum {string} + */ +export enum ProvisioningState { + Succeeded = 'Succeeded', + Failed = 'Failed', + Canceled = 'Canceled', + InProgress = 'InProgress', + Deleting = 'Deleting', +} + +/** + * Defines values for CertificateOrderStatus. + * Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', + * 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', + * 'NotSubmitted' + * @readonly + * @enum {string} + */ +export enum CertificateOrderStatus { + Pendingissuance = 'Pendingissuance', + Issued = 'Issued', + Revoked = 'Revoked', + Canceled = 'Canceled', + Denied = 'Denied', + Pendingrevocation = 'Pendingrevocation', + PendingRekey = 'PendingRekey', + Unused = 'Unused', + Expired = 'Expired', + NotSubmitted = 'NotSubmitted', +} + +/** + * Defines values for CertificateOrderActionType. + * Possible values include: 'CertificateIssued', 'CertificateOrderCanceled', + * 'CertificateOrderCreated', 'CertificateRevoked', 'DomainValidationComplete', + * 'FraudDetected', 'OrgNameChange', 'OrgValidationComplete', 'SanDrop', + * 'FraudCleared', 'CertificateExpired', 'CertificateExpirationWarning', + * 'FraudDocumentationRequired', 'Unknown' + * @readonly + * @enum {string} + */ +export enum CertificateOrderActionType { + CertificateIssued = 'CertificateIssued', + CertificateOrderCanceled = 'CertificateOrderCanceled', + CertificateOrderCreated = 'CertificateOrderCreated', + CertificateRevoked = 'CertificateRevoked', + DomainValidationComplete = 'DomainValidationComplete', + FraudDetected = 'FraudDetected', + OrgNameChange = 'OrgNameChange', + OrgValidationComplete = 'OrgValidationComplete', + SanDrop = 'SanDrop', + FraudCleared = 'FraudCleared', + CertificateExpired = 'CertificateExpired', + CertificateExpirationWarning = 'CertificateExpirationWarning', + FraudDocumentationRequired = 'FraudDocumentationRequired', + Unknown = 'Unknown', +} + +/** + * Defines values for RouteType. + * Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: RouteType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum RouteType { + DEFAULT = 'DEFAULT', + INHERITED = 'INHERITED', + STATIC = 'STATIC', +} + +/** + * Defines values for ManagedServiceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ManagedServiceIdentityType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ManagedServiceIdentityType { + SystemAssigned = 'SystemAssigned', + UserAssigned = 'UserAssigned', +} + +/** + * Defines values for IpFilterTag. + * Possible values include: 'Default', 'XffProxy' + * @readonly + * @enum {string} + */ +export enum IpFilterTag { + Default = 'Default', + XffProxy = 'XffProxy', +} + +/** + * Defines values for AutoHealActionType. + * Possible values include: 'Recycle', 'LogEvent', 'CustomAction' + * @readonly + * @enum {string} + */ +export enum AutoHealActionType { + Recycle = 'Recycle', + LogEvent = 'LogEvent', + CustomAction = 'CustomAction', +} + +/** + * Defines values for ConnectionStringType. + * Possible values include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom', + * 'NotificationHub', 'ServiceBus', 'EventHub', 'ApiHub', 'DocDb', + * 'RedisCache', 'PostgreSQL' + * @readonly + * @enum {string} + */ +export enum ConnectionStringType { + MySql = 'MySql', + SQLServer = 'SQLServer', + SQLAzure = 'SQLAzure', + Custom = 'Custom', + NotificationHub = 'NotificationHub', + ServiceBus = 'ServiceBus', + EventHub = 'EventHub', + ApiHub = 'ApiHub', + DocDb = 'DocDb', + RedisCache = 'RedisCache', + PostgreSQL = 'PostgreSQL', +} + +/** + * Defines values for AzureStorageType. + * Possible values include: 'AzureFiles', 'AzureBlob' + * @readonly + * @enum {string} + */ +export enum AzureStorageType { + AzureFiles = 'AzureFiles', + AzureBlob = 'AzureBlob', +} + +/** + * Defines values for AzureStorageState. + * Possible values include: 'Ok', 'InvalidCredentials', 'InvalidShare' + * @readonly + * @enum {string} + */ +export enum AzureStorageState { + Ok = 'Ok', + InvalidCredentials = 'InvalidCredentials', + InvalidShare = 'InvalidShare', +} + +/** + * Defines values for ScmType. + * Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', + * 'CodePlexGit', 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', + * 'ExternalHg', 'OneDrive', 'VSO' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ScmType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ScmType { + None = 'None', + Dropbox = 'Dropbox', + Tfs = 'Tfs', + LocalGit = 'LocalGit', + GitHub = 'GitHub', + CodePlexGit = 'CodePlexGit', + CodePlexHg = 'CodePlexHg', + BitbucketGit = 'BitbucketGit', + BitbucketHg = 'BitbucketHg', + ExternalGit = 'ExternalGit', + ExternalHg = 'ExternalHg', + OneDrive = 'OneDrive', + VSO = 'VSO', +} + +/** + * Defines values for ManagedPipelineMode. + * Possible values include: 'Integrated', 'Classic' + * @readonly + * @enum {string} + */ +export enum ManagedPipelineMode { + Integrated = 'Integrated', + Classic = 'Classic', +} + +/** + * Defines values for SiteLoadBalancing. + * Possible values include: 'WeightedRoundRobin', 'LeastRequests', + * 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' + * @readonly + * @enum {string} + */ +export enum SiteLoadBalancing { + WeightedRoundRobin = 'WeightedRoundRobin', + LeastRequests = 'LeastRequests', + LeastResponseTime = 'LeastResponseTime', + WeightedTotalTraffic = 'WeightedTotalTraffic', + RequestHash = 'RequestHash', +} + +/** + * Defines values for SupportedTlsVersions. + * Possible values include: '1.0', '1.1', '1.2' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SupportedTlsVersions = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum SupportedTlsVersions { + OneFullStopZero = '1.0', + OneFullStopOne = '1.1', + OneFullStopTwo = '1.2', +} + +/** + * Defines values for FtpsState. + * Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: FtpsState = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum FtpsState { + AllAllowed = 'AllAllowed', + FtpsOnly = 'FtpsOnly', + Disabled = 'Disabled', +} + +/** + * Defines values for SslState. + * Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @readonly + * @enum {string} + */ +export enum SslState { + Disabled = 'Disabled', + SniEnabled = 'SniEnabled', + IpBasedEnabled = 'IpBasedEnabled', +} + +/** + * Defines values for HostType. + * Possible values include: 'Standard', 'Repository' + * @readonly + * @enum {string} + */ +export enum HostType { + Standard = 'Standard', + Repository = 'Repository', +} + +/** + * Defines values for UsageState. + * Possible values include: 'Normal', 'Exceeded' + * @readonly + * @enum {string} + */ +export enum UsageState { + Normal = 'Normal', + Exceeded = 'Exceeded', +} + +/** + * Defines values for SiteAvailabilityState. + * Possible values include: 'Normal', 'Limited', 'DisasterRecoveryMode' + * @readonly + * @enum {string} + */ +export enum SiteAvailabilityState { + Normal = 'Normal', + Limited = 'Limited', + DisasterRecoveryMode = 'DisasterRecoveryMode', +} + +/** + * Defines values for StatusOptions. + * Possible values include: 'Ready', 'Pending', 'Creating' + * @readonly + * @enum {string} + */ +export enum StatusOptions { + Ready = 'Ready', + Pending = 'Pending', + Creating = 'Creating', +} + +/** + * Defines values for DomainStatus. + * Possible values include: 'Active', 'Awaiting', 'Cancelled', 'Confiscated', + * 'Disabled', 'Excluded', 'Expired', 'Failed', 'Held', 'Locked', 'Parked', + * 'Pending', 'Reserved', 'Reverted', 'Suspended', 'Transferred', 'Unknown', + * 'Unlocked', 'Unparked', 'Updated', 'JsonConverterFailed' + * @readonly + * @enum {string} + */ +export enum DomainStatus { + Active = 'Active', + Awaiting = 'Awaiting', + Cancelled = 'Cancelled', + Confiscated = 'Confiscated', + Disabled = 'Disabled', + Excluded = 'Excluded', + Expired = 'Expired', + Failed = 'Failed', + Held = 'Held', + Locked = 'Locked', + Parked = 'Parked', + Pending = 'Pending', + Reserved = 'Reserved', + Reverted = 'Reverted', + Suspended = 'Suspended', + Transferred = 'Transferred', + Unknown = 'Unknown', + Unlocked = 'Unlocked', + Unparked = 'Unparked', + Updated = 'Updated', + JsonConverterFailed = 'JsonConverterFailed', +} + +/** + * Defines values for AzureResourceType. + * Possible values include: 'Website', 'TrafficManager' + * @readonly + * @enum {string} + */ +export enum AzureResourceType { + Website = 'Website', + TrafficManager = 'TrafficManager', +} + +/** + * Defines values for CustomHostNameDnsRecordType. + * Possible values include: 'CName', 'A' + * @readonly + * @enum {string} + */ +export enum CustomHostNameDnsRecordType { + CName = 'CName', + A = 'A', +} + +/** + * Defines values for HostNameType. + * Possible values include: 'Verified', 'Managed' + * @readonly + * @enum {string} + */ +export enum HostNameType { + Verified = 'Verified', + Managed = 'Managed', +} + +/** + * Defines values for DnsType. + * Possible values include: 'AzureDns', 'DefaultDomainRegistrarDns' + * @readonly + * @enum {string} + */ +export enum DnsType { + AzureDns = 'AzureDns', + DefaultDomainRegistrarDns = 'DefaultDomainRegistrarDns', +} + +/** + * Defines values for DomainType. + * Possible values include: 'Regular', 'SoftDeleted' + * @readonly + * @enum {string} + */ +export enum DomainType { + Regular = 'Regular', + SoftDeleted = 'SoftDeleted', +} + +/** + * Defines values for HostingEnvironmentStatus. + * Possible values include: 'Preparing', 'Ready', 'Scaling', 'Deleting' + * @readonly + * @enum {string} + */ +export enum HostingEnvironmentStatus { + Preparing = 'Preparing', + Ready = 'Ready', + Scaling = 'Scaling', + Deleting = 'Deleting', +} + +/** + * Defines values for InternalLoadBalancingMode. + * Possible values include: 'None', 'Web', 'Publishing' + * @readonly + * @enum {string} + */ +export enum InternalLoadBalancingMode { + None = 'None', + Web = 'Web', + Publishing = 'Publishing', +} + +/** + * Defines values for ComputeModeOptions. + * Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * @readonly + * @enum {string} + */ +export enum ComputeModeOptions { + Shared = 'Shared', + Dedicated = 'Dedicated', + Dynamic = 'Dynamic', +} + +/** + * Defines values for WorkerSizeOptions. + * Possible values include: 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', + * 'Default' + * @readonly + * @enum {string} + */ +export enum WorkerSizeOptions { + Small = 'Small', + Medium = 'Medium', + Large = 'Large', + D1 = 'D1', + D2 = 'D2', + D3 = 'D3', + Default = 'Default', +} + +/** + * Defines values for AccessControlEntryAction. + * Possible values include: 'Permit', 'Deny' + * @readonly + * @enum {string} + */ +export enum AccessControlEntryAction { + Permit = 'Permit', + Deny = 'Deny', +} + +/** + * Defines values for OperationStatus. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', + * 'Created' + * @readonly + * @enum {string} + */ +export enum OperationStatus { + InProgress = 'InProgress', + Failed = 'Failed', + Succeeded = 'Succeeded', + TimedOut = 'TimedOut', + Created = 'Created', +} + +/** + * Defines values for IssueType. + * Possible values include: 'ServiceIncident', 'AppDeployment', 'AppCrash', + * 'RuntimeIssueDetected', 'AseDeployment', 'UserIssue', 'PlatformIssue', + * 'Other' + * @readonly + * @enum {string} + */ +export enum IssueType { + ServiceIncident = 'ServiceIncident', + AppDeployment = 'AppDeployment', + AppCrash = 'AppCrash', + RuntimeIssueDetected = 'RuntimeIssueDetected', + AseDeployment = 'AseDeployment', + UserIssue = 'UserIssue', + PlatformIssue = 'PlatformIssue', + Other = 'Other', +} + +/** + * Defines values for SolutionType. + * Possible values include: 'QuickSolution', 'DeepInvestigation', + * 'BestPractices' + * @readonly + * @enum {string} + */ +export enum SolutionType { + QuickSolution = 'QuickSolution', + DeepInvestigation = 'DeepInvestigation', + BestPractices = 'BestPractices', +} + +/** + * Defines values for RenderingType. + * Possible values include: 'NoGraph', 'Table', 'TimeSeries', + * 'TimeSeriesPerInstance' + * @readonly + * @enum {string} + */ +export enum RenderingType { + NoGraph = 'NoGraph', + Table = 'Table', + TimeSeries = 'TimeSeries', + TimeSeriesPerInstance = 'TimeSeriesPerInstance', +} + +/** + * Defines values for ResourceScopeType. + * Possible values include: 'ServerFarm', 'Subscription', 'WebSite' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceScopeType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ResourceScopeType { + ServerFarm = 'ServerFarm', + Subscription = 'Subscription', + WebSite = 'WebSite', +} + +/** + * Defines values for NotificationLevel. + * Possible values include: 'Critical', 'Warning', 'Information', + * 'NonUrgentSuggestion' + * @readonly + * @enum {string} + */ +export enum NotificationLevel { + Critical = 'Critical', + Warning = 'Warning', + Information = 'Information', + NonUrgentSuggestion = 'NonUrgentSuggestion', +} + +/** + * Defines values for Channels. + * Possible values include: 'Notification', 'Api', 'Email', 'Webhook', 'All' + * @readonly + * @enum {string} + */ +export enum Channels { + Notification = 'Notification', + Api = 'Api', + Email = 'Email', + Webhook = 'Webhook', + All = 'All', +} + +/** + * Defines values for AppServicePlanRestrictions. + * Possible values include: 'None', 'Free', 'Shared', 'Basic', 'Standard', + * 'Premium' + * @readonly + * @enum {string} + */ +export enum AppServicePlanRestrictions { + None = 'None', + Free = 'Free', + Shared = 'Shared', + Basic = 'Basic', + Standard = 'Standard', + Premium = 'Premium', +} + +/** + * Defines values for InAvailabilityReasonType. + * Possible values include: 'Invalid', 'AlreadyExists' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: InAvailabilityReasonType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum InAvailabilityReasonType { + Invalid = 'Invalid', + AlreadyExists = 'AlreadyExists', +} + +/** + * Defines values for CheckNameResourceTypes. + * Possible values include: 'Site', 'Slot', 'HostingEnvironment', + * 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', + * 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: CheckNameResourceTypes = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum CheckNameResourceTypes { + Site = 'Site', + Slot = 'Slot', + HostingEnvironment = 'HostingEnvironment', + PublishingUser = 'PublishingUser', + MicrosoftWebsites = 'Microsoft.Web/sites', + MicrosoftWebsitesslots = 'Microsoft.Web/sites/slots', + MicrosoftWebhostingEnvironments = 'Microsoft.Web/hostingEnvironments', + MicrosoftWebpublishingUsers = 'Microsoft.Web/publishingUsers', +} + +/** + * Defines values for ValidateResourceTypes. + * Possible values include: 'ServerFarm', 'Site' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ValidateResourceTypes = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ValidateResourceTypes { + ServerFarm = 'ServerFarm', + Site = 'Site', +} + +/** + * Defines values for LogLevel. + * Possible values include: 'Off', 'Verbose', 'Information', 'Warning', 'Error' + * @readonly + * @enum {string} + */ +export enum LogLevel { + Off = 'Off', + Verbose = 'Verbose', + Information = 'Information', + Warning = 'Warning', + Error = 'Error', +} + +/** + * Defines values for BackupItemStatus. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', + * 'Created', 'Skipped', 'PartiallySucceeded', 'DeleteInProgress', + * 'DeleteFailed', 'Deleted' + * @readonly + * @enum {string} + */ +export enum BackupItemStatus { + InProgress = 'InProgress', + Failed = 'Failed', + Succeeded = 'Succeeded', + TimedOut = 'TimedOut', + Created = 'Created', + Skipped = 'Skipped', + PartiallySucceeded = 'PartiallySucceeded', + DeleteInProgress = 'DeleteInProgress', + DeleteFailed = 'DeleteFailed', + Deleted = 'Deleted', +} + +/** + * Defines values for DatabaseType. + * Possible values include: 'SqlAzure', 'MySql', 'LocalMySql', 'PostgreSql' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: DatabaseType = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum DatabaseType { + SqlAzure = 'SqlAzure', + MySql = 'MySql', + LocalMySql = 'LocalMySql', + PostgreSql = 'PostgreSql', +} + +/** + * Defines values for FrequencyUnit. + * Possible values include: 'Day', 'Hour' + * @readonly + * @enum {string} + */ +export enum FrequencyUnit { + Day = 'Day', + Hour = 'Hour', +} + +/** + * Defines values for ContinuousWebJobStatus. + * Possible values include: 'Initializing', 'Starting', 'Running', + * 'PendingRestart', 'Stopped' + * @readonly + * @enum {string} + */ +export enum ContinuousWebJobStatus { + Initializing = 'Initializing', + Starting = 'Starting', + Running = 'Running', + PendingRestart = 'PendingRestart', + Stopped = 'Stopped', +} + +/** + * Defines values for WebJobType. + * Possible values include: 'Continuous', 'Triggered' + * @readonly + * @enum {string} + */ +export enum WebJobType { + Continuous = 'Continuous', + Triggered = 'Triggered', +} + +/** + * Defines values for PublishingProfileFormat. + * Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: PublishingProfileFormat = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum PublishingProfileFormat { + FileZilla3 = 'FileZilla3', + WebDeploy = 'WebDeploy', + Ftp = 'Ftp', +} + +/** + * Defines values for DnsVerificationTestResult. + * Possible values include: 'Passed', 'Failed', 'Skipped' + * @readonly + * @enum {string} + */ +export enum DnsVerificationTestResult { + Passed = 'Passed', + Failed = 'Failed', + Skipped = 'Skipped', +} + +/** + * Defines values for MSDeployLogEntryType. + * Possible values include: 'Message', 'Warning', 'Error' + * @readonly + * @enum {string} + */ +export enum MSDeployLogEntryType { + Message = 'Message', + Warning = 'Warning', + Error = 'Error', +} + +/** + * Defines values for MSDeployProvisioningState. + * Possible values include: 'accepted', 'running', 'succeeded', 'failed', + * 'canceled' + * @readonly + * @enum {string} + */ +export enum MSDeployProvisioningState { + Accepted = 'accepted', + Running = 'running', + Succeeded = 'succeeded', + Failed = 'failed', + Canceled = 'canceled', +} + +/** + * Defines values for MySqlMigrationType. + * Possible values include: 'LocalToRemote', 'RemoteToLocal' + * @readonly + * @enum {string} + */ +export enum MySqlMigrationType { + LocalToRemote = 'LocalToRemote', + RemoteToLocal = 'RemoteToLocal', +} + +/** + * Defines values for PublicCertificateLocation. + * Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + * @readonly + * @enum {string} + */ +export enum PublicCertificateLocation { + CurrentUserMy = 'CurrentUserMy', + LocalMachineMy = 'LocalMachineMy', + Unknown = 'Unknown', +} + +/** + * Defines values for BackupRestoreOperationType. + * Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', + * 'CloudFS' + * @readonly + * @enum {string} + */ +export enum BackupRestoreOperationType { + Default = 'Default', + Clone = 'Clone', + Relocation = 'Relocation', + Snapshot = 'Snapshot', + CloudFS = 'CloudFS', +} + +/** + * Defines values for UnauthenticatedClientAction. + * Possible values include: 'RedirectToLoginPage', 'AllowAnonymous' + * @readonly + * @enum {string} + */ +export enum UnauthenticatedClientAction { + RedirectToLoginPage = 'RedirectToLoginPage', + AllowAnonymous = 'AllowAnonymous', +} + +/** + * Defines values for BuiltInAuthenticationProvider. + * Possible values include: 'AzureActiveDirectory', 'Facebook', 'Google', + * 'MicrosoftAccount', 'Twitter' + * @readonly + * @enum {string} + */ +export enum BuiltInAuthenticationProvider { + AzureActiveDirectory = 'AzureActiveDirectory', + Facebook = 'Facebook', + Google = 'Google', + MicrosoftAccount = 'MicrosoftAccount', + Twitter = 'Twitter', +} + +/** + * Defines values for CloneAbilityResult. + * Possible values include: 'Cloneable', 'PartiallyCloneable', 'NotCloneable' + * @readonly + * @enum {string} + */ +export enum CloneAbilityResult { + Cloneable = 'Cloneable', + PartiallyCloneable = 'PartiallyCloneable', + NotCloneable = 'NotCloneable', +} + +/** + * Defines values for SiteExtensionType. + * Possible values include: 'Gallery', 'WebRoot' + * @readonly + * @enum {string} + */ +export enum SiteExtensionType { + Gallery = 'Gallery', + WebRoot = 'WebRoot', +} + +/** + * Defines values for TriggeredWebJobStatus. + * Possible values include: 'Success', 'Failed', 'Error' + * @readonly + * @enum {string} + */ +export enum TriggeredWebJobStatus { + Success = 'Success', + Failed = 'Failed', + Error = 'Error', +} + +/** + * Defines values for SkuName. + * Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', + * 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SkuName = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum SkuName { + Free = 'Free', + Shared = 'Shared', + Basic = 'Basic', + Standard = 'Standard', + Premium = 'Premium', + Dynamic = 'Dynamic', + Isolated = 'Isolated', + PremiumV2 = 'PremiumV2', + ElasticPremium = 'ElasticPremium', + ElasticIsolated = 'ElasticIsolated', +} + +/** + * Defines values for OsTypeSelected. + * Possible values include: 'Windows', 'Linux', 'WindowsFunctions', + * 'LinuxFunctions' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: OsTypeSelected = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum OsTypeSelected { + Windows = 'Windows', + Linux = 'Linux', + WindowsFunctions = 'WindowsFunctions', + LinuxFunctions = 'LinuxFunctions', +} + +/** + * Defines values for OsTypeSelected1. + * Possible values include: 'Windows', 'Linux', 'WindowsFunctions', + * 'LinuxFunctions' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: OsTypeSelected1 = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum OsTypeSelected1 { + Windows = 'Windows', + Linux = 'Linux', + WindowsFunctions = 'WindowsFunctions', + LinuxFunctions = 'LinuxFunctions', +} + +/** + * Contains response data for the list operation. + */ +export type AppServiceCertificateOrdersListResponse = AppServiceCertificateOrderCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrderCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AppServiceCertificateOrdersListByResourceGroupResponse = AppServiceCertificateOrderCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrderCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AppServiceCertificateOrdersGetResponse = AppServiceCertificateOrder & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrder; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AppServiceCertificateOrdersCreateOrUpdateResponse = AppServiceCertificateOrder & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrder; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AppServiceCertificateOrdersUpdateResponse = AppServiceCertificateOrder & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrder; + }; +}; + +/** + * Contains response data for the listCertificates operation. + */ +export type AppServiceCertificateOrdersListCertificatesResponse = AppServiceCertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateCollection; + }; +}; + +/** + * Contains response data for the getCertificate operation. + */ +export type AppServiceCertificateOrdersGetCertificateResponse = AppServiceCertificateResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateResource; + }; +}; + +/** + * Contains response data for the createOrUpdateCertificate operation. + */ +export type AppServiceCertificateOrdersCreateOrUpdateCertificateResponse = AppServiceCertificateResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateResource; + }; +}; + +/** + * Contains response data for the updateCertificate operation. + */ +export type AppServiceCertificateOrdersUpdateCertificateResponse = AppServiceCertificateResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateResource; + }; +}; + +/** + * Contains response data for the retrieveSiteSeal operation. + */ +export type AppServiceCertificateOrdersRetrieveSiteSealResponse = SiteSeal & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSeal; + }; +}; + +/** + * Contains response data for the retrieveCertificateActions operation. + */ +export type AppServiceCertificateOrdersRetrieveCertificateActionsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateOrderAction[]; + }; +}; + +/** + * Contains response data for the retrieveCertificateEmailHistory operation. + */ +export type AppServiceCertificateOrdersRetrieveCertificateEmailHistoryResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateEmail[]; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AppServiceCertificateOrdersBeginCreateOrUpdateResponse = AppServiceCertificateOrder & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrder; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdateCertificate operation. + */ +export type AppServiceCertificateOrdersBeginCreateOrUpdateCertificateResponse = AppServiceCertificateResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AppServiceCertificateOrdersListNextResponse = AppServiceCertificateOrderCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrderCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AppServiceCertificateOrdersListByResourceGroupNextResponse = AppServiceCertificateOrderCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateOrderCollection; + }; +}; + +/** + * Contains response data for the listCertificatesNext operation. + */ +export type AppServiceCertificateOrdersListCertificatesNextResponse = AppServiceCertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceCertificateCollection; + }; +}; + +/** + * Contains response data for the listOperations operation. + */ +export type CertificateRegistrationProviderListOperationsResponse = CsmOperationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmOperationCollection; + }; +}; + +/** + * Contains response data for the listOperationsNext operation. + */ +export type CertificateRegistrationProviderListOperationsNextResponse = CsmOperationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmOperationCollection; + }; +}; + +/** + * Contains response data for the checkAvailability operation. + */ +export type DomainsCheckAvailabilityResponse = DomainAvailablilityCheckResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainAvailablilityCheckResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DomainsListResponse = DomainCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainCollection; + }; +}; + +/** + * Contains response data for the getControlCenterSsoRequest operation. + */ +export type DomainsGetControlCenterSsoRequestResponse = DomainControlCenterSsoRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainControlCenterSsoRequest; + }; +}; + +/** + * Contains response data for the listRecommendations operation. + */ +export type DomainsListRecommendationsResponse = NameIdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NameIdentifierCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DomainsListByResourceGroupResponse = DomainCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DomainsGetResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DomainsCreateOrUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DomainsUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the listOwnershipIdentifiers operation. + */ +export type DomainsListOwnershipIdentifiersResponse = DomainOwnershipIdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainOwnershipIdentifierCollection; + }; +}; + +/** + * Contains response data for the getOwnershipIdentifier operation. + */ +export type DomainsGetOwnershipIdentifierResponse = DomainOwnershipIdentifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainOwnershipIdentifier; + }; +}; + +/** + * Contains response data for the createOrUpdateOwnershipIdentifier operation. + */ +export type DomainsCreateOrUpdateOwnershipIdentifierResponse = DomainOwnershipIdentifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainOwnershipIdentifier; + }; +}; + +/** + * Contains response data for the updateOwnershipIdentifier operation. + */ +export type DomainsUpdateOwnershipIdentifierResponse = DomainOwnershipIdentifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainOwnershipIdentifier; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DomainsBeginCreateOrUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DomainsListNextResponse = DomainCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainCollection; + }; +}; + +/** + * Contains response data for the listRecommendationsNext operation. + */ +export type DomainsListRecommendationsNextResponse = NameIdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NameIdentifierCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DomainsListByResourceGroupNextResponse = DomainCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainCollection; + }; +}; + +/** + * Contains response data for the listOwnershipIdentifiersNext operation. + */ +export type DomainsListOwnershipIdentifiersNextResponse = DomainOwnershipIdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainOwnershipIdentifierCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type TopLevelDomainsListResponse = TopLevelDomainCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TopLevelDomainCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type TopLevelDomainsGetResponse = TopLevelDomain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TopLevelDomain; + }; +}; + +/** + * Contains response data for the listAgreements operation. + */ +export type TopLevelDomainsListAgreementsResponse = TldLegalAgreementCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TldLegalAgreementCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type TopLevelDomainsListNextResponse = TopLevelDomainCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TopLevelDomainCollection; + }; +}; + +/** + * Contains response data for the listAgreementsNext operation. + */ +export type TopLevelDomainsListAgreementsNextResponse = TldLegalAgreementCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TldLegalAgreementCollection; + }; +}; + +/** + * Contains response data for the listOperations operation. + */ +export type DomainRegistrationProviderListOperationsResponse = CsmOperationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmOperationCollection; + }; +}; + +/** + * Contains response data for the listOperationsNext operation. + */ +export type DomainRegistrationProviderListOperationsNextResponse = CsmOperationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmOperationCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CertificatesListResponse = CertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type CertificatesListByResourceGroupResponse = CertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CertificatesGetResponse = Certificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CertificatesCreateOrUpdateResponse = Certificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type CertificatesUpdateResponse = Certificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CertificatesListNextResponse = CertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type CertificatesListByResourceGroupNextResponse = CertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DeletedWebAppsListResponse = DeletedWebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedWebAppCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DeletedWebAppsListNextResponse = DeletedWebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedWebAppCollection; + }; +}; + +/** + * Contains response data for the listHostingEnvironmentDetectorResponses operation. + */ +export type DiagnosticsListHostingEnvironmentDetectorResponsesResponse = DetectorResponseCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponseCollection; + }; +}; + +/** + * Contains response data for the getHostingEnvironmentDetectorResponse operation. + */ +export type DiagnosticsGetHostingEnvironmentDetectorResponseResponse = DetectorResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponse; + }; +}; + +/** + * Contains response data for the listSiteDetectorResponses operation. + */ +export type DiagnosticsListSiteDetectorResponsesResponse = DetectorResponseCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponseCollection; + }; +}; + +/** + * Contains response data for the getSiteDetectorResponse operation. + */ +export type DiagnosticsGetSiteDetectorResponseResponse = DetectorResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponse; + }; +}; + +/** + * Contains response data for the listSiteDiagnosticCategories operation. + */ +export type DiagnosticsListSiteDiagnosticCategoriesResponse = DiagnosticCategoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticCategoryCollection; + }; +}; + +/** + * Contains response data for the getSiteDiagnosticCategory operation. + */ +export type DiagnosticsGetSiteDiagnosticCategoryResponse = DiagnosticCategory & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticCategory; + }; +}; + +/** + * Contains response data for the listSiteAnalyses operation. + */ +export type DiagnosticsListSiteAnalysesResponse = DiagnosticAnalysisCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysisCollection; + }; +}; + +/** + * Contains response data for the getSiteAnalysis operation. + */ +export type DiagnosticsGetSiteAnalysisResponse = DiagnosticAnalysis & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysis; + }; +}; + +/** + * Contains response data for the executeSiteAnalysis operation. + */ +export type DiagnosticsExecuteSiteAnalysisResponse = DiagnosticAnalysis & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysis; + }; +}; + +/** + * Contains response data for the listSiteDetectors operation. + */ +export type DiagnosticsListSiteDetectorsResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the getSiteDetector operation. + */ +export type DiagnosticsGetSiteDetectorResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the executeSiteDetector operation. + */ +export type DiagnosticsExecuteSiteDetectorResponse = DiagnosticDetectorResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorResponse; + }; +}; + +/** + * Contains response data for the listSiteDetectorResponsesSlot operation. + */ +export type DiagnosticsListSiteDetectorResponsesSlotResponse = DetectorResponseCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponseCollection; + }; +}; + +/** + * Contains response data for the getSiteDetectorResponseSlot operation. + */ +export type DiagnosticsGetSiteDetectorResponseSlotResponse = DetectorResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponse; + }; +}; + +/** + * Contains response data for the listSiteDiagnosticCategoriesSlot operation. + */ +export type DiagnosticsListSiteDiagnosticCategoriesSlotResponse = DiagnosticCategoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticCategoryCollection; + }; +}; + +/** + * Contains response data for the getSiteDiagnosticCategorySlot operation. + */ +export type DiagnosticsGetSiteDiagnosticCategorySlotResponse = DiagnosticCategory & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticCategory; + }; +}; + +/** + * Contains response data for the listSiteAnalysesSlot operation. + */ +export type DiagnosticsListSiteAnalysesSlotResponse = DiagnosticAnalysisCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysisCollection; + }; +}; + +/** + * Contains response data for the getSiteAnalysisSlot operation. + */ +export type DiagnosticsGetSiteAnalysisSlotResponse = DiagnosticAnalysis & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysis; + }; +}; + +/** + * Contains response data for the executeSiteAnalysisSlot operation. + */ +export type DiagnosticsExecuteSiteAnalysisSlotResponse = DiagnosticAnalysis & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysis; + }; +}; + +/** + * Contains response data for the listSiteDetectorsSlot operation. + */ +export type DiagnosticsListSiteDetectorsSlotResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the getSiteDetectorSlot operation. + */ +export type DiagnosticsGetSiteDetectorSlotResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the executeSiteDetectorSlot operation. + */ +export type DiagnosticsExecuteSiteDetectorSlotResponse = DiagnosticDetectorResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorResponse; + }; +}; + +/** + * Contains response data for the listHostingEnvironmentDetectorResponsesNext operation. + */ +export type DiagnosticsListHostingEnvironmentDetectorResponsesNextResponse = DetectorResponseCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponseCollection; + }; +}; + +/** + * Contains response data for the listSiteDetectorResponsesNext operation. + */ +export type DiagnosticsListSiteDetectorResponsesNextResponse = DetectorResponseCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponseCollection; + }; +}; + +/** + * Contains response data for the listSiteDiagnosticCategoriesNext operation. + */ +export type DiagnosticsListSiteDiagnosticCategoriesNextResponse = DiagnosticCategoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticCategoryCollection; + }; +}; + +/** + * Contains response data for the listSiteAnalysesNext operation. + */ +export type DiagnosticsListSiteAnalysesNextResponse = DiagnosticAnalysisCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysisCollection; + }; +}; + +/** + * Contains response data for the listSiteDetectorsNext operation. + */ +export type DiagnosticsListSiteDetectorsNextResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the getSiteDetectorNext operation. + */ +export type DiagnosticsGetSiteDetectorNextResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the listSiteDetectorResponsesSlotNext operation. + */ +export type DiagnosticsListSiteDetectorResponsesSlotNextResponse = DetectorResponseCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DetectorResponseCollection; + }; +}; + +/** + * Contains response data for the listSiteDiagnosticCategoriesSlotNext operation. + */ +export type DiagnosticsListSiteDiagnosticCategoriesSlotNextResponse = DiagnosticCategoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticCategoryCollection; + }; +}; + +/** + * Contains response data for the listSiteAnalysesSlotNext operation. + */ +export type DiagnosticsListSiteAnalysesSlotNextResponse = DiagnosticAnalysisCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticAnalysisCollection; + }; +}; + +/** + * Contains response data for the listSiteDetectorsSlotNext operation. + */ +export type DiagnosticsListSiteDetectorsSlotNextResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the getSiteDetectorSlotNext operation. + */ +export type DiagnosticsGetSiteDetectorSlotNextResponse = DiagnosticDetectorCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticDetectorCollection; + }; +}; + +/** + * Contains response data for the getAvailableStacks operation. + */ +export type ProviderGetAvailableStacksResponse = ApplicationStackCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationStackCollection; + }; +}; + +/** + * Contains response data for the listOperations operation. + */ +export type ProviderListOperationsResponse = CsmOperationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmOperationCollection; + }; +}; + +/** + * Contains response data for the getAvailableStacksOnPrem operation. + */ +export type ProviderGetAvailableStacksOnPremResponse = ApplicationStackCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationStackCollection; + }; +}; + +/** + * Contains response data for the getAvailableStacksNext operation. + */ +export type ProviderGetAvailableStacksNextResponse = ApplicationStackCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationStackCollection; + }; +}; + +/** + * Contains response data for the listOperationsNext operation. + */ +export type ProviderListOperationsNextResponse = CsmOperationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmOperationCollection; + }; +}; + +/** + * Contains response data for the getAvailableStacksOnPremNext operation. + */ +export type ProviderGetAvailableStacksOnPremNextResponse = ApplicationStackCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationStackCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type RecommendationsListResponse = RecommendationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationCollection; + }; +}; + +/** + * Contains response data for the listHistoryForWebApp operation. + */ +export type RecommendationsListHistoryForWebAppResponse = RecommendationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationCollection; + }; +}; + +/** + * Contains response data for the listRecommendedRulesForWebApp operation. + */ +export type RecommendationsListRecommendedRulesForWebAppResponse = RecommendationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationCollection; + }; +}; + +/** + * Contains response data for the getRuleDetailsByWebApp operation. + */ +export type RecommendationsGetRuleDetailsByWebAppResponse = RecommendationRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type RecommendationsListNextResponse = RecommendationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationCollection; + }; +}; + +/** + * Contains response data for the listHistoryForWebAppNext operation. + */ +export type RecommendationsListHistoryForWebAppNextResponse = RecommendationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationCollection; + }; +}; + +/** + * Contains response data for the listRecommendedRulesForWebAppNext operation. + */ +export type RecommendationsListRecommendedRulesForWebAppNextResponse = RecommendationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendationCollection; + }; +}; + +/** + * Contains response data for the getPublishingUser operation. + */ +export type GetPublishingUserResponse = User & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: User; + }; +}; + +/** + * Contains response data for the updatePublishingUser operation. + */ +export type UpdatePublishingUserResponse = User & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: User; + }; +}; + +/** + * Contains response data for the listSourceControls operation. + */ +export type ListSourceControlsResponse = SourceControlCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlCollection; + }; +}; + +/** + * Contains response data for the getSourceControl operation. + */ +export type GetSourceControlResponse = SourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControl; + }; +}; + +/** + * Contains response data for the updateSourceControl operation. + */ +export type UpdateSourceControlResponse = SourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControl; + }; +}; + +/** + * Contains response data for the listBillingMeters operation. + */ +export type ListBillingMetersResponse = BillingMeterCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BillingMeterCollection; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type CheckNameAvailabilityResponse = ResourceNameAvailability & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceNameAvailability; + }; +}; + +/** + * Contains response data for the getSubscriptionDeploymentLocations operation. + */ +export type GetSubscriptionDeploymentLocationsResponse = DeploymentLocations & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentLocations; + }; +}; + +/** + * Contains response data for the listGeoRegions operation. + */ +export type ListGeoRegionsResponse = GeoRegionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GeoRegionCollection; + }; +}; + +/** + * Contains response data for the listSiteIdentifiersAssignedToHostName operation. + */ +export type ListSiteIdentifiersAssignedToHostNameResponse = IdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentifierCollection; + }; +}; + +/** + * Contains response data for the listPremierAddOnOffers operation. + */ +export type ListPremierAddOnOffersResponse = PremierAddOnOfferCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOnOfferCollection; + }; +}; + +/** + * Contains response data for the listSkus operation. + */ +export type ListSkusResponse = SkuInfos & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuInfos; + }; +}; + +/** + * Contains response data for the verifyHostingEnvironmentVnet operation. + */ +export type VerifyHostingEnvironmentVnetResponse = VnetValidationFailureDetails & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetValidationFailureDetails; + }; +}; + +/** + * Contains response data for the validate operation. + */ +export type ValidateResponse2 = ValidateResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ValidateResponse; + }; +}; + +/** + * Contains response data for the listSourceControlsNext operation. + */ +export type ListSourceControlsNextResponse = SourceControlCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlCollection; + }; +}; + +/** + * Contains response data for the listBillingMetersNext operation. + */ +export type ListBillingMetersNextResponse = BillingMeterCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BillingMeterCollection; + }; +}; + +/** + * Contains response data for the listGeoRegionsNext operation. + */ +export type ListGeoRegionsNextResponse = GeoRegionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GeoRegionCollection; + }; +}; + +/** + * Contains response data for the listSiteIdentifiersAssignedToHostNameNext operation. + */ +export type ListSiteIdentifiersAssignedToHostNameNextResponse = IdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentifierCollection; + }; +}; + +/** + * Contains response data for the listPremierAddOnOffersNext operation. + */ +export type ListPremierAddOnOffersNextResponse = PremierAddOnOfferCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOnOfferCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type WebAppsListResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type WebAppsListByResourceGroupResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type WebAppsGetResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WebAppsCreateOrUpdateResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WebAppsUpdateResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the analyzeCustomHostname operation. + */ +export type WebAppsAnalyzeCustomHostnameResponse = CustomHostnameAnalysisResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomHostnameAnalysisResult; + }; +}; + +/** + * Contains response data for the backup operation. + */ +export type WebAppsBackupResponse = BackupItem & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItem; + }; +}; + +/** + * Contains response data for the listBackups operation. + */ +export type WebAppsListBackupsResponse = BackupItemCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItemCollection; + }; +}; + +/** + * Contains response data for the getBackupStatus operation. + */ +export type WebAppsGetBackupStatusResponse = BackupItem & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItem; + }; +}; + +/** + * Contains response data for the listBackupStatusSecrets operation. + */ +export type WebAppsListBackupStatusSecretsResponse = BackupItem & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItem; + }; +}; + +/** + * Contains response data for the listConfigurations operation. + */ +export type WebAppsListConfigurationsResponse = SiteConfigResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResourceCollection; + }; +}; + +/** + * Contains response data for the updateApplicationSettings operation. + */ +export type WebAppsUpdateApplicationSettingsResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the listApplicationSettings operation. + */ +export type WebAppsListApplicationSettingsResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the updateAuthSettings operation. + */ +export type WebAppsUpdateAuthSettingsResponse = SiteAuthSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteAuthSettings; + }; +}; + +/** + * Contains response data for the getAuthSettings operation. + */ +export type WebAppsGetAuthSettingsResponse = SiteAuthSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteAuthSettings; + }; +}; + +/** + * Contains response data for the updateAzureStorageAccounts operation. + */ +export type WebAppsUpdateAzureStorageAccountsResponse = AzureStoragePropertyDictionaryResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureStoragePropertyDictionaryResource; + }; +}; + +/** + * Contains response data for the listAzureStorageAccounts operation. + */ +export type WebAppsListAzureStorageAccountsResponse = AzureStoragePropertyDictionaryResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureStoragePropertyDictionaryResource; + }; +}; + +/** + * Contains response data for the updateBackupConfiguration operation. + */ +export type WebAppsUpdateBackupConfigurationResponse = BackupRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupRequest; + }; +}; + +/** + * Contains response data for the getBackupConfiguration operation. + */ +export type WebAppsGetBackupConfigurationResponse = BackupRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupRequest; + }; +}; + +/** + * Contains response data for the updateConnectionStrings operation. + */ +export type WebAppsUpdateConnectionStringsResponse = ConnectionStringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionStringDictionary; + }; +}; + +/** + * Contains response data for the listConnectionStrings operation. + */ +export type WebAppsListConnectionStringsResponse = ConnectionStringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionStringDictionary; + }; +}; + +/** + * Contains response data for the getDiagnosticLogsConfiguration operation. + */ +export type WebAppsGetDiagnosticLogsConfigurationResponse = SiteLogsConfig & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteLogsConfig; + }; +}; + +/** + * Contains response data for the updateDiagnosticLogsConfig operation. + */ +export type WebAppsUpdateDiagnosticLogsConfigResponse = SiteLogsConfig & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteLogsConfig; + }; +}; + +/** + * Contains response data for the updateMetadata operation. + */ +export type WebAppsUpdateMetadataResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the listMetadata operation. + */ +export type WebAppsListMetadataResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the listPublishingCredentials operation. + */ +export type WebAppsListPublishingCredentialsResponse = User & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: User; + }; +}; + +/** + * Contains response data for the updateSitePushSettings operation. + */ +export type WebAppsUpdateSitePushSettingsResponse = PushSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PushSettings; + }; +}; + +/** + * Contains response data for the listSitePushSettings operation. + */ +export type WebAppsListSitePushSettingsResponse = PushSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PushSettings; + }; +}; + +/** + * Contains response data for the listSlotConfigurationNames operation. + */ +export type WebAppsListSlotConfigurationNamesResponse = SlotConfigNamesResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SlotConfigNamesResource; + }; +}; + +/** + * Contains response data for the updateSlotConfigurationNames operation. + */ +export type WebAppsUpdateSlotConfigurationNamesResponse = SlotConfigNamesResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SlotConfigNamesResource; + }; +}; + +/** + * Contains response data for the getSwiftVirtualNetworkConnection operation. + */ +export type WebAppsGetSwiftVirtualNetworkConnectionResponse = SwiftVirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SwiftVirtualNetwork; + }; +}; + +/** + * Contains response data for the createOrUpdateSwiftVirtualNetworkConnection operation. + */ +export type WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionResponse = SwiftVirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SwiftVirtualNetwork; + }; +}; + +/** + * Contains response data for the updateSwiftVirtualNetworkConnection operation. + */ +export type WebAppsUpdateSwiftVirtualNetworkConnectionResponse = SwiftVirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SwiftVirtualNetwork; + }; +}; + +/** + * Contains response data for the getConfiguration operation. + */ +export type WebAppsGetConfigurationResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the createOrUpdateConfiguration operation. + */ +export type WebAppsCreateOrUpdateConfigurationResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the updateConfiguration operation. + */ +export type WebAppsUpdateConfigurationResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the listConfigurationSnapshotInfo operation. + */ +export type WebAppsListConfigurationSnapshotInfoResponse = SiteConfigurationSnapshotInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigurationSnapshotInfoCollection; + }; +}; + +/** + * Contains response data for the getConfigurationSnapshot operation. + */ +export type WebAppsGetConfigurationSnapshotResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the getWebSiteContainerLogs operation. + */ +export type WebAppsGetWebSiteContainerLogsResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the getContainerLogsZip operation. + */ +export type WebAppsGetContainerLogsZipResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listContinuousWebJobs operation. + */ +export type WebAppsListContinuousWebJobsResponse = ContinuousWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ContinuousWebJobCollection; + }; +}; + +/** + * Contains response data for the getContinuousWebJob operation. + */ +export type WebAppsGetContinuousWebJobResponse = ContinuousWebJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ContinuousWebJob; + }; +}; + +/** + * Contains response data for the listDeployments operation. + */ +export type WebAppsListDeploymentsResponse = DeploymentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentCollection; + }; +}; + +/** + * Contains response data for the getDeployment operation. + */ +export type WebAppsGetDeploymentResponse = Deployment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Deployment; + }; +}; + +/** + * Contains response data for the createDeployment operation. + */ +export type WebAppsCreateDeploymentResponse = Deployment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Deployment; + }; +}; + +/** + * Contains response data for the listDeploymentLog operation. + */ +export type WebAppsListDeploymentLogResponse = Deployment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Deployment; + }; +}; + +/** + * Contains response data for the discoverBackup operation. + */ +export type WebAppsDiscoverBackupResponse = RestoreRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestoreRequest; + }; +}; + +/** + * Contains response data for the listDomainOwnershipIdentifiers operation. + */ +export type WebAppsListDomainOwnershipIdentifiersResponse = IdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentifierCollection; + }; +}; + +/** + * Contains response data for the getDomainOwnershipIdentifier operation. + */ +export type WebAppsGetDomainOwnershipIdentifierResponse = Identifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Identifier; + }; +}; + +/** + * Contains response data for the createOrUpdateDomainOwnershipIdentifier operation. + */ +export type WebAppsCreateOrUpdateDomainOwnershipIdentifierResponse = Identifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Identifier; + }; +}; + +/** + * Contains response data for the updateDomainOwnershipIdentifier operation. + */ +export type WebAppsUpdateDomainOwnershipIdentifierResponse = Identifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Identifier; + }; +}; + +/** + * Contains response data for the getMSDeployStatus operation. + */ +export type WebAppsGetMSDeployStatusResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the createMSDeployOperation operation. + */ +export type WebAppsCreateMSDeployOperationResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the getMSDeployLog operation. + */ +export type WebAppsGetMSDeployLogResponse = MSDeployLog & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployLog; + }; +}; + +/** + * Contains response data for the listFunctions operation. + */ +export type WebAppsListFunctionsResponse = FunctionEnvelopeCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelopeCollection; + }; +}; + +/** + * Contains response data for the getFunctionsAdminToken operation. + */ +export type WebAppsGetFunctionsAdminTokenResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the getFunction operation. + */ +export type WebAppsGetFunctionResponse = FunctionEnvelope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelope; + }; +}; + +/** + * Contains response data for the createFunction operation. + */ +export type WebAppsCreateFunctionResponse = FunctionEnvelope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelope; + }; +}; + +/** + * Contains response data for the listFunctionSecrets operation. + */ +export type WebAppsListFunctionSecretsResponse = FunctionSecrets & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionSecrets; + }; +}; + +/** + * Contains response data for the listHostNameBindings operation. + */ +export type WebAppsListHostNameBindingsResponse = HostNameBindingCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBindingCollection; + }; +}; + +/** + * Contains response data for the getHostNameBinding operation. + */ +export type WebAppsGetHostNameBindingResponse = HostNameBinding & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBinding; + }; +}; + +/** + * Contains response data for the createOrUpdateHostNameBinding operation. + */ +export type WebAppsCreateOrUpdateHostNameBindingResponse = HostNameBinding & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBinding; + }; +}; + +/** + * Contains response data for the getHybridConnection operation. + */ +export type WebAppsGetHybridConnectionResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the createOrUpdateHybridConnection operation. + */ +export type WebAppsCreateOrUpdateHybridConnectionResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the updateHybridConnection operation. + */ +export type WebAppsUpdateHybridConnectionResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the listHybridConnectionKeys operation. + */ +export type WebAppsListHybridConnectionKeysResponse = HybridConnectionKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnectionKey; + }; +}; + +/** + * Contains response data for the listHybridConnections operation. + */ +export type WebAppsListHybridConnectionsResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the listRelayServiceConnections operation. + */ +export type WebAppsListRelayServiceConnectionsResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the getRelayServiceConnection operation. + */ +export type WebAppsGetRelayServiceConnectionResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the createOrUpdateRelayServiceConnection operation. + */ +export type WebAppsCreateOrUpdateRelayServiceConnectionResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the updateRelayServiceConnection operation. + */ +export type WebAppsUpdateRelayServiceConnectionResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the listInstanceIdentifiers operation. + */ +export type WebAppsListInstanceIdentifiersResponse = WebAppInstanceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppInstanceCollection; + }; +}; + +/** + * Contains response data for the getInstanceMsDeployStatus operation. + */ +export type WebAppsGetInstanceMsDeployStatusResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the createInstanceMSDeployOperation operation. + */ +export type WebAppsCreateInstanceMSDeployOperationResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the getInstanceMSDeployLog operation. + */ +export type WebAppsGetInstanceMSDeployLogResponse = MSDeployLog & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployLog; + }; +}; + +/** + * Contains response data for the listInstanceProcesses operation. + */ +export type WebAppsListInstanceProcessesResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the getInstanceProcess operation. + */ +export type WebAppsGetInstanceProcessResponse = ProcessInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfo; + }; +}; + +/** + * Contains response data for the getInstanceProcessDump operation. + */ +export type WebAppsGetInstanceProcessDumpResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listInstanceProcessModules operation. + */ +export type WebAppsListInstanceProcessModulesResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the getInstanceProcessModule operation. + */ +export type WebAppsGetInstanceProcessModuleResponse = ProcessModuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfo; + }; +}; + +/** + * Contains response data for the listInstanceProcessThreads operation. + */ +export type WebAppsListInstanceProcessThreadsResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the getInstanceProcessThread operation. + */ +export type WebAppsGetInstanceProcessThreadResponse = ProcessThreadInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfo; + }; +}; + +/** + * Contains response data for the isCloneable operation. + */ +export type WebAppsIsCloneableResponse = SiteCloneability & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteCloneability; + }; +}; + +/** + * Contains response data for the listSyncFunctionTriggers operation. + */ +export type WebAppsListSyncFunctionTriggersResponse = FunctionSecrets & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionSecrets; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type WebAppsListMetricDefinitionsResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type WebAppsListMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the migrateStorage operation. + */ +export type WebAppsMigrateStorageResponse = StorageMigrationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageMigrationResponse; + }; +}; + +/** + * Contains response data for the migrateMySql operation. + */ +export type WebAppsMigrateMySqlResponse = Operation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Operation; + }; +}; + +/** + * Contains response data for the getMigrateMySqlStatus operation. + */ +export type WebAppsGetMigrateMySqlStatusResponse = MigrateMySqlStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MigrateMySqlStatus; + }; +}; + +/** + * Contains response data for the listNetworkFeatures operation. + */ +export type WebAppsListNetworkFeaturesResponse = NetworkFeatures & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkFeatures; + }; +}; + +/** + * Contains response data for the getNetworkTraceOperation operation. + */ +export type WebAppsGetNetworkTraceOperationResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the startWebSiteNetworkTrace operation. + */ +export type WebAppsStartWebSiteNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the startWebSiteNetworkTraceOperation operation. + */ +export type WebAppsStartWebSiteNetworkTraceOperationResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the getNetworkTraces operation. + */ +export type WebAppsGetNetworkTracesResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkTrace[]; + }; +}; + +/** + * Contains response data for the getNetworkTraceOperationV2 operation. + */ +export type WebAppsGetNetworkTraceOperationV2Response = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the getNetworkTracesV2 operation. + */ +export type WebAppsGetNetworkTracesV2Response = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkTrace[]; + }; +}; + +/** + * Contains response data for the listPerfMonCounters operation. + */ +export type WebAppsListPerfMonCountersResponse = PerfMonCounterCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PerfMonCounterCollection; + }; +}; + +/** + * Contains response data for the getSitePhpErrorLogFlag operation. + */ +export type WebAppsGetSitePhpErrorLogFlagResponse = SitePhpErrorLogFlag & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SitePhpErrorLogFlag; + }; +}; + +/** + * Contains response data for the listPremierAddOns operation. + */ +export type WebAppsListPremierAddOnsResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the getPremierAddOn operation. + */ +export type WebAppsGetPremierAddOnResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the addPremierAddOn operation. + */ +export type WebAppsAddPremierAddOnResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the updatePremierAddOn operation. + */ +export type WebAppsUpdatePremierAddOnResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the getPrivateAccess operation. + */ +export type WebAppsGetPrivateAccessResponse = PrivateAccess & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAccess; + }; +}; + +/** + * Contains response data for the putPrivateAccessVnet operation. + */ +export type WebAppsPutPrivateAccessVnetResponse = PrivateAccess & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAccess; + }; +}; + +/** + * Contains response data for the listProcesses operation. + */ +export type WebAppsListProcessesResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the getProcess operation. + */ +export type WebAppsGetProcessResponse = ProcessInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfo; + }; +}; + +/** + * Contains response data for the getProcessDump operation. + */ +export type WebAppsGetProcessDumpResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listProcessModules operation. + */ +export type WebAppsListProcessModulesResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the getProcessModule operation. + */ +export type WebAppsGetProcessModuleResponse = ProcessModuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfo; + }; +}; + +/** + * Contains response data for the listProcessThreads operation. + */ +export type WebAppsListProcessThreadsResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the getProcessThread operation. + */ +export type WebAppsGetProcessThreadResponse = ProcessThreadInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfo; + }; +}; + +/** + * Contains response data for the listPublicCertificates operation. + */ +export type WebAppsListPublicCertificatesResponse = PublicCertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificateCollection; + }; +}; + +/** + * Contains response data for the getPublicCertificate operation. + */ +export type WebAppsGetPublicCertificateResponse = PublicCertificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificate; + }; +}; + +/** + * Contains response data for the createOrUpdatePublicCertificate operation. + */ +export type WebAppsCreateOrUpdatePublicCertificateResponse = PublicCertificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificate; + }; +}; + +/** + * Contains response data for the listPublishingProfileXmlWithSecrets operation. + */ +export type WebAppsListPublishingProfileXmlWithSecretsResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listSiteExtensions operation. + */ +export type WebAppsListSiteExtensionsResponse = SiteExtensionInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfoCollection; + }; +}; + +/** + * Contains response data for the getSiteExtension operation. + */ +export type WebAppsGetSiteExtensionResponse = SiteExtensionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfo; + }; +}; + +/** + * Contains response data for the installSiteExtension operation. + */ +export type WebAppsInstallSiteExtensionResponse = SiteExtensionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfo; + }; +}; + +/** + * Contains response data for the listSlots operation. + */ +export type WebAppsListSlotsResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the getSlot operation. + */ +export type WebAppsGetSlotResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the createOrUpdateSlot operation. + */ +export type WebAppsCreateOrUpdateSlotResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the updateSlot operation. + */ +export type WebAppsUpdateSlotResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the analyzeCustomHostnameSlot operation. + */ +export type WebAppsAnalyzeCustomHostnameSlotResponse = CustomHostnameAnalysisResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CustomHostnameAnalysisResult; + }; +}; + +/** + * Contains response data for the backupSlot operation. + */ +export type WebAppsBackupSlotResponse = BackupItem & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItem; + }; +}; + +/** + * Contains response data for the listBackupsSlot operation. + */ +export type WebAppsListBackupsSlotResponse = BackupItemCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItemCollection; + }; +}; + +/** + * Contains response data for the getBackupStatusSlot operation. + */ +export type WebAppsGetBackupStatusSlotResponse = BackupItem & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItem; + }; +}; + +/** + * Contains response data for the listBackupStatusSecretsSlot operation. + */ +export type WebAppsListBackupStatusSecretsSlotResponse = BackupItem & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItem; + }; +}; + +/** + * Contains response data for the listConfigurationsSlot operation. + */ +export type WebAppsListConfigurationsSlotResponse = SiteConfigResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResourceCollection; + }; +}; + +/** + * Contains response data for the updateApplicationSettingsSlot operation. + */ +export type WebAppsUpdateApplicationSettingsSlotResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the listApplicationSettingsSlot operation. + */ +export type WebAppsListApplicationSettingsSlotResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the updateAuthSettingsSlot operation. + */ +export type WebAppsUpdateAuthSettingsSlotResponse = SiteAuthSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteAuthSettings; + }; +}; + +/** + * Contains response data for the getAuthSettingsSlot operation. + */ +export type WebAppsGetAuthSettingsSlotResponse = SiteAuthSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteAuthSettings; + }; +}; + +/** + * Contains response data for the updateAzureStorageAccountsSlot operation. + */ +export type WebAppsUpdateAzureStorageAccountsSlotResponse = AzureStoragePropertyDictionaryResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureStoragePropertyDictionaryResource; + }; +}; + +/** + * Contains response data for the listAzureStorageAccountsSlot operation. + */ +export type WebAppsListAzureStorageAccountsSlotResponse = AzureStoragePropertyDictionaryResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureStoragePropertyDictionaryResource; + }; +}; + +/** + * Contains response data for the updateBackupConfigurationSlot operation. + */ +export type WebAppsUpdateBackupConfigurationSlotResponse = BackupRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupRequest; + }; +}; + +/** + * Contains response data for the getBackupConfigurationSlot operation. + */ +export type WebAppsGetBackupConfigurationSlotResponse = BackupRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupRequest; + }; +}; + +/** + * Contains response data for the updateConnectionStringsSlot operation. + */ +export type WebAppsUpdateConnectionStringsSlotResponse = ConnectionStringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionStringDictionary; + }; +}; + +/** + * Contains response data for the listConnectionStringsSlot operation. + */ +export type WebAppsListConnectionStringsSlotResponse = ConnectionStringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionStringDictionary; + }; +}; + +/** + * Contains response data for the getDiagnosticLogsConfigurationSlot operation. + */ +export type WebAppsGetDiagnosticLogsConfigurationSlotResponse = SiteLogsConfig & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteLogsConfig; + }; +}; + +/** + * Contains response data for the updateDiagnosticLogsConfigSlot operation. + */ +export type WebAppsUpdateDiagnosticLogsConfigSlotResponse = SiteLogsConfig & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteLogsConfig; + }; +}; + +/** + * Contains response data for the updateMetadataSlot operation. + */ +export type WebAppsUpdateMetadataSlotResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the listMetadataSlot operation. + */ +export type WebAppsListMetadataSlotResponse = StringDictionary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StringDictionary; + }; +}; + +/** + * Contains response data for the listPublishingCredentialsSlot operation. + */ +export type WebAppsListPublishingCredentialsSlotResponse = User & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: User; + }; +}; + +/** + * Contains response data for the updateSitePushSettingsSlot operation. + */ +export type WebAppsUpdateSitePushSettingsSlotResponse = PushSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PushSettings; + }; +}; + +/** + * Contains response data for the listSitePushSettingsSlot operation. + */ +export type WebAppsListSitePushSettingsSlotResponse = PushSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PushSettings; + }; +}; + +/** + * Contains response data for the getSwiftVirtualNetworkConnectionSlot operation. + */ +export type WebAppsGetSwiftVirtualNetworkConnectionSlotResponse = SwiftVirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SwiftVirtualNetwork; + }; +}; + +/** + * Contains response data for the createOrUpdateSwiftVirtualNetworkConnectionSlot operation. + */ +export type WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionSlotResponse = SwiftVirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SwiftVirtualNetwork; + }; +}; + +/** + * Contains response data for the updateSwiftVirtualNetworkConnectionSlot operation. + */ +export type WebAppsUpdateSwiftVirtualNetworkConnectionSlotResponse = SwiftVirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SwiftVirtualNetwork; + }; +}; + +/** + * Contains response data for the getConfigurationSlot operation. + */ +export type WebAppsGetConfigurationSlotResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the createOrUpdateConfigurationSlot operation. + */ +export type WebAppsCreateOrUpdateConfigurationSlotResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the updateConfigurationSlot operation. + */ +export type WebAppsUpdateConfigurationSlotResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the listConfigurationSnapshotInfoSlot operation. + */ +export type WebAppsListConfigurationSnapshotInfoSlotResponse = SiteConfigurationSnapshotInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigurationSnapshotInfoCollection; + }; +}; + +/** + * Contains response data for the getConfigurationSnapshotSlot operation. + */ +export type WebAppsGetConfigurationSnapshotSlotResponse = SiteConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResource; + }; +}; + +/** + * Contains response data for the getWebSiteContainerLogsSlot operation. + */ +export type WebAppsGetWebSiteContainerLogsSlotResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the getContainerLogsZipSlot operation. + */ +export type WebAppsGetContainerLogsZipSlotResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listContinuousWebJobsSlot operation. + */ +export type WebAppsListContinuousWebJobsSlotResponse = ContinuousWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ContinuousWebJobCollection; + }; +}; + +/** + * Contains response data for the getContinuousWebJobSlot operation. + */ +export type WebAppsGetContinuousWebJobSlotResponse = ContinuousWebJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ContinuousWebJob; + }; +}; + +/** + * Contains response data for the listDeploymentsSlot operation. + */ +export type WebAppsListDeploymentsSlotResponse = DeploymentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentCollection; + }; +}; + +/** + * Contains response data for the getDeploymentSlot operation. + */ +export type WebAppsGetDeploymentSlotResponse = Deployment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Deployment; + }; +}; + +/** + * Contains response data for the createDeploymentSlot operation. + */ +export type WebAppsCreateDeploymentSlotResponse = Deployment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Deployment; + }; +}; + +/** + * Contains response data for the listDeploymentLogSlot operation. + */ +export type WebAppsListDeploymentLogSlotResponse = Deployment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Deployment; + }; +}; + +/** + * Contains response data for the discoverBackupSlot operation. + */ +export type WebAppsDiscoverBackupSlotResponse = RestoreRequest & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestoreRequest; + }; +}; + +/** + * Contains response data for the listDomainOwnershipIdentifiersSlot operation. + */ +export type WebAppsListDomainOwnershipIdentifiersSlotResponse = IdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentifierCollection; + }; +}; + +/** + * Contains response data for the getDomainOwnershipIdentifierSlot operation. + */ +export type WebAppsGetDomainOwnershipIdentifierSlotResponse = Identifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Identifier; + }; +}; + +/** + * Contains response data for the createOrUpdateDomainOwnershipIdentifierSlot operation. + */ +export type WebAppsCreateOrUpdateDomainOwnershipIdentifierSlotResponse = Identifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Identifier; + }; +}; + +/** + * Contains response data for the updateDomainOwnershipIdentifierSlot operation. + */ +export type WebAppsUpdateDomainOwnershipIdentifierSlotResponse = Identifier & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Identifier; + }; +}; + +/** + * Contains response data for the getMSDeployStatusSlot operation. + */ +export type WebAppsGetMSDeployStatusSlotResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the createMSDeployOperationSlot operation. + */ +export type WebAppsCreateMSDeployOperationSlotResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the getMSDeployLogSlot operation. + */ +export type WebAppsGetMSDeployLogSlotResponse = MSDeployLog & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployLog; + }; +}; + +/** + * Contains response data for the listInstanceFunctionsSlot operation. + */ +export type WebAppsListInstanceFunctionsSlotResponse = FunctionEnvelopeCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelopeCollection; + }; +}; + +/** + * Contains response data for the getFunctionsAdminTokenSlot operation. + */ +export type WebAppsGetFunctionsAdminTokenSlotResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the getInstanceFunctionSlot operation. + */ +export type WebAppsGetInstanceFunctionSlotResponse = FunctionEnvelope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelope; + }; +}; + +/** + * Contains response data for the createInstanceFunctionSlot operation. + */ +export type WebAppsCreateInstanceFunctionSlotResponse = FunctionEnvelope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelope; + }; +}; + +/** + * Contains response data for the listFunctionSecretsSlot operation. + */ +export type WebAppsListFunctionSecretsSlotResponse = FunctionSecrets & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionSecrets; + }; +}; + +/** + * Contains response data for the listHostNameBindingsSlot operation. + */ +export type WebAppsListHostNameBindingsSlotResponse = HostNameBindingCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBindingCollection; + }; +}; + +/** + * Contains response data for the getHostNameBindingSlot operation. + */ +export type WebAppsGetHostNameBindingSlotResponse = HostNameBinding & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBinding; + }; +}; + +/** + * Contains response data for the createOrUpdateHostNameBindingSlot operation. + */ +export type WebAppsCreateOrUpdateHostNameBindingSlotResponse = HostNameBinding & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBinding; + }; +}; + +/** + * Contains response data for the getHybridConnectionSlot operation. + */ +export type WebAppsGetHybridConnectionSlotResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the createOrUpdateHybridConnectionSlot operation. + */ +export type WebAppsCreateOrUpdateHybridConnectionSlotResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the updateHybridConnectionSlot operation. + */ +export type WebAppsUpdateHybridConnectionSlotResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the listHybridConnectionKeysSlot operation. + */ +export type WebAppsListHybridConnectionKeysSlotResponse = HybridConnectionKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnectionKey; + }; +}; + +/** + * Contains response data for the listHybridConnectionsSlot operation. + */ +export type WebAppsListHybridConnectionsSlotResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the listRelayServiceConnectionsSlot operation. + */ +export type WebAppsListRelayServiceConnectionsSlotResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the getRelayServiceConnectionSlot operation. + */ +export type WebAppsGetRelayServiceConnectionSlotResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the createOrUpdateRelayServiceConnectionSlot operation. + */ +export type WebAppsCreateOrUpdateRelayServiceConnectionSlotResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the updateRelayServiceConnectionSlot operation. + */ +export type WebAppsUpdateRelayServiceConnectionSlotResponse = RelayServiceConnectionEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RelayServiceConnectionEntity; + }; +}; + +/** + * Contains response data for the listInstanceIdentifiersSlot operation. + */ +export type WebAppsListInstanceIdentifiersSlotResponse = WebAppInstanceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppInstanceCollection; + }; +}; + +/** + * Contains response data for the getInstanceMsDeployStatusSlot operation. + */ +export type WebAppsGetInstanceMsDeployStatusSlotResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the createInstanceMSDeployOperationSlot operation. + */ +export type WebAppsCreateInstanceMSDeployOperationSlotResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the getInstanceMSDeployLogSlot operation. + */ +export type WebAppsGetInstanceMSDeployLogSlotResponse = MSDeployLog & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployLog; + }; +}; + +/** + * Contains response data for the listInstanceProcessesSlot operation. + */ +export type WebAppsListInstanceProcessesSlotResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the getInstanceProcessSlot operation. + */ +export type WebAppsGetInstanceProcessSlotResponse = ProcessInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfo; + }; +}; + +/** + * Contains response data for the getInstanceProcessDumpSlot operation. + */ +export type WebAppsGetInstanceProcessDumpSlotResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listInstanceProcessModulesSlot operation. + */ +export type WebAppsListInstanceProcessModulesSlotResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the getInstanceProcessModuleSlot operation. + */ +export type WebAppsGetInstanceProcessModuleSlotResponse = ProcessModuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfo; + }; +}; + +/** + * Contains response data for the listInstanceProcessThreadsSlot operation. + */ +export type WebAppsListInstanceProcessThreadsSlotResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the getInstanceProcessThreadSlot operation. + */ +export type WebAppsGetInstanceProcessThreadSlotResponse = ProcessThreadInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfo; + }; +}; + +/** + * Contains response data for the isCloneableSlot operation. + */ +export type WebAppsIsCloneableSlotResponse = SiteCloneability & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteCloneability; + }; +}; + +/** + * Contains response data for the listSyncFunctionTriggersSlot operation. + */ +export type WebAppsListSyncFunctionTriggersSlotResponse = FunctionSecrets & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionSecrets; + }; +}; + +/** + * Contains response data for the listMetricDefinitionsSlot operation. + */ +export type WebAppsListMetricDefinitionsSlotResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMetricsSlot operation. + */ +export type WebAppsListMetricsSlotResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the getMigrateMySqlStatusSlot operation. + */ +export type WebAppsGetMigrateMySqlStatusSlotResponse = MigrateMySqlStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MigrateMySqlStatus; + }; +}; + +/** + * Contains response data for the listNetworkFeaturesSlot operation. + */ +export type WebAppsListNetworkFeaturesSlotResponse = NetworkFeatures & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkFeatures; + }; +}; + +/** + * Contains response data for the getNetworkTraceOperationSlot operation. + */ +export type WebAppsGetNetworkTraceOperationSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the startWebSiteNetworkTraceSlot operation. + */ +export type WebAppsStartWebSiteNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the startWebSiteNetworkTraceOperationSlot operation. + */ +export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the getNetworkTracesSlot operation. + */ +export type WebAppsGetNetworkTracesSlotResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkTrace[]; + }; +}; + +/** + * Contains response data for the getNetworkTraceOperationSlotV2 operation. + */ +export type WebAppsGetNetworkTraceOperationSlotV2Response = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the getNetworkTracesSlotV2 operation. + */ +export type WebAppsGetNetworkTracesSlotV2Response = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkTrace[]; + }; +}; + +/** + * Contains response data for the listPerfMonCountersSlot operation. + */ +export type WebAppsListPerfMonCountersSlotResponse = PerfMonCounterCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PerfMonCounterCollection; + }; +}; + +/** + * Contains response data for the getSitePhpErrorLogFlagSlot operation. + */ +export type WebAppsGetSitePhpErrorLogFlagSlotResponse = SitePhpErrorLogFlag & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SitePhpErrorLogFlag; + }; +}; + +/** + * Contains response data for the listPremierAddOnsSlot operation. + */ +export type WebAppsListPremierAddOnsSlotResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the getPremierAddOnSlot operation. + */ +export type WebAppsGetPremierAddOnSlotResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the addPremierAddOnSlot operation. + */ +export type WebAppsAddPremierAddOnSlotResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the updatePremierAddOnSlot operation. + */ +export type WebAppsUpdatePremierAddOnSlotResponse = PremierAddOn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PremierAddOn; + }; +}; + +/** + * Contains response data for the getPrivateAccessSlot operation. + */ +export type WebAppsGetPrivateAccessSlotResponse = PrivateAccess & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAccess; + }; +}; + +/** + * Contains response data for the putPrivateAccessVnetSlot operation. + */ +export type WebAppsPutPrivateAccessVnetSlotResponse = PrivateAccess & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAccess; + }; +}; + +/** + * Contains response data for the listProcessesSlot operation. + */ +export type WebAppsListProcessesSlotResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the getProcessSlot operation. + */ +export type WebAppsGetProcessSlotResponse = ProcessInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfo; + }; +}; + +/** + * Contains response data for the getProcessDumpSlot operation. + */ +export type WebAppsGetProcessDumpSlotResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listProcessModulesSlot operation. + */ +export type WebAppsListProcessModulesSlotResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the getProcessModuleSlot operation. + */ +export type WebAppsGetProcessModuleSlotResponse = ProcessModuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfo; + }; +}; + +/** + * Contains response data for the listProcessThreadsSlot operation. + */ +export type WebAppsListProcessThreadsSlotResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the getProcessThreadSlot operation. + */ +export type WebAppsGetProcessThreadSlotResponse = ProcessThreadInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfo; + }; +}; + +/** + * Contains response data for the listPublicCertificatesSlot operation. + */ +export type WebAppsListPublicCertificatesSlotResponse = PublicCertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificateCollection; + }; +}; + +/** + * Contains response data for the getPublicCertificateSlot operation. + */ +export type WebAppsGetPublicCertificateSlotResponse = PublicCertificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificate; + }; +}; + +/** + * Contains response data for the createOrUpdatePublicCertificateSlot operation. + */ +export type WebAppsCreateOrUpdatePublicCertificateSlotResponse = PublicCertificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificate; + }; +}; + +/** + * Contains response data for the listPublishingProfileXmlWithSecretsSlot operation. + */ +export type WebAppsListPublishingProfileXmlWithSecretsSlotResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listSiteExtensionsSlot operation. + */ +export type WebAppsListSiteExtensionsSlotResponse = SiteExtensionInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfoCollection; + }; +}; + +/** + * Contains response data for the getSiteExtensionSlot operation. + */ +export type WebAppsGetSiteExtensionSlotResponse = SiteExtensionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfo; + }; +}; + +/** + * Contains response data for the installSiteExtensionSlot operation. + */ +export type WebAppsInstallSiteExtensionSlotResponse = SiteExtensionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfo; + }; +}; + +/** + * Contains response data for the listSlotDifferencesSlot operation. + */ +export type WebAppsListSlotDifferencesSlotResponse = SlotDifferenceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SlotDifferenceCollection; + }; +}; + +/** + * Contains response data for the listSnapshotsSlot operation. + */ +export type WebAppsListSnapshotsSlotResponse = SnapshotCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotCollection; + }; +}; + +/** + * Contains response data for the getSourceControlSlot operation. + */ +export type WebAppsGetSourceControlSlotResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the createOrUpdateSourceControlSlot operation. + */ +export type WebAppsCreateOrUpdateSourceControlSlotResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the updateSourceControlSlot operation. + */ +export type WebAppsUpdateSourceControlSlotResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the startNetworkTraceSlot operation. + */ +export type WebAppsStartNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobsSlot operation. + */ +export type WebAppsListTriggeredWebJobsSlotResponse = TriggeredWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredWebJobCollection; + }; +}; + +/** + * Contains response data for the getTriggeredWebJobSlot operation. + */ +export type WebAppsGetTriggeredWebJobSlotResponse = TriggeredWebJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredWebJob; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobHistorySlot operation. + */ +export type WebAppsListTriggeredWebJobHistorySlotResponse = TriggeredJobHistoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredJobHistoryCollection; + }; +}; + +/** + * Contains response data for the getTriggeredWebJobHistorySlot operation. + */ +export type WebAppsGetTriggeredWebJobHistorySlotResponse = TriggeredJobHistory & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredJobHistory; + }; +}; + +/** + * Contains response data for the listUsagesSlot operation. + */ +export type WebAppsListUsagesSlotResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listVnetConnectionsSlot operation. + */ +export type WebAppsListVnetConnectionsSlotResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo[]; + }; +}; + +/** + * Contains response data for the getVnetConnectionSlot operation. + */ +export type WebAppsGetVnetConnectionSlotResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the createOrUpdateVnetConnectionSlot operation. + */ +export type WebAppsCreateOrUpdateVnetConnectionSlotResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the updateVnetConnectionSlot operation. + */ +export type WebAppsUpdateVnetConnectionSlotResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the getVnetConnectionGatewaySlot operation. + */ +export type WebAppsGetVnetConnectionGatewaySlotResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the createOrUpdateVnetConnectionGatewaySlot operation. + */ +export type WebAppsCreateOrUpdateVnetConnectionGatewaySlotResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the updateVnetConnectionGatewaySlot operation. + */ +export type WebAppsUpdateVnetConnectionGatewaySlotResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the listWebJobsSlot operation. + */ +export type WebAppsListWebJobsSlotResponse = WebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebJobCollection; + }; +}; + +/** + * Contains response data for the getWebJobSlot operation. + */ +export type WebAppsGetWebJobSlotResponse = WebJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebJob; + }; +}; + +/** + * Contains response data for the listSlotDifferencesFromProduction operation. + */ +export type WebAppsListSlotDifferencesFromProductionResponse = SlotDifferenceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SlotDifferenceCollection; + }; +}; + +/** + * Contains response data for the listSnapshots operation. + */ +export type WebAppsListSnapshotsResponse = SnapshotCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotCollection; + }; +}; + +/** + * Contains response data for the getSourceControl operation. + */ +export type WebAppsGetSourceControlResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the createOrUpdateSourceControl operation. + */ +export type WebAppsCreateOrUpdateSourceControlResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the updateSourceControl operation. + */ +export type WebAppsUpdateSourceControlResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the startNetworkTrace operation. + */ +export type WebAppsStartNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobs operation. + */ +export type WebAppsListTriggeredWebJobsResponse = TriggeredWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredWebJobCollection; + }; +}; + +/** + * Contains response data for the getTriggeredWebJob operation. + */ +export type WebAppsGetTriggeredWebJobResponse = TriggeredWebJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredWebJob; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobHistory operation. + */ +export type WebAppsListTriggeredWebJobHistoryResponse = TriggeredJobHistoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredJobHistoryCollection; + }; +}; + +/** + * Contains response data for the getTriggeredWebJobHistory operation. + */ +export type WebAppsGetTriggeredWebJobHistoryResponse = TriggeredJobHistory & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredJobHistory; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type WebAppsListUsagesResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listVnetConnections operation. + */ +export type WebAppsListVnetConnectionsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo[]; + }; +}; + +/** + * Contains response data for the getVnetConnection operation. + */ +export type WebAppsGetVnetConnectionResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the createOrUpdateVnetConnection operation. + */ +export type WebAppsCreateOrUpdateVnetConnectionResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the updateVnetConnection operation. + */ +export type WebAppsUpdateVnetConnectionResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the getVnetConnectionGateway operation. + */ +export type WebAppsGetVnetConnectionGatewayResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the createOrUpdateVnetConnectionGateway operation. + */ +export type WebAppsCreateOrUpdateVnetConnectionGatewayResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the updateVnetConnectionGateway operation. + */ +export type WebAppsUpdateVnetConnectionGatewayResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the listWebJobs operation. + */ +export type WebAppsListWebJobsResponse = WebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebJobCollection; + }; +}; + +/** + * Contains response data for the getWebJob operation. + */ +export type WebAppsGetWebJobResponse = WebJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebJob; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type WebAppsBeginCreateOrUpdateResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the beginListPublishingCredentials operation. + */ +export type WebAppsBeginListPublishingCredentialsResponse = User & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: User; + }; +}; + +/** + * Contains response data for the beginCreateMSDeployOperation operation. + */ +export type WebAppsBeginCreateMSDeployOperationResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the beginCreateFunction operation. + */ +export type WebAppsBeginCreateFunctionResponse = FunctionEnvelope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelope; + }; +}; + +/** + * Contains response data for the beginCreateInstanceMSDeployOperation operation. + */ +export type WebAppsBeginCreateInstanceMSDeployOperationResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the beginMigrateStorage operation. + */ +export type WebAppsBeginMigrateStorageResponse = StorageMigrationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageMigrationResponse; + }; +}; + +/** + * Contains response data for the beginMigrateMySql operation. + */ +export type WebAppsBeginMigrateMySqlResponse = Operation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Operation; + }; +}; + +/** + * Contains response data for the beginStartWebSiteNetworkTraceOperation operation. + */ +export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the beginInstallSiteExtension operation. + */ +export type WebAppsBeginInstallSiteExtensionResponse = SiteExtensionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfo; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdateSlot operation. + */ +export type WebAppsBeginCreateOrUpdateSlotResponse = Site & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Site; + }; +}; + +/** + * Contains response data for the beginListPublishingCredentialsSlot operation. + */ +export type WebAppsBeginListPublishingCredentialsSlotResponse = User & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: User; + }; +}; + +/** + * Contains response data for the beginCreateMSDeployOperationSlot operation. + */ +export type WebAppsBeginCreateMSDeployOperationSlotResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the beginCreateInstanceFunctionSlot operation. + */ +export type WebAppsBeginCreateInstanceFunctionSlotResponse = FunctionEnvelope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelope; + }; +}; + +/** + * Contains response data for the beginCreateInstanceMSDeployOperationSlot operation. + */ +export type WebAppsBeginCreateInstanceMSDeployOperationSlotResponse = MSDeployStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MSDeployStatus; + }; +}; + +/** + * Contains response data for the beginStartWebSiteNetworkTraceOperationSlot operation. + */ +export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the beginInstallSiteExtensionSlot operation. + */ +export type WebAppsBeginInstallSiteExtensionSlotResponse = SiteExtensionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfo; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdateSourceControlSlot operation. + */ +export type WebAppsBeginCreateOrUpdateSourceControlSlotResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the beginStartNetworkTraceSlot operation. + */ +export type WebAppsBeginStartNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdateSourceControl operation. + */ +export type WebAppsBeginCreateOrUpdateSourceControlResponse = SiteSourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteSourceControl; + }; +}; + +/** + * Contains response data for the beginStartNetworkTrace operation. + */ +export type WebAppsBeginStartNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type WebAppsListNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type WebAppsListByResourceGroupNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listBackupsNext operation. + */ +export type WebAppsListBackupsNextResponse = BackupItemCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItemCollection; + }; +}; + +/** + * Contains response data for the listConfigurationsNext operation. + */ +export type WebAppsListConfigurationsNextResponse = SiteConfigResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResourceCollection; + }; +}; + +/** + * Contains response data for the listConfigurationSnapshotInfoNext operation. + */ +export type WebAppsListConfigurationSnapshotInfoNextResponse = SiteConfigurationSnapshotInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigurationSnapshotInfoCollection; + }; +}; + +/** + * Contains response data for the listContinuousWebJobsNext operation. + */ +export type WebAppsListContinuousWebJobsNextResponse = ContinuousWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ContinuousWebJobCollection; + }; +}; + +/** + * Contains response data for the listDeploymentsNext operation. + */ +export type WebAppsListDeploymentsNextResponse = DeploymentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentCollection; + }; +}; + +/** + * Contains response data for the listDomainOwnershipIdentifiersNext operation. + */ +export type WebAppsListDomainOwnershipIdentifiersNextResponse = IdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentifierCollection; + }; +}; + +/** + * Contains response data for the listFunctionsNext operation. + */ +export type WebAppsListFunctionsNextResponse = FunctionEnvelopeCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelopeCollection; + }; +}; + +/** + * Contains response data for the listHostNameBindingsNext operation. + */ +export type WebAppsListHostNameBindingsNextResponse = HostNameBindingCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBindingCollection; + }; +}; + +/** + * Contains response data for the listInstanceIdentifiersNext operation. + */ +export type WebAppsListInstanceIdentifiersNextResponse = WebAppInstanceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppInstanceCollection; + }; +}; + +/** + * Contains response data for the listInstanceProcessesNext operation. + */ +export type WebAppsListInstanceProcessesNextResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the listInstanceProcessModulesNext operation. + */ +export type WebAppsListInstanceProcessModulesNextResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the listInstanceProcessThreadsNext operation. + */ +export type WebAppsListInstanceProcessThreadsNextResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the listMetricDefinitionsNext operation. + */ +export type WebAppsListMetricDefinitionsNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMetricsNext operation. + */ +export type WebAppsListMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listPerfMonCountersNext operation. + */ +export type WebAppsListPerfMonCountersNextResponse = PerfMonCounterCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PerfMonCounterCollection; + }; +}; + +/** + * Contains response data for the listProcessesNext operation. + */ +export type WebAppsListProcessesNextResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the listProcessModulesNext operation. + */ +export type WebAppsListProcessModulesNextResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the listProcessThreadsNext operation. + */ +export type WebAppsListProcessThreadsNextResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the listPublicCertificatesNext operation. + */ +export type WebAppsListPublicCertificatesNextResponse = PublicCertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificateCollection; + }; +}; + +/** + * Contains response data for the listSiteExtensionsNext operation. + */ +export type WebAppsListSiteExtensionsNextResponse = SiteExtensionInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfoCollection; + }; +}; + +/** + * Contains response data for the listSlotsNext operation. + */ +export type WebAppsListSlotsNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listBackupsSlotNext operation. + */ +export type WebAppsListBackupsSlotNextResponse = BackupItemCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupItemCollection; + }; +}; + +/** + * Contains response data for the listConfigurationsSlotNext operation. + */ +export type WebAppsListConfigurationsSlotNextResponse = SiteConfigResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigResourceCollection; + }; +}; + +/** + * Contains response data for the listConfigurationSnapshotInfoSlotNext operation. + */ +export type WebAppsListConfigurationSnapshotInfoSlotNextResponse = SiteConfigurationSnapshotInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteConfigurationSnapshotInfoCollection; + }; +}; + +/** + * Contains response data for the listContinuousWebJobsSlotNext operation. + */ +export type WebAppsListContinuousWebJobsSlotNextResponse = ContinuousWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ContinuousWebJobCollection; + }; +}; + +/** + * Contains response data for the listDeploymentsSlotNext operation. + */ +export type WebAppsListDeploymentsSlotNextResponse = DeploymentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeploymentCollection; + }; +}; + +/** + * Contains response data for the listDomainOwnershipIdentifiersSlotNext operation. + */ +export type WebAppsListDomainOwnershipIdentifiersSlotNextResponse = IdentifierCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentifierCollection; + }; +}; + +/** + * Contains response data for the listInstanceFunctionsSlotNext operation. + */ +export type WebAppsListInstanceFunctionsSlotNextResponse = FunctionEnvelopeCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionEnvelopeCollection; + }; +}; + +/** + * Contains response data for the listHostNameBindingsSlotNext operation. + */ +export type WebAppsListHostNameBindingsSlotNextResponse = HostNameBindingCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostNameBindingCollection; + }; +}; + +/** + * Contains response data for the listInstanceIdentifiersSlotNext operation. + */ +export type WebAppsListInstanceIdentifiersSlotNextResponse = WebAppInstanceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppInstanceCollection; + }; +}; + +/** + * Contains response data for the listInstanceProcessesSlotNext operation. + */ +export type WebAppsListInstanceProcessesSlotNextResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the listInstanceProcessModulesSlotNext operation. + */ +export type WebAppsListInstanceProcessModulesSlotNextResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the listInstanceProcessThreadsSlotNext operation. + */ +export type WebAppsListInstanceProcessThreadsSlotNextResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the listMetricDefinitionsSlotNext operation. + */ +export type WebAppsListMetricDefinitionsSlotNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMetricsSlotNext operation. + */ +export type WebAppsListMetricsSlotNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listPerfMonCountersSlotNext operation. + */ +export type WebAppsListPerfMonCountersSlotNextResponse = PerfMonCounterCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PerfMonCounterCollection; + }; +}; + +/** + * Contains response data for the listProcessesSlotNext operation. + */ +export type WebAppsListProcessesSlotNextResponse = ProcessInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessInfoCollection; + }; +}; + +/** + * Contains response data for the listProcessModulesSlotNext operation. + */ +export type WebAppsListProcessModulesSlotNextResponse = ProcessModuleInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessModuleInfoCollection; + }; +}; + +/** + * Contains response data for the listProcessThreadsSlotNext operation. + */ +export type WebAppsListProcessThreadsSlotNextResponse = ProcessThreadInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProcessThreadInfoCollection; + }; +}; + +/** + * Contains response data for the listPublicCertificatesSlotNext operation. + */ +export type WebAppsListPublicCertificatesSlotNextResponse = PublicCertificateCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicCertificateCollection; + }; +}; + +/** + * Contains response data for the listSiteExtensionsSlotNext operation. + */ +export type WebAppsListSiteExtensionsSlotNextResponse = SiteExtensionInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SiteExtensionInfoCollection; + }; +}; + +/** + * Contains response data for the listSlotDifferencesSlotNext operation. + */ +export type WebAppsListSlotDifferencesSlotNextResponse = SlotDifferenceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SlotDifferenceCollection; + }; +}; + +/** + * Contains response data for the listSnapshotsSlotNext operation. + */ +export type WebAppsListSnapshotsSlotNextResponse = SnapshotCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotCollection; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobsSlotNext operation. + */ +export type WebAppsListTriggeredWebJobsSlotNextResponse = TriggeredWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredWebJobCollection; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobHistorySlotNext operation. + */ +export type WebAppsListTriggeredWebJobHistorySlotNextResponse = TriggeredJobHistoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredJobHistoryCollection; + }; +}; + +/** + * Contains response data for the listUsagesSlotNext operation. + */ +export type WebAppsListUsagesSlotNextResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listWebJobsSlotNext operation. + */ +export type WebAppsListWebJobsSlotNextResponse = WebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebJobCollection; + }; +}; + +/** + * Contains response data for the listSlotDifferencesFromProductionNext operation. + */ +export type WebAppsListSlotDifferencesFromProductionNextResponse = SlotDifferenceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SlotDifferenceCollection; + }; +}; + +/** + * Contains response data for the listSnapshotsNext operation. + */ +export type WebAppsListSnapshotsNextResponse = SnapshotCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotCollection; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobsNext operation. + */ +export type WebAppsListTriggeredWebJobsNextResponse = TriggeredWebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredWebJobCollection; + }; +}; + +/** + * Contains response data for the listTriggeredWebJobHistoryNext operation. + */ +export type WebAppsListTriggeredWebJobHistoryNextResponse = TriggeredJobHistoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggeredJobHistoryCollection; + }; +}; + +/** + * Contains response data for the listUsagesNext operation. + */ +export type WebAppsListUsagesNextResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listWebJobsNext operation. + */ +export type WebAppsListWebJobsNextResponse = WebJobCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebJobCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AppServiceEnvironmentsListResponse = AppServiceEnvironmentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AppServiceEnvironmentsListByResourceGroupResponse = AppServiceEnvironmentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AppServiceEnvironmentsGetResponse = AppServiceEnvironmentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AppServiceEnvironmentsCreateOrUpdateResponse = AppServiceEnvironmentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AppServiceEnvironmentsUpdateResponse = AppServiceEnvironmentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentResource; + }; +}; + +/** + * Contains response data for the listCapacities operation. + */ +export type AppServiceEnvironmentsListCapacitiesResponse = StampCapacityCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StampCapacityCollection; + }; +}; + +/** + * Contains response data for the listVips operation. + */ +export type AppServiceEnvironmentsListVipsResponse = AddressResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AddressResponse; + }; +}; + +/** + * Contains response data for the changeVnet operation. + */ +export type AppServiceEnvironmentsChangeVnetResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listDiagnostics operation. + */ +export type AppServiceEnvironmentsListDiagnosticsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostingEnvironmentDiagnostics[]; + }; +}; + +/** + * Contains response data for the getDiagnosticsItem operation. + */ +export type AppServiceEnvironmentsGetDiagnosticsItemResponse = HostingEnvironmentDiagnostics & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostingEnvironmentDiagnostics; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type AppServiceEnvironmentsListMetricDefinitionsResponse = MetricDefinition & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinition; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type AppServiceEnvironmentsListMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePools operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolsResponse = WorkerPoolCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolCollection; + }; +}; + +/** + * Contains response data for the getMultiRolePool operation. + */ +export type AppServiceEnvironmentsGetMultiRolePoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the createOrUpdateMultiRolePool operation. + */ +export type AppServiceEnvironmentsCreateOrUpdateMultiRolePoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the updateMultiRolePool operation. + */ +export type AppServiceEnvironmentsUpdateMultiRolePoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the listMultiRolePoolInstanceMetricDefinitions operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePoolInstanceMetrics operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolInstanceMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listMultiRoleMetricDefinitions operation. + */ +export type AppServiceEnvironmentsListMultiRoleMetricDefinitionsResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMultiRoleMetrics operation. + */ +export type AppServiceEnvironmentsListMultiRoleMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePoolSkus operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolSkusResponse = SkuInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuInfoCollection; + }; +}; + +/** + * Contains response data for the listMultiRoleUsages operation. + */ +export type AppServiceEnvironmentsListMultiRoleUsagesResponse = UsageCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsageCollection; + }; +}; + +/** + * Contains response data for the listOperations operation. + */ +export type AppServiceEnvironmentsListOperationsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Operation[]; + }; +}; + +/** + * Contains response data for the resume operation. + */ +export type AppServiceEnvironmentsResumeResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listAppServicePlans operation. + */ +export type AppServiceEnvironmentsListAppServicePlansResponse = AppServicePlanCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlanCollection; + }; +}; + +/** + * Contains response data for the listWebApps operation. + */ +export type AppServiceEnvironmentsListWebAppsResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the suspend operation. + */ +export type AppServiceEnvironmentsSuspendResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type AppServiceEnvironmentsListUsagesResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listWorkerPools operation. + */ +export type AppServiceEnvironmentsListWorkerPoolsResponse = WorkerPoolCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolCollection; + }; +}; + +/** + * Contains response data for the getWorkerPool operation. + */ +export type AppServiceEnvironmentsGetWorkerPoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the createOrUpdateWorkerPool operation. + */ +export type AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the updateWorkerPool operation. + */ +export type AppServiceEnvironmentsUpdateWorkerPoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the listWorkerPoolInstanceMetricDefinitions operation. + */ +export type AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listWorkerPoolInstanceMetrics operation. + */ +export type AppServiceEnvironmentsListWorkerPoolInstanceMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listWebWorkerMetricDefinitions operation. + */ +export type AppServiceEnvironmentsListWebWorkerMetricDefinitionsResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listWebWorkerMetrics operation. + */ +export type AppServiceEnvironmentsListWebWorkerMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listWorkerPoolSkus operation. + */ +export type AppServiceEnvironmentsListWorkerPoolSkusResponse = SkuInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuInfoCollection; + }; +}; + +/** + * Contains response data for the listWebWorkerUsages operation. + */ +export type AppServiceEnvironmentsListWebWorkerUsagesResponse = UsageCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsageCollection; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AppServiceEnvironmentsBeginCreateOrUpdateResponse = AppServiceEnvironmentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentResource; + }; +}; + +/** + * Contains response data for the beginChangeVnet operation. + */ +export type AppServiceEnvironmentsBeginChangeVnetResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdateMultiRolePool operation. + */ +export type AppServiceEnvironmentsBeginCreateOrUpdateMultiRolePoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the beginResume operation. + */ +export type AppServiceEnvironmentsBeginResumeResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the beginSuspend operation. + */ +export type AppServiceEnvironmentsBeginSuspendResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdateWorkerPool operation. + */ +export type AppServiceEnvironmentsBeginCreateOrUpdateWorkerPoolResponse = WorkerPoolResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolResource; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AppServiceEnvironmentsListNextResponse = AppServiceEnvironmentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AppServiceEnvironmentsListByResourceGroupNextResponse = AppServiceEnvironmentCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServiceEnvironmentCollection; + }; +}; + +/** + * Contains response data for the listCapacitiesNext operation. + */ +export type AppServiceEnvironmentsListCapacitiesNextResponse = StampCapacityCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StampCapacityCollection; + }; +}; + +/** + * Contains response data for the changeVnetNext operation. + */ +export type AppServiceEnvironmentsChangeVnetNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listMetricsNext operation. + */ +export type AppServiceEnvironmentsListMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePoolsNext operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolsNextResponse = WorkerPoolCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePoolInstanceMetricDefinitionsNext operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePoolInstanceMetricsNext operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolInstanceMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listMultiRoleMetricDefinitionsNext operation. + */ +export type AppServiceEnvironmentsListMultiRoleMetricDefinitionsNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMultiRoleMetricsNext operation. + */ +export type AppServiceEnvironmentsListMultiRoleMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listMultiRolePoolSkusNext operation. + */ +export type AppServiceEnvironmentsListMultiRolePoolSkusNextResponse = SkuInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuInfoCollection; + }; +}; + +/** + * Contains response data for the listMultiRoleUsagesNext operation. + */ +export type AppServiceEnvironmentsListMultiRoleUsagesNextResponse = UsageCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsageCollection; + }; +}; + +/** + * Contains response data for the resumeNext operation. + */ +export type AppServiceEnvironmentsResumeNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listAppServicePlansNext operation. + */ +export type AppServiceEnvironmentsListAppServicePlansNextResponse = AppServicePlanCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlanCollection; + }; +}; + +/** + * Contains response data for the listWebAppsNext operation. + */ +export type AppServiceEnvironmentsListWebAppsNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the suspendNext operation. + */ +export type AppServiceEnvironmentsSuspendNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listUsagesNext operation. + */ +export type AppServiceEnvironmentsListUsagesNextResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listWorkerPoolsNext operation. + */ +export type AppServiceEnvironmentsListWorkerPoolsNextResponse = WorkerPoolCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkerPoolCollection; + }; +}; + +/** + * Contains response data for the listWorkerPoolInstanceMetricDefinitionsNext operation. + */ +export type AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listWorkerPoolInstanceMetricsNext operation. + */ +export type AppServiceEnvironmentsListWorkerPoolInstanceMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listWebWorkerMetricDefinitionsNext operation. + */ +export type AppServiceEnvironmentsListWebWorkerMetricDefinitionsNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listWebWorkerMetricsNext operation. + */ +export type AppServiceEnvironmentsListWebWorkerMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listWorkerPoolSkusNext operation. + */ +export type AppServiceEnvironmentsListWorkerPoolSkusNextResponse = SkuInfoCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuInfoCollection; + }; +}; + +/** + * Contains response data for the listWebWorkerUsagesNext operation. + */ +export type AppServiceEnvironmentsListWebWorkerUsagesNextResponse = UsageCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsageCollection; + }; +}; + +/** + * Contains response data for the beginChangeVnetNext operation. + */ +export type AppServiceEnvironmentsBeginChangeVnetNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the beginResumeNext operation. + */ +export type AppServiceEnvironmentsBeginResumeNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the beginSuspendNext operation. + */ +export type AppServiceEnvironmentsBeginSuspendNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AppServicePlansListResponse = AppServicePlanCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlanCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AppServicePlansListByResourceGroupResponse = AppServicePlanCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlanCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AppServicePlansGetResponse = AppServicePlan & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlan; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AppServicePlansCreateOrUpdateResponse = AppServicePlan & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlan; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AppServicePlansUpdateResponse = AppServicePlan & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlan; + }; +}; + +/** + * Contains response data for the listCapabilities operation. + */ +export type AppServicePlansListCapabilitiesResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Capability[]; + }; +}; + +/** + * Contains response data for the getHybridConnection operation. + */ +export type AppServicePlansGetHybridConnectionResponse = HybridConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnection; + }; +}; + +/** + * Contains response data for the listHybridConnectionKeys operation. + */ +export type AppServicePlansListHybridConnectionKeysResponse = HybridConnectionKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnectionKey; + }; +}; + +/** + * Contains response data for the listWebAppsByHybridConnection operation. + */ +export type AppServicePlansListWebAppsByHybridConnectionResponse = ResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceCollection; + }; +}; + +/** + * Contains response data for the getHybridConnectionPlanLimit operation. + */ +export type AppServicePlansGetHybridConnectionPlanLimitResponse = HybridConnectionLimits & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnectionLimits; + }; +}; + +/** + * Contains response data for the listHybridConnections operation. + */ +export type AppServicePlansListHybridConnectionsResponse = HybridConnectionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnectionCollection; + }; +}; + +/** + * Contains response data for the listMetricDefintions operation. + */ +export type AppServicePlansListMetricDefintionsResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type AppServicePlansListMetricsResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listWebApps operation. + */ +export type AppServicePlansListWebAppsResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the getServerFarmSkus operation. + */ +export type AppServicePlansGetServerFarmSkusResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type AppServicePlansListUsagesResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the listVnets operation. + */ +export type AppServicePlansListVnetsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo[]; + }; +}; + +/** + * Contains response data for the getVnetFromServerFarm operation. + */ +export type AppServicePlansGetVnetFromServerFarmResponse = VnetInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetInfo; + }; +}; + +/** + * Contains response data for the getVnetGateway operation. + */ +export type AppServicePlansGetVnetGatewayResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the updateVnetGateway operation. + */ +export type AppServicePlansUpdateVnetGatewayResponse = VnetGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetGateway; + }; +}; + +/** + * Contains response data for the listRoutesForVnet operation. + */ +export type AppServicePlansListRoutesForVnetResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetRoute[]; + }; +}; + +/** + * Contains response data for the getRouteForVnet operation. + */ +export type AppServicePlansGetRouteForVnetResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetRoute[]; + }; +}; + +/** + * Contains response data for the createOrUpdateVnetRoute operation. + */ +export type AppServicePlansCreateOrUpdateVnetRouteResponse = VnetRoute & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetRoute; + }; +}; + +/** + * Contains response data for the updateVnetRoute operation. + */ +export type AppServicePlansUpdateVnetRouteResponse = VnetRoute & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VnetRoute; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AppServicePlansBeginCreateOrUpdateResponse = AppServicePlan & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlan; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AppServicePlansListNextResponse = AppServicePlanCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlanCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AppServicePlansListByResourceGroupNextResponse = AppServicePlanCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppServicePlanCollection; + }; +}; + +/** + * Contains response data for the listWebAppsByHybridConnectionNext operation. + */ +export type AppServicePlansListWebAppsByHybridConnectionNextResponse = ResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceCollection; + }; +}; + +/** + * Contains response data for the listHybridConnectionsNext operation. + */ +export type AppServicePlansListHybridConnectionsNextResponse = HybridConnectionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridConnectionCollection; + }; +}; + +/** + * Contains response data for the listMetricDefintionsNext operation. + */ +export type AppServicePlansListMetricDefintionsNextResponse = ResourceMetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the listMetricsNext operation. + */ +export type AppServicePlansListMetricsNextResponse = ResourceMetricCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceMetricCollection; + }; +}; + +/** + * Contains response data for the listWebAppsNext operation. + */ +export type AppServicePlansListWebAppsNextResponse = WebAppCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebAppCollection; + }; +}; + +/** + * Contains response data for the listUsagesNext operation. + */ +export type AppServicePlansListUsagesNextResponse = CsmUsageQuotaCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmUsageQuotaCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ResourceHealthMetadataListResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ResourceHealthMetadataListByResourceGroupResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the listBySite operation. + */ +export type ResourceHealthMetadataListBySiteResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the getBySite operation. + */ +export type ResourceHealthMetadataGetBySiteResponse = ResourceHealthMetadata & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadata; + }; +}; + +/** + * Contains response data for the listBySiteSlot operation. + */ +export type ResourceHealthMetadataListBySiteSlotResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the getBySiteSlot operation. + */ +export type ResourceHealthMetadataGetBySiteSlotResponse = ResourceHealthMetadata & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadata; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ResourceHealthMetadataListNextResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ResourceHealthMetadataListByResourceGroupNextResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the listBySiteNext operation. + */ +export type ResourceHealthMetadataListBySiteNextResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; + +/** + * Contains response data for the listBySiteSlotNext operation. + */ +export type ResourceHealthMetadataListBySiteSlotNextResponse = ResourceHealthMetadataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceHealthMetadataCollection; + }; +}; diff --git a/packages/@azure/arm-appservice/lib/models/mappers.ts b/packages/@azure/arm-appservice/lib/models/mappers.ts new file mode 100644 index 000000000000..c0e9640a9ff5 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/mappers.ts @@ -0,0 +1,14261 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const AppServiceCertificate: msRest.CompositeMapper = { + serializedName: "AppServiceCertificate", + type: { + name: "Composite", + className: "AppServiceCertificate", + modelProperties: { + keyVaultId: { + serializedName: "keyVaultId", + type: { + name: "String" + } + }, + keyVaultSecretName: { + serializedName: "keyVaultSecretName", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Initialized", + "WaitingOnCertificateOrder", + "Succeeded", + "CertificateOrderFailed", + "OperationNotPermittedOnKeyVault", + "AzureServiceUnauthorizedToAccessKeyVault", + "KeyVaultDoesNotExist", + "KeyVaultSecretDoesNotExist", + "UnknownError", + "ExternalPrivateKey", + "Unknown" + ] + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AppServiceCertificateResource: msRest.CompositeMapper = { + serializedName: "AppServiceCertificateResource", + type: { + name: "Composite", + className: "AppServiceCertificateResource", + modelProperties: { + ...Resource.type.modelProperties, + keyVaultId: { + serializedName: "properties.keyVaultId", + type: { + name: "String" + } + }, + keyVaultSecretName: { + serializedName: "properties.keyVaultSecretName", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Initialized", + "WaitingOnCertificateOrder", + "Succeeded", + "CertificateOrderFailed", + "OperationNotPermittedOnKeyVault", + "AzureServiceUnauthorizedToAccessKeyVault", + "KeyVaultDoesNotExist", + "KeyVaultSecretDoesNotExist", + "UnknownError", + "ExternalPrivateKey", + "Unknown" + ] + } + } + } + } +}; + +export const CertificateDetails: msRest.CompositeMapper = { + serializedName: "CertificateDetails", + type: { + name: "Composite", + className: "CertificateDetails", + modelProperties: { + version: { + readOnly: true, + serializedName: "version", + type: { + name: "Number" + } + }, + serialNumber: { + readOnly: true, + serializedName: "serialNumber", + type: { + name: "String" + } + }, + thumbprint: { + readOnly: true, + serializedName: "thumbprint", + type: { + name: "String" + } + }, + subject: { + readOnly: true, + serializedName: "subject", + type: { + name: "String" + } + }, + notBefore: { + readOnly: true, + serializedName: "notBefore", + type: { + name: "DateTime" + } + }, + notAfter: { + readOnly: true, + serializedName: "notAfter", + type: { + name: "DateTime" + } + }, + signatureAlgorithm: { + readOnly: true, + serializedName: "signatureAlgorithm", + type: { + name: "String" + } + }, + issuer: { + readOnly: true, + serializedName: "issuer", + type: { + name: "String" + } + }, + rawData: { + readOnly: true, + serializedName: "rawData", + type: { + name: "String" + } + } + } + } +}; + +export const AppServiceCertificateOrder: msRest.CompositeMapper = { + serializedName: "AppServiceCertificateOrder", + type: { + name: "Composite", + className: "AppServiceCertificateOrder", + modelProperties: { + ...Resource.type.modelProperties, + certificates: { + serializedName: "properties.certificates", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AppServiceCertificate" + } + } + } + }, + distinguishedName: { + serializedName: "properties.distinguishedName", + type: { + name: "String" + } + }, + domainVerificationToken: { + readOnly: true, + serializedName: "properties.domainVerificationToken", + type: { + name: "String" + } + }, + validityInYears: { + serializedName: "properties.validityInYears", + defaultValue: 1, + constraints: { + InclusiveMaximum: 3, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + keySize: { + serializedName: "properties.keySize", + defaultValue: 2048, + type: { + name: "Number" + } + }, + productType: { + required: true, + serializedName: "properties.productType", + type: { + name: "Enum", + allowedValues: [ + "StandardDomainValidatedSsl", + "StandardDomainValidatedWildCardSsl" + ] + } + }, + autoRenew: { + serializedName: "properties.autoRenew", + defaultValue: true, + type: { + name: "Boolean" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Pendingissuance", + "Issued", + "Revoked", + "Canceled", + "Denied", + "Pendingrevocation", + "PendingRekey", + "Unused", + "Expired", + "NotSubmitted" + ] + } + }, + signedCertificate: { + readOnly: true, + serializedName: "properties.signedCertificate", + type: { + name: "Composite", + className: "CertificateDetails" + } + }, + csr: { + serializedName: "properties.csr", + type: { + name: "String" + } + }, + intermediate: { + readOnly: true, + serializedName: "properties.intermediate", + type: { + name: "Composite", + className: "CertificateDetails" + } + }, + root: { + readOnly: true, + serializedName: "properties.root", + type: { + name: "Composite", + className: "CertificateDetails" + } + }, + serialNumber: { + readOnly: true, + serializedName: "properties.serialNumber", + type: { + name: "String" + } + }, + lastCertificateIssuanceTime: { + readOnly: true, + serializedName: "properties.lastCertificateIssuanceTime", + type: { + name: "DateTime" + } + }, + expirationTime: { + readOnly: true, + serializedName: "properties.expirationTime", + type: { + name: "DateTime" + } + }, + isPrivateKeyExternal: { + readOnly: true, + serializedName: "properties.isPrivateKeyExternal", + type: { + name: "Boolean" + } + }, + appServiceCertificateNotRenewableReasons: { + readOnly: true, + serializedName: "properties.appServiceCertificateNotRenewableReasons", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextAutoRenewalTimeStamp: { + readOnly: true, + serializedName: "properties.nextAutoRenewalTimeStamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ProxyOnlyResource: msRest.CompositeMapper = { + serializedName: "ProxyOnlyResource", + type: { + name: "Composite", + className: "ProxyOnlyResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AppServiceCertificateOrderPatchResource: msRest.CompositeMapper = { + serializedName: "AppServiceCertificateOrderPatchResource", + type: { + name: "Composite", + className: "AppServiceCertificateOrderPatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + certificates: { + serializedName: "properties.certificates", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AppServiceCertificate" + } + } + } + }, + distinguishedName: { + serializedName: "properties.distinguishedName", + type: { + name: "String" + } + }, + domainVerificationToken: { + readOnly: true, + serializedName: "properties.domainVerificationToken", + type: { + name: "String" + } + }, + validityInYears: { + serializedName: "properties.validityInYears", + defaultValue: 1, + constraints: { + InclusiveMaximum: 3, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + keySize: { + serializedName: "properties.keySize", + defaultValue: 2048, + type: { + name: "Number" + } + }, + productType: { + required: true, + serializedName: "properties.productType", + type: { + name: "Enum", + allowedValues: [ + "StandardDomainValidatedSsl", + "StandardDomainValidatedWildCardSsl" + ] + } + }, + autoRenew: { + serializedName: "properties.autoRenew", + defaultValue: true, + type: { + name: "Boolean" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Pendingissuance", + "Issued", + "Revoked", + "Canceled", + "Denied", + "Pendingrevocation", + "PendingRekey", + "Unused", + "Expired", + "NotSubmitted" + ] + } + }, + signedCertificate: { + readOnly: true, + serializedName: "properties.signedCertificate", + type: { + name: "Composite", + className: "CertificateDetails" + } + }, + csr: { + serializedName: "properties.csr", + type: { + name: "String" + } + }, + intermediate: { + readOnly: true, + serializedName: "properties.intermediate", + type: { + name: "Composite", + className: "CertificateDetails" + } + }, + root: { + readOnly: true, + serializedName: "properties.root", + type: { + name: "Composite", + className: "CertificateDetails" + } + }, + serialNumber: { + readOnly: true, + serializedName: "properties.serialNumber", + type: { + name: "String" + } + }, + lastCertificateIssuanceTime: { + readOnly: true, + serializedName: "properties.lastCertificateIssuanceTime", + type: { + name: "DateTime" + } + }, + expirationTime: { + readOnly: true, + serializedName: "properties.expirationTime", + type: { + name: "DateTime" + } + }, + isPrivateKeyExternal: { + readOnly: true, + serializedName: "properties.isPrivateKeyExternal", + type: { + name: "Boolean" + } + }, + appServiceCertificateNotRenewableReasons: { + readOnly: true, + serializedName: "properties.appServiceCertificateNotRenewableReasons", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextAutoRenewalTimeStamp: { + readOnly: true, + serializedName: "properties.nextAutoRenewalTimeStamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const AppServiceCertificatePatchResource: msRest.CompositeMapper = { + serializedName: "AppServiceCertificatePatchResource", + type: { + name: "Composite", + className: "AppServiceCertificatePatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + keyVaultId: { + serializedName: "properties.keyVaultId", + type: { + name: "String" + } + }, + keyVaultSecretName: { + serializedName: "properties.keyVaultSecretName", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Initialized", + "WaitingOnCertificateOrder", + "Succeeded", + "CertificateOrderFailed", + "OperationNotPermittedOnKeyVault", + "AzureServiceUnauthorizedToAccessKeyVault", + "KeyVaultDoesNotExist", + "KeyVaultSecretDoesNotExist", + "UnknownError", + "ExternalPrivateKey", + "Unknown" + ] + } + } + } + } +}; + +export const CertificateEmail: msRest.CompositeMapper = { + serializedName: "CertificateEmail", + type: { + name: "Composite", + className: "CertificateEmail", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + emailId: { + serializedName: "properties.emailId", + type: { + name: "String" + } + }, + timeStamp: { + serializedName: "properties.timeStamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const CertificateOrderAction: msRest.CompositeMapper = { + serializedName: "CertificateOrderAction", + type: { + name: "Composite", + className: "CertificateOrderAction", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + actionType: { + readOnly: true, + serializedName: "properties.actionType", + type: { + name: "Enum", + allowedValues: [ + "CertificateIssued", + "CertificateOrderCanceled", + "CertificateOrderCreated", + "CertificateRevoked", + "DomainValidationComplete", + "FraudDetected", + "OrgNameChange", + "OrgValidationComplete", + "SanDrop", + "FraudCleared", + "CertificateExpired", + "CertificateExpirationWarning", + "FraudDocumentationRequired", + "Unknown" + ] + } + }, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ReissueCertificateOrderRequest: msRest.CompositeMapper = { + serializedName: "ReissueCertificateOrderRequest", + type: { + name: "Composite", + className: "ReissueCertificateOrderRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + keySize: { + serializedName: "properties.keySize", + type: { + name: "Number" + } + }, + delayExistingRevokeInHours: { + serializedName: "properties.delayExistingRevokeInHours", + type: { + name: "Number" + } + }, + csr: { + serializedName: "properties.csr", + type: { + name: "String" + } + }, + isPrivateKeyExternal: { + serializedName: "properties.isPrivateKeyExternal", + type: { + name: "Boolean" + } + } + } + } +}; + +export const RenewCertificateOrderRequest: msRest.CompositeMapper = { + serializedName: "RenewCertificateOrderRequest", + type: { + name: "Composite", + className: "RenewCertificateOrderRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + keySize: { + serializedName: "properties.keySize", + type: { + name: "Number" + } + }, + csr: { + serializedName: "properties.csr", + type: { + name: "String" + } + }, + isPrivateKeyExternal: { + serializedName: "properties.isPrivateKeyExternal", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SiteSeal: msRest.CompositeMapper = { + serializedName: "SiteSeal", + type: { + name: "Composite", + className: "SiteSeal", + modelProperties: { + html: { + required: true, + serializedName: "html", + type: { + name: "String" + } + } + } + } +}; + +export const SiteSealRequest: msRest.CompositeMapper = { + serializedName: "SiteSealRequest", + type: { + name: "Composite", + className: "SiteSealRequest", + modelProperties: { + lightTheme: { + serializedName: "lightTheme", + type: { + name: "Boolean" + } + }, + locale: { + serializedName: "locale", + type: { + name: "String" + } + } + } + } +}; + +export const VnetRoute: msRest.CompositeMapper = { + serializedName: "VnetRoute", + type: { + name: "Composite", + className: "VnetRoute", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + startAddress: { + serializedName: "properties.startAddress", + type: { + name: "String" + } + }, + endAddress: { + serializedName: "properties.endAddress", + type: { + name: "String" + } + }, + routeType: { + serializedName: "properties.routeType", + type: { + name: "String" + } + } + } + } +}; + +export const VnetInfo: msRest.CompositeMapper = { + serializedName: "VnetInfo", + type: { + name: "Composite", + className: "VnetInfo", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + vnetResourceId: { + serializedName: "properties.vnetResourceId", + type: { + name: "String" + } + }, + certThumbprint: { + readOnly: true, + serializedName: "properties.certThumbprint", + type: { + name: "String" + } + }, + certBlob: { + serializedName: "properties.certBlob", + type: { + name: "ByteArray" + } + }, + routes: { + readOnly: true, + serializedName: "properties.routes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetRoute" + } + } + } + }, + resyncRequired: { + readOnly: true, + serializedName: "properties.resyncRequired", + type: { + name: "Boolean" + } + }, + dnsServers: { + serializedName: "properties.dnsServers", + type: { + name: "String" + } + } + } + } +}; + +export const VnetGateway: msRest.CompositeMapper = { + serializedName: "VnetGateway", + type: { + name: "Composite", + className: "VnetGateway", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + vnetName: { + serializedName: "properties.vnetName", + type: { + name: "String" + } + }, + vpnPackageUri: { + required: true, + serializedName: "properties.vpnPackageUri", + type: { + name: "String" + } + } + } + } +}; + +export const User: msRest.CompositeMapper = { + serializedName: "User", + type: { + name: "Composite", + className: "User", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + publishingUserName: { + required: true, + serializedName: "properties.publishingUserName", + type: { + name: "String" + } + }, + publishingPassword: { + serializedName: "properties.publishingPassword", + type: { + name: "String" + } + }, + publishingPasswordHash: { + serializedName: "properties.publishingPasswordHash", + type: { + name: "String" + } + }, + publishingPasswordHashSalt: { + serializedName: "properties.publishingPasswordHashSalt", + type: { + name: "String" + } + }, + scmUri: { + serializedName: "properties.scmUri", + type: { + name: "String" + } + } + } + } +}; + +export const Snapshot: msRest.CompositeMapper = { + serializedName: "Snapshot", + type: { + name: "Composite", + className: "Snapshot", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + time: { + readOnly: true, + serializedName: "properties.time", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceMetricAvailability: msRest.CompositeMapper = { + serializedName: "ResourceMetricAvailability", + type: { + name: "Composite", + className: "ResourceMetricAvailability", + modelProperties: { + timeGrain: { + readOnly: true, + serializedName: "timeGrain", + type: { + name: "String" + } + }, + retention: { + readOnly: true, + serializedName: "retention", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceMetricDefinition: msRest.CompositeMapper = { + serializedName: "ResourceMetricDefinition", + type: { + name: "Composite", + className: "ResourceMetricDefinition", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + unit: { + readOnly: true, + serializedName: "properties.unit", + type: { + name: "String" + } + }, + primaryAggregationType: { + readOnly: true, + serializedName: "properties.primaryAggregationType", + type: { + name: "String" + } + }, + metricAvailabilities: { + readOnly: true, + serializedName: "properties.metricAvailabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceMetricAvailability" + } + } + } + }, + resourceUri: { + readOnly: true, + serializedName: "properties.resourceUri", + type: { + name: "String" + } + }, + properties: { + readOnly: true, + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PushSettings: msRest.CompositeMapper = { + serializedName: "PushSettings", + type: { + name: "Composite", + className: "PushSettings", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + isPushEnabled: { + required: true, + serializedName: "properties.isPushEnabled", + type: { + name: "Boolean" + } + }, + tagWhitelistJson: { + serializedName: "properties.tagWhitelistJson", + type: { + name: "String" + } + }, + tagsRequiringAuth: { + serializedName: "properties.tagsRequiringAuth", + type: { + name: "String" + } + }, + dynamicTagsJson: { + serializedName: "properties.dynamicTagsJson", + type: { + name: "String" + } + } + } + } +}; + +export const Identifier: msRest.CompositeMapper = { + serializedName: "Identifier", + type: { + name: "Composite", + className: "Identifier", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + identifierId: { + serializedName: "properties.id", + type: { + name: "String" + } + } + } + } +}; + +export const HybridConnectionKey: msRest.CompositeMapper = { + serializedName: "HybridConnectionKey", + type: { + name: "Composite", + className: "HybridConnectionKey", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + sendKeyName: { + readOnly: true, + serializedName: "properties.sendKeyName", + type: { + name: "String" + } + }, + sendKeyValue: { + readOnly: true, + serializedName: "properties.sendKeyValue", + type: { + name: "String" + } + } + } + } +}; + +export const HybridConnection: msRest.CompositeMapper = { + serializedName: "HybridConnection", + type: { + name: "Composite", + className: "HybridConnection", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", + type: { + name: "String" + } + }, + relayName: { + serializedName: "properties.relayName", + type: { + name: "String" + } + }, + relayArmUri: { + serializedName: "properties.relayArmUri", + type: { + name: "String" + } + }, + hostname: { + serializedName: "properties.hostname", + type: { + name: "String" + } + }, + port: { + serializedName: "properties.port", + type: { + name: "Number" + } + }, + sendKeyName: { + serializedName: "properties.sendKeyName", + type: { + name: "String" + } + }, + sendKeyValue: { + serializedName: "properties.sendKeyValue", + type: { + name: "String" + } + }, + serviceBusSuffix: { + serializedName: "properties.serviceBusSuffix", + type: { + name: "String" + } + } + } + } +}; + +export const DeletedSite: msRest.CompositeMapper = { + serializedName: "DeletedSite", + type: { + name: "Composite", + className: "DeletedSite", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + deletedSiteId: { + readOnly: true, + serializedName: "properties.deletedSiteId", + type: { + name: "Number" + } + }, + deletedTimestamp: { + readOnly: true, + serializedName: "properties.deletedTimestamp", + type: { + name: "String" + } + }, + subscription: { + readOnly: true, + serializedName: "properties.subscription", + type: { + name: "String" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + deletedSiteName: { + readOnly: true, + serializedName: "properties.deletedSiteName", + type: { + name: "String" + } + }, + slot: { + readOnly: true, + serializedName: "properties.slot", + type: { + name: "String" + } + }, + deletedSiteKind: { + readOnly: true, + serializedName: "properties.kind", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServiceIdentity: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + identityIds: { + serializedName: "identityIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SlotSwapStatus: msRest.CompositeMapper = { + serializedName: "SlotSwapStatus", + type: { + name: "Composite", + className: "SlotSwapStatus", + modelProperties: { + timestampUtc: { + readOnly: true, + serializedName: "timestampUtc", + type: { + name: "DateTime" + } + }, + sourceSlotName: { + readOnly: true, + serializedName: "sourceSlotName", + type: { + name: "String" + } + }, + destinationSlotName: { + readOnly: true, + serializedName: "destinationSlotName", + type: { + name: "String" + } + } + } + } +}; + +export const CloningInfo: msRest.CompositeMapper = { + serializedName: "CloningInfo", + type: { + name: "Composite", + className: "CloningInfo", + modelProperties: { + correlationId: { + serializedName: "correlationId", + type: { + name: "Uuid" + } + }, + overwrite: { + serializedName: "overwrite", + type: { + name: "Boolean" + } + }, + cloneCustomHostNames: { + serializedName: "cloneCustomHostNames", + type: { + name: "Boolean" + } + }, + cloneSourceControl: { + serializedName: "cloneSourceControl", + type: { + name: "Boolean" + } + }, + sourceWebAppId: { + required: true, + serializedName: "sourceWebAppId", + type: { + name: "String" + } + }, + hostingEnvironment: { + serializedName: "hostingEnvironment", + type: { + name: "String" + } + }, + appSettingsOverrides: { + serializedName: "appSettingsOverrides", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + configureLoadBalancing: { + serializedName: "configureLoadBalancing", + type: { + name: "Boolean" + } + }, + trafficManagerProfileId: { + serializedName: "trafficManagerProfileId", + type: { + name: "String" + } + }, + trafficManagerProfileName: { + serializedName: "trafficManagerProfileName", + type: { + name: "String" + } + } + } + } +}; + +export const HostingEnvironmentProfile: msRest.CompositeMapper = { + serializedName: "HostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const IpSecurityRestriction: msRest.CompositeMapper = { + serializedName: "IpSecurityRestriction", + type: { + name: "Composite", + className: "IpSecurityRestriction", + modelProperties: { + ipAddress: { + required: true, + serializedName: "ipAddress", + type: { + name: "String" + } + }, + subnetMask: { + serializedName: "subnetMask", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "Enum", + allowedValues: [ + "Default", + "XffProxy" + ] + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDefinitionInfo: msRest.CompositeMapper = { + serializedName: "ApiDefinitionInfo", + type: { + name: "Composite", + className: "ApiDefinitionInfo", + modelProperties: { + url: { + serializedName: "url", + type: { + name: "String" + } + } + } + } +}; + +export const CorsSettings: msRest.CompositeMapper = { + serializedName: "CorsSettings", + type: { + name: "Composite", + className: "CorsSettings", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AutoHealCustomAction: msRest.CompositeMapper = { + serializedName: "AutoHealCustomAction", + type: { + name: "Composite", + className: "AutoHealCustomAction", + modelProperties: { + exe: { + serializedName: "exe", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "String" + } + } + } + } +}; + +export const AutoHealActions: msRest.CompositeMapper = { + serializedName: "AutoHealActions", + type: { + name: "Composite", + className: "AutoHealActions", + modelProperties: { + actionType: { + serializedName: "actionType", + type: { + name: "Enum", + allowedValues: [ + "Recycle", + "LogEvent", + "CustomAction" + ] + } + }, + customAction: { + serializedName: "customAction", + type: { + name: "Composite", + className: "AutoHealCustomAction" + } + }, + minProcessExecutionTime: { + serializedName: "minProcessExecutionTime", + type: { + name: "String" + } + } + } + } +}; + +export const SlowRequestsBasedTrigger: msRest.CompositeMapper = { + serializedName: "SlowRequestsBasedTrigger", + type: { + name: "Composite", + className: "SlowRequestsBasedTrigger", + modelProperties: { + timeTaken: { + serializedName: "timeTaken", + type: { + name: "String" + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + timeInterval: { + serializedName: "timeInterval", + type: { + name: "String" + } + } + } + } +}; + +export const StatusCodesBasedTrigger: msRest.CompositeMapper = { + serializedName: "StatusCodesBasedTrigger", + type: { + name: "Composite", + className: "StatusCodesBasedTrigger", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "Number" + } + }, + subStatus: { + serializedName: "subStatus", + type: { + name: "Number" + } + }, + win32Status: { + serializedName: "win32Status", + type: { + name: "Number" + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + timeInterval: { + serializedName: "timeInterval", + type: { + name: "String" + } + } + } + } +}; + +export const RequestsBasedTrigger: msRest.CompositeMapper = { + serializedName: "RequestsBasedTrigger", + type: { + name: "Composite", + className: "RequestsBasedTrigger", + modelProperties: { + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + timeInterval: { + serializedName: "timeInterval", + type: { + name: "String" + } + } + } + } +}; + +export const AutoHealTriggers: msRest.CompositeMapper = { + serializedName: "AutoHealTriggers", + type: { + name: "Composite", + className: "AutoHealTriggers", + modelProperties: { + requests: { + serializedName: "requests", + type: { + name: "Composite", + className: "RequestsBasedTrigger" + } + }, + privateBytesInKB: { + serializedName: "privateBytesInKB", + type: { + name: "Number" + } + }, + statusCodes: { + serializedName: "statusCodes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusCodesBasedTrigger" + } + } + } + }, + slowRequests: { + serializedName: "slowRequests", + type: { + name: "Composite", + className: "SlowRequestsBasedTrigger" + } + } + } + } +}; + +export const AutoHealRules: msRest.CompositeMapper = { + serializedName: "AutoHealRules", + type: { + name: "Composite", + className: "AutoHealRules", + modelProperties: { + triggers: { + serializedName: "triggers", + type: { + name: "Composite", + className: "AutoHealTriggers" + } + }, + actions: { + serializedName: "actions", + type: { + name: "Composite", + className: "AutoHealActions" + } + } + } + } +}; + +export const SiteLimits: msRest.CompositeMapper = { + serializedName: "SiteLimits", + type: { + name: "Composite", + className: "SiteLimits", + modelProperties: { + maxPercentageCpu: { + serializedName: "maxPercentageCpu", + type: { + name: "Number" + } + }, + maxMemoryInMb: { + serializedName: "maxMemoryInMb", + type: { + name: "Number" + } + }, + maxDiskSizeInMb: { + serializedName: "maxDiskSizeInMb", + type: { + name: "Number" + } + } + } + } +}; + +export const RampUpRule: msRest.CompositeMapper = { + serializedName: "RampUpRule", + type: { + name: "Composite", + className: "RampUpRule", + modelProperties: { + actionHostName: { + serializedName: "actionHostName", + type: { + name: "String" + } + }, + reroutePercentage: { + serializedName: "reroutePercentage", + type: { + name: "Number" + } + }, + changeStep: { + serializedName: "changeStep", + type: { + name: "Number" + } + }, + changeIntervalInMinutes: { + serializedName: "changeIntervalInMinutes", + type: { + name: "Number" + } + }, + minReroutePercentage: { + serializedName: "minReroutePercentage", + type: { + name: "Number" + } + }, + maxReroutePercentage: { + serializedName: "maxReroutePercentage", + type: { + name: "Number" + } + }, + changeDecisionCallbackUrl: { + serializedName: "changeDecisionCallbackUrl", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const Experiments: msRest.CompositeMapper = { + serializedName: "Experiments", + type: { + name: "Composite", + className: "Experiments", + modelProperties: { + rampUpRules: { + serializedName: "rampUpRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RampUpRule" + } + } + } + } + } + } +}; + +export const VirtualDirectory: msRest.CompositeMapper = { + serializedName: "VirtualDirectory", + type: { + name: "Composite", + className: "VirtualDirectory", + modelProperties: { + virtualPath: { + serializedName: "virtualPath", + type: { + name: "String" + } + }, + physicalPath: { + serializedName: "physicalPath", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualApplication: msRest.CompositeMapper = { + serializedName: "VirtualApplication", + type: { + name: "Composite", + className: "VirtualApplication", + modelProperties: { + virtualPath: { + serializedName: "virtualPath", + type: { + name: "String" + } + }, + physicalPath: { + serializedName: "physicalPath", + type: { + name: "String" + } + }, + preloadEnabled: { + serializedName: "preloadEnabled", + type: { + name: "Boolean" + } + }, + virtualDirectories: { + serializedName: "virtualDirectories", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualDirectory" + } + } + } + } + } + } +}; + +export const HandlerMapping: msRest.CompositeMapper = { + serializedName: "HandlerMapping", + type: { + name: "Composite", + className: "HandlerMapping", + modelProperties: { + extension: { + serializedName: "extension", + type: { + name: "String" + } + }, + scriptProcessor: { + serializedName: "scriptProcessor", + type: { + name: "String" + } + }, + argumentsProperty: { + serializedName: "arguments", + type: { + name: "String" + } + } + } + } +}; + +export const SiteMachineKey: msRest.CompositeMapper = { + serializedName: "SiteMachineKey", + type: { + name: "Composite", + className: "SiteMachineKey", + modelProperties: { + validation: { + serializedName: "validation", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "validationKey", + type: { + name: "String" + } + }, + decryption: { + serializedName: "decryption", + type: { + name: "String" + } + }, + decryptionKey: { + serializedName: "decryptionKey", + type: { + name: "String" + } + } + } + } +}; + +export const ConnStringInfo: msRest.CompositeMapper = { + serializedName: "ConnStringInfo", + type: { + name: "Composite", + className: "ConnStringInfo", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + connectionString: { + serializedName: "connectionString", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "MySql", + "SQLServer", + "SQLAzure", + "Custom", + "NotificationHub", + "ServiceBus", + "EventHub", + "ApiHub", + "DocDb", + "RedisCache", + "PostgreSQL" + ] + } + } + } + } +}; + +export const AzureStorageInfoValue: msRest.CompositeMapper = { + serializedName: "AzureStorageInfoValue", + type: { + name: "Composite", + className: "AzureStorageInfoValue", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "AzureFiles", + "AzureBlob" + ] + } + }, + accountName: { + serializedName: "accountName", + type: { + name: "String" + } + }, + shareName: { + serializedName: "shareName", + type: { + name: "String" + } + }, + accessKey: { + serializedName: "accessKey", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + type: { + name: "String" + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "Enum", + allowedValues: [ + "Ok", + "InvalidCredentials", + "InvalidShare" + ] + } + } + } + } +}; + +export const NameValuePair: msRest.CompositeMapper = { + serializedName: "NameValuePair", + type: { + name: "Composite", + className: "NameValuePair", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const SiteConfig: msRest.CompositeMapper = { + serializedName: "SiteConfig", + type: { + name: "Composite", + className: "SiteConfig", + modelProperties: { + numberOfWorkers: { + serializedName: "numberOfWorkers", + type: { + name: "Number" + } + }, + defaultDocuments: { + serializedName: "defaultDocuments", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + netFrameworkVersion: { + serializedName: "netFrameworkVersion", + defaultValue: 'v4.6', + type: { + name: "String" + } + }, + phpVersion: { + serializedName: "phpVersion", + type: { + name: "String" + } + }, + pythonVersion: { + serializedName: "pythonVersion", + type: { + name: "String" + } + }, + nodeVersion: { + serializedName: "nodeVersion", + type: { + name: "String" + } + }, + linuxFxVersion: { + serializedName: "linuxFxVersion", + type: { + name: "String" + } + }, + windowsFxVersion: { + serializedName: "windowsFxVersion", + type: { + name: "String" + } + }, + requestTracingEnabled: { + serializedName: "requestTracingEnabled", + type: { + name: "Boolean" + } + }, + requestTracingExpirationTime: { + serializedName: "requestTracingExpirationTime", + type: { + name: "DateTime" + } + }, + remoteDebuggingEnabled: { + serializedName: "remoteDebuggingEnabled", + type: { + name: "Boolean" + } + }, + remoteDebuggingVersion: { + serializedName: "remoteDebuggingVersion", + type: { + name: "String" + } + }, + httpLoggingEnabled: { + serializedName: "httpLoggingEnabled", + type: { + name: "Boolean" + } + }, + logsDirectorySizeLimit: { + serializedName: "logsDirectorySizeLimit", + type: { + name: "Number" + } + }, + detailedErrorLoggingEnabled: { + serializedName: "detailedErrorLoggingEnabled", + type: { + name: "Boolean" + } + }, + publishingUsername: { + serializedName: "publishingUsername", + type: { + name: "String" + } + }, + appSettings: { + serializedName: "appSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + }, + azureStorageAccounts: { + serializedName: "azureStorageAccounts", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AzureStorageInfoValue" + } + } + } + }, + connectionStrings: { + serializedName: "connectionStrings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnStringInfo" + } + } + } + }, + machineKey: { + readOnly: true, + serializedName: "machineKey", + type: { + name: "Composite", + className: "SiteMachineKey" + } + }, + handlerMappings: { + serializedName: "handlerMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HandlerMapping" + } + } + } + }, + documentRoot: { + serializedName: "documentRoot", + type: { + name: "String" + } + }, + scmType: { + serializedName: "scmType", + type: { + name: "String" + } + }, + use32BitWorkerProcess: { + serializedName: "use32BitWorkerProcess", + type: { + name: "Boolean" + } + }, + webSocketsEnabled: { + serializedName: "webSocketsEnabled", + type: { + name: "Boolean" + } + }, + alwaysOn: { + serializedName: "alwaysOn", + type: { + name: "Boolean" + } + }, + javaVersion: { + serializedName: "javaVersion", + type: { + name: "String" + } + }, + javaContainer: { + serializedName: "javaContainer", + type: { + name: "String" + } + }, + javaContainerVersion: { + serializedName: "javaContainerVersion", + type: { + name: "String" + } + }, + appCommandLine: { + serializedName: "appCommandLine", + type: { + name: "String" + } + }, + managedPipelineMode: { + serializedName: "managedPipelineMode", + type: { + name: "Enum", + allowedValues: [ + "Integrated", + "Classic" + ] + } + }, + virtualApplications: { + serializedName: "virtualApplications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualApplication" + } + } + } + }, + loadBalancing: { + serializedName: "loadBalancing", + type: { + name: "Enum", + allowedValues: [ + "WeightedRoundRobin", + "LeastRequests", + "LeastResponseTime", + "WeightedTotalTraffic", + "RequestHash" + ] + } + }, + experiments: { + serializedName: "experiments", + type: { + name: "Composite", + className: "Experiments" + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "SiteLimits" + } + }, + autoHealEnabled: { + serializedName: "autoHealEnabled", + type: { + name: "Boolean" + } + }, + autoHealRules: { + serializedName: "autoHealRules", + type: { + name: "Composite", + className: "AutoHealRules" + } + }, + tracingOptions: { + serializedName: "tracingOptions", + type: { + name: "String" + } + }, + vnetName: { + serializedName: "vnetName", + type: { + name: "String" + } + }, + cors: { + serializedName: "cors", + type: { + name: "Composite", + className: "CorsSettings" + } + }, + push: { + serializedName: "push", + type: { + name: "Composite", + className: "PushSettings" + } + }, + apiDefinition: { + serializedName: "apiDefinition", + type: { + name: "Composite", + className: "ApiDefinitionInfo" + } + }, + autoSwapSlotName: { + serializedName: "autoSwapSlotName", + type: { + name: "String" + } + }, + localMySqlEnabled: { + serializedName: "localMySqlEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + managedServiceIdentityId: { + serializedName: "managedServiceIdentityId", + type: { + name: "Number" + } + }, + xManagedServiceIdentityId: { + serializedName: "xManagedServiceIdentityId", + type: { + name: "Number" + } + }, + ipSecurityRestrictions: { + serializedName: "ipSecurityRestrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpSecurityRestriction" + } + } + } + }, + http20Enabled: { + serializedName: "http20Enabled", + defaultValue: true, + type: { + name: "Boolean" + } + }, + minTlsVersion: { + serializedName: "minTlsVersion", + type: { + name: "String" + } + }, + ftpsState: { + serializedName: "ftpsState", + type: { + name: "String" + } + }, + reservedInstanceCount: { + serializedName: "reservedInstanceCount", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const HostNameSslState: msRest.CompositeMapper = { + serializedName: "HostNameSslState", + type: { + name: "Composite", + className: "HostNameSslState", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + sslState: { + serializedName: "sslState", + type: { + name: "Enum", + allowedValues: [ + "Disabled", + "SniEnabled", + "IpBasedEnabled" + ] + } + }, + virtualIP: { + serializedName: "virtualIP", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String" + } + }, + toUpdate: { + serializedName: "toUpdate", + type: { + name: "Boolean" + } + }, + hostType: { + serializedName: "hostType", + type: { + name: "Enum", + allowedValues: [ + "Standard", + "Repository" + ] + } + } + } + } +}; + +export const Site: msRest.CompositeMapper = { + serializedName: "Site", + type: { + name: "Composite", + className: "Site", + modelProperties: { + ...Resource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + hostNames: { + readOnly: true, + serializedName: "properties.hostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + repositorySiteName: { + readOnly: true, + serializedName: "properties.repositorySiteName", + type: { + name: "String" + } + }, + usageState: { + readOnly: true, + serializedName: "properties.usageState", + type: { + name: "Enum", + allowedValues: [ + "Normal", + "Exceeded" + ] + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + enabledHostNames: { + readOnly: true, + serializedName: "properties.enabledHostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + availabilityState: { + readOnly: true, + serializedName: "properties.availabilityState", + type: { + name: "Enum", + allowedValues: [ + "Normal", + "Limited", + "DisasterRecoveryMode" + ] + } + }, + hostNameSslStates: { + serializedName: "properties.hostNameSslStates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostNameSslState" + } + } + } + }, + serverFarmId: { + serializedName: "properties.serverFarmId", + type: { + name: "String" + } + }, + reserved: { + serializedName: "properties.reserved", + defaultValue: false, + type: { + name: "Boolean" + } + }, + isXenon: { + serializedName: "properties.isXenon", + defaultValue: false, + type: { + name: "Boolean" + } + }, + hyperV: { + serializedName: "properties.hyperV", + defaultValue: false, + type: { + name: "Boolean" + } + }, + lastModifiedTimeUtc: { + readOnly: true, + serializedName: "properties.lastModifiedTimeUtc", + type: { + name: "DateTime" + } + }, + siteConfig: { + serializedName: "properties.siteConfig", + type: { + name: "Composite", + className: "SiteConfig" + } + }, + trafficManagerHostNames: { + readOnly: true, + serializedName: "properties.trafficManagerHostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + scmSiteAlsoStopped: { + serializedName: "properties.scmSiteAlsoStopped", + defaultValue: false, + type: { + name: "Boolean" + } + }, + targetSwapSlot: { + readOnly: true, + serializedName: "properties.targetSwapSlot", + type: { + name: "String" + } + }, + hostingEnvironmentProfile: { + serializedName: "properties.hostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile" + } + }, + clientAffinityEnabled: { + serializedName: "properties.clientAffinityEnabled", + type: { + name: "Boolean" + } + }, + clientCertEnabled: { + serializedName: "properties.clientCertEnabled", + type: { + name: "Boolean" + } + }, + hostNamesDisabled: { + serializedName: "properties.hostNamesDisabled", + type: { + name: "Boolean" + } + }, + outboundIpAddresses: { + readOnly: true, + serializedName: "properties.outboundIpAddresses", + type: { + name: "String" + } + }, + possibleOutboundIpAddresses: { + readOnly: true, + serializedName: "properties.possibleOutboundIpAddresses", + type: { + name: "String" + } + }, + containerSize: { + serializedName: "properties.containerSize", + type: { + name: "Number" + } + }, + dailyMemoryTimeQuota: { + serializedName: "properties.dailyMemoryTimeQuota", + type: { + name: "Number" + } + }, + suspendedTill: { + readOnly: true, + serializedName: "properties.suspendedTill", + type: { + name: "DateTime" + } + }, + maxNumberOfWorkers: { + readOnly: true, + serializedName: "properties.maxNumberOfWorkers", + type: { + name: "Number" + } + }, + cloningInfo: { + serializedName: "properties.cloningInfo", + type: { + name: "Composite", + className: "CloningInfo" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + isDefaultContainer: { + readOnly: true, + serializedName: "properties.isDefaultContainer", + type: { + name: "Boolean" + } + }, + defaultHostName: { + readOnly: true, + serializedName: "properties.defaultHostName", + type: { + name: "String" + } + }, + slotSwapStatus: { + readOnly: true, + serializedName: "properties.slotSwapStatus", + type: { + name: "Composite", + className: "SlotSwapStatus" + } + }, + httpsOnly: { + serializedName: "properties.httpsOnly", + type: { + name: "Boolean" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + } + } + } +}; + +export const Capability: msRest.CompositeMapper = { + serializedName: "Capability", + type: { + name: "Composite", + className: "Capability", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const SkuCapacity: msRest.CompositeMapper = { + serializedName: "SkuCapacity", + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + minimum: { + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + serializedName: "default", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const SkuDescription: msRest.CompositeMapper = { + serializedName: "SkuDescription", + type: { + name: "Composite", + className: "SkuDescription", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + }, + skuCapacity: { + serializedName: "skuCapacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Capability" + } + } + } + } + } + } +}; + +export const AppServicePlan: msRest.CompositeMapper = { + serializedName: "AppServicePlan", + type: { + name: "Composite", + className: "AppServicePlan", + modelProperties: { + ...Resource.type.modelProperties, + workerTierName: { + serializedName: "properties.workerTierName", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Ready", + "Pending", + "Creating" + ] + } + }, + subscription: { + readOnly: true, + serializedName: "properties.subscription", + type: { + name: "String" + } + }, + adminSiteName: { + serializedName: "properties.adminSiteName", + type: { + name: "String" + } + }, + hostingEnvironmentProfile: { + serializedName: "properties.hostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile" + } + }, + maximumNumberOfWorkers: { + readOnly: true, + serializedName: "properties.maximumNumberOfWorkers", + type: { + name: "Number" + } + }, + geoRegion: { + readOnly: true, + serializedName: "properties.geoRegion", + type: { + name: "String" + } + }, + perSiteScaling: { + serializedName: "properties.perSiteScaling", + defaultValue: false, + type: { + name: "Boolean" + } + }, + maximumElasticWorkerCount: { + serializedName: "properties.maximumElasticWorkerCount", + type: { + name: "Number" + } + }, + numberOfSites: { + readOnly: true, + serializedName: "properties.numberOfSites", + type: { + name: "Number" + } + }, + isSpot: { + serializedName: "properties.isSpot", + type: { + name: "Boolean" + } + }, + spotExpirationTime: { + serializedName: "properties.spotExpirationTime", + type: { + name: "DateTime" + } + }, + freeOfferExpirationTime: { + serializedName: "properties.freeOfferExpirationTime", + type: { + name: "DateTime" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + reserved: { + serializedName: "properties.reserved", + defaultValue: false, + type: { + name: "Boolean" + } + }, + isXenon: { + serializedName: "properties.isXenon", + defaultValue: false, + type: { + name: "Boolean" + } + }, + hyperV: { + serializedName: "properties.hyperV", + defaultValue: false, + type: { + name: "Boolean" + } + }, + targetWorkerCount: { + serializedName: "properties.targetWorkerCount", + type: { + name: "Number" + } + }, + targetWorkerSizeId: { + serializedName: "properties.targetWorkerSizeId", + type: { + name: "Number" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuDescription" + } + } + } + } +}; + +export const DefaultErrorResponseErrorDetailsItem: msRest.CompositeMapper = { + serializedName: "DefaultErrorResponse_error_detailsItem", + type: { + name: "Composite", + className: "DefaultErrorResponseErrorDetailsItem", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const DefaultErrorResponseError: msRest.CompositeMapper = { + serializedName: "DefaultErrorResponse_error", + type: { + name: "Composite", + className: "DefaultErrorResponseError", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DefaultErrorResponseErrorDetailsItem" + } + } + } + }, + innererror: { + readOnly: true, + serializedName: "innererror", + type: { + name: "String" + } + } + } + } +}; + +export const DefaultErrorResponse: msRest.CompositeMapper = { + serializedName: "DefaultErrorResponse", + type: { + name: "Composite", + className: "DefaultErrorResponse", + modelProperties: { + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "DefaultErrorResponseError" + } + } + } + } +}; + +export const NameIdentifier: msRest.CompositeMapper = { + serializedName: "NameIdentifier", + type: { + name: "Composite", + className: "NameIdentifier", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricAvailability: msRest.CompositeMapper = { + serializedName: "MetricAvailability", + type: { + name: "Composite", + className: "MetricAvailability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const Dimension: msRest.CompositeMapper = { + serializedName: "Dimension", + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportsInstanceLevelAggregation: { + serializedName: "supportsInstanceLevelAggregation", + type: { + name: "Boolean" + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "Boolean" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + isInternal: { + serializedName: "isInternal", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Dimension" + } + } + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAvailability" + } + } + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + }, + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + } + } + } +}; + +export const CsmOperationDescriptionProperties: msRest.CompositeMapper = { + serializedName: "CsmOperationDescriptionProperties", + type: { + name: "Composite", + className: "CsmOperationDescriptionProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + +export const CsmOperationDisplay: msRest.CompositeMapper = { + serializedName: "CsmOperationDisplay", + type: { + name: "Composite", + className: "CsmOperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const CsmOperationDescription: msRest.CompositeMapper = { + serializedName: "CsmOperationDescription", + type: { + name: "Composite", + className: "CsmOperationDescription", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "CsmOperationDisplay" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CsmOperationDescriptionProperties" + } + } + } + } +}; + +export const Address: msRest.CompositeMapper = { + serializedName: "Address", + type: { + name: "Composite", + className: "Address", + modelProperties: { + address1: { + required: true, + serializedName: "address1", + type: { + name: "String" + } + }, + address2: { + serializedName: "address2", + type: { + name: "String" + } + }, + city: { + required: true, + serializedName: "city", + type: { + name: "String" + } + }, + country: { + required: true, + serializedName: "country", + type: { + name: "String" + } + }, + postalCode: { + required: true, + serializedName: "postalCode", + type: { + name: "String" + } + }, + state: { + required: true, + serializedName: "state", + type: { + name: "String" + } + } + } + } +}; + +export const Contact: msRest.CompositeMapper = { + serializedName: "Contact", + type: { + name: "Composite", + className: "Contact", + modelProperties: { + addressMailing: { + serializedName: "addressMailing", + type: { + name: "Composite", + className: "Address" + } + }, + email: { + required: true, + serializedName: "email", + type: { + name: "String" + } + }, + fax: { + serializedName: "fax", + type: { + name: "String" + } + }, + jobTitle: { + serializedName: "jobTitle", + type: { + name: "String" + } + }, + nameFirst: { + required: true, + serializedName: "nameFirst", + type: { + name: "String" + } + }, + nameLast: { + required: true, + serializedName: "nameLast", + type: { + name: "String" + } + }, + nameMiddle: { + serializedName: "nameMiddle", + type: { + name: "String" + } + }, + organization: { + serializedName: "organization", + type: { + name: "String" + } + }, + phone: { + required: true, + serializedName: "phone", + type: { + name: "String" + } + } + } + } +}; + +export const HostName: msRest.CompositeMapper = { + serializedName: "HostName", + type: { + name: "Composite", + className: "HostName", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + siteNames: { + serializedName: "siteNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + azureResourceName: { + serializedName: "azureResourceName", + type: { + name: "String" + } + }, + azureResourceType: { + serializedName: "azureResourceType", + type: { + name: "Enum", + allowedValues: [ + "Website", + "TrafficManager" + ] + } + }, + customHostNameDnsRecordType: { + serializedName: "customHostNameDnsRecordType", + type: { + name: "Enum", + allowedValues: [ + "CName", + "A" + ] + } + }, + hostNameType: { + serializedName: "hostNameType", + type: { + name: "Enum", + allowedValues: [ + "Verified", + "Managed" + ] + } + } + } + } +}; + +export const DomainPurchaseConsent: msRest.CompositeMapper = { + serializedName: "DomainPurchaseConsent", + type: { + name: "Composite", + className: "DomainPurchaseConsent", + modelProperties: { + agreementKeys: { + serializedName: "agreementKeys", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + agreedBy: { + serializedName: "agreedBy", + type: { + name: "String" + } + }, + agreedAt: { + serializedName: "agreedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Domain: msRest.CompositeMapper = { + serializedName: "Domain", + type: { + name: "Composite", + className: "Domain", + modelProperties: { + ...Resource.type.modelProperties, + contactAdmin: { + required: true, + serializedName: "properties.contactAdmin", + type: { + name: "Composite", + className: "Contact" + } + }, + contactBilling: { + required: true, + serializedName: "properties.contactBilling", + type: { + name: "Composite", + className: "Contact" + } + }, + contactRegistrant: { + required: true, + serializedName: "properties.contactRegistrant", + type: { + name: "Composite", + className: "Contact" + } + }, + contactTech: { + required: true, + serializedName: "properties.contactTech", + type: { + name: "Composite", + className: "Contact" + } + }, + registrationStatus: { + readOnly: true, + serializedName: "properties.registrationStatus", + type: { + name: "Enum", + allowedValues: [ + "Active", + "Awaiting", + "Cancelled", + "Confiscated", + "Disabled", + "Excluded", + "Expired", + "Failed", + "Held", + "Locked", + "Parked", + "Pending", + "Reserved", + "Reverted", + "Suspended", + "Transferred", + "Unknown", + "Unlocked", + "Unparked", + "Updated", + "JsonConverterFailed" + ] + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + nameServers: { + readOnly: true, + serializedName: "properties.nameServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privacy: { + serializedName: "properties.privacy", + type: { + name: "Boolean" + } + }, + createdTime: { + readOnly: true, + serializedName: "properties.createdTime", + type: { + name: "DateTime" + } + }, + expirationTime: { + readOnly: true, + serializedName: "properties.expirationTime", + type: { + name: "DateTime" + } + }, + lastRenewedTime: { + readOnly: true, + serializedName: "properties.lastRenewedTime", + type: { + name: "DateTime" + } + }, + autoRenew: { + serializedName: "properties.autoRenew", + defaultValue: true, + type: { + name: "Boolean" + } + }, + readyForDnsRecordManagement: { + readOnly: true, + serializedName: "properties.readyForDnsRecordManagement", + type: { + name: "Boolean" + } + }, + managedHostNames: { + readOnly: true, + serializedName: "properties.managedHostNames", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostName" + } + } + } + }, + consent: { + required: true, + serializedName: "properties.consent", + type: { + name: "Composite", + className: "DomainPurchaseConsent" + } + }, + domainNotRenewableReasons: { + readOnly: true, + serializedName: "properties.domainNotRenewableReasons", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dnsType: { + serializedName: "properties.dnsType", + type: { + name: "Enum", + allowedValues: [ + "AzureDns", + "DefaultDomainRegistrarDns" + ] + } + }, + dnsZoneId: { + serializedName: "properties.dnsZoneId", + type: { + name: "String" + } + }, + targetDnsType: { + serializedName: "properties.targetDnsType", + type: { + name: "Enum", + allowedValues: [ + "AzureDns", + "DefaultDomainRegistrarDns" + ] + } + }, + authCode: { + serializedName: "properties.authCode", + type: { + name: "String" + } + } + } + } +}; + +export const DomainAvailablilityCheckResult: msRest.CompositeMapper = { + serializedName: "DomainAvailablilityCheckResult", + type: { + name: "Composite", + className: "DomainAvailablilityCheckResult", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + available: { + serializedName: "available", + type: { + name: "Boolean" + } + }, + domainType: { + serializedName: "domainType", + type: { + name: "Enum", + allowedValues: [ + "Regular", + "SoftDeleted" + ] + } + } + } + } +}; + +export const DomainControlCenterSsoRequest: msRest.CompositeMapper = { + serializedName: "DomainControlCenterSsoRequest", + type: { + name: "Composite", + className: "DomainControlCenterSsoRequest", + modelProperties: { + url: { + readOnly: true, + serializedName: "url", + type: { + name: "String" + } + }, + postParameterKey: { + readOnly: true, + serializedName: "postParameterKey", + type: { + name: "String" + } + }, + postParameterValue: { + readOnly: true, + serializedName: "postParameterValue", + type: { + name: "String" + } + } + } + } +}; + +export const DomainOwnershipIdentifier: msRest.CompositeMapper = { + serializedName: "DomainOwnershipIdentifier", + type: { + name: "Composite", + className: "DomainOwnershipIdentifier", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + ownershipId: { + serializedName: "properties.ownershipId", + type: { + name: "String" + } + } + } + } +}; + +export const DomainPatchResource: msRest.CompositeMapper = { + serializedName: "DomainPatchResource", + type: { + name: "Composite", + className: "DomainPatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + contactAdmin: { + required: true, + serializedName: "properties.contactAdmin", + type: { + name: "Composite", + className: "Contact" + } + }, + contactBilling: { + required: true, + serializedName: "properties.contactBilling", + type: { + name: "Composite", + className: "Contact" + } + }, + contactRegistrant: { + required: true, + serializedName: "properties.contactRegistrant", + type: { + name: "Composite", + className: "Contact" + } + }, + contactTech: { + required: true, + serializedName: "properties.contactTech", + type: { + name: "Composite", + className: "Contact" + } + }, + registrationStatus: { + readOnly: true, + serializedName: "properties.registrationStatus", + type: { + name: "Enum", + allowedValues: [ + "Active", + "Awaiting", + "Cancelled", + "Confiscated", + "Disabled", + "Excluded", + "Expired", + "Failed", + "Held", + "Locked", + "Parked", + "Pending", + "Reserved", + "Reverted", + "Suspended", + "Transferred", + "Unknown", + "Unlocked", + "Unparked", + "Updated", + "JsonConverterFailed" + ] + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + nameServers: { + readOnly: true, + serializedName: "properties.nameServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privacy: { + serializedName: "properties.privacy", + type: { + name: "Boolean" + } + }, + createdTime: { + readOnly: true, + serializedName: "properties.createdTime", + type: { + name: "DateTime" + } + }, + expirationTime: { + readOnly: true, + serializedName: "properties.expirationTime", + type: { + name: "DateTime" + } + }, + lastRenewedTime: { + readOnly: true, + serializedName: "properties.lastRenewedTime", + type: { + name: "DateTime" + } + }, + autoRenew: { + serializedName: "properties.autoRenew", + defaultValue: true, + type: { + name: "Boolean" + } + }, + readyForDnsRecordManagement: { + readOnly: true, + serializedName: "properties.readyForDnsRecordManagement", + type: { + name: "Boolean" + } + }, + managedHostNames: { + readOnly: true, + serializedName: "properties.managedHostNames", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostName" + } + } + } + }, + consent: { + required: true, + serializedName: "properties.consent", + type: { + name: "Composite", + className: "DomainPurchaseConsent" + } + }, + domainNotRenewableReasons: { + readOnly: true, + serializedName: "properties.domainNotRenewableReasons", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dnsType: { + serializedName: "properties.dnsType", + type: { + name: "Enum", + allowedValues: [ + "AzureDns", + "DefaultDomainRegistrarDns" + ] + } + }, + dnsZoneId: { + serializedName: "properties.dnsZoneId", + type: { + name: "String" + } + }, + targetDnsType: { + serializedName: "properties.targetDnsType", + type: { + name: "Enum", + allowedValues: [ + "AzureDns", + "DefaultDomainRegistrarDns" + ] + } + }, + authCode: { + serializedName: "properties.authCode", + type: { + name: "String" + } + } + } + } +}; + +export const DomainRecommendationSearchParameters: msRest.CompositeMapper = { + serializedName: "DomainRecommendationSearchParameters", + type: { + name: "Composite", + className: "DomainRecommendationSearchParameters", + modelProperties: { + keywords: { + serializedName: "keywords", + type: { + name: "String" + } + }, + maxDomainRecommendations: { + serializedName: "maxDomainRecommendations", + type: { + name: "Number" + } + } + } + } +}; + +export const TldLegalAgreement: msRest.CompositeMapper = { + serializedName: "TldLegalAgreement", + type: { + name: "Composite", + className: "TldLegalAgreement", + modelProperties: { + agreementKey: { + required: true, + serializedName: "agreementKey", + type: { + name: "String" + } + }, + title: { + required: true, + serializedName: "title", + type: { + name: "String" + } + }, + content: { + required: true, + serializedName: "content", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + } + } + } +}; + +export const TopLevelDomain: msRest.CompositeMapper = { + serializedName: "TopLevelDomain", + type: { + name: "Composite", + className: "TopLevelDomain", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + privacy: { + serializedName: "properties.privacy", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TopLevelDomainAgreementOption: msRest.CompositeMapper = { + serializedName: "TopLevelDomainAgreementOption", + type: { + name: "Composite", + className: "TopLevelDomainAgreementOption", + modelProperties: { + includePrivacy: { + serializedName: "includePrivacy", + type: { + name: "Boolean" + } + }, + forTransfer: { + serializedName: "forTransfer", + type: { + name: "Boolean" + } + } + } + } +}; + +export const Certificate: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "Certificate", + modelProperties: { + ...Resource.type.modelProperties, + friendlyName: { + readOnly: true, + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + subjectName: { + readOnly: true, + serializedName: "properties.subjectName", + type: { + name: "String" + } + }, + hostNames: { + serializedName: "properties.hostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + pfxBlob: { + serializedName: "properties.pfxBlob", + type: { + name: "ByteArray" + } + }, + siteName: { + readOnly: true, + serializedName: "properties.siteName", + type: { + name: "String" + } + }, + selfLink: { + readOnly: true, + serializedName: "properties.selfLink", + type: { + name: "String" + } + }, + issuer: { + readOnly: true, + serializedName: "properties.issuer", + type: { + name: "String" + } + }, + issueDate: { + readOnly: true, + serializedName: "properties.issueDate", + type: { + name: "DateTime" + } + }, + expirationDate: { + readOnly: true, + serializedName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + password: { + required: true, + serializedName: "properties.password", + type: { + name: "String" + } + }, + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + valid: { + readOnly: true, + serializedName: "properties.valid", + type: { + name: "Boolean" + } + }, + cerBlob: { + readOnly: true, + serializedName: "properties.cerBlob", + type: { + name: "ByteArray" + } + }, + publicKeyHash: { + readOnly: true, + serializedName: "properties.publicKeyHash", + type: { + name: "String" + } + }, + hostingEnvironmentProfile: { + readOnly: true, + serializedName: "properties.hostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile" + } + }, + keyVaultId: { + serializedName: "properties.keyVaultId", + type: { + name: "String" + } + }, + keyVaultSecretName: { + serializedName: "properties.keyVaultSecretName", + type: { + name: "String" + } + }, + keyVaultSecretStatus: { + readOnly: true, + serializedName: "properties.keyVaultSecretStatus", + type: { + name: "Enum", + allowedValues: [ + "Initialized", + "WaitingOnCertificateOrder", + "Succeeded", + "CertificateOrderFailed", + "OperationNotPermittedOnKeyVault", + "AzureServiceUnauthorizedToAccessKeyVault", + "KeyVaultDoesNotExist", + "KeyVaultSecretDoesNotExist", + "UnknownError", + "ExternalPrivateKey", + "Unknown" + ] + } + }, + serverFarmId: { + serializedName: "properties.serverFarmId", + type: { + name: "String" + } + } + } + } +}; + +export const CertificatePatchResource: msRest.CompositeMapper = { + serializedName: "CertificatePatchResource", + type: { + name: "Composite", + className: "CertificatePatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + friendlyName: { + readOnly: true, + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + subjectName: { + readOnly: true, + serializedName: "properties.subjectName", + type: { + name: "String" + } + }, + hostNames: { + serializedName: "properties.hostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + pfxBlob: { + serializedName: "properties.pfxBlob", + type: { + name: "ByteArray" + } + }, + siteName: { + readOnly: true, + serializedName: "properties.siteName", + type: { + name: "String" + } + }, + selfLink: { + readOnly: true, + serializedName: "properties.selfLink", + type: { + name: "String" + } + }, + issuer: { + readOnly: true, + serializedName: "properties.issuer", + type: { + name: "String" + } + }, + issueDate: { + readOnly: true, + serializedName: "properties.issueDate", + type: { + name: "DateTime" + } + }, + expirationDate: { + readOnly: true, + serializedName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + password: { + required: true, + serializedName: "properties.password", + type: { + name: "String" + } + }, + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + valid: { + readOnly: true, + serializedName: "properties.valid", + type: { + name: "Boolean" + } + }, + cerBlob: { + readOnly: true, + serializedName: "properties.cerBlob", + type: { + name: "ByteArray" + } + }, + publicKeyHash: { + readOnly: true, + serializedName: "properties.publicKeyHash", + type: { + name: "String" + } + }, + hostingEnvironmentProfile: { + readOnly: true, + serializedName: "properties.hostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile" + } + }, + keyVaultId: { + serializedName: "properties.keyVaultId", + type: { + name: "String" + } + }, + keyVaultSecretName: { + serializedName: "properties.keyVaultSecretName", + type: { + name: "String" + } + }, + keyVaultSecretStatus: { + readOnly: true, + serializedName: "properties.keyVaultSecretStatus", + type: { + name: "Enum", + allowedValues: [ + "Initialized", + "WaitingOnCertificateOrder", + "Succeeded", + "CertificateOrderFailed", + "OperationNotPermittedOnKeyVault", + "AzureServiceUnauthorizedToAccessKeyVault", + "KeyVaultDoesNotExist", + "KeyVaultSecretDoesNotExist", + "UnknownError", + "ExternalPrivateKey", + "Unknown" + ] + } + }, + serverFarmId: { + serializedName: "properties.serverFarmId", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkProfile: msRest.CompositeMapper = { + serializedName: "VirtualNetworkProfile", + type: { + name: "Composite", + className: "VirtualNetworkProfile", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "String" + } + } + } + } +}; + +export const WorkerPool: msRest.CompositeMapper = { + serializedName: "WorkerPool", + type: { + name: "Composite", + className: "WorkerPool", + modelProperties: { + workerSizeId: { + serializedName: "workerSizeId", + type: { + name: "Number" + } + }, + computeMode: { + serializedName: "computeMode", + type: { + name: "Enum", + allowedValues: [ + "Shared", + "Dedicated", + "Dynamic" + ] + } + }, + workerSize: { + serializedName: "workerSize", + type: { + name: "String" + } + }, + workerCount: { + serializedName: "workerCount", + type: { + name: "Number" + } + }, + instanceNames: { + readOnly: true, + serializedName: "instanceNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualIPMapping: msRest.CompositeMapper = { + serializedName: "VirtualIPMapping", + type: { + name: "Composite", + className: "VirtualIPMapping", + modelProperties: { + virtualIP: { + serializedName: "virtualIP", + type: { + name: "String" + } + }, + internalHttpPort: { + serializedName: "internalHttpPort", + type: { + name: "Number" + } + }, + internalHttpsPort: { + serializedName: "internalHttpsPort", + type: { + name: "Number" + } + }, + inUse: { + serializedName: "inUse", + type: { + name: "Boolean" + } + } + } + } +}; + +export const StampCapacity: msRest.CompositeMapper = { + serializedName: "StampCapacity", + type: { + name: "Composite", + className: "StampCapacity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + availableCapacity: { + serializedName: "availableCapacity", + type: { + name: "Number" + } + }, + totalCapacity: { + serializedName: "totalCapacity", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + computeMode: { + serializedName: "computeMode", + type: { + name: "Enum", + allowedValues: [ + "Shared", + "Dedicated", + "Dynamic" + ] + } + }, + workerSize: { + serializedName: "workerSize", + type: { + name: "Enum", + allowedValues: [ + "Small", + "Medium", + "Large", + "D1", + "D2", + "D3", + "Default" + ] + } + }, + workerSizeId: { + serializedName: "workerSizeId", + type: { + name: "Number" + } + }, + excludeFromCapacityAllocation: { + serializedName: "excludeFromCapacityAllocation", + type: { + name: "Boolean" + } + }, + isApplicableForAllComputeModes: { + serializedName: "isApplicableForAllComputeModes", + type: { + name: "Boolean" + } + }, + siteMode: { + serializedName: "siteMode", + type: { + name: "String" + } + }, + isLinux: { + serializedName: "isLinux", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NetworkAccessControlEntry: msRest.CompositeMapper = { + serializedName: "NetworkAccessControlEntry", + type: { + name: "Composite", + className: "NetworkAccessControlEntry", + modelProperties: { + action: { + serializedName: "action", + type: { + name: "Enum", + allowedValues: [ + "Permit", + "Deny" + ] + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + remoteSubnet: { + serializedName: "remoteSubnet", + type: { + name: "String" + } + } + } + } +}; + +export const AppServiceEnvironment: msRest.CompositeMapper = { + serializedName: "AppServiceEnvironment", + type: { + name: "Composite", + className: "AppServiceEnvironment", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Preparing", + "Ready", + "Scaling", + "Deleting" + ] + } + }, + vnetName: { + serializedName: "vnetName", + type: { + name: "String" + } + }, + vnetResourceGroupName: { + serializedName: "vnetResourceGroupName", + type: { + name: "String" + } + }, + vnetSubnetName: { + serializedName: "vnetSubnetName", + type: { + name: "String" + } + }, + virtualNetwork: { + required: true, + serializedName: "virtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkProfile" + } + }, + internalLoadBalancingMode: { + serializedName: "internalLoadBalancingMode", + type: { + name: "Enum", + allowedValues: [ + "None", + "Web", + "Publishing" + ] + } + }, + multiSize: { + serializedName: "multiSize", + type: { + name: "String" + } + }, + multiRoleCount: { + serializedName: "multiRoleCount", + type: { + name: "Number" + } + }, + workerPools: { + required: true, + serializedName: "workerPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkerPool" + } + } + } + }, + ipsslAddressCount: { + serializedName: "ipsslAddressCount", + type: { + name: "Number" + } + }, + databaseEdition: { + readOnly: true, + serializedName: "databaseEdition", + type: { + name: "String" + } + }, + databaseServiceObjective: { + readOnly: true, + serializedName: "databaseServiceObjective", + type: { + name: "String" + } + }, + upgradeDomains: { + readOnly: true, + serializedName: "upgradeDomains", + type: { + name: "Number" + } + }, + subscriptionId: { + readOnly: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + dnsSuffix: { + serializedName: "dnsSuffix", + type: { + name: "String" + } + }, + lastAction: { + readOnly: true, + serializedName: "lastAction", + type: { + name: "String" + } + }, + lastActionResult: { + readOnly: true, + serializedName: "lastActionResult", + type: { + name: "String" + } + }, + allowedMultiSizes: { + readOnly: true, + serializedName: "allowedMultiSizes", + type: { + name: "String" + } + }, + allowedWorkerSizes: { + readOnly: true, + serializedName: "allowedWorkerSizes", + type: { + name: "String" + } + }, + maximumNumberOfMachines: { + readOnly: true, + serializedName: "maximumNumberOfMachines", + type: { + name: "Number" + } + }, + vipMappings: { + readOnly: true, + serializedName: "vipMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualIPMapping" + } + } + } + }, + environmentCapacities: { + readOnly: true, + serializedName: "environmentCapacities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StampCapacity" + } + } + } + }, + networkAccessControlList: { + serializedName: "networkAccessControlList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkAccessControlEntry" + } + } + } + }, + environmentIsHealthy: { + readOnly: true, + serializedName: "environmentIsHealthy", + type: { + name: "Boolean" + } + }, + environmentStatus: { + readOnly: true, + serializedName: "environmentStatus", + type: { + name: "String" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + frontEndScaleFactor: { + serializedName: "frontEndScaleFactor", + type: { + name: "Number" + } + }, + defaultFrontEndScaleFactor: { + readOnly: true, + serializedName: "defaultFrontEndScaleFactor", + type: { + name: "Number" + } + }, + apiManagementAccountId: { + serializedName: "apiManagementAccountId", + type: { + name: "String" + } + }, + suspended: { + serializedName: "suspended", + type: { + name: "Boolean" + } + }, + dynamicCacheEnabled: { + serializedName: "dynamicCacheEnabled", + type: { + name: "Boolean" + } + }, + clusterSettings: { + serializedName: "clusterSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + }, + userWhitelistedIpRanges: { + serializedName: "userWhitelistedIpRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + hasLinuxWorkers: { + serializedName: "hasLinuxWorkers", + type: { + name: "Boolean" + } + }, + sslCertKeyVaultId: { + serializedName: "sslCertKeyVaultId", + type: { + name: "String" + } + }, + sslCertKeyVaultSecretName: { + serializedName: "sslCertKeyVaultSecretName", + type: { + name: "String" + } + } + } + } +}; + +export const LocalizableString: msRest.CompositeMapper = { + serializedName: "LocalizableString", + type: { + name: "Composite", + className: "LocalizableString", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + type: { + name: "String" + } + } + } + } +}; + +export const CsmUsageQuota: msRest.CompositeMapper = { + serializedName: "CsmUsageQuota", + type: { + name: "Composite", + className: "CsmUsageQuota", + modelProperties: { + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + nextResetTime: { + serializedName: "nextResetTime", + type: { + name: "DateTime" + } + }, + currentValue: { + serializedName: "currentValue", + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "LocalizableString" + } + } + } + } +}; + +export const ErrorEntity: msRest.CompositeMapper = { + serializedName: "ErrorEntity", + type: { + name: "Composite", + className: "ErrorEntity", + modelProperties: { + extendedCode: { + serializedName: "extendedCode", + type: { + name: "String" + } + }, + messageTemplate: { + serializedName: "messageTemplate", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + innerErrors: { + serializedName: "innerErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorEntity" + } + } + } + }, + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "InProgress", + "Failed", + "Succeeded", + "TimedOut", + "Created" + ] + } + }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorEntity" + } + } + } + }, + createdTime: { + serializedName: "createdTime", + type: { + name: "DateTime" + } + }, + modifiedTime: { + serializedName: "modifiedTime", + type: { + name: "DateTime" + } + }, + expirationTime: { + serializedName: "expirationTime", + type: { + name: "DateTime" + } + }, + geoMasterOperationId: { + serializedName: "geoMasterOperationId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ResourceMetricName: msRest.CompositeMapper = { + serializedName: "ResourceMetricName", + type: { + name: "Composite", + className: "ResourceMetricName", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + }, + localizedValue: { + readOnly: true, + serializedName: "localizedValue", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceMetricProperty: msRest.CompositeMapper = { + serializedName: "ResourceMetricProperty", + type: { + name: "Composite", + className: "ResourceMetricProperty", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceMetricValue: msRest.CompositeMapper = { + serializedName: "ResourceMetricValue", + type: { + name: "Composite", + className: "ResourceMetricValue", + modelProperties: { + timestamp: { + readOnly: true, + serializedName: "timestamp", + type: { + name: "String" + } + }, + average: { + readOnly: true, + serializedName: "average", + type: { + name: "Number" + } + }, + minimum: { + readOnly: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + readOnly: true, + serializedName: "maximum", + type: { + name: "Number" + } + }, + total: { + readOnly: true, + serializedName: "total", + type: { + name: "Number" + } + }, + count: { + readOnly: true, + serializedName: "count", + type: { + name: "Number" + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceMetricProperty" + } + } + } + } + } + } +}; + +export const ResourceMetric: msRest.CompositeMapper = { + serializedName: "ResourceMetric", + type: { + name: "Composite", + className: "ResourceMetric", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Composite", + className: "ResourceMetricName" + } + }, + unit: { + readOnly: true, + serializedName: "unit", + type: { + name: "String" + } + }, + timeGrain: { + readOnly: true, + serializedName: "timeGrain", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + readOnly: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + resourceId: { + readOnly: true, + serializedName: "resourceId", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + metricValues: { + readOnly: true, + serializedName: "metricValues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceMetricValue" + } + } + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceMetricProperty" + } + } + } + } + } + } +}; + +export const Solution: msRest.CompositeMapper = { + serializedName: "Solution", + type: { + name: "Composite", + className: "Solution", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "Number" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "QuickSolution", + "DeepInvestigation", + "BestPractices" + ] + } + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + } + } + }, + metadata: { + serializedName: "metadata", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + } + } + } + } + } +}; + +export const DetectorAbnormalTimePeriod: msRest.CompositeMapper = { + serializedName: "DetectorAbnormalTimePeriod", + type: { + name: "Composite", + className: "DetectorAbnormalTimePeriod", + modelProperties: { + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + source: { + serializedName: "source", + type: { + name: "String" + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + metaData: { + serializedName: "metaData", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + } + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "ServiceIncident", + "AppDeployment", + "AppCrash", + "RuntimeIssueDetected", + "AseDeployment", + "UserIssue", + "PlatformIssue", + "Other" + ] + } + }, + solutions: { + serializedName: "solutions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Solution" + } + } + } + } + } + } +}; + +export const AbnormalTimePeriod: msRest.CompositeMapper = { + serializedName: "AbnormalTimePeriod", + type: { + name: "Composite", + className: "AbnormalTimePeriod", + modelProperties: { + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + events: { + serializedName: "events", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DetectorAbnormalTimePeriod" + } + } + } + }, + solutions: { + serializedName: "solutions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Solution" + } + } + } + } + } + } +}; + +export const DetectorDefinition: msRest.CompositeMapper = { + serializedName: "DetectorDefinition", + type: { + name: "Composite", + className: "DetectorDefinition", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + rank: { + readOnly: true, + serializedName: "properties.rank", + type: { + name: "Number" + } + }, + isEnabled: { + readOnly: true, + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DiagnosticMetricSample: msRest.CompositeMapper = { + serializedName: "DiagnosticMetricSample", + type: { + name: "Composite", + className: "DiagnosticMetricSample", + modelProperties: { + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + roleInstance: { + serializedName: "roleInstance", + type: { + name: "String" + } + }, + total: { + serializedName: "total", + type: { + name: "Number" + } + }, + maximum: { + serializedName: "maximum", + type: { + name: "Number" + } + }, + minimum: { + serializedName: "minimum", + type: { + name: "Number" + } + }, + isAggregated: { + serializedName: "isAggregated", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DiagnosticMetricSet: msRest.CompositeMapper = { + serializedName: "DiagnosticMetricSet", + type: { + name: "Composite", + className: "DiagnosticMetricSet", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticMetricSample" + } + } + } + } + } + } +}; + +export const DataSource: msRest.CompositeMapper = { + serializedName: "DataSource", + type: { + name: "Composite", + className: "DataSource", + modelProperties: { + instructions: { + serializedName: "instructions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dataSourceUri: { + serializedName: "dataSourceUri", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + } + } + } +}; + +export const ResponseMetaData: msRest.CompositeMapper = { + serializedName: "ResponseMetaData", + type: { + name: "Composite", + className: "ResponseMetaData", + modelProperties: { + dataSource: { + serializedName: "dataSource", + type: { + name: "Composite", + className: "DataSource" + } + } + } + } +}; + +export const AnalysisData: msRest.CompositeMapper = { + serializedName: "AnalysisData", + type: { + name: "Composite", + className: "AnalysisData", + modelProperties: { + source: { + serializedName: "source", + type: { + name: "String" + } + }, + detectorDefinition: { + serializedName: "detectorDefinition", + type: { + name: "Composite", + className: "DetectorDefinition" + } + }, + metrics: { + serializedName: "metrics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticMetricSet" + } + } + } + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + } + } + }, + detectorMetaData: { + serializedName: "detectorMetaData", + type: { + name: "Composite", + className: "ResponseMetaData" + } + } + } + } +}; + +export const AnalysisDefinition: msRest.CompositeMapper = { + serializedName: "AnalysisDefinition", + type: { + name: "Composite", + className: "AnalysisDefinition", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const DataTableResponseColumn: msRest.CompositeMapper = { + serializedName: "DataTableResponseColumn", + type: { + name: "Composite", + className: "DataTableResponseColumn", + modelProperties: { + columnName: { + serializedName: "columnName", + type: { + name: "String" + } + }, + dataType: { + serializedName: "dataType", + type: { + name: "String" + } + }, + columnType: { + serializedName: "columnType", + type: { + name: "String" + } + } + } + } +}; + +export const DataTableResponseObject: msRest.CompositeMapper = { + serializedName: "DataTableResponseObject", + type: { + name: "Composite", + className: "DataTableResponseObject", + modelProperties: { + tableName: { + serializedName: "tableName", + type: { + name: "String" + } + }, + columns: { + serializedName: "columns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataTableResponseColumn" + } + } + } + }, + rows: { + serializedName: "rows", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + } + } +}; + +export const DetectorInfo: msRest.CompositeMapper = { + serializedName: "DetectorInfo", + type: { + name: "Composite", + className: "DetectorInfo", + modelProperties: { + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + category: { + readOnly: true, + serializedName: "category", + type: { + name: "String" + } + }, + subCategory: { + readOnly: true, + serializedName: "subCategory", + type: { + name: "String" + } + }, + supportTopicId: { + readOnly: true, + serializedName: "supportTopicId", + type: { + name: "String" + } + } + } + } +}; + +export const Rendering: msRest.CompositeMapper = { + serializedName: "Rendering", + type: { + name: "Composite", + className: "Rendering", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "NoGraph", + "Table", + "TimeSeries", + "TimeSeriesPerInstance" + ] + } + }, + title: { + serializedName: "title", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticData: msRest.CompositeMapper = { + serializedName: "DiagnosticData", + type: { + name: "Composite", + className: "DiagnosticData", + modelProperties: { + table: { + serializedName: "table", + type: { + name: "Composite", + className: "DataTableResponseObject" + } + }, + renderingProperties: { + serializedName: "renderingProperties", + type: { + name: "Composite", + className: "Rendering" + } + } + } + } +}; + +export const DetectorResponse: msRest.CompositeMapper = { + serializedName: "DetectorResponse", + type: { + name: "Composite", + className: "DetectorResponse", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "DetectorInfo" + } + }, + dataset: { + serializedName: "properties.dataset", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticData" + } + } + } + } + } + } +}; + +export const DiagnosticAnalysis: msRest.CompositeMapper = { + serializedName: "DiagnosticAnalysis", + type: { + name: "Composite", + className: "DiagnosticAnalysis", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + abnormalTimePeriods: { + serializedName: "properties.abnormalTimePeriods", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AbnormalTimePeriod" + } + } + } + }, + payload: { + serializedName: "properties.payload", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AnalysisData" + } + } + } + }, + nonCorrelatedDetectors: { + serializedName: "properties.nonCorrelatedDetectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DetectorDefinition" + } + } + } + } + } + } +}; + +export const DiagnosticCategory: msRest.CompositeMapper = { + serializedName: "DiagnosticCategory", + type: { + name: "Composite", + className: "DiagnosticCategory", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticDetectorResponse: msRest.CompositeMapper = { + serializedName: "DiagnosticDetectorResponse", + type: { + name: "Composite", + className: "DiagnosticDetectorResponse", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + issueDetected: { + serializedName: "properties.issueDetected", + type: { + name: "Boolean" + } + }, + detectorDefinition: { + serializedName: "properties.detectorDefinition", + type: { + name: "Composite", + className: "DetectorDefinition" + } + }, + metrics: { + serializedName: "properties.metrics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticMetricSet" + } + } + } + }, + abnormalTimePeriods: { + serializedName: "properties.abnormalTimePeriods", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DetectorAbnormalTimePeriod" + } + } + } + }, + data: { + serializedName: "properties.data", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + } + } + }, + responseMetaData: { + serializedName: "properties.responseMetaData", + type: { + name: "Composite", + className: "ResponseMetaData" + } + } + } + } +}; + +export const StackMinorVersion: msRest.CompositeMapper = { + serializedName: "StackMinorVersion", + type: { + name: "Composite", + className: "StackMinorVersion", + modelProperties: { + displayVersion: { + serializedName: "displayVersion", + type: { + name: "String" + } + }, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + }, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + } + } + } +}; + +export const StackMajorVersion: msRest.CompositeMapper = { + serializedName: "StackMajorVersion", + type: { + name: "Composite", + className: "StackMajorVersion", + modelProperties: { + displayVersion: { + serializedName: "displayVersion", + type: { + name: "String" + } + }, + runtimeVersion: { + serializedName: "runtimeVersion", + type: { + name: "String" + } + }, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + minorVersions: { + serializedName: "minorVersions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StackMinorVersion" + } + } + } + } + } + } +}; + +export const ApplicationStack: msRest.CompositeMapper = { + serializedName: "ApplicationStack", + type: { + name: "Composite", + className: "ApplicationStack", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "String" + } + }, + dependency: { + serializedName: "dependency", + type: { + name: "String" + } + }, + majorVersions: { + serializedName: "majorVersions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StackMajorVersion" + } + } + } + }, + frameworks: { + serializedName: "frameworks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationStack" + } + } + } + } + } + } +}; + +export const Recommendation: msRest.CompositeMapper = { + serializedName: "Recommendation", + type: { + name: "Composite", + className: "Recommendation", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + recommendationId: { + serializedName: "properties.recommendationId", + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + resourceScope: { + serializedName: "properties.resourceScope", + type: { + name: "String" + } + }, + ruleName: { + serializedName: "properties.ruleName", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + message: { + serializedName: "properties.message", + type: { + name: "String" + } + }, + level: { + serializedName: "properties.level", + type: { + name: "Enum", + allowedValues: [ + "Critical", + "Warning", + "Information", + "NonUrgentSuggestion" + ] + } + }, + channels: { + serializedName: "properties.channels", + type: { + name: "Enum", + allowedValues: [ + "Notification", + "Api", + "Email", + "Webhook", + "All" + ] + } + }, + categoryTags: { + readOnly: true, + serializedName: "properties.categoryTags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + actionName: { + serializedName: "properties.actionName", + type: { + name: "String" + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Number" + } + }, + states: { + serializedName: "properties.states", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + nextNotificationTime: { + serializedName: "properties.nextNotificationTime", + type: { + name: "DateTime" + } + }, + notificationExpirationTime: { + serializedName: "properties.notificationExpirationTime", + type: { + name: "DateTime" + } + }, + notifiedTime: { + serializedName: "properties.notifiedTime", + type: { + name: "DateTime" + } + }, + score: { + serializedName: "properties.score", + type: { + name: "Number" + } + }, + isDynamic: { + serializedName: "properties.isDynamic", + type: { + name: "Boolean" + } + }, + extensionName: { + serializedName: "properties.extensionName", + type: { + name: "String" + } + }, + bladeName: { + serializedName: "properties.bladeName", + type: { + name: "String" + } + }, + forwardLink: { + serializedName: "properties.forwardLink", + type: { + name: "String" + } + } + } + } +}; + +export const RecommendationRule: msRest.CompositeMapper = { + serializedName: "RecommendationRule", + type: { + name: "Composite", + className: "RecommendationRule", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + recommendationName: { + serializedName: "properties.recommendationName", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + message: { + serializedName: "properties.message", + type: { + name: "String" + } + }, + recommendationId: { + serializedName: "properties.recommendationId", + type: { + name: "Uuid" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + actionName: { + serializedName: "properties.actionName", + type: { + name: "String" + } + }, + level: { + serializedName: "properties.level", + type: { + name: "Enum", + allowedValues: [ + "Critical", + "Warning", + "Information", + "NonUrgentSuggestion" + ] + } + }, + channels: { + serializedName: "properties.channels", + type: { + name: "Enum", + allowedValues: [ + "Notification", + "Api", + "Email", + "Webhook", + "All" + ] + } + }, + categoryTags: { + readOnly: true, + serializedName: "properties.categoryTags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isDynamic: { + serializedName: "properties.isDynamic", + type: { + name: "Boolean" + } + }, + extensionName: { + serializedName: "properties.extensionName", + type: { + name: "String" + } + }, + bladeName: { + serializedName: "properties.bladeName", + type: { + name: "String" + } + }, + forwardLink: { + serializedName: "properties.forwardLink", + type: { + name: "String" + } + } + } + } +}; + +export const BillingMeter: msRest.CompositeMapper = { + serializedName: "BillingMeter", + type: { + name: "Composite", + className: "BillingMeter", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + meterId: { + serializedName: "properties.meterId", + type: { + name: "String" + } + }, + billingLocation: { + serializedName: "properties.billingLocation", + type: { + name: "String" + } + }, + shortName: { + serializedName: "properties.shortName", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + resourceType: { + serializedName: "properties.resourceType", + type: { + name: "String" + } + }, + osType: { + serializedName: "properties.osType", + type: { + name: "String" + } + } + } + } +}; + +export const CsmMoveResourceEnvelope: msRest.CompositeMapper = { + serializedName: "CsmMoveResourceEnvelope", + type: { + name: "Composite", + className: "CsmMoveResourceEnvelope", + modelProperties: { + targetResourceGroup: { + serializedName: "targetResourceGroup", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: / ^[-\w\._\(\)]+[^\.]$/ + }, + type: { + name: "String" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const GeoRegion: msRest.CompositeMapper = { + serializedName: "GeoRegion", + type: { + name: "Composite", + className: "GeoRegion", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + } + } + } +}; + +export const HostingEnvironmentDeploymentInfo: msRest.CompositeMapper = { + serializedName: "HostingEnvironmentDeploymentInfo", + type: { + name: "Composite", + className: "HostingEnvironmentDeploymentInfo", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentLocations: msRest.CompositeMapper = { + serializedName: "DeploymentLocations", + type: { + name: "Composite", + className: "DeploymentLocations", + modelProperties: { + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoRegion" + } + } + } + }, + hostingEnvironments: { + serializedName: "hostingEnvironments", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppServiceEnvironment" + } + } + } + }, + hostingEnvironmentDeploymentInfos: { + serializedName: "hostingEnvironmentDeploymentInfos", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostingEnvironmentDeploymentInfo" + } + } + } + } + } + } +}; + +export const GlobalCsmSkuDescription: msRest.CompositeMapper = { + serializedName: "GlobalCsmSkuDescription", + type: { + name: "Composite", + className: "GlobalCsmSkuDescription", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Capability" + } + } + } + } + } + } +}; + +export const PremierAddOnOffer: msRest.CompositeMapper = { + serializedName: "PremierAddOnOffer", + type: { + name: "Composite", + className: "PremierAddOnOffer", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + sku: { + serializedName: "properties.sku", + type: { + name: "String" + } + }, + product: { + serializedName: "properties.product", + type: { + name: "String" + } + }, + vendor: { + serializedName: "properties.vendor", + type: { + name: "String" + } + }, + promoCodeRequired: { + serializedName: "properties.promoCodeRequired", + type: { + name: "Boolean" + } + }, + quota: { + serializedName: "properties.quota", + type: { + name: "Number" + } + }, + webHostingPlanRestrictions: { + serializedName: "properties.webHostingPlanRestrictions", + type: { + name: "Enum", + allowedValues: [ + "None", + "Free", + "Shared", + "Basic", + "Standard", + "Premium" + ] + } + }, + privacyPolicyUrl: { + serializedName: "properties.privacyPolicyUrl", + type: { + name: "String" + } + }, + legalTermsUrl: { + serializedName: "properties.legalTermsUrl", + type: { + name: "String" + } + }, + marketplacePublisher: { + serializedName: "properties.marketplacePublisher", + type: { + name: "String" + } + }, + marketplaceOffer: { + serializedName: "properties.marketplaceOffer", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceNameAvailability: msRest.CompositeMapper = { + serializedName: "ResourceNameAvailability", + type: { + name: "Composite", + className: "ResourceNameAvailability", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceNameAvailabilityRequest: msRest.CompositeMapper = { + serializedName: "ResourceNameAvailabilityRequest", + type: { + name: "Composite", + className: "ResourceNameAvailabilityRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + isFqdn: { + serializedName: "isFqdn", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SkuInfos: msRest.CompositeMapper = { + serializedName: "SkuInfos", + type: { + name: "Composite", + className: "SkuInfos", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + skus: { + serializedName: "skus", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GlobalCsmSkuDescription" + } + } + } + } + } + } +}; + +export const SourceControl: msRest.CompositeMapper = { + serializedName: "SourceControl", + type: { + name: "Composite", + className: "SourceControl", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + token: { + serializedName: "properties.token", + type: { + name: "String" + } + }, + tokenSecret: { + serializedName: "properties.tokenSecret", + type: { + name: "String" + } + }, + refreshToken: { + serializedName: "properties.refreshToken", + type: { + name: "String" + } + }, + expirationTime: { + serializedName: "properties.expirationTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ValidateRequest: msRest.CompositeMapper = { + serializedName: "ValidateRequest", + type: { + name: "Composite", + className: "ValidateRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + serverFarmId: { + serializedName: "properties.serverFarmId", + type: { + name: "String" + } + }, + skuName: { + serializedName: "properties.skuName", + type: { + name: "String" + } + }, + needLinuxWorkers: { + serializedName: "properties.needLinuxWorkers", + type: { + name: "Boolean" + } + }, + isSpot: { + serializedName: "properties.isSpot", + type: { + name: "Boolean" + } + }, + capacity: { + serializedName: "properties.capacity", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + hostingEnvironment: { + serializedName: "properties.hostingEnvironment", + type: { + name: "String" + } + }, + isXenon: { + serializedName: "properties.isXenon", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ValidateResponseError: msRest.CompositeMapper = { + serializedName: "ValidateResponseError", + type: { + name: "Composite", + className: "ValidateResponseError", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ValidateResponse: msRest.CompositeMapper = { + serializedName: "ValidateResponse", + type: { + name: "Composite", + className: "ValidateResponse", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ValidateResponseError" + } + } + } + } +}; + +export const VnetParameters: msRest.CompositeMapper = { + serializedName: "VnetParameters", + type: { + name: "Composite", + className: "VnetParameters", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + vnetResourceGroup: { + serializedName: "properties.vnetResourceGroup", + type: { + name: "String" + } + }, + vnetName: { + serializedName: "properties.vnetName", + type: { + name: "String" + } + }, + vnetSubnetName: { + serializedName: "properties.vnetSubnetName", + type: { + name: "String" + } + } + } + } +}; + +export const VnetValidationTestFailure: msRest.CompositeMapper = { + serializedName: "VnetValidationTestFailure", + type: { + name: "Composite", + className: "VnetValidationTestFailure", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + testName: { + serializedName: "properties.testName", + type: { + name: "String" + } + }, + details: { + serializedName: "properties.details", + type: { + name: "String" + } + } + } + } +}; + +export const VnetValidationFailureDetails: msRest.CompositeMapper = { + serializedName: "VnetValidationFailureDetails", + type: { + name: "Composite", + className: "VnetValidationFailureDetails", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + failed: { + serializedName: "properties.failed", + type: { + name: "Boolean" + } + }, + failedTests: { + serializedName: "properties.failedTests", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetValidationTestFailure" + } + } + } + } + } + } +}; + +export const FileSystemApplicationLogsConfig: msRest.CompositeMapper = { + serializedName: "FileSystemApplicationLogsConfig", + type: { + name: "Composite", + className: "FileSystemApplicationLogsConfig", + modelProperties: { + level: { + serializedName: "level", + defaultValue: 'Off', + type: { + name: "Enum", + allowedValues: [ + "Off", + "Verbose", + "Information", + "Warning", + "Error" + ] + } + } + } + } +}; + +export const AzureTableStorageApplicationLogsConfig: msRest.CompositeMapper = { + serializedName: "AzureTableStorageApplicationLogsConfig", + type: { + name: "Composite", + className: "AzureTableStorageApplicationLogsConfig", + modelProperties: { + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: [ + "Off", + "Verbose", + "Information", + "Warning", + "Error" + ] + } + }, + sasUrl: { + required: true, + serializedName: "sasUrl", + type: { + name: "String" + } + } + } + } +}; + +export const AzureBlobStorageApplicationLogsConfig: msRest.CompositeMapper = { + serializedName: "AzureBlobStorageApplicationLogsConfig", + type: { + name: "Composite", + className: "AzureBlobStorageApplicationLogsConfig", + modelProperties: { + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: [ + "Off", + "Verbose", + "Information", + "Warning", + "Error" + ] + } + }, + sasUrl: { + serializedName: "sasUrl", + type: { + name: "String" + } + }, + retentionInDays: { + serializedName: "retentionInDays", + type: { + name: "Number" + } + } + } + } +}; + +export const ApplicationLogsConfig: msRest.CompositeMapper = { + serializedName: "ApplicationLogsConfig", + type: { + name: "Composite", + className: "ApplicationLogsConfig", + modelProperties: { + fileSystem: { + serializedName: "fileSystem", + type: { + name: "Composite", + className: "FileSystemApplicationLogsConfig" + } + }, + azureTableStorage: { + serializedName: "azureTableStorage", + type: { + name: "Composite", + className: "AzureTableStorageApplicationLogsConfig" + } + }, + azureBlobStorage: { + serializedName: "azureBlobStorage", + type: { + name: "Composite", + className: "AzureBlobStorageApplicationLogsConfig" + } + } + } + } +}; + +export const AzureBlobStorageHttpLogsConfig: msRest.CompositeMapper = { + serializedName: "AzureBlobStorageHttpLogsConfig", + type: { + name: "Composite", + className: "AzureBlobStorageHttpLogsConfig", + modelProperties: { + sasUrl: { + serializedName: "sasUrl", + type: { + name: "String" + } + }, + retentionInDays: { + serializedName: "retentionInDays", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AzureStoragePropertyDictionaryResource: msRest.CompositeMapper = { + serializedName: "AzureStoragePropertyDictionaryResource", + type: { + name: "Composite", + className: "AzureStoragePropertyDictionaryResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AzureStorageInfoValue" + } + } + } + } + } + } +}; + +export const DatabaseBackupSetting: msRest.CompositeMapper = { + serializedName: "DatabaseBackupSetting", + type: { + name: "Composite", + className: "DatabaseBackupSetting", + modelProperties: { + databaseType: { + required: true, + serializedName: "databaseType", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + connectionStringName: { + serializedName: "connectionStringName", + type: { + name: "String" + } + }, + connectionString: { + serializedName: "connectionString", + type: { + name: "String" + } + } + } + } +}; + +export const BackupItem: msRest.CompositeMapper = { + serializedName: "BackupItem", + type: { + name: "Composite", + className: "BackupItem", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + backupId: { + readOnly: true, + serializedName: "properties.id", + type: { + name: "Number" + } + }, + storageAccountUrl: { + readOnly: true, + serializedName: "properties.storageAccountUrl", + type: { + name: "String" + } + }, + blobName: { + readOnly: true, + serializedName: "properties.blobName", + type: { + name: "String" + } + }, + backupItemName: { + readOnly: true, + serializedName: "properties.name", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "InProgress", + "Failed", + "Succeeded", + "TimedOut", + "Created", + "Skipped", + "PartiallySucceeded", + "DeleteInProgress", + "DeleteFailed", + "Deleted" + ] + } + }, + sizeInBytes: { + readOnly: true, + serializedName: "properties.sizeInBytes", + type: { + name: "Number" + } + }, + created: { + readOnly: true, + serializedName: "properties.created", + type: { + name: "DateTime" + } + }, + log: { + readOnly: true, + serializedName: "properties.log", + type: { + name: "String" + } + }, + databases: { + readOnly: true, + serializedName: "properties.databases", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseBackupSetting" + } + } + } + }, + scheduled: { + readOnly: true, + serializedName: "properties.scheduled", + type: { + name: "Boolean" + } + }, + lastRestoreTimeStamp: { + readOnly: true, + serializedName: "properties.lastRestoreTimeStamp", + type: { + name: "DateTime" + } + }, + finishedTimeStamp: { + readOnly: true, + serializedName: "properties.finishedTimeStamp", + type: { + name: "DateTime" + } + }, + correlationId: { + readOnly: true, + serializedName: "properties.correlationId", + type: { + name: "String" + } + }, + websiteSizeInBytes: { + readOnly: true, + serializedName: "properties.websiteSizeInBytes", + type: { + name: "Number" + } + } + } + } +}; + +export const BackupSchedule: msRest.CompositeMapper = { + serializedName: "BackupSchedule", + type: { + name: "Composite", + className: "BackupSchedule", + modelProperties: { + frequencyInterval: { + required: true, + serializedName: "frequencyInterval", + defaultValue: 7, + type: { + name: "Number" + } + }, + frequencyUnit: { + required: true, + serializedName: "frequencyUnit", + defaultValue: 'Day', + type: { + name: "Enum", + allowedValues: [ + "Day", + "Hour" + ] + } + }, + keepAtLeastOneBackup: { + required: true, + serializedName: "keepAtLeastOneBackup", + defaultValue: true, + type: { + name: "Boolean" + } + }, + retentionPeriodInDays: { + required: true, + serializedName: "retentionPeriodInDays", + defaultValue: 30, + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + lastExecutionTime: { + readOnly: true, + serializedName: "lastExecutionTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const BackupRequest: msRest.CompositeMapper = { + serializedName: "BackupRequest", + type: { + name: "Composite", + className: "BackupRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + backupName: { + serializedName: "properties.backupName", + type: { + name: "String" + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + storageAccountUrl: { + required: true, + serializedName: "properties.storageAccountUrl", + type: { + name: "String" + } + }, + backupSchedule: { + serializedName: "properties.backupSchedule", + type: { + name: "Composite", + className: "BackupSchedule" + } + }, + databases: { + serializedName: "properties.databases", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseBackupSetting" + } + } + } + } + } + } +}; + +export const ConnStringValueTypePair: msRest.CompositeMapper = { + serializedName: "ConnStringValueTypePair", + type: { + name: "Composite", + className: "ConnStringValueTypePair", + modelProperties: { + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "MySql", + "SQLServer", + "SQLAzure", + "Custom", + "NotificationHub", + "ServiceBus", + "EventHub", + "ApiHub", + "DocDb", + "RedisCache", + "PostgreSQL" + ] + } + } + } + } +}; + +export const ConnectionStringDictionary: msRest.CompositeMapper = { + serializedName: "ConnectionStringDictionary", + type: { + name: "Composite", + className: "ConnectionStringDictionary", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ConnStringValueTypePair" + } + } + } + } + } + } +}; + +export const ContinuousWebJob: msRest.CompositeMapper = { + serializedName: "ContinuousWebJob", + type: { + name: "Composite", + className: "ContinuousWebJob", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + status: { + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Initializing", + "Starting", + "Running", + "PendingRestart", + "Stopped" + ] + } + }, + detailedStatus: { + serializedName: "properties.detailed_status", + type: { + name: "String" + } + }, + logUrl: { + serializedName: "properties.log_url", + type: { + name: "String" + } + }, + runCommand: { + serializedName: "properties.run_command", + type: { + name: "String" + } + }, + url: { + serializedName: "properties.url", + type: { + name: "String" + } + }, + extraInfoUrl: { + serializedName: "properties.extra_info_url", + type: { + name: "String" + } + }, + webJobType: { + serializedName: "properties.web_job_type", + type: { + name: "Enum", + allowedValues: [ + "Continuous", + "Triggered" + ] + } + }, + error: { + serializedName: "properties.error", + type: { + name: "String" + } + }, + usingSdk: { + serializedName: "properties.using_sdk", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + } + } + } +}; + +export const CsmPublishingProfileOptions: msRest.CompositeMapper = { + serializedName: "CsmPublishingProfileOptions", + type: { + name: "Composite", + className: "CsmPublishingProfileOptions", + modelProperties: { + format: { + serializedName: "format", + type: { + name: "String" + } + }, + includeDisasterRecoveryEndpoints: { + serializedName: "includeDisasterRecoveryEndpoints", + type: { + name: "Boolean" + } + } + } + } +}; + +export const CsmSlotEntity: msRest.CompositeMapper = { + serializedName: "CsmSlotEntity", + type: { + name: "Composite", + className: "CsmSlotEntity", + modelProperties: { + targetSlot: { + required: true, + serializedName: "targetSlot", + type: { + name: "String" + } + }, + preserveVnet: { + required: true, + serializedName: "preserveVnet", + type: { + name: "Boolean" + } + } + } + } +}; + +export const CustomHostnameAnalysisResult: msRest.CompositeMapper = { + serializedName: "CustomHostnameAnalysisResult", + type: { + name: "Composite", + className: "CustomHostnameAnalysisResult", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + isHostnameAlreadyVerified: { + readOnly: true, + serializedName: "properties.isHostnameAlreadyVerified", + type: { + name: "Boolean" + } + }, + customDomainVerificationTest: { + readOnly: true, + serializedName: "properties.customDomainVerificationTest", + type: { + name: "Enum", + allowedValues: [ + "Passed", + "Failed", + "Skipped" + ] + } + }, + customDomainVerificationFailureInfo: { + readOnly: true, + serializedName: "properties.customDomainVerificationFailureInfo", + type: { + name: "Composite", + className: "ErrorEntity" + } + }, + hasConflictOnScaleUnit: { + readOnly: true, + serializedName: "properties.hasConflictOnScaleUnit", + type: { + name: "Boolean" + } + }, + hasConflictAcrossSubscription: { + readOnly: true, + serializedName: "properties.hasConflictAcrossSubscription", + type: { + name: "Boolean" + } + }, + conflictingAppResourceId: { + readOnly: true, + serializedName: "properties.conflictingAppResourceId", + type: { + name: "String" + } + }, + cNameRecords: { + serializedName: "properties.cNameRecords", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + txtRecords: { + serializedName: "properties.txtRecords", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + aRecords: { + serializedName: "properties.aRecords", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + alternateCNameRecords: { + serializedName: "properties.alternateCNameRecords", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + alternateTxtRecords: { + serializedName: "properties.alternateTxtRecords", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DeletedAppRestoreRequest: msRest.CompositeMapper = { + serializedName: "DeletedAppRestoreRequest", + type: { + name: "Composite", + className: "DeletedAppRestoreRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + deletedSiteId: { + serializedName: "properties.deletedSiteId", + type: { + name: "String" + } + }, + recoverConfiguration: { + serializedName: "properties.recoverConfiguration", + type: { + name: "Boolean" + } + }, + snapshotTime: { + serializedName: "properties.snapshotTime", + type: { + name: "String" + } + } + } + } +}; + +export const Deployment: msRest.CompositeMapper = { + serializedName: "Deployment", + type: { + name: "Composite", + className: "Deployment", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + status: { + serializedName: "properties.status", + type: { + name: "Number" + } + }, + message: { + serializedName: "properties.message", + type: { + name: "String" + } + }, + author: { + serializedName: "properties.author", + type: { + name: "String" + } + }, + deployer: { + serializedName: "properties.deployer", + type: { + name: "String" + } + }, + authorEmail: { + serializedName: "properties.author_email", + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.start_time", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.end_time", + type: { + name: "DateTime" + } + }, + active: { + serializedName: "properties.active", + type: { + name: "Boolean" + } + }, + details: { + serializedName: "properties.details", + type: { + name: "String" + } + } + } + } +}; + +export const EnabledConfig: msRest.CompositeMapper = { + serializedName: "EnabledConfig", + type: { + name: "Composite", + className: "EnabledConfig", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const FileSystemHttpLogsConfig: msRest.CompositeMapper = { + serializedName: "FileSystemHttpLogsConfig", + type: { + name: "Composite", + className: "FileSystemHttpLogsConfig", + modelProperties: { + retentionInMb: { + serializedName: "retentionInMb", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 25 + }, + type: { + name: "Number" + } + }, + retentionInDays: { + serializedName: "retentionInDays", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const FunctionEnvelope: msRest.CompositeMapper = { + serializedName: "FunctionEnvelope", + type: { + name: "Composite", + className: "FunctionEnvelope", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + functionAppId: { + serializedName: "properties.function_app_id", + type: { + name: "String" + } + }, + scriptRootPathHref: { + serializedName: "properties.script_root_path_href", + type: { + name: "String" + } + }, + scriptHref: { + serializedName: "properties.script_href", + type: { + name: "String" + } + }, + configHref: { + serializedName: "properties.config_href", + type: { + name: "String" + } + }, + secretsFileHref: { + serializedName: "properties.secrets_file_href", + type: { + name: "String" + } + }, + href: { + serializedName: "properties.href", + type: { + name: "String" + } + }, + config: { + serializedName: "properties.config", + type: { + name: "Object" + } + }, + files: { + serializedName: "properties.files", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + testData: { + serializedName: "properties.test_data", + type: { + name: "String" + } + } + } + } +}; + +export const FunctionSecrets: msRest.CompositeMapper = { + serializedName: "FunctionSecrets", + type: { + name: "Composite", + className: "FunctionSecrets", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + key: { + serializedName: "properties.key", + type: { + name: "String" + } + }, + triggerUrl: { + serializedName: "properties.trigger_url", + type: { + name: "String" + } + } + } + } +}; + +export const HostNameBinding: msRest.CompositeMapper = { + serializedName: "HostNameBinding", + type: { + name: "Composite", + className: "HostNameBinding", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + siteName: { + serializedName: "properties.siteName", + type: { + name: "String" + } + }, + domainId: { + serializedName: "properties.domainId", + type: { + name: "String" + } + }, + azureResourceName: { + serializedName: "properties.azureResourceName", + type: { + name: "String" + } + }, + azureResourceType: { + serializedName: "properties.azureResourceType", + type: { + name: "Enum", + allowedValues: [ + "Website", + "TrafficManager" + ] + } + }, + customHostNameDnsRecordType: { + serializedName: "properties.customHostNameDnsRecordType", + type: { + name: "Enum", + allowedValues: [ + "CName", + "A" + ] + } + }, + hostNameType: { + serializedName: "properties.hostNameType", + type: { + name: "Enum", + allowedValues: [ + "Verified", + "Managed" + ] + } + }, + sslState: { + serializedName: "properties.sslState", + type: { + name: "Enum", + allowedValues: [ + "Disabled", + "SniEnabled", + "IpBasedEnabled" + ] + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + virtualIP: { + readOnly: true, + serializedName: "properties.virtualIP", + type: { + name: "String" + } + } + } + } +}; + +export const HttpLogsConfig: msRest.CompositeMapper = { + serializedName: "HttpLogsConfig", + type: { + name: "Composite", + className: "HttpLogsConfig", + modelProperties: { + fileSystem: { + serializedName: "fileSystem", + type: { + name: "Composite", + className: "FileSystemHttpLogsConfig" + } + }, + azureBlobStorage: { + serializedName: "azureBlobStorage", + type: { + name: "Composite", + className: "AzureBlobStorageHttpLogsConfig" + } + } + } + } +}; + +export const MSDeploy: msRest.CompositeMapper = { + serializedName: "MSDeploy", + type: { + name: "Composite", + className: "MSDeploy", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + packageUri: { + serializedName: "properties.packageUri", + type: { + name: "String" + } + }, + connectionString: { + serializedName: "properties.connectionString", + type: { + name: "String" + } + }, + dbType: { + serializedName: "properties.dbType", + type: { + name: "String" + } + }, + setParametersXmlFileUri: { + serializedName: "properties.setParametersXmlFileUri", + type: { + name: "String" + } + }, + setParameters: { + serializedName: "properties.setParameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + skipAppData: { + serializedName: "properties.skipAppData", + type: { + name: "Boolean" + } + }, + appOffline: { + serializedName: "properties.appOffline", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MSDeployLogEntry: msRest.CompositeMapper = { + serializedName: "MSDeployLogEntry", + type: { + name: "Composite", + className: "MSDeployLogEntry", + modelProperties: { + time: { + readOnly: true, + serializedName: "time", + type: { + name: "DateTime" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "Message", + "Warning", + "Error" + ] + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const MSDeployLog: msRest.CompositeMapper = { + serializedName: "MSDeployLog", + type: { + name: "Composite", + className: "MSDeployLog", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + entries: { + readOnly: true, + serializedName: "properties.entries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MSDeployLogEntry" + } + } + } + } + } + } +}; + +export const MSDeployStatus: msRest.CompositeMapper = { + serializedName: "MSDeployStatus", + type: { + name: "Composite", + className: "MSDeployStatus", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + deployer: { + readOnly: true, + serializedName: "properties.deployer", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "accepted", + "running", + "succeeded", + "failed", + "canceled" + ] + } + }, + startTime: { + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + complete: { + readOnly: true, + serializedName: "properties.complete", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MigrateMySqlRequest: msRest.CompositeMapper = { + serializedName: "MigrateMySqlRequest", + type: { + name: "Composite", + className: "MigrateMySqlRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + connectionString: { + required: true, + serializedName: "properties.connectionString", + type: { + name: "String" + } + }, + migrationType: { + required: true, + serializedName: "properties.migrationType", + type: { + name: "Enum", + allowedValues: [ + "LocalToRemote", + "RemoteToLocal" + ] + } + } + } + } +}; + +export const MigrateMySqlStatus: msRest.CompositeMapper = { + serializedName: "MigrateMySqlStatus", + type: { + name: "Composite", + className: "MigrateMySqlStatus", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + migrationOperationStatus: { + readOnly: true, + serializedName: "properties.migrationOperationStatus", + type: { + name: "Enum", + allowedValues: [ + "InProgress", + "Failed", + "Succeeded", + "TimedOut", + "Created" + ] + } + }, + operationId: { + readOnly: true, + serializedName: "properties.operationId", + type: { + name: "String" + } + }, + localMySqlEnabled: { + readOnly: true, + serializedName: "properties.localMySqlEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const RelayServiceConnectionEntity: msRest.CompositeMapper = { + serializedName: "RelayServiceConnectionEntity", + type: { + name: "Composite", + className: "RelayServiceConnectionEntity", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + entityName: { + serializedName: "properties.entityName", + type: { + name: "String" + } + }, + entityConnectionString: { + serializedName: "properties.entityConnectionString", + type: { + name: "String" + } + }, + resourceType: { + serializedName: "properties.resourceType", + type: { + name: "String" + } + }, + resourceConnectionString: { + serializedName: "properties.resourceConnectionString", + type: { + name: "String" + } + }, + hostname: { + serializedName: "properties.hostname", + type: { + name: "String" + } + }, + port: { + serializedName: "properties.port", + type: { + name: "Number" + } + }, + biztalkUri: { + serializedName: "properties.biztalkUri", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFeatures: msRest.CompositeMapper = { + serializedName: "NetworkFeatures", + type: { + name: "Composite", + className: "NetworkFeatures", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + virtualNetworkName: { + readOnly: true, + serializedName: "properties.virtualNetworkName", + type: { + name: "String" + } + }, + virtualNetworkConnection: { + readOnly: true, + serializedName: "properties.virtualNetworkConnection", + type: { + name: "Composite", + className: "VnetInfo" + } + }, + hybridConnections: { + readOnly: true, + serializedName: "properties.hybridConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RelayServiceConnectionEntity" + } + } + } + }, + hybridConnectionsV2: { + readOnly: true, + serializedName: "properties.hybridConnectionsV2", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridConnection" + } + } + } + } + } + } +}; + +export const NetworkTrace: msRest.CompositeMapper = { + serializedName: "NetworkTrace", + type: { + name: "Composite", + className: "NetworkTrace", + modelProperties: { + path: { + serializedName: "path", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const PerfMonSample: msRest.CompositeMapper = { + serializedName: "PerfMonSample", + type: { + name: "Composite", + className: "PerfMonSample", + modelProperties: { + time: { + serializedName: "time", + type: { + name: "DateTime" + } + }, + instanceName: { + serializedName: "instanceName", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Number" + } + } + } + } +}; + +export const PerfMonSet: msRest.CompositeMapper = { + serializedName: "PerfMonSet", + type: { + name: "Composite", + className: "PerfMonSet", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PerfMonSample" + } + } + } + } + } + } +}; + +export const PerfMonResponse: msRest.CompositeMapper = { + serializedName: "PerfMonResponse", + type: { + name: "Composite", + className: "PerfMonResponse", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + data: { + serializedName: "data", + type: { + name: "Composite", + className: "PerfMonSet" + } + } + } + } +}; + +export const PremierAddOn: msRest.CompositeMapper = { + serializedName: "PremierAddOn", + type: { + name: "Composite", + className: "PremierAddOn", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "properties.sku", + type: { + name: "String" + } + }, + product: { + serializedName: "properties.product", + type: { + name: "String" + } + }, + vendor: { + serializedName: "properties.vendor", + type: { + name: "String" + } + }, + marketplacePublisher: { + serializedName: "properties.marketplacePublisher", + type: { + name: "String" + } + }, + marketplaceOffer: { + serializedName: "properties.marketplaceOffer", + type: { + name: "String" + } + } + } + } +}; + +export const PremierAddOnPatchResource: msRest.CompositeMapper = { + serializedName: "PremierAddOnPatchResource", + type: { + name: "Composite", + className: "PremierAddOnPatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + sku: { + serializedName: "properties.sku", + type: { + name: "String" + } + }, + product: { + serializedName: "properties.product", + type: { + name: "String" + } + }, + vendor: { + serializedName: "properties.vendor", + type: { + name: "String" + } + }, + marketplacePublisher: { + serializedName: "properties.marketplacePublisher", + type: { + name: "String" + } + }, + marketplaceOffer: { + serializedName: "properties.marketplaceOffer", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateAccessSubnet: msRest.CompositeMapper = { + serializedName: "PrivateAccessSubnet", + type: { + name: "Composite", + className: "PrivateAccessSubnet", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "Number" + } + } + } + } +}; + +export const PrivateAccessVirtualNetwork: msRest.CompositeMapper = { + serializedName: "PrivateAccessVirtualNetwork", + type: { + name: "Composite", + className: "PrivateAccessVirtualNetwork", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "Number" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + subnets: { + serializedName: "subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateAccessSubnet" + } + } + } + } + } + } +}; + +export const PrivateAccess: msRest.CompositeMapper = { + serializedName: "PrivateAccess", + type: { + name: "Composite", + className: "PrivateAccess", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + virtualNetworks: { + serializedName: "properties.virtualNetworks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateAccessVirtualNetwork" + } + } + } + } + } + } +}; + +export const ProcessThreadInfo: msRest.CompositeMapper = { + serializedName: "ProcessThreadInfo", + type: { + name: "Composite", + className: "ProcessThreadInfo", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + identifier: { + readOnly: true, + serializedName: "properties.identifier", + type: { + name: "Number" + } + }, + href: { + serializedName: "properties.href", + type: { + name: "String" + } + }, + process: { + serializedName: "properties.process", + type: { + name: "String" + } + }, + startAddress: { + serializedName: "properties.start_address", + type: { + name: "String" + } + }, + currentPriority: { + serializedName: "properties.current_priority", + type: { + name: "Number" + } + }, + priorityLevel: { + serializedName: "properties.priority_level", + type: { + name: "String" + } + }, + basePriority: { + serializedName: "properties.base_priority", + type: { + name: "Number" + } + }, + startTime: { + serializedName: "properties.start_time", + type: { + name: "DateTime" + } + }, + totalProcessorTime: { + serializedName: "properties.total_processor_time", + type: { + name: "String" + } + }, + userProcessorTime: { + serializedName: "properties.user_processor_time", + type: { + name: "String" + } + }, + priviledgedProcessorTime: { + serializedName: "properties.priviledged_processor_time", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + waitReason: { + serializedName: "properties.wait_reason", + type: { + name: "String" + } + } + } + } +}; + +export const ProcessModuleInfo: msRest.CompositeMapper = { + serializedName: "ProcessModuleInfo", + type: { + name: "Composite", + className: "ProcessModuleInfo", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + baseAddress: { + serializedName: "properties.base_address", + type: { + name: "String" + } + }, + fileName: { + serializedName: "properties.file_name", + type: { + name: "String" + } + }, + href: { + serializedName: "properties.href", + type: { + name: "String" + } + }, + filePath: { + serializedName: "properties.file_path", + type: { + name: "String" + } + }, + moduleMemorySize: { + serializedName: "properties.module_memory_size", + type: { + name: "Number" + } + }, + fileVersion: { + serializedName: "properties.file_version", + type: { + name: "String" + } + }, + fileDescription: { + serializedName: "properties.file_description", + type: { + name: "String" + } + }, + product: { + serializedName: "properties.product", + type: { + name: "String" + } + }, + productVersion: { + serializedName: "properties.product_version", + type: { + name: "String" + } + }, + isDebug: { + serializedName: "properties.is_debug", + type: { + name: "Boolean" + } + }, + language: { + serializedName: "properties.language", + type: { + name: "String" + } + } + } + } +}; + +export const ProcessInfo: msRest.CompositeMapper = { + serializedName: "ProcessInfo", + type: { + name: "Composite", + className: "ProcessInfo", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + identifier: { + readOnly: true, + serializedName: "properties.identifier", + type: { + name: "Number" + } + }, + deploymentName: { + serializedName: "properties.deployment_name", + type: { + name: "String" + } + }, + href: { + serializedName: "properties.href", + type: { + name: "String" + } + }, + minidump: { + serializedName: "properties.minidump", + type: { + name: "String" + } + }, + isProfileRunning: { + serializedName: "properties.is_profile_running", + type: { + name: "Boolean" + } + }, + isIisProfileRunning: { + serializedName: "properties.is_iis_profile_running", + type: { + name: "Boolean" + } + }, + iisProfileTimeoutInSeconds: { + serializedName: "properties.iis_profile_timeout_in_seconds", + type: { + name: "Number" + } + }, + parent: { + serializedName: "properties.parent", + type: { + name: "String" + } + }, + children: { + serializedName: "properties.children", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + threads: { + serializedName: "properties.threads", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProcessThreadInfo" + } + } + } + }, + openFileHandles: { + serializedName: "properties.open_file_handles", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + modules: { + serializedName: "properties.modules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProcessModuleInfo" + } + } + } + }, + fileName: { + serializedName: "properties.file_name", + type: { + name: "String" + } + }, + commandLine: { + serializedName: "properties.command_line", + type: { + name: "String" + } + }, + userName: { + serializedName: "properties.user_name", + type: { + name: "String" + } + }, + handleCount: { + serializedName: "properties.handle_count", + type: { + name: "Number" + } + }, + moduleCount: { + serializedName: "properties.module_count", + type: { + name: "Number" + } + }, + threadCount: { + serializedName: "properties.thread_count", + type: { + name: "Number" + } + }, + startTime: { + serializedName: "properties.start_time", + type: { + name: "DateTime" + } + }, + totalCpuTime: { + serializedName: "properties.total_cpu_time", + type: { + name: "String" + } + }, + userCpuTime: { + serializedName: "properties.user_cpu_time", + type: { + name: "String" + } + }, + privilegedCpuTime: { + serializedName: "properties.privileged_cpu_time", + type: { + name: "String" + } + }, + workingSet: { + serializedName: "properties.working_set", + type: { + name: "Number" + } + }, + peakWorkingSet: { + serializedName: "properties.peak_working_set", + type: { + name: "Number" + } + }, + privateMemory: { + serializedName: "properties.private_memory", + type: { + name: "Number" + } + }, + virtualMemory: { + serializedName: "properties.virtual_memory", + type: { + name: "Number" + } + }, + peakVirtualMemory: { + serializedName: "properties.peak_virtual_memory", + type: { + name: "Number" + } + }, + pagedSystemMemory: { + serializedName: "properties.paged_system_memory", + type: { + name: "Number" + } + }, + nonPagedSystemMemory: { + serializedName: "properties.non_paged_system_memory", + type: { + name: "Number" + } + }, + pagedMemory: { + serializedName: "properties.paged_memory", + type: { + name: "Number" + } + }, + peakPagedMemory: { + serializedName: "properties.peak_paged_memory", + type: { + name: "Number" + } + }, + timeStamp: { + serializedName: "properties.time_stamp", + type: { + name: "DateTime" + } + }, + environmentVariables: { + serializedName: "properties.environment_variables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + isScmSite: { + serializedName: "properties.is_scm_site", + type: { + name: "Boolean" + } + }, + isWebjob: { + serializedName: "properties.is_webjob", + type: { + name: "Boolean" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const PublicCertificate: msRest.CompositeMapper = { + serializedName: "PublicCertificate", + type: { + name: "Composite", + className: "PublicCertificate", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + blob: { + serializedName: "properties.blob", + type: { + name: "ByteArray" + } + }, + publicCertificateLocation: { + serializedName: "properties.publicCertificateLocation", + type: { + name: "Enum", + allowedValues: [ + "CurrentUserMy", + "LocalMachineMy", + "Unknown" + ] + } + }, + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", + type: { + name: "String" + } + } + } + } +}; + +export const RestoreRequest: msRest.CompositeMapper = { + serializedName: "RestoreRequest", + type: { + name: "Composite", + className: "RestoreRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + storageAccountUrl: { + required: true, + serializedName: "properties.storageAccountUrl", + type: { + name: "String" + } + }, + blobName: { + serializedName: "properties.blobName", + type: { + name: "String" + } + }, + overwrite: { + required: true, + serializedName: "properties.overwrite", + type: { + name: "Boolean" + } + }, + siteName: { + serializedName: "properties.siteName", + type: { + name: "String" + } + }, + databases: { + serializedName: "properties.databases", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseBackupSetting" + } + } + } + }, + ignoreConflictingHostNames: { + serializedName: "properties.ignoreConflictingHostNames", + defaultValue: false, + type: { + name: "Boolean" + } + }, + ignoreDatabases: { + serializedName: "properties.ignoreDatabases", + defaultValue: false, + type: { + name: "Boolean" + } + }, + appServicePlan: { + serializedName: "properties.appServicePlan", + type: { + name: "String" + } + }, + operationType: { + serializedName: "properties.operationType", + defaultValue: 'Default', + type: { + name: "Enum", + allowedValues: [ + "Default", + "Clone", + "Relocation", + "Snapshot", + "CloudFS" + ] + } + }, + adjustConnectionStrings: { + serializedName: "properties.adjustConnectionStrings", + type: { + name: "Boolean" + } + }, + hostingEnvironment: { + serializedName: "properties.hostingEnvironment", + type: { + name: "String" + } + } + } + } +}; + +export const SiteAuthSettings: msRest.CompositeMapper = { + serializedName: "SiteAuthSettings", + type: { + name: "Composite", + className: "SiteAuthSettings", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + runtimeVersion: { + serializedName: "properties.runtimeVersion", + type: { + name: "String" + } + }, + unauthenticatedClientAction: { + serializedName: "properties.unauthenticatedClientAction", + type: { + name: "Enum", + allowedValues: [ + "RedirectToLoginPage", + "AllowAnonymous" + ] + } + }, + tokenStoreEnabled: { + serializedName: "properties.tokenStoreEnabled", + type: { + name: "Boolean" + } + }, + allowedExternalRedirectUrls: { + serializedName: "properties.allowedExternalRedirectUrls", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + defaultProvider: { + serializedName: "properties.defaultProvider", + type: { + name: "Enum", + allowedValues: [ + "AzureActiveDirectory", + "Facebook", + "Google", + "MicrosoftAccount", + "Twitter" + ] + } + }, + tokenRefreshExtensionHours: { + serializedName: "properties.tokenRefreshExtensionHours", + type: { + name: "Number" + } + }, + clientId: { + serializedName: "properties.clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "properties.clientSecret", + type: { + name: "String" + } + }, + issuer: { + serializedName: "properties.issuer", + type: { + name: "String" + } + }, + validateIssuer: { + serializedName: "properties.validateIssuer", + type: { + name: "Boolean" + } + }, + allowedAudiences: { + serializedName: "properties.allowedAudiences", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + additionalLoginParams: { + serializedName: "properties.additionalLoginParams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + googleClientId: { + serializedName: "properties.googleClientId", + type: { + name: "String" + } + }, + googleClientSecret: { + serializedName: "properties.googleClientSecret", + type: { + name: "String" + } + }, + googleOAuthScopes: { + serializedName: "properties.googleOAuthScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + facebookAppId: { + serializedName: "properties.facebookAppId", + type: { + name: "String" + } + }, + facebookAppSecret: { + serializedName: "properties.facebookAppSecret", + type: { + name: "String" + } + }, + facebookOAuthScopes: { + serializedName: "properties.facebookOAuthScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + twitterConsumerKey: { + serializedName: "properties.twitterConsumerKey", + type: { + name: "String" + } + }, + twitterConsumerSecret: { + serializedName: "properties.twitterConsumerSecret", + type: { + name: "String" + } + }, + microsoftAccountClientId: { + serializedName: "properties.microsoftAccountClientId", + type: { + name: "String" + } + }, + microsoftAccountClientSecret: { + serializedName: "properties.microsoftAccountClientSecret", + type: { + name: "String" + } + }, + microsoftAccountOAuthScopes: { + serializedName: "properties.microsoftAccountOAuthScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SiteCloneabilityCriterion: msRest.CompositeMapper = { + serializedName: "SiteCloneabilityCriterion", + type: { + name: "Composite", + className: "SiteCloneabilityCriterion", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const SiteCloneability: msRest.CompositeMapper = { + serializedName: "SiteCloneability", + type: { + name: "Composite", + className: "SiteCloneability", + modelProperties: { + result: { + serializedName: "result", + type: { + name: "Enum", + allowedValues: [ + "Cloneable", + "PartiallyCloneable", + "NotCloneable" + ] + } + }, + blockingFeatures: { + serializedName: "blockingFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteCloneabilityCriterion" + } + } + } + }, + unsupportedFeatures: { + serializedName: "unsupportedFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteCloneabilityCriterion" + } + } + } + }, + blockingCharacteristics: { + serializedName: "blockingCharacteristics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteCloneabilityCriterion" + } + } + } + } + } + } +}; + +export const SiteConfigResource: msRest.CompositeMapper = { + serializedName: "SiteConfigResource", + type: { + name: "Composite", + className: "SiteConfigResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + numberOfWorkers: { + serializedName: "properties.numberOfWorkers", + type: { + name: "Number" + } + }, + defaultDocuments: { + serializedName: "properties.defaultDocuments", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + netFrameworkVersion: { + serializedName: "properties.netFrameworkVersion", + defaultValue: 'v4.6', + type: { + name: "String" + } + }, + phpVersion: { + serializedName: "properties.phpVersion", + type: { + name: "String" + } + }, + pythonVersion: { + serializedName: "properties.pythonVersion", + type: { + name: "String" + } + }, + nodeVersion: { + serializedName: "properties.nodeVersion", + type: { + name: "String" + } + }, + linuxFxVersion: { + serializedName: "properties.linuxFxVersion", + type: { + name: "String" + } + }, + windowsFxVersion: { + serializedName: "properties.windowsFxVersion", + type: { + name: "String" + } + }, + requestTracingEnabled: { + serializedName: "properties.requestTracingEnabled", + type: { + name: "Boolean" + } + }, + requestTracingExpirationTime: { + serializedName: "properties.requestTracingExpirationTime", + type: { + name: "DateTime" + } + }, + remoteDebuggingEnabled: { + serializedName: "properties.remoteDebuggingEnabled", + type: { + name: "Boolean" + } + }, + remoteDebuggingVersion: { + serializedName: "properties.remoteDebuggingVersion", + type: { + name: "String" + } + }, + httpLoggingEnabled: { + serializedName: "properties.httpLoggingEnabled", + type: { + name: "Boolean" + } + }, + logsDirectorySizeLimit: { + serializedName: "properties.logsDirectorySizeLimit", + type: { + name: "Number" + } + }, + detailedErrorLoggingEnabled: { + serializedName: "properties.detailedErrorLoggingEnabled", + type: { + name: "Boolean" + } + }, + publishingUsername: { + serializedName: "properties.publishingUsername", + type: { + name: "String" + } + }, + appSettings: { + serializedName: "properties.appSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + }, + azureStorageAccounts: { + serializedName: "properties.azureStorageAccounts", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AzureStorageInfoValue" + } + } + } + }, + connectionStrings: { + serializedName: "properties.connectionStrings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnStringInfo" + } + } + } + }, + machineKey: { + readOnly: true, + serializedName: "properties.machineKey", + type: { + name: "Composite", + className: "SiteMachineKey" + } + }, + handlerMappings: { + serializedName: "properties.handlerMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HandlerMapping" + } + } + } + }, + documentRoot: { + serializedName: "properties.documentRoot", + type: { + name: "String" + } + }, + scmType: { + serializedName: "properties.scmType", + type: { + name: "String" + } + }, + use32BitWorkerProcess: { + serializedName: "properties.use32BitWorkerProcess", + type: { + name: "Boolean" + } + }, + webSocketsEnabled: { + serializedName: "properties.webSocketsEnabled", + type: { + name: "Boolean" + } + }, + alwaysOn: { + serializedName: "properties.alwaysOn", + type: { + name: "Boolean" + } + }, + javaVersion: { + serializedName: "properties.javaVersion", + type: { + name: "String" + } + }, + javaContainer: { + serializedName: "properties.javaContainer", + type: { + name: "String" + } + }, + javaContainerVersion: { + serializedName: "properties.javaContainerVersion", + type: { + name: "String" + } + }, + appCommandLine: { + serializedName: "properties.appCommandLine", + type: { + name: "String" + } + }, + managedPipelineMode: { + serializedName: "properties.managedPipelineMode", + type: { + name: "Enum", + allowedValues: [ + "Integrated", + "Classic" + ] + } + }, + virtualApplications: { + serializedName: "properties.virtualApplications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualApplication" + } + } + } + }, + loadBalancing: { + serializedName: "properties.loadBalancing", + type: { + name: "Enum", + allowedValues: [ + "WeightedRoundRobin", + "LeastRequests", + "LeastResponseTime", + "WeightedTotalTraffic", + "RequestHash" + ] + } + }, + experiments: { + serializedName: "properties.experiments", + type: { + name: "Composite", + className: "Experiments" + } + }, + limits: { + serializedName: "properties.limits", + type: { + name: "Composite", + className: "SiteLimits" + } + }, + autoHealEnabled: { + serializedName: "properties.autoHealEnabled", + type: { + name: "Boolean" + } + }, + autoHealRules: { + serializedName: "properties.autoHealRules", + type: { + name: "Composite", + className: "AutoHealRules" + } + }, + tracingOptions: { + serializedName: "properties.tracingOptions", + type: { + name: "String" + } + }, + vnetName: { + serializedName: "properties.vnetName", + type: { + name: "String" + } + }, + cors: { + serializedName: "properties.cors", + type: { + name: "Composite", + className: "CorsSettings" + } + }, + push: { + serializedName: "properties.push", + type: { + name: "Composite", + className: "PushSettings" + } + }, + apiDefinition: { + serializedName: "properties.apiDefinition", + type: { + name: "Composite", + className: "ApiDefinitionInfo" + } + }, + autoSwapSlotName: { + serializedName: "properties.autoSwapSlotName", + type: { + name: "String" + } + }, + localMySqlEnabled: { + serializedName: "properties.localMySqlEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + managedServiceIdentityId: { + serializedName: "properties.managedServiceIdentityId", + type: { + name: "Number" + } + }, + xManagedServiceIdentityId: { + serializedName: "properties.xManagedServiceIdentityId", + type: { + name: "Number" + } + }, + ipSecurityRestrictions: { + serializedName: "properties.ipSecurityRestrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpSecurityRestriction" + } + } + } + }, + http20Enabled: { + serializedName: "properties.http20Enabled", + defaultValue: true, + type: { + name: "Boolean" + } + }, + minTlsVersion: { + serializedName: "properties.minTlsVersion", + type: { + name: "String" + } + }, + ftpsState: { + serializedName: "properties.ftpsState", + type: { + name: "String" + } + }, + reservedInstanceCount: { + serializedName: "properties.reservedInstanceCount", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const SiteConfigurationSnapshotInfo: msRest.CompositeMapper = { + serializedName: "SiteConfigurationSnapshotInfo", + type: { + name: "Composite", + className: "SiteConfigurationSnapshotInfo", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + time: { + readOnly: true, + serializedName: "properties.time", + type: { + name: "DateTime" + } + }, + snapshotId: { + readOnly: true, + serializedName: "properties.snapshotId", + type: { + name: "Number" + } + } + } + } +}; + +export const SiteExtensionInfo: msRest.CompositeMapper = { + serializedName: "SiteExtensionInfo", + type: { + name: "Composite", + className: "SiteExtensionInfo", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + extensionId: { + serializedName: "properties.extension_id", + type: { + name: "String" + } + }, + title: { + serializedName: "properties.title", + type: { + name: "String" + } + }, + extensionType: { + serializedName: "properties.extension_type", + type: { + name: "Enum", + allowedValues: [ + "Gallery", + "WebRoot" + ] + } + }, + summary: { + serializedName: "properties.summary", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + extensionUrl: { + serializedName: "properties.extension_url", + type: { + name: "String" + } + }, + projectUrl: { + serializedName: "properties.project_url", + type: { + name: "String" + } + }, + iconUrl: { + serializedName: "properties.icon_url", + type: { + name: "String" + } + }, + licenseUrl: { + serializedName: "properties.license_url", + type: { + name: "String" + } + }, + feedUrl: { + serializedName: "properties.feed_url", + type: { + name: "String" + } + }, + authors: { + serializedName: "properties.authors", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + installerCommandLineParams: { + serializedName: "properties.installer_command_line_params", + type: { + name: "String" + } + }, + publishedDateTime: { + serializedName: "properties.published_date_time", + type: { + name: "DateTime" + } + }, + downloadCount: { + serializedName: "properties.download_count", + type: { + name: "Number" + } + }, + localIsLatestVersion: { + serializedName: "properties.local_is_latest_version", + type: { + name: "Boolean" + } + }, + localPath: { + serializedName: "properties.local_path", + type: { + name: "String" + } + }, + installedDateTime: { + serializedName: "properties.installed_date_time", + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + comment: { + serializedName: "properties.comment", + type: { + name: "String" + } + } + } + } +}; + +export const SiteInstance: msRest.CompositeMapper = { + serializedName: "SiteInstance", + type: { + name: "Composite", + className: "SiteInstance", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + siteInstanceName: { + readOnly: true, + serializedName: "properties.siteInstanceName", + type: { + name: "String" + } + } + } + } +}; + +export const SiteLogsConfig: msRest.CompositeMapper = { + serializedName: "SiteLogsConfig", + type: { + name: "Composite", + className: "SiteLogsConfig", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + applicationLogs: { + serializedName: "properties.applicationLogs", + type: { + name: "Composite", + className: "ApplicationLogsConfig" + } + }, + httpLogs: { + serializedName: "properties.httpLogs", + type: { + name: "Composite", + className: "HttpLogsConfig" + } + }, + failedRequestsTracing: { + serializedName: "properties.failedRequestsTracing", + type: { + name: "Composite", + className: "EnabledConfig" + } + }, + detailedErrorMessages: { + serializedName: "properties.detailedErrorMessages", + type: { + name: "Composite", + className: "EnabledConfig" + } + } + } + } +}; + +export const SitePatchResource: msRest.CompositeMapper = { + serializedName: "SitePatchResource", + type: { + name: "Composite", + className: "SitePatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + hostNames: { + readOnly: true, + serializedName: "properties.hostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + repositorySiteName: { + readOnly: true, + serializedName: "properties.repositorySiteName", + type: { + name: "String" + } + }, + usageState: { + readOnly: true, + serializedName: "properties.usageState", + type: { + name: "Enum", + allowedValues: [ + "Normal", + "Exceeded" + ] + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + enabledHostNames: { + readOnly: true, + serializedName: "properties.enabledHostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + availabilityState: { + readOnly: true, + serializedName: "properties.availabilityState", + type: { + name: "Enum", + allowedValues: [ + "Normal", + "Limited", + "DisasterRecoveryMode" + ] + } + }, + hostNameSslStates: { + serializedName: "properties.hostNameSslStates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostNameSslState" + } + } + } + }, + serverFarmId: { + serializedName: "properties.serverFarmId", + type: { + name: "String" + } + }, + reserved: { + serializedName: "properties.reserved", + defaultValue: false, + type: { + name: "Boolean" + } + }, + isXenon: { + serializedName: "properties.isXenon", + defaultValue: false, + type: { + name: "Boolean" + } + }, + hyperV: { + serializedName: "properties.hyperV", + defaultValue: false, + type: { + name: "Boolean" + } + }, + lastModifiedTimeUtc: { + readOnly: true, + serializedName: "properties.lastModifiedTimeUtc", + type: { + name: "DateTime" + } + }, + siteConfig: { + serializedName: "properties.siteConfig", + type: { + name: "Composite", + className: "SiteConfig" + } + }, + trafficManagerHostNames: { + readOnly: true, + serializedName: "properties.trafficManagerHostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + scmSiteAlsoStopped: { + serializedName: "properties.scmSiteAlsoStopped", + defaultValue: false, + type: { + name: "Boolean" + } + }, + targetSwapSlot: { + readOnly: true, + serializedName: "properties.targetSwapSlot", + type: { + name: "String" + } + }, + hostingEnvironmentProfile: { + serializedName: "properties.hostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile" + } + }, + clientAffinityEnabled: { + serializedName: "properties.clientAffinityEnabled", + type: { + name: "Boolean" + } + }, + clientCertEnabled: { + serializedName: "properties.clientCertEnabled", + type: { + name: "Boolean" + } + }, + hostNamesDisabled: { + serializedName: "properties.hostNamesDisabled", + type: { + name: "Boolean" + } + }, + outboundIpAddresses: { + readOnly: true, + serializedName: "properties.outboundIpAddresses", + type: { + name: "String" + } + }, + possibleOutboundIpAddresses: { + readOnly: true, + serializedName: "properties.possibleOutboundIpAddresses", + type: { + name: "String" + } + }, + containerSize: { + serializedName: "properties.containerSize", + type: { + name: "Number" + } + }, + dailyMemoryTimeQuota: { + serializedName: "properties.dailyMemoryTimeQuota", + type: { + name: "Number" + } + }, + suspendedTill: { + readOnly: true, + serializedName: "properties.suspendedTill", + type: { + name: "DateTime" + } + }, + maxNumberOfWorkers: { + readOnly: true, + serializedName: "properties.maxNumberOfWorkers", + type: { + name: "Number" + } + }, + cloningInfo: { + serializedName: "properties.cloningInfo", + type: { + name: "Composite", + className: "CloningInfo" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + isDefaultContainer: { + readOnly: true, + serializedName: "properties.isDefaultContainer", + type: { + name: "Boolean" + } + }, + defaultHostName: { + readOnly: true, + serializedName: "properties.defaultHostName", + type: { + name: "String" + } + }, + slotSwapStatus: { + readOnly: true, + serializedName: "properties.slotSwapStatus", + type: { + name: "Composite", + className: "SlotSwapStatus" + } + }, + httpsOnly: { + serializedName: "properties.httpsOnly", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SitePhpErrorLogFlag: msRest.CompositeMapper = { + serializedName: "SitePhpErrorLogFlag", + type: { + name: "Composite", + className: "SitePhpErrorLogFlag", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + localLogErrors: { + serializedName: "properties.localLogErrors", + type: { + name: "String" + } + }, + masterLogErrors: { + serializedName: "properties.masterLogErrors", + type: { + name: "String" + } + }, + localLogErrorsMaxLength: { + serializedName: "properties.localLogErrorsMaxLength", + type: { + name: "String" + } + }, + masterLogErrorsMaxLength: { + serializedName: "properties.masterLogErrorsMaxLength", + type: { + name: "String" + } + } + } + } +}; + +export const SiteSourceControl: msRest.CompositeMapper = { + serializedName: "SiteSourceControl", + type: { + name: "Composite", + className: "SiteSourceControl", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + repoUrl: { + serializedName: "properties.repoUrl", + type: { + name: "String" + } + }, + branch: { + serializedName: "properties.branch", + type: { + name: "String" + } + }, + isManualIntegration: { + serializedName: "properties.isManualIntegration", + type: { + name: "Boolean" + } + }, + deploymentRollbackEnabled: { + serializedName: "properties.deploymentRollbackEnabled", + type: { + name: "Boolean" + } + }, + isMercurial: { + serializedName: "properties.isMercurial", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SlotConfigNamesResource: msRest.CompositeMapper = { + serializedName: "SlotConfigNamesResource", + type: { + name: "Composite", + className: "SlotConfigNamesResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + connectionStringNames: { + serializedName: "properties.connectionStringNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + appSettingNames: { + serializedName: "properties.appSettingNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + azureStorageConfigNames: { + serializedName: "properties.azureStorageConfigNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SlotDifference: msRest.CompositeMapper = { + serializedName: "SlotDifference", + type: { + name: "Composite", + className: "SlotDifference", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + level: { + readOnly: true, + serializedName: "properties.level", + type: { + name: "String" + } + }, + settingType: { + readOnly: true, + serializedName: "properties.settingType", + type: { + name: "String" + } + }, + diffRule: { + readOnly: true, + serializedName: "properties.diffRule", + type: { + name: "String" + } + }, + settingName: { + readOnly: true, + serializedName: "properties.settingName", + type: { + name: "String" + } + }, + valueInCurrentSlot: { + readOnly: true, + serializedName: "properties.valueInCurrentSlot", + type: { + name: "String" + } + }, + valueInTargetSlot: { + readOnly: true, + serializedName: "properties.valueInTargetSlot", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const SnapshotRecoverySource: msRest.CompositeMapper = { + serializedName: "SnapshotRecoverySource", + type: { + name: "Composite", + className: "SnapshotRecoverySource", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const SnapshotRestoreRequest: msRest.CompositeMapper = { + serializedName: "SnapshotRestoreRequest", + type: { + name: "Composite", + className: "SnapshotRestoreRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + snapshotTime: { + serializedName: "properties.snapshotTime", + type: { + name: "String" + } + }, + recoverySource: { + serializedName: "properties.recoverySource", + type: { + name: "Composite", + className: "SnapshotRecoverySource" + } + }, + overwrite: { + required: true, + serializedName: "properties.overwrite", + type: { + name: "Boolean" + } + }, + recoverConfiguration: { + serializedName: "properties.recoverConfiguration", + type: { + name: "Boolean" + } + }, + ignoreConflictingHostNames: { + serializedName: "properties.ignoreConflictingHostNames", + type: { + name: "Boolean" + } + } + } + } +}; + +export const StorageMigrationOptions: msRest.CompositeMapper = { + serializedName: "StorageMigrationOptions", + type: { + name: "Composite", + className: "StorageMigrationOptions", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + azurefilesConnectionString: { + required: true, + serializedName: "properties.azurefilesConnectionString", + type: { + name: "String" + } + }, + azurefilesShare: { + required: true, + serializedName: "properties.azurefilesShare", + type: { + name: "String" + } + }, + switchSiteAfterMigration: { + serializedName: "properties.switchSiteAfterMigration", + defaultValue: false, + type: { + name: "Boolean" + } + }, + blockWriteAccessToSite: { + serializedName: "properties.blockWriteAccessToSite", + defaultValue: false, + type: { + name: "Boolean" + } + } + } + } +}; + +export const StorageMigrationResponse: msRest.CompositeMapper = { + serializedName: "StorageMigrationResponse", + type: { + name: "Composite", + className: "StorageMigrationResponse", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + operationId: { + readOnly: true, + serializedName: "properties.operationId", + type: { + name: "String" + } + } + } + } +}; + +export const StringDictionary: msRest.CompositeMapper = { + serializedName: "StringDictionary", + type: { + name: "Composite", + className: "StringDictionary", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SwiftVirtualNetwork: msRest.CompositeMapper = { + serializedName: "SwiftVirtualNetwork", + type: { + name: "Composite", + className: "SwiftVirtualNetwork", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + subnetResourceId: { + serializedName: "properties.subnetResourceId", + type: { + name: "String" + } + }, + swiftSupported: { + serializedName: "properties.swiftSupported", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TriggeredJobRun: msRest.CompositeMapper = { + serializedName: "TriggeredJobRun", + type: { + name: "Composite", + className: "TriggeredJobRun", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + webJobId: { + serializedName: "properties.web_job_id", + type: { + name: "String" + } + }, + webJobName: { + serializedName: "properties.web_job_name", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Success", + "Failed", + "Error" + ] + } + }, + startTime: { + serializedName: "properties.start_time", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.end_time", + type: { + name: "DateTime" + } + }, + duration: { + serializedName: "properties.duration", + type: { + name: "String" + } + }, + outputUrl: { + serializedName: "properties.output_url", + type: { + name: "String" + } + }, + errorUrl: { + serializedName: "properties.error_url", + type: { + name: "String" + } + }, + url: { + serializedName: "properties.url", + type: { + name: "String" + } + }, + jobName: { + serializedName: "properties.job_name", + type: { + name: "String" + } + }, + trigger: { + serializedName: "properties.trigger", + type: { + name: "String" + } + } + } + } +}; + +export const TriggeredJobHistory: msRest.CompositeMapper = { + serializedName: "TriggeredJobHistory", + type: { + name: "Composite", + className: "TriggeredJobHistory", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + runs: { + serializedName: "properties.runs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TriggeredJobRun" + } + } + } + } + } + } +}; + +export const TriggeredWebJob: msRest.CompositeMapper = { + serializedName: "TriggeredWebJob", + type: { + name: "Composite", + className: "TriggeredWebJob", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + latestRun: { + serializedName: "properties.latest_run", + type: { + name: "Composite", + className: "TriggeredJobRun" + } + }, + historyUrl: { + serializedName: "properties.history_url", + type: { + name: "String" + } + }, + schedulerLogsUrl: { + serializedName: "properties.scheduler_logs_url", + type: { + name: "String" + } + }, + runCommand: { + serializedName: "properties.run_command", + type: { + name: "String" + } + }, + url: { + serializedName: "properties.url", + type: { + name: "String" + } + }, + extraInfoUrl: { + serializedName: "properties.extra_info_url", + type: { + name: "String" + } + }, + webJobType: { + serializedName: "properties.web_job_type", + type: { + name: "Enum", + allowedValues: [ + "Continuous", + "Triggered" + ] + } + }, + error: { + serializedName: "properties.error", + type: { + name: "String" + } + }, + usingSdk: { + serializedName: "properties.using_sdk", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + } + } + } +}; + +export const WebJob: msRest.CompositeMapper = { + serializedName: "WebJob", + type: { + name: "Composite", + className: "WebJob", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + runCommand: { + serializedName: "properties.run_command", + type: { + name: "String" + } + }, + url: { + serializedName: "properties.url", + type: { + name: "String" + } + }, + extraInfoUrl: { + serializedName: "properties.extra_info_url", + type: { + name: "String" + } + }, + webJobType: { + serializedName: "properties.web_job_type", + type: { + name: "Enum", + allowedValues: [ + "Continuous", + "Triggered" + ] + } + }, + error: { + serializedName: "properties.error", + type: { + name: "String" + } + }, + usingSdk: { + serializedName: "properties.using_sdk", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "properties.settings", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + } + } + } +}; + +export const AddressResponse: msRest.CompositeMapper = { + serializedName: "AddressResponse", + type: { + name: "Composite", + className: "AddressResponse", + modelProperties: { + serviceIpAddress: { + serializedName: "serviceIpAddress", + type: { + name: "String" + } + }, + internalIpAddress: { + serializedName: "internalIpAddress", + type: { + name: "String" + } + }, + outboundIpAddresses: { + serializedName: "outboundIpAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vipMappings: { + serializedName: "vipMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualIPMapping" + } + } + } + } + } + } +}; + +export const AppServiceEnvironmentResource: msRest.CompositeMapper = { + serializedName: "AppServiceEnvironmentResource", + type: { + name: "Composite", + className: "AppServiceEnvironmentResource", + modelProperties: { + ...Resource.type.modelProperties, + appServiceEnvironmentResourceName: { + required: true, + serializedName: "properties.name", + type: { + name: "String" + } + }, + appServiceEnvironmentResourceLocation: { + required: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Preparing", + "Ready", + "Scaling", + "Deleting" + ] + } + }, + vnetName: { + serializedName: "properties.vnetName", + type: { + name: "String" + } + }, + vnetResourceGroupName: { + serializedName: "properties.vnetResourceGroupName", + type: { + name: "String" + } + }, + vnetSubnetName: { + serializedName: "properties.vnetSubnetName", + type: { + name: "String" + } + }, + virtualNetwork: { + required: true, + serializedName: "properties.virtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkProfile" + } + }, + internalLoadBalancingMode: { + serializedName: "properties.internalLoadBalancingMode", + type: { + name: "Enum", + allowedValues: [ + "None", + "Web", + "Publishing" + ] + } + }, + multiSize: { + serializedName: "properties.multiSize", + type: { + name: "String" + } + }, + multiRoleCount: { + serializedName: "properties.multiRoleCount", + type: { + name: "Number" + } + }, + workerPools: { + required: true, + serializedName: "properties.workerPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkerPool" + } + } + } + }, + ipsslAddressCount: { + serializedName: "properties.ipsslAddressCount", + type: { + name: "Number" + } + }, + databaseEdition: { + readOnly: true, + serializedName: "properties.databaseEdition", + type: { + name: "String" + } + }, + databaseServiceObjective: { + readOnly: true, + serializedName: "properties.databaseServiceObjective", + type: { + name: "String" + } + }, + upgradeDomains: { + readOnly: true, + serializedName: "properties.upgradeDomains", + type: { + name: "Number" + } + }, + subscriptionId: { + readOnly: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + }, + dnsSuffix: { + serializedName: "properties.dnsSuffix", + type: { + name: "String" + } + }, + lastAction: { + readOnly: true, + serializedName: "properties.lastAction", + type: { + name: "String" + } + }, + lastActionResult: { + readOnly: true, + serializedName: "properties.lastActionResult", + type: { + name: "String" + } + }, + allowedMultiSizes: { + readOnly: true, + serializedName: "properties.allowedMultiSizes", + type: { + name: "String" + } + }, + allowedWorkerSizes: { + readOnly: true, + serializedName: "properties.allowedWorkerSizes", + type: { + name: "String" + } + }, + maximumNumberOfMachines: { + readOnly: true, + serializedName: "properties.maximumNumberOfMachines", + type: { + name: "Number" + } + }, + vipMappings: { + readOnly: true, + serializedName: "properties.vipMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualIPMapping" + } + } + } + }, + environmentCapacities: { + readOnly: true, + serializedName: "properties.environmentCapacities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StampCapacity" + } + } + } + }, + networkAccessControlList: { + serializedName: "properties.networkAccessControlList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkAccessControlEntry" + } + } + } + }, + environmentIsHealthy: { + readOnly: true, + serializedName: "properties.environmentIsHealthy", + type: { + name: "Boolean" + } + }, + environmentStatus: { + readOnly: true, + serializedName: "properties.environmentStatus", + type: { + name: "String" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + frontEndScaleFactor: { + serializedName: "properties.frontEndScaleFactor", + type: { + name: "Number" + } + }, + defaultFrontEndScaleFactor: { + readOnly: true, + serializedName: "properties.defaultFrontEndScaleFactor", + type: { + name: "Number" + } + }, + apiManagementAccountId: { + serializedName: "properties.apiManagementAccountId", + type: { + name: "String" + } + }, + suspended: { + serializedName: "properties.suspended", + type: { + name: "Boolean" + } + }, + dynamicCacheEnabled: { + serializedName: "properties.dynamicCacheEnabled", + type: { + name: "Boolean" + } + }, + clusterSettings: { + serializedName: "properties.clusterSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + }, + userWhitelistedIpRanges: { + serializedName: "properties.userWhitelistedIpRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + hasLinuxWorkers: { + serializedName: "properties.hasLinuxWorkers", + type: { + name: "Boolean" + } + }, + sslCertKeyVaultId: { + serializedName: "properties.sslCertKeyVaultId", + type: { + name: "String" + } + }, + sslCertKeyVaultSecretName: { + serializedName: "properties.sslCertKeyVaultSecretName", + type: { + name: "String" + } + } + } + } +}; + +export const AppServiceEnvironmentPatchResource: msRest.CompositeMapper = { + serializedName: "AppServiceEnvironmentPatchResource", + type: { + name: "Composite", + className: "AppServiceEnvironmentPatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + appServiceEnvironmentPatchResourceName: { + required: true, + serializedName: "properties.name", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Preparing", + "Ready", + "Scaling", + "Deleting" + ] + } + }, + vnetName: { + serializedName: "properties.vnetName", + type: { + name: "String" + } + }, + vnetResourceGroupName: { + serializedName: "properties.vnetResourceGroupName", + type: { + name: "String" + } + }, + vnetSubnetName: { + serializedName: "properties.vnetSubnetName", + type: { + name: "String" + } + }, + virtualNetwork: { + required: true, + serializedName: "properties.virtualNetwork", + type: { + name: "Composite", + className: "VirtualNetworkProfile" + } + }, + internalLoadBalancingMode: { + serializedName: "properties.internalLoadBalancingMode", + type: { + name: "Enum", + allowedValues: [ + "None", + "Web", + "Publishing" + ] + } + }, + multiSize: { + serializedName: "properties.multiSize", + type: { + name: "String" + } + }, + multiRoleCount: { + serializedName: "properties.multiRoleCount", + type: { + name: "Number" + } + }, + workerPools: { + required: true, + serializedName: "properties.workerPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkerPool" + } + } + } + }, + ipsslAddressCount: { + serializedName: "properties.ipsslAddressCount", + type: { + name: "Number" + } + }, + databaseEdition: { + readOnly: true, + serializedName: "properties.databaseEdition", + type: { + name: "String" + } + }, + databaseServiceObjective: { + readOnly: true, + serializedName: "properties.databaseServiceObjective", + type: { + name: "String" + } + }, + upgradeDomains: { + readOnly: true, + serializedName: "properties.upgradeDomains", + type: { + name: "Number" + } + }, + subscriptionId: { + readOnly: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + }, + dnsSuffix: { + serializedName: "properties.dnsSuffix", + type: { + name: "String" + } + }, + lastAction: { + readOnly: true, + serializedName: "properties.lastAction", + type: { + name: "String" + } + }, + lastActionResult: { + readOnly: true, + serializedName: "properties.lastActionResult", + type: { + name: "String" + } + }, + allowedMultiSizes: { + readOnly: true, + serializedName: "properties.allowedMultiSizes", + type: { + name: "String" + } + }, + allowedWorkerSizes: { + readOnly: true, + serializedName: "properties.allowedWorkerSizes", + type: { + name: "String" + } + }, + maximumNumberOfMachines: { + readOnly: true, + serializedName: "properties.maximumNumberOfMachines", + type: { + name: "Number" + } + }, + vipMappings: { + readOnly: true, + serializedName: "properties.vipMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualIPMapping" + } + } + } + }, + environmentCapacities: { + readOnly: true, + serializedName: "properties.environmentCapacities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StampCapacity" + } + } + } + }, + networkAccessControlList: { + serializedName: "properties.networkAccessControlList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkAccessControlEntry" + } + } + } + }, + environmentIsHealthy: { + readOnly: true, + serializedName: "properties.environmentIsHealthy", + type: { + name: "Boolean" + } + }, + environmentStatus: { + readOnly: true, + serializedName: "properties.environmentStatus", + type: { + name: "String" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + frontEndScaleFactor: { + serializedName: "properties.frontEndScaleFactor", + type: { + name: "Number" + } + }, + defaultFrontEndScaleFactor: { + readOnly: true, + serializedName: "properties.defaultFrontEndScaleFactor", + type: { + name: "Number" + } + }, + apiManagementAccountId: { + serializedName: "properties.apiManagementAccountId", + type: { + name: "String" + } + }, + suspended: { + serializedName: "properties.suspended", + type: { + name: "Boolean" + } + }, + dynamicCacheEnabled: { + serializedName: "properties.dynamicCacheEnabled", + type: { + name: "Boolean" + } + }, + clusterSettings: { + serializedName: "properties.clusterSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameValuePair" + } + } + } + }, + userWhitelistedIpRanges: { + serializedName: "properties.userWhitelistedIpRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + hasLinuxWorkers: { + serializedName: "properties.hasLinuxWorkers", + type: { + name: "Boolean" + } + }, + sslCertKeyVaultId: { + serializedName: "properties.sslCertKeyVaultId", + type: { + name: "String" + } + }, + sslCertKeyVaultSecretName: { + serializedName: "properties.sslCertKeyVaultSecretName", + type: { + name: "String" + } + } + } + } +}; + +export const HostingEnvironmentDiagnostics: msRest.CompositeMapper = { + serializedName: "HostingEnvironmentDiagnostics", + type: { + name: "Composite", + className: "HostingEnvironmentDiagnostics", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + diagnosicsOutput: { + serializedName: "diagnosicsOutput", + type: { + name: "String" + } + } + } + } +}; + +export const MetricAvailabilily: msRest.CompositeMapper = { + serializedName: "MetricAvailabilily", + type: { + name: "Composite", + className: "MetricAvailabilily", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + retention: { + serializedName: "retention", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDefinition: msRest.CompositeMapper = { + serializedName: "MetricDefinition", + type: { + name: "Composite", + className: "MetricDefinition", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + unit: { + readOnly: true, + serializedName: "properties.unit", + type: { + name: "String" + } + }, + primaryAggregationType: { + readOnly: true, + serializedName: "properties.primaryAggregationType", + type: { + name: "String" + } + }, + metricAvailabilities: { + readOnly: true, + serializedName: "properties.metricAvailabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAvailabilily" + } + } + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + } + } + } +}; + +export const SkuInfo: msRest.CompositeMapper = { + serializedName: "SkuInfo", + type: { + name: "Composite", + className: "SkuInfo", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuDescription" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + } + } + } +}; + +export const Usage: msRest.CompositeMapper = { + serializedName: "Usage", + type: { + name: "Composite", + className: "Usage", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + resourceName: { + readOnly: true, + serializedName: "properties.resourceName", + type: { + name: "String" + } + }, + unit: { + readOnly: true, + serializedName: "properties.unit", + type: { + name: "String" + } + }, + currentValue: { + readOnly: true, + serializedName: "properties.currentValue", + type: { + name: "Number" + } + }, + limit: { + readOnly: true, + serializedName: "properties.limit", + type: { + name: "Number" + } + }, + nextResetTime: { + readOnly: true, + serializedName: "properties.nextResetTime", + type: { + name: "DateTime" + } + }, + computeMode: { + readOnly: true, + serializedName: "properties.computeMode", + type: { + name: "Enum", + allowedValues: [ + "Shared", + "Dedicated", + "Dynamic" + ] + } + }, + siteMode: { + readOnly: true, + serializedName: "properties.siteMode", + type: { + name: "String" + } + } + } + } +}; + +export const WorkerPoolResource: msRest.CompositeMapper = { + serializedName: "WorkerPoolResource", + type: { + name: "Composite", + className: "WorkerPoolResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + workerSizeId: { + serializedName: "properties.workerSizeId", + type: { + name: "Number" + } + }, + computeMode: { + serializedName: "properties.computeMode", + type: { + name: "Enum", + allowedValues: [ + "Shared", + "Dedicated", + "Dynamic" + ] + } + }, + workerSize: { + serializedName: "properties.workerSize", + type: { + name: "String" + } + }, + workerCount: { + serializedName: "properties.workerCount", + type: { + name: "Number" + } + }, + instanceNames: { + readOnly: true, + serializedName: "properties.instanceNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuDescription" + } + } + } + } +}; + +export const AppServicePlanPatchResource: msRest.CompositeMapper = { + serializedName: "AppServicePlanPatchResource", + type: { + name: "Composite", + className: "AppServicePlanPatchResource", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + workerTierName: { + serializedName: "properties.workerTierName", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "Enum", + allowedValues: [ + "Ready", + "Pending", + "Creating" + ] + } + }, + subscription: { + readOnly: true, + serializedName: "properties.subscription", + type: { + name: "String" + } + }, + adminSiteName: { + serializedName: "properties.adminSiteName", + type: { + name: "String" + } + }, + hostingEnvironmentProfile: { + serializedName: "properties.hostingEnvironmentProfile", + type: { + name: "Composite", + className: "HostingEnvironmentProfile" + } + }, + maximumNumberOfWorkers: { + readOnly: true, + serializedName: "properties.maximumNumberOfWorkers", + type: { + name: "Number" + } + }, + geoRegion: { + readOnly: true, + serializedName: "properties.geoRegion", + type: { + name: "String" + } + }, + perSiteScaling: { + serializedName: "properties.perSiteScaling", + defaultValue: false, + type: { + name: "Boolean" + } + }, + maximumElasticWorkerCount: { + serializedName: "properties.maximumElasticWorkerCount", + type: { + name: "Number" + } + }, + numberOfSites: { + readOnly: true, + serializedName: "properties.numberOfSites", + type: { + name: "Number" + } + }, + isSpot: { + serializedName: "properties.isSpot", + type: { + name: "Boolean" + } + }, + spotExpirationTime: { + serializedName: "properties.spotExpirationTime", + type: { + name: "DateTime" + } + }, + freeOfferExpirationTime: { + serializedName: "properties.freeOfferExpirationTime", + type: { + name: "DateTime" + } + }, + resourceGroup: { + readOnly: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + reserved: { + serializedName: "properties.reserved", + defaultValue: false, + type: { + name: "Boolean" + } + }, + isXenon: { + serializedName: "properties.isXenon", + defaultValue: false, + type: { + name: "Boolean" + } + }, + hyperV: { + serializedName: "properties.hyperV", + defaultValue: false, + type: { + name: "Boolean" + } + }, + targetWorkerCount: { + serializedName: "properties.targetWorkerCount", + type: { + name: "Number" + } + }, + targetWorkerSizeId: { + serializedName: "properties.targetWorkerSizeId", + type: { + name: "Number" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded", + "Failed", + "Canceled", + "InProgress", + "Deleting" + ] + } + } + } + } +}; + +export const HybridConnectionLimits: msRest.CompositeMapper = { + serializedName: "HybridConnectionLimits", + type: { + name: "Composite", + className: "HybridConnectionLimits", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + current: { + readOnly: true, + serializedName: "properties.current", + type: { + name: "Number" + } + }, + maximum: { + readOnly: true, + serializedName: "properties.maximum", + type: { + name: "Number" + } + } + } + } +}; + +export const ResourceHealthMetadata: msRest.CompositeMapper = { + serializedName: "ResourceHealthMetadata", + type: { + name: "Composite", + className: "ResourceHealthMetadata", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + category: { + serializedName: "properties.category", + type: { + name: "String" + } + }, + signalAvailability: { + serializedName: "properties.signalAvailability", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AppServiceCertificateOrderCollection: msRest.CompositeMapper = { + serializedName: "AppServiceCertificateOrderCollection", + type: { + name: "Composite", + className: "AppServiceCertificateOrderCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppServiceCertificateOrder" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AppServiceCertificateCollection: msRest.CompositeMapper = { + serializedName: "AppServiceCertificateCollection", + type: { + name: "Composite", + className: "AppServiceCertificateCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppServiceCertificateResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CsmOperationCollection: msRest.CompositeMapper = { + serializedName: "CsmOperationCollection", + type: { + name: "Composite", + className: "CsmOperationCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CsmOperationDescription" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DomainCollection: msRest.CompositeMapper = { + serializedName: "DomainCollection", + type: { + name: "Composite", + className: "DomainCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Domain" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NameIdentifierCollection: msRest.CompositeMapper = { + serializedName: "NameIdentifierCollection", + type: { + name: "Composite", + className: "NameIdentifierCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NameIdentifier" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DomainOwnershipIdentifierCollection: msRest.CompositeMapper = { + serializedName: "DomainOwnershipIdentifierCollection", + type: { + name: "Composite", + className: "DomainOwnershipIdentifierCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DomainOwnershipIdentifier" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TopLevelDomainCollection: msRest.CompositeMapper = { + serializedName: "TopLevelDomainCollection", + type: { + name: "Composite", + className: "TopLevelDomainCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopLevelDomain" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TldLegalAgreementCollection: msRest.CompositeMapper = { + serializedName: "TldLegalAgreementCollection", + type: { + name: "Composite", + className: "TldLegalAgreementCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TldLegalAgreement" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateCollection: msRest.CompositeMapper = { + serializedName: "CertificateCollection", + type: { + name: "Composite", + className: "CertificateCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeletedWebAppCollection: msRest.CompositeMapper = { + serializedName: "DeletedWebAppCollection", + type: { + name: "Composite", + className: "DeletedWebAppCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeletedSite" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DetectorResponseCollection: msRest.CompositeMapper = { + serializedName: "DetectorResponseCollection", + type: { + name: "Composite", + className: "DetectorResponseCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DetectorResponse" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticCategoryCollection: msRest.CompositeMapper = { + serializedName: "DiagnosticCategoryCollection", + type: { + name: "Composite", + className: "DiagnosticCategoryCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticCategory" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticAnalysisCollection: msRest.CompositeMapper = { + serializedName: "DiagnosticAnalysisCollection", + type: { + name: "Composite", + className: "DiagnosticAnalysisCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AnalysisDefinition" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticDetectorCollection: msRest.CompositeMapper = { + serializedName: "DiagnosticDetectorCollection", + type: { + name: "Composite", + className: "DiagnosticDetectorCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DetectorDefinition" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationStackCollection: msRest.CompositeMapper = { + serializedName: "ApplicationStackCollection", + type: { + name: "Composite", + className: "ApplicationStackCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationStack" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RecommendationCollection: msRest.CompositeMapper = { + serializedName: "RecommendationCollection", + type: { + name: "Composite", + className: "RecommendationCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Recommendation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlCollection: msRest.CompositeMapper = { + serializedName: "SourceControlCollection", + type: { + name: "Composite", + className: "SourceControlCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceControl" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BillingMeterCollection: msRest.CompositeMapper = { + serializedName: "BillingMeterCollection", + type: { + name: "Composite", + className: "BillingMeterCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BillingMeter" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GeoRegionCollection: msRest.CompositeMapper = { + serializedName: "GeoRegionCollection", + type: { + name: "Composite", + className: "GeoRegionCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoRegion" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IdentifierCollection: msRest.CompositeMapper = { + serializedName: "IdentifierCollection", + type: { + name: "Composite", + className: "IdentifierCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Identifier" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PremierAddOnOfferCollection: msRest.CompositeMapper = { + serializedName: "PremierAddOnOfferCollection", + type: { + name: "Composite", + className: "PremierAddOnOfferCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PremierAddOnOffer" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WebAppCollection: msRest.CompositeMapper = { + serializedName: "WebAppCollection", + type: { + name: "Composite", + className: "WebAppCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Site" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackupItemCollection: msRest.CompositeMapper = { + serializedName: "BackupItemCollection", + type: { + name: "Composite", + className: "BackupItemCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupItem" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SiteConfigResourceCollection: msRest.CompositeMapper = { + serializedName: "SiteConfigResourceCollection", + type: { + name: "Composite", + className: "SiteConfigResourceCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteConfigResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SiteConfigurationSnapshotInfoCollection: msRest.CompositeMapper = { + serializedName: "SiteConfigurationSnapshotInfoCollection", + type: { + name: "Composite", + className: "SiteConfigurationSnapshotInfoCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteConfigurationSnapshotInfo" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ContinuousWebJobCollection: msRest.CompositeMapper = { + serializedName: "ContinuousWebJobCollection", + type: { + name: "Composite", + className: "ContinuousWebJobCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContinuousWebJob" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentCollection: msRest.CompositeMapper = { + serializedName: "DeploymentCollection", + type: { + name: "Composite", + className: "DeploymentCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Deployment" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const FunctionEnvelopeCollection: msRest.CompositeMapper = { + serializedName: "FunctionEnvelopeCollection", + type: { + name: "Composite", + className: "FunctionEnvelopeCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FunctionEnvelope" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const HostNameBindingCollection: msRest.CompositeMapper = { + serializedName: "HostNameBindingCollection", + type: { + name: "Composite", + className: "HostNameBindingCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostNameBinding" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WebAppInstanceCollection: msRest.CompositeMapper = { + serializedName: "WebAppInstanceCollection", + type: { + name: "Composite", + className: "WebAppInstanceCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteInstance" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ProcessInfoCollection: msRest.CompositeMapper = { + serializedName: "ProcessInfoCollection", + type: { + name: "Composite", + className: "ProcessInfoCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProcessInfo" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ProcessModuleInfoCollection: msRest.CompositeMapper = { + serializedName: "ProcessModuleInfoCollection", + type: { + name: "Composite", + className: "ProcessModuleInfoCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProcessModuleInfo" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ProcessThreadInfoCollection: msRest.CompositeMapper = { + serializedName: "ProcessThreadInfoCollection", + type: { + name: "Composite", + className: "ProcessThreadInfoCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProcessThreadInfo" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceMetricDefinitionCollection: msRest.CompositeMapper = { + serializedName: "ResourceMetricDefinitionCollection", + type: { + name: "Composite", + className: "ResourceMetricDefinitionCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceMetricDefinition" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceMetricCollection: msRest.CompositeMapper = { + serializedName: "ResourceMetricCollection", + type: { + name: "Composite", + className: "ResourceMetricCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceMetric" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PerfMonCounterCollection: msRest.CompositeMapper = { + serializedName: "PerfMonCounterCollection", + type: { + name: "Composite", + className: "PerfMonCounterCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PerfMonResponse" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PublicCertificateCollection: msRest.CompositeMapper = { + serializedName: "PublicCertificateCollection", + type: { + name: "Composite", + className: "PublicCertificateCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PublicCertificate" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SiteExtensionInfoCollection: msRest.CompositeMapper = { + serializedName: "SiteExtensionInfoCollection", + type: { + name: "Composite", + className: "SiteExtensionInfoCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SiteExtensionInfo" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SlotDifferenceCollection: msRest.CompositeMapper = { + serializedName: "SlotDifferenceCollection", + type: { + name: "Composite", + className: "SlotDifferenceCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SlotDifference" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SnapshotCollection: msRest.CompositeMapper = { + serializedName: "SnapshotCollection", + type: { + name: "Composite", + className: "SnapshotCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Snapshot" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TriggeredWebJobCollection: msRest.CompositeMapper = { + serializedName: "TriggeredWebJobCollection", + type: { + name: "Composite", + className: "TriggeredWebJobCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TriggeredWebJob" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TriggeredJobHistoryCollection: msRest.CompositeMapper = { + serializedName: "TriggeredJobHistoryCollection", + type: { + name: "Composite", + className: "TriggeredJobHistoryCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TriggeredJobHistory" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CsmUsageQuotaCollection: msRest.CompositeMapper = { + serializedName: "CsmUsageQuotaCollection", + type: { + name: "Composite", + className: "CsmUsageQuotaCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CsmUsageQuota" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WebJobCollection: msRest.CompositeMapper = { + serializedName: "WebJobCollection", + type: { + name: "Composite", + className: "WebJobCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebJob" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AppServiceEnvironmentCollection: msRest.CompositeMapper = { + serializedName: "AppServiceEnvironmentCollection", + type: { + name: "Composite", + className: "AppServiceEnvironmentCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppServiceEnvironmentResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const StampCapacityCollection: msRest.CompositeMapper = { + serializedName: "StampCapacityCollection", + type: { + name: "Composite", + className: "StampCapacityCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StampCapacity" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkerPoolCollection: msRest.CompositeMapper = { + serializedName: "WorkerPoolCollection", + type: { + name: "Composite", + className: "WorkerPoolCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkerPoolResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SkuInfoCollection: msRest.CompositeMapper = { + serializedName: "SkuInfoCollection", + type: { + name: "Composite", + className: "SkuInfoCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuInfo" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const UsageCollection: msRest.CompositeMapper = { + serializedName: "UsageCollection", + type: { + name: "Composite", + className: "UsageCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AppServicePlanCollection: msRest.CompositeMapper = { + serializedName: "AppServicePlanCollection", + type: { + name: "Composite", + className: "AppServicePlanCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AppServicePlan" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceCollection: msRest.CompositeMapper = { + serializedName: "ResourceCollection", + type: { + name: "Composite", + className: "ResourceCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const HybridConnectionCollection: msRest.CompositeMapper = { + serializedName: "HybridConnectionCollection", + type: { + name: "Composite", + className: "HybridConnectionCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceHealthMetadataCollection: msRest.CompositeMapper = { + serializedName: "ResourceHealthMetadataCollection", + type: { + name: "Composite", + className: "ResourceHealthMetadataCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceHealthMetadata" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/packages/@azure/arm-appservice/lib/models/parameters.ts b/packages/@azure/arm-appservice/lib/models/parameters.ts new file mode 100644 index 000000000000..8ad59e7110fb --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/parameters.ts @@ -0,0 +1,853 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const analysisName: msRest.OperationURLParameter = { + parameterPath: "analysisName", + mapper: { + required: true, + serializedName: "analysisName", + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const backupId: msRest.OperationURLParameter = { + parameterPath: "backupId", + mapper: { + required: true, + serializedName: "backupId", + type: { + name: "String" + } + } +}; +export const baseAddress: msRest.OperationURLParameter = { + parameterPath: "baseAddress", + mapper: { + required: true, + serializedName: "baseAddress", + type: { + name: "String" + } + } +}; +export const billingLocation: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "billingLocation" + ], + mapper: { + serializedName: "billingLocation", + type: { + name: "String" + } + } +}; +export const certificateOrderName: msRest.OperationURLParameter = { + parameterPath: "certificateOrderName", + mapper: { + required: true, + serializedName: "certificateOrderName", + type: { + name: "String" + } + } +}; +export const deleteEmptyServerFarm: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deleteEmptyServerFarm" + ], + mapper: { + serializedName: "deleteEmptyServerFarm", + type: { + name: "Boolean" + } + } +}; +export const deleteMetrics: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deleteMetrics" + ], + mapper: { + serializedName: "deleteMetrics", + type: { + name: "Boolean" + } + } +}; +export const detailed: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "detailed" + ], + mapper: { + serializedName: "detailed", + type: { + name: "Boolean" + } + } +}; +export const details: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "details" + ], + mapper: { + serializedName: "details", + type: { + name: "Boolean" + } + } +}; +export const detectorName: msRest.OperationURLParameter = { + parameterPath: "detectorName", + mapper: { + required: true, + serializedName: "detectorName", + type: { + name: "String" + } + } +}; +export const diagnosticCategory: msRest.OperationURLParameter = { + parameterPath: "diagnosticCategory", + mapper: { + required: true, + serializedName: "diagnosticCategory", + type: { + name: "String" + } + } +}; +export const diagnosticsName: msRest.OperationURLParameter = { + parameterPath: "diagnosticsName", + mapper: { + required: true, + serializedName: "diagnosticsName", + type: { + name: "String" + } + } +}; +export const domainName0: msRest.OperationURLParameter = { + parameterPath: "domainName", + mapper: { + required: true, + serializedName: "domainName", + type: { + name: "String" + } + } +}; +export const domainName1: msRest.OperationURLParameter = { + parameterPath: "domainName", + mapper: { + required: true, + serializedName: "domainName", + constraints: { + Pattern: /[a-zA-Z0-9][a-zA-Z0-9\.-]+/ + }, + type: { + name: "String" + } + } +}; +export const domainOwnershipIdentifierName: msRest.OperationURLParameter = { + parameterPath: "domainOwnershipIdentifierName", + mapper: { + required: true, + serializedName: "domainOwnershipIdentifierName", + type: { + name: "String" + } + } +}; +export const durationInSeconds: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "durationInSeconds" + ], + mapper: { + serializedName: "durationInSeconds", + type: { + name: "Number" + } + } +}; +export const endTime0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "endTime" + ], + mapper: { + serializedName: "endTime", + type: { + name: "DateTime" + } + } +}; +export const endTime1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "endTime" + ], + mapper: { + serializedName: "endTime", + type: { + name: "String" + } + } +}; +export const entityName: msRest.OperationURLParameter = { + parameterPath: "entityName", + mapper: { + required: true, + serializedName: "entityName", + type: { + name: "String" + } + } +}; +export const expiredOnly: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expiredOnly" + ], + mapper: { + serializedName: "expiredOnly", + type: { + name: "Boolean" + } + } +}; +export const featured: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "featured" + ], + mapper: { + serializedName: "featured", + type: { + name: "Boolean" + } + } +}; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const forceDelete: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "forceDelete" + ], + mapper: { + serializedName: "forceDelete", + type: { + name: "Boolean" + } + } +}; +export const forceHardDeleteDomain: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "forceHardDeleteDomain" + ], + mapper: { + serializedName: "forceHardDeleteDomain", + type: { + name: "Boolean" + } + } +}; +export const functionName: msRest.OperationURLParameter = { + parameterPath: "functionName", + mapper: { + required: true, + serializedName: "functionName", + type: { + name: "String" + } + } +}; +export const gatewayName: msRest.OperationURLParameter = { + parameterPath: "gatewayName", + mapper: { + required: true, + serializedName: "gatewayName", + type: { + name: "String" + } + } +}; +export const hostName0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "hostName" + ], + mapper: { + serializedName: "hostName", + type: { + name: "String" + } + } +}; +export const hostName1: msRest.OperationURLParameter = { + parameterPath: "hostName", + mapper: { + required: true, + serializedName: "hostName", + type: { + name: "String" + } + } +}; +export const id: msRest.OperationURLParameter = { + parameterPath: "id", + mapper: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } +}; +export const includeSlots: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeSlots" + ], + mapper: { + serializedName: "includeSlots", + type: { + name: "Boolean" + } + } +}; +export const instance: msRest.OperationURLParameter = { + parameterPath: "instance", + mapper: { + required: true, + serializedName: "instance", + type: { + name: "String" + } + } +}; +export const instanceId: msRest.OperationURLParameter = { + parameterPath: "instanceId", + mapper: { + required: true, + serializedName: "instanceId", + type: { + name: "String" + } + } +}; +export const linuxDynamicWorkersEnabled: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "linuxDynamicWorkersEnabled" + ], + mapper: { + serializedName: "linuxDynamicWorkersEnabled", + type: { + name: "Boolean" + } + } +}; +export const linuxWorkersEnabled: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "linuxWorkersEnabled" + ], + mapper: { + serializedName: "linuxWorkersEnabled", + type: { + name: "Boolean" + } + } +}; +export const maxFrameLength: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "maxFrameLength" + ], + mapper: { + serializedName: "maxFrameLength", + type: { + name: "Number" + } + } +}; +export const name: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } +}; +export const namespaceName: msRest.OperationURLParameter = { + parameterPath: "namespaceName", + mapper: { + required: true, + serializedName: "namespaceName", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const operationId: msRest.OperationURLParameter = { + parameterPath: "operationId", + mapper: { + required: true, + serializedName: "operationId", + type: { + name: "String" + } + } +}; +export const osType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "osType" + ], + mapper: { + serializedName: "osType", + type: { + name: "String" + } + } +}; +export const osTypeSelected: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "osTypeSelected" + ], + mapper: { + serializedName: "osTypeSelected", + type: { + name: "String" + } + } +}; +export const premierAddOnName: msRest.OperationURLParameter = { + parameterPath: "premierAddOnName", + mapper: { + required: true, + serializedName: "premierAddOnName", + type: { + name: "String" + } + } +}; +export const processId: msRest.OperationURLParameter = { + parameterPath: "processId", + mapper: { + required: true, + serializedName: "processId", + type: { + name: "String" + } + } +}; +export const propertiesToInclude: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "propertiesToInclude" + ], + mapper: { + serializedName: "propertiesToInclude", + type: { + name: "String" + } + } +}; +export const publicCertificateName: msRest.OperationURLParameter = { + parameterPath: "publicCertificateName", + mapper: { + required: true, + serializedName: "publicCertificateName", + type: { + name: "String" + } + } +}; +export const recommendationId: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "recommendationId" + ], + mapper: { + serializedName: "recommendationId", + type: { + name: "String" + } + } +}; +export const relayName: msRest.OperationURLParameter = { + parameterPath: "relayName", + mapper: { + required: true, + serializedName: "relayName", + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+[^\.]$/ + }, + type: { + name: "String" + } + } +}; +export const routeName: msRest.OperationURLParameter = { + parameterPath: "routeName", + mapper: { + required: true, + serializedName: "routeName", + type: { + name: "String" + } + } +}; +export const sasUrl: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "sasUrl" + ], + mapper: { + serializedName: "sasUrl", + type: { + name: "String" + } + } +}; +export const siteExtensionId: msRest.OperationURLParameter = { + parameterPath: "siteExtensionId", + mapper: { + required: true, + serializedName: "siteExtensionId", + type: { + name: "String" + } + } +}; +export const siteName: msRest.OperationURLParameter = { + parameterPath: "siteName", + mapper: { + required: true, + serializedName: "siteName", + type: { + name: "String" + } + } +}; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; +export const sku: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "sku" + ], + mapper: { + serializedName: "sku", + type: { + name: "String" + } + } +}; +export const slot: msRest.OperationURLParameter = { + parameterPath: "slot", + mapper: { + required: true, + serializedName: "slot", + type: { + name: "String" + } + } +}; +export const snapshotId: msRest.OperationURLParameter = { + parameterPath: "snapshotId", + mapper: { + required: true, + serializedName: "snapshotId", + type: { + name: "String" + } + } +}; +export const softRestart: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "softRestart" + ], + mapper: { + serializedName: "softRestart", + type: { + name: "Boolean" + } + } +}; +export const sourceControlType: msRest.OperationURLParameter = { + parameterPath: "sourceControlType", + mapper: { + required: true, + serializedName: "sourceControlType", + type: { + name: "String" + } + } +}; +export const startTime0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "startTime" + ], + mapper: { + serializedName: "startTime", + type: { + name: "DateTime" + } + } +}; +export const startTime1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "startTime" + ], + mapper: { + serializedName: "startTime", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const subscriptionName: msRest.OperationQueryParameter = { + parameterPath: "subscriptionName", + mapper: { + required: true, + serializedName: "subscriptionName", + type: { + name: "String" + } + } +}; +export const synchronous: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "synchronous" + ], + mapper: { + serializedName: "synchronous", + type: { + name: "Boolean" + } + } +}; +export const threadId: msRest.OperationURLParameter = { + parameterPath: "threadId", + mapper: { + required: true, + serializedName: "threadId", + type: { + name: "String" + } + } +}; +export const timeGrain0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "timeGrain" + ], + mapper: { + serializedName: "timeGrain", + constraints: { + Pattern: /PT[1-9][0-9]+[SMH]/ + }, + type: { + name: "String" + } + } +}; +export const timeGrain1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "timeGrain" + ], + mapper: { + serializedName: "timeGrain", + type: { + name: "String" + } + } +}; +export const top: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + type: { + name: "String" + } + } +}; +export const updateSeen: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "updateSeen" + ], + mapper: { + serializedName: "updateSeen", + type: { + name: "Boolean" + } + } +}; +export const view: msRest.OperationURLParameter = { + parameterPath: "view", + mapper: { + required: true, + serializedName: "view", + type: { + name: "String" + } + } +}; +export const vnetName: msRest.OperationURLParameter = { + parameterPath: "vnetName", + mapper: { + required: true, + serializedName: "vnetName", + type: { + name: "String" + } + } +}; +export const webJobName: msRest.OperationURLParameter = { + parameterPath: "webJobName", + mapper: { + required: true, + serializedName: "webJobName", + type: { + name: "String" + } + } +}; +export const workerName: msRest.OperationURLParameter = { + parameterPath: "workerName", + mapper: { + required: true, + serializedName: "workerName", + type: { + name: "String" + } + } +}; +export const workerPoolName: msRest.OperationURLParameter = { + parameterPath: "workerPoolName", + mapper: { + required: true, + serializedName: "workerPoolName", + type: { + name: "String" + } + } +}; +export const xenonWorkersEnabled: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "xenonWorkersEnabled" + ], + mapper: { + serializedName: "xenonWorkersEnabled", + type: { + name: "Boolean" + } + } +}; diff --git a/packages/@azure/arm-appservice/lib/models/providerMappers.ts b/packages/@azure/arm-appservice/lib/models/providerMappers.ts new file mode 100644 index 000000000000..a3d5f113d841 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/providerMappers.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ApplicationStackCollection, + ApplicationStack, + StackMajorVersion, + StackMinorVersion, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CsmOperationCollection, + CsmOperationDescription, + CsmOperationDisplay, + CsmOperationDescriptionProperties, + ServiceSpecification, + MetricSpecification, + Dimension, + MetricAvailability, + LogSpecification +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/recommendationsMappers.ts b/packages/@azure/arm-appservice/lib/models/recommendationsMappers.ts new file mode 100644 index 000000000000..ac07a32771f9 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/recommendationsMappers.ts @@ -0,0 +1,188 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + RecommendationCollection, + Recommendation, + ProxyOnlyResource, + BaseResource, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CloudError, + RecommendationRule, + AppServiceCertificateOrderPatchResource, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Resource, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + HostingEnvironmentProfile, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + NameValuePair, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + AzureStorageInfoValue, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + HostNameSslState, + SiteConfig, + CloningInfo, + SlotSwapStatus, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + SkuDescription, + SkuCapacity, + Capability, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata, + AppServiceCertificateResource, + AppServiceCertificateOrder, + Site, + ManagedServiceIdentity, + AppServicePlan +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/resourceHealthMetadataOperationsMappers.ts b/packages/@azure/arm-appservice/lib/models/resourceHealthMetadataOperationsMappers.ts new file mode 100644 index 000000000000..a9f5a0fc2c7a --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/resourceHealthMetadataOperationsMappers.ts @@ -0,0 +1,187 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ResourceHealthMetadataCollection, + ResourceHealthMetadata, + ProxyOnlyResource, + BaseResource, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + AppServiceCertificateOrderPatchResource, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Resource, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + HostingEnvironmentProfile, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + NameValuePair, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + AzureStorageInfoValue, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + HostNameSslState, + SiteConfig, + CloningInfo, + SlotSwapStatus, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + SkuDescription, + SkuCapacity, + Capability, + AppServicePlanPatchResource, + HybridConnectionLimits, + AppServiceCertificateResource, + AppServiceCertificateOrder, + Site, + ManagedServiceIdentity, + AppServicePlan +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/topLevelDomainsMappers.ts b/packages/@azure/arm-appservice/lib/models/topLevelDomainsMappers.ts new file mode 100644 index 000000000000..93e1ea3fcdb3 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/topLevelDomainsMappers.ts @@ -0,0 +1,190 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + TopLevelDomainCollection, + TopLevelDomain, + ProxyOnlyResource, + BaseResource, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + TopLevelDomainAgreementOption, + TldLegalAgreementCollection, + TldLegalAgreement, + AppServiceCertificateOrderPatchResource, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + VnetRoute, + VnetInfo, + VnetGateway, + User, + Snapshot, + ResourceMetricDefinition, + ResourceMetricAvailability, + PushSettings, + Identifier, + HybridConnectionKey, + HybridConnection, + DeletedSite, + Resource, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + Certificate, + HostingEnvironmentProfile, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + NameValuePair, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AzureStoragePropertyDictionaryResource, + AzureStorageInfoValue, + BackupItem, + DatabaseBackupSetting, + BackupRequest, + BackupSchedule, + ConnectionStringDictionary, + ConnStringValueTypePair, + ContinuousWebJob, + CustomHostnameAnalysisResult, + ErrorEntity, + DeletedAppRestoreRequest, + Deployment, + FunctionEnvelope, + FunctionSecrets, + HostNameBinding, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + MigrateMySqlRequest, + MigrateMySqlStatus, + RelayServiceConnectionEntity, + NetworkFeatures, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessInfo, + PublicCertificate, + RestoreRequest, + SiteAuthSettings, + SiteConfigResource, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + ApiDefinitionInfo, + IpSecurityRestriction, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + SitePatchResource, + HostNameSslState, + SiteConfig, + CloningInfo, + SlotSwapStatus, + SitePhpErrorLogFlag, + SiteSourceControl, + SlotConfigNamesResource, + SlotDifference, + SnapshotRestoreRequest, + SnapshotRecoverySource, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobRun, + TriggeredJobHistory, + TriggeredWebJob, + WebJob, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + SkuDescription, + SkuCapacity, + Capability, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata, + AppServiceCertificateResource, + AppServiceCertificateOrder, + Site, + ManagedServiceIdentity, + AppServicePlan +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/models/webAppsMappers.ts b/packages/@azure/arm-appservice/lib/models/webAppsMappers.ts new file mode 100644 index 000000000000..440413d19429 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/models/webAppsMappers.ts @@ -0,0 +1,226 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + WebAppCollection, + Site, + Resource, + BaseResource, + HostNameSslState, + SiteConfig, + NameValuePair, + AzureStorageInfoValue, + ConnStringInfo, + SiteMachineKey, + HandlerMapping, + VirtualApplication, + VirtualDirectory, + Experiments, + RampUpRule, + SiteLimits, + AutoHealRules, + AutoHealTriggers, + RequestsBasedTrigger, + StatusCodesBasedTrigger, + SlowRequestsBasedTrigger, + AutoHealActions, + AutoHealCustomAction, + CorsSettings, + PushSettings, + ProxyOnlyResource, + ApiDefinitionInfo, + IpSecurityRestriction, + HostingEnvironmentProfile, + CloningInfo, + SlotSwapStatus, + ManagedServiceIdentity, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + CloudError, + SitePatchResource, + CustomHostnameAnalysisResult, + ErrorEntity, + CsmSlotEntity, + BackupRequest, + BackupSchedule, + DatabaseBackupSetting, + BackupItem, + BackupItemCollection, + RestoreRequest, + SiteConfigResourceCollection, + SiteConfigResource, + StringDictionary, + SiteAuthSettings, + AzureStoragePropertyDictionaryResource, + ConnectionStringDictionary, + ConnStringValueTypePair, + SiteLogsConfig, + ApplicationLogsConfig, + FileSystemApplicationLogsConfig, + AzureTableStorageApplicationLogsConfig, + AzureBlobStorageApplicationLogsConfig, + HttpLogsConfig, + FileSystemHttpLogsConfig, + AzureBlobStorageHttpLogsConfig, + EnabledConfig, + User, + SlotConfigNamesResource, + SwiftVirtualNetwork, + SiteConfigurationSnapshotInfoCollection, + SiteConfigurationSnapshotInfo, + ContinuousWebJobCollection, + ContinuousWebJob, + DeploymentCollection, + Deployment, + IdentifierCollection, + Identifier, + MSDeployStatus, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + FunctionEnvelopeCollection, + FunctionEnvelope, + FunctionSecrets, + HostNameBindingCollection, + HostNameBinding, + HybridConnection, + HybridConnectionKey, + RelayServiceConnectionEntity, + WebAppInstanceCollection, + SiteInstance, + ProcessInfoCollection, + ProcessInfo, + ProcessThreadInfo, + ProcessModuleInfo, + ProcessModuleInfoCollection, + ProcessThreadInfoCollection, + SiteCloneability, + SiteCloneabilityCriterion, + ResourceMetricDefinitionCollection, + ResourceMetricDefinition, + ResourceMetricAvailability, + ResourceMetricCollection, + ResourceMetric, + ResourceMetricName, + ResourceMetricValue, + ResourceMetricProperty, + StorageMigrationOptions, + StorageMigrationResponse, + MigrateMySqlRequest, + Operation, + MigrateMySqlStatus, + NetworkFeatures, + VnetInfo, + VnetRoute, + NetworkTrace, + PerfMonCounterCollection, + PerfMonResponse, + PerfMonSet, + PerfMonSample, + SitePhpErrorLogFlag, + PremierAddOn, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessVirtualNetwork, + PrivateAccessSubnet, + PublicCertificateCollection, + PublicCertificate, + CsmPublishingProfileOptions, + DeletedAppRestoreRequest, + SnapshotRestoreRequest, + SnapshotRecoverySource, + SiteExtensionInfoCollection, + SiteExtensionInfo, + SlotDifferenceCollection, + SlotDifference, + SnapshotCollection, + Snapshot, + SiteSourceControl, + TriggeredWebJobCollection, + TriggeredWebJob, + TriggeredJobRun, + TriggeredJobHistoryCollection, + TriggeredJobHistory, + CsmUsageQuotaCollection, + CsmUsageQuota, + LocalizableString, + VnetGateway, + WebJobCollection, + WebJob, + AppServiceCertificateResource, + AppServiceCertificateOrder, + AppServiceCertificate, + CertificateDetails, + AppServiceCertificateOrderPatchResource, + AppServiceCertificatePatchResource, + CertificateEmail, + CertificateOrderAction, + ReissueCertificateOrderRequest, + RenewCertificateOrderRequest, + DeletedSite, + AppServicePlan, + SkuDescription, + SkuCapacity, + Capability, + Domain, + Contact, + Address, + HostName, + DomainPurchaseConsent, + DomainOwnershipIdentifier, + DomainPatchResource, + TopLevelDomain, + Certificate, + CertificatePatchResource, + DetectorDefinition, + AnalysisDefinition, + DetectorResponse, + DetectorInfo, + DiagnosticData, + DataTableResponseObject, + DataTableResponseColumn, + Rendering, + DiagnosticAnalysis, + AbnormalTimePeriod, + DetectorAbnormalTimePeriod, + Solution, + AnalysisData, + DiagnosticMetricSet, + DiagnosticMetricSample, + ResponseMetaData, + DataSource, + DiagnosticCategory, + DiagnosticDetectorResponse, + Recommendation, + RecommendationRule, + BillingMeter, + GeoRegion, + PremierAddOnOffer, + SourceControl, + VnetParameters, + VnetValidationTestFailure, + VnetValidationFailureDetails, + AppServiceEnvironmentResource, + VirtualNetworkProfile, + WorkerPool, + VirtualIPMapping, + StampCapacity, + NetworkAccessControlEntry, + AppServiceEnvironmentPatchResource, + MetricDefinition, + MetricAvailabilily, + Usage, + WorkerPoolResource, + AppServicePlanPatchResource, + HybridConnectionLimits, + ResourceHealthMetadata +} from "../models/mappers"; + diff --git a/packages/@azure/arm-appservice/lib/operations/appServiceCertificateOrders.ts b/packages/@azure/arm-appservice/lib/operations/appServiceCertificateOrders.ts new file mode 100644 index 000000000000..c73266858b50 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/appServiceCertificateOrders.ts @@ -0,0 +1,1451 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/appServiceCertificateOrdersMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a AppServiceCertificateOrders. */ +export class AppServiceCertificateOrders { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a AppServiceCertificateOrders. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * List all certificate orders in a subscription. + * @summary List all certificate orders in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Validate information for a certificate order. + * @summary Validate information for a certificate order. + * @param appServiceCertificateOrder Information for a certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + validatePurchaseInformation(appServiceCertificateOrder: Models.AppServiceCertificateOrder, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appServiceCertificateOrder Information for a certificate order. + * @param callback The callback + */ + validatePurchaseInformation(appServiceCertificateOrder: Models.AppServiceCertificateOrder, callback: msRest.ServiceCallback): void; + /** + * @param appServiceCertificateOrder Information for a certificate order. + * @param options The optional parameters + * @param callback The callback + */ + validatePurchaseInformation(appServiceCertificateOrder: Models.AppServiceCertificateOrder, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validatePurchaseInformation(appServiceCertificateOrder: Models.AppServiceCertificateOrder, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appServiceCertificateOrder, + options + }, + validatePurchaseInformationOperationSpec, + callback); + } + + /** + * Get certificate orders in a resource group. + * @summary Get certificate orders in a resource group. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get a certificate order. + * @summary Get a certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order.. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order.. + * @param callback The callback + */ + get(resourceGroupName: string, certificateOrderName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order.. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, certificateOrderName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update a certificate purchase order. + * @summary Create or update a certificate purchase order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: Models.AppServiceCertificateOrder, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,certificateOrderName,certificateDistinguishedName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete an existing certificate order. + * @summary Delete an existing certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, certificateOrderName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, certificateOrderName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Create or update a certificate purchase order. + * @summary Create or update a certificate purchase order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: Models.AppServiceCertificateOrderPatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param callback The callback + */ + update(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: Models.AppServiceCertificateOrderPatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: Models.AppServiceCertificateOrderPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: Models.AppServiceCertificateOrderPatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + certificateDistinguishedName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List all certificates associated with a certificate order. + * @summary List all certificates associated with a certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + listCertificates(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param callback The callback + */ + listCertificates(resourceGroupName: string, certificateOrderName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + listCertificates(resourceGroupName: string, certificateOrderName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCertificates(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + options + }, + listCertificatesOperationSpec, + callback) as Promise; + } + + /** + * Get the certificate associated with a certificate order. + * @summary Get the certificate associated with a certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param [options] The optional parameters + * @returns Promise + */ + getCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param callback The callback + */ + getCertificate(resourceGroupName: string, certificateOrderName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param options The optional parameters + * @param callback The callback + */ + getCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + name, + options + }, + getCertificateOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a certificate and associates with key vault secret. + * @summary Creates or updates a certificate and associates with key vault secret. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param keyVaultCertificate Key vault certificate resource Id. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: Models.AppServiceCertificateResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateCertificate(resourceGroupName,certificateOrderName,name,keyVaultCertificate,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete the certificate associated with a certificate order. + * @summary Delete the certificate associated with a certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param [options] The optional parameters + * @returns Promise + */ + deleteCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param callback The callback + */ + deleteCertificate(resourceGroupName: string, certificateOrderName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param options The optional parameters + * @param callback The callback + */ + deleteCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteCertificate(resourceGroupName: string, certificateOrderName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + name, + options + }, + deleteCertificateOperationSpec, + callback); + } + + /** + * Creates or updates a certificate and associates with key vault secret. + * @summary Creates or updates a certificate and associates with key vault secret. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param keyVaultCertificate Key vault certificate resource Id. + * @param [options] The optional parameters + * @returns Promise + */ + updateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: Models.AppServiceCertificatePatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param keyVaultCertificate Key vault certificate resource Id. + * @param callback The callback + */ + updateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: Models.AppServiceCertificatePatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param keyVaultCertificate Key vault certificate resource Id. + * @param options The optional parameters + * @param callback The callback + */ + updateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: Models.AppServiceCertificatePatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: Models.AppServiceCertificatePatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + name, + keyVaultCertificate, + options + }, + updateCertificateOperationSpec, + callback) as Promise; + } + + /** + * Reissue an existing certificate order. + * @summary Reissue an existing certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param reissueCertificateOrderRequest Parameters for the reissue. + * @param [options] The optional parameters + * @returns Promise + */ + reissue(resourceGroupName: string, certificateOrderName: string, reissueCertificateOrderRequest: Models.ReissueCertificateOrderRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param reissueCertificateOrderRequest Parameters for the reissue. + * @param callback The callback + */ + reissue(resourceGroupName: string, certificateOrderName: string, reissueCertificateOrderRequest: Models.ReissueCertificateOrderRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param reissueCertificateOrderRequest Parameters for the reissue. + * @param options The optional parameters + * @param callback The callback + */ + reissue(resourceGroupName: string, certificateOrderName: string, reissueCertificateOrderRequest: Models.ReissueCertificateOrderRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + reissue(resourceGroupName: string, certificateOrderName: string, reissueCertificateOrderRequest: Models.ReissueCertificateOrderRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + reissueCertificateOrderRequest, + options + }, + reissueOperationSpec, + callback); + } + + /** + * Renew an existing certificate order. + * @summary Renew an existing certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param renewCertificateOrderRequest Renew parameters + * @param [options] The optional parameters + * @returns Promise + */ + renew(resourceGroupName: string, certificateOrderName: string, renewCertificateOrderRequest: Models.RenewCertificateOrderRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param renewCertificateOrderRequest Renew parameters + * @param callback The callback + */ + renew(resourceGroupName: string, certificateOrderName: string, renewCertificateOrderRequest: Models.RenewCertificateOrderRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param renewCertificateOrderRequest Renew parameters + * @param options The optional parameters + * @param callback The callback + */ + renew(resourceGroupName: string, certificateOrderName: string, renewCertificateOrderRequest: Models.RenewCertificateOrderRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + renew(resourceGroupName: string, certificateOrderName: string, renewCertificateOrderRequest: Models.RenewCertificateOrderRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + renewCertificateOrderRequest, + options + }, + renewOperationSpec, + callback); + } + + /** + * Resend certificate email. + * @summary Resend certificate email. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + resendEmail(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param callback The callback + */ + resendEmail(resourceGroupName: string, certificateOrderName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + resendEmail(resourceGroupName: string, certificateOrderName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resendEmail(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + options + }, + resendEmailOperationSpec, + callback); + } + + /** + * Verify domain ownership for this certificate order. + * @summary Verify domain ownership for this certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + resendRequestEmails(resourceGroupName: string, certificateOrderName: string, options?: Models.AppServiceCertificateOrdersResendRequestEmailsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param callback The callback + */ + resendRequestEmails(resourceGroupName: string, certificateOrderName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + resendRequestEmails(resourceGroupName: string, certificateOrderName: string, options: Models.AppServiceCertificateOrdersResendRequestEmailsOptionalParams, callback: msRest.ServiceCallback): void; + resendRequestEmails(resourceGroupName: string, certificateOrderName: string, options?: Models.AppServiceCertificateOrdersResendRequestEmailsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + options + }, + resendRequestEmailsOperationSpec, + callback); + } + + /** + * Verify domain ownership for this certificate order. + * @summary Verify domain ownership for this certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param siteSealRequest Site seal request. + * @param [options] The optional parameters + * @returns Promise + */ + retrieveSiteSeal(resourceGroupName: string, certificateOrderName: string, siteSealRequest: Models.SiteSealRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param siteSealRequest Site seal request. + * @param callback The callback + */ + retrieveSiteSeal(resourceGroupName: string, certificateOrderName: string, siteSealRequest: Models.SiteSealRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param siteSealRequest Site seal request. + * @param options The optional parameters + * @param callback The callback + */ + retrieveSiteSeal(resourceGroupName: string, certificateOrderName: string, siteSealRequest: Models.SiteSealRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + retrieveSiteSeal(resourceGroupName: string, certificateOrderName: string, siteSealRequest: Models.SiteSealRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + siteSealRequest, + options + }, + retrieveSiteSealOperationSpec, + callback) as Promise; + } + + /** + * Verify domain ownership for this certificate order. + * @summary Verify domain ownership for this certificate order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + verifyDomainOwnership(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param callback The callback + */ + verifyDomainOwnership(resourceGroupName: string, certificateOrderName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + verifyDomainOwnership(resourceGroupName: string, certificateOrderName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + verifyDomainOwnership(resourceGroupName: string, certificateOrderName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + certificateOrderName, + options + }, + verifyDomainOwnershipOperationSpec, + callback); + } + + /** + * Retrieve the list of certificate actions. + * @summary Retrieve the list of certificate actions. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + retrieveCertificateActions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate order. + * @param callback The callback + */ + retrieveCertificateActions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + retrieveCertificateActions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + retrieveCertificateActions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + retrieveCertificateActionsOperationSpec, + callback) as Promise; + } + + /** + * Retrieve email history. + * @summary Retrieve email history. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + retrieveCertificateEmailHistory(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate order. + * @param callback The callback + */ + retrieveCertificateEmailHistory(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate order. + * @param options The optional parameters + * @param callback The callback + */ + retrieveCertificateEmailHistory(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + retrieveCertificateEmailHistory(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + retrieveCertificateEmailHistoryOperationSpec, + callback) as Promise; + } + + /** + * Create or update a certificate purchase order. + * @summary Create or update a certificate purchase order. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, certificateOrderName: string, certificateDistinguishedName: Models.AppServiceCertificateOrder, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + certificateOrderName, + certificateDistinguishedName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Creates or updates a certificate and associates with key vault secret. + * @summary Creates or updates a certificate and associates with key vault secret. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param certificateOrderName Name of the certificate order. + * @param name Name of the certificate. + * @param keyVaultCertificate Key vault certificate resource Id. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateCertificate(resourceGroupName: string, certificateOrderName: string, name: string, keyVaultCertificate: Models.AppServiceCertificateResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + certificateOrderName, + name, + keyVaultCertificate, + options + }, + beginCreateOrUpdateCertificateOperationSpec, + options); + } + + /** + * List all certificate orders in a subscription. + * @summary List all certificate orders in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get certificate orders in a resource group. + * @summary Get certificate orders in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * List all certificates associated with a certificate order. + * @summary List all certificates associated with a certificate order. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listCertificatesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listCertificatesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listCertificatesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCertificatesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listCertificatesNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrderCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const validatePurchaseInformationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appServiceCertificateOrder", + mapper: { + ...Mappers.AppServiceCertificateOrder, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrderCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrder + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "certificateDistinguishedName", + mapper: { + ...Mappers.AppServiceCertificateOrderPatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrder + }, + 201: { + bodyMapper: Mappers.AppServiceCertificateOrder + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listCertificatesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "keyVaultCertificate", + mapper: { + ...Mappers.AppServiceCertificatePatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateResource + }, + 201: { + bodyMapper: Mappers.AppServiceCertificateResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const reissueOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "reissueCertificateOrderRequest", + mapper: { + ...Mappers.ReissueCertificateOrderRequest, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const renewOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "renewCertificateOrderRequest", + mapper: { + ...Mappers.RenewCertificateOrderRequest, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const resendEmailOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const resendRequestEmailsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + name: [ + "options", + "name" + ] + }, + mapper: { + ...Mappers.NameIdentifier, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const retrieveSiteSealOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteSealRequest", + mapper: { + ...Mappers.SiteSealRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteSeal + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const verifyDomainOwnershipOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const retrieveCertificateActionsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateOrderAction" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const retrieveCertificateEmailHistoryOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateEmail" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "certificateDistinguishedName", + mapper: { + ...Mappers.AppServiceCertificateOrder, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrder + }, + 201: { + bodyMapper: Mappers.AppServiceCertificateOrder + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.certificateOrderName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "keyVaultCertificate", + mapper: { + ...Mappers.AppServiceCertificateResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateResource + }, + 201: { + bodyMapper: Mappers.AppServiceCertificateResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrderCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateOrderCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listCertificatesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceCertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/appServiceEnvironments.ts b/packages/@azure/arm-appservice/lib/operations/appServiceEnvironments.ts new file mode 100644 index 000000000000..cdecacb90b12 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/appServiceEnvironments.ts @@ -0,0 +1,3774 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/appServiceEnvironmentsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a AppServiceEnvironments. */ +export class AppServiceEnvironments { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a AppServiceEnvironments. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get all App Service Environments for a subscription. + * @summary Get all App Service Environments for a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get all App Service Environments in a resource group. + * @summary Get all App Service Environments in a resource group. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of an App Service Environment. + * @summary Get the properties of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update an App Service Environment. + * @summary Create or update an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: Models.AppServiceEnvironmentResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,name,hostingEnvironmentEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete an App Service Environment. + * @summary Delete an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsDeleteMethodOptionalParams): Promise { + return this.beginDeleteMethod(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update an App Service Environment. + * @summary Create or update an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: Models.AppServiceEnvironmentPatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment. + * @param callback The callback + */ + update(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: Models.AppServiceEnvironmentPatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: Models.AppServiceEnvironmentPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: Models.AppServiceEnvironmentPatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + hostingEnvironmentEnvelope, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Get the used, available, and total worker capacity an App Service Environment. + * @summary Get the used, available, and total worker capacity an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listCapacities(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listCapacities(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listCapacities(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCapacities(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listCapacitiesOperationSpec, + callback) as Promise; + } + + /** + * Get IP addresses assigned to an App Service Environment. + * @summary Get IP addresses assigned to an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listVips(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listVips(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listVips(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVips(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listVipsOperationSpec, + callback) as Promise; + } + + /** + * Move an App Service Environment to a different VNET. + * @summary Move an App Service Environment to a different VNET. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param vnetInfo Details for the new virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + changeVnet(resourceGroupName: string, name: string, vnetInfo: Models.VirtualNetworkProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginChangeVnet(resourceGroupName,name,vnetInfo,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get diagnostic information for an App Service Environment. + * @summary Get diagnostic information for an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listDiagnostics(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listDiagnostics(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listDiagnostics(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDiagnostics(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listDiagnosticsOperationSpec, + callback) as Promise; + } + + /** + * Get a diagnostics item for an App Service Environment. + * @summary Get a diagnostics item for an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param diagnosticsName Name of the diagnostics item. + * @param [options] The optional parameters + * @returns Promise + */ + getDiagnosticsItem(resourceGroupName: string, name: string, diagnosticsName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param diagnosticsName Name of the diagnostics item. + * @param callback The callback + */ + getDiagnosticsItem(resourceGroupName: string, name: string, diagnosticsName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param diagnosticsName Name of the diagnostics item. + * @param options The optional parameters + * @param callback The callback + */ + getDiagnosticsItem(resourceGroupName: string, name: string, diagnosticsName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDiagnosticsItem(resourceGroupName: string, name: string, diagnosticsName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + diagnosticsName, + options + }, + getDiagnosticsItemOperationSpec, + callback) as Promise; + } + + /** + * Get global metric definitions of an App Service Environment. + * @summary Get global metric definitions of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefinitions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMetricDefinitions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefinitions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefinitions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Get global metrics of an App Service Environment. + * @summary Get global metrics of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMetrics(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMetrics(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMetrics(resourceGroupName: string, name: string, options: Models.AppServiceEnvironmentsListMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listMetrics(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricsOperationSpec, + callback) as Promise; + } + + /** + * Get all multi-role pools. + * @summary Get all multi-role pools. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRolePools(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMultiRolePools(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePools(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePools(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMultiRolePoolsOperationSpec, + callback) as Promise; + } + + /** + * Get properties of a multi-role pool. + * @summary Get properties of a multi-role pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + getMultiRolePool(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + getMultiRolePool(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + getMultiRolePool(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMultiRolePool(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getMultiRolePoolOperationSpec, + callback) as Promise; + } + + /** + * Create or update a multi-role pool. + * @summary Create or update a multi-role pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param multiRolePoolEnvelope Properties of the multi-role pool. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateMultiRolePool(resourceGroupName,name,multiRolePoolEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Create or update a multi-role pool. + * @summary Create or update a multi-role pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param multiRolePoolEnvelope Properties of the multi-role pool. + * @param [options] The optional parameters + * @returns Promise + */ + updateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param multiRolePoolEnvelope Properties of the multi-role pool. + * @param callback The callback + */ + updateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: Models.WorkerPoolResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param multiRolePoolEnvelope Properties of the multi-role pool. + * @param options The optional parameters + * @param callback The callback + */ + updateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: Models.WorkerPoolResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + multiRolePoolEnvelope, + options + }, + updateMultiRolePoolOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a specific instance of a multi-role pool of an App Service + * Environment. + * @summary Get metric definitions for a specific instance of a multi-role pool of an App Service + * Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param instance Name of the instance in the multi-role pool. + * @param [options] The optional parameters + * @returns + * Promise + */ + listMultiRolePoolInstanceMetricDefinitions(resourceGroupName: string, name: string, instance: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param instance Name of the instance in the multi-role pool. + * @param callback The callback + */ + listMultiRolePoolInstanceMetricDefinitions(resourceGroupName: string, name: string, instance: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param instance Name of the instance in the multi-role pool. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolInstanceMetricDefinitions(resourceGroupName: string, name: string, instance: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePoolInstanceMetricDefinitions(resourceGroupName: string, name: string, instance: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + instance, + options + }, + listMultiRolePoolInstanceMetricDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a specific instance of a multi-role pool of an App Service Environment. + * @summary Get metrics for a specific instance of a multi-role pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param instance Name of the instance in the multi-role pool. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRolePoolInstanceMetrics(resourceGroupName: string, name: string, instance: string, options?: Models.AppServiceEnvironmentsListMultiRolePoolInstanceMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param instance Name of the instance in the multi-role pool. + * @param callback The callback + */ + listMultiRolePoolInstanceMetrics(resourceGroupName: string, name: string, instance: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param instance Name of the instance in the multi-role pool. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolInstanceMetrics(resourceGroupName: string, name: string, instance: string, options: Models.AppServiceEnvironmentsListMultiRolePoolInstanceMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listMultiRolePoolInstanceMetrics(resourceGroupName: string, name: string, instance: string, options?: Models.AppServiceEnvironmentsListMultiRolePoolInstanceMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + instance, + options + }, + listMultiRolePoolInstanceMetricsOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a multi-role pool of an App Service Environment. + * @summary Get metric definitions for a multi-role pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRoleMetricDefinitions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMultiRoleMetricDefinitions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRoleMetricDefinitions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRoleMetricDefinitions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMultiRoleMetricDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a multi-role pool of an App Service Environment. + * @summary Get metrics for a multi-role pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRoleMetrics(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListMultiRoleMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMultiRoleMetrics(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRoleMetrics(resourceGroupName: string, name: string, options: Models.AppServiceEnvironmentsListMultiRoleMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listMultiRoleMetrics(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListMultiRoleMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMultiRoleMetricsOperationSpec, + callback) as Promise; + } + + /** + * Get available SKUs for scaling a multi-role pool. + * @summary Get available SKUs for scaling a multi-role pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRolePoolSkus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMultiRolePoolSkus(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolSkus(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePoolSkus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMultiRolePoolSkusOperationSpec, + callback) as Promise; + } + + /** + * Get usage metrics for a multi-role pool of an App Service Environment. + * @summary Get usage metrics for a multi-role pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRoleUsages(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listMultiRoleUsages(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRoleUsages(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRoleUsages(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMultiRoleUsagesOperationSpec, + callback) as Promise; + } + + /** + * List all currently running operations on the App Service Environment. + * @summary List all currently running operations on the App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listOperations(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listOperations(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listOperations(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperations(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listOperationsOperationSpec, + callback) as Promise; + } + + /** + * Reboot all machines in an App Service Environment. + * @summary Reboot all machines in an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + reboot(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + reboot(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + reboot(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + reboot(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + rebootOperationSpec, + callback); + } + + /** + * Resume an App Service Environment. + * @summary Resume an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + resume(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResume(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get all App Service plans in an App Service Environment. + * @summary Get all App Service plans in an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listAppServicePlans(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listAppServicePlans(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listAppServicePlans(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAppServicePlans(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listAppServicePlansOperationSpec, + callback) as Promise; + } + + /** + * Get all apps in an App Service Environment. + * @summary Get all apps in an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listWebApps(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListWebAppsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listWebApps(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listWebApps(resourceGroupName: string, name: string, options: Models.AppServiceEnvironmentsListWebAppsOptionalParams, callback: msRest.ServiceCallback): void; + listWebApps(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListWebAppsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listWebAppsOperationSpec, + callback) as Promise; + } + + /** + * Suspend an App Service Environment. + * @summary Suspend an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + suspend(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginSuspend(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get global usage metrics of an App Service Environment. + * @summary Get global usage metrics of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listUsages(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListUsagesOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listUsages(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listUsages(resourceGroupName: string, name: string, options: Models.AppServiceEnvironmentsListUsagesOptionalParams, callback: msRest.ServiceCallback): void; + listUsages(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsListUsagesOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listUsagesOperationSpec, + callback) as Promise; + } + + /** + * Get all worker pools of an App Service Environment. + * @summary Get all worker pools of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPools(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param callback The callback + */ + listWorkerPools(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPools(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPools(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listWorkerPoolsOperationSpec, + callback) as Promise; + } + + /** + * Get properties of a worker pool. + * @summary Get properties of a worker pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + getWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param callback The callback + */ + getWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + getWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + options + }, + getWorkerPoolOperationSpec, + callback) as Promise; + } + + /** + * Create or update a worker pool. + * @summary Create or update a worker pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param workerPoolEnvelope Properties of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateWorkerPool(resourceGroupName,name,workerPoolName,workerPoolEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Create or update a worker pool. + * @summary Create or update a worker pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param workerPoolEnvelope Properties of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + updateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param workerPoolEnvelope Properties of the worker pool. + * @param callback The callback + */ + updateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: Models.WorkerPoolResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param workerPoolEnvelope Properties of the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + updateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: Models.WorkerPoolResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + workerPoolEnvelope, + options + }, + updateWorkerPoolOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a specific instance of a worker pool of an App Service Environment. + * @summary Get metric definitions for a specific instance of a worker pool of an App Service + * Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param instance Name of the instance in the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPoolInstanceMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param instance Name of the instance in the worker pool. + * @param callback The callback + */ + listWorkerPoolInstanceMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, instance: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param instance Name of the instance in the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolInstanceMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPoolInstanceMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + instance, + options + }, + listWorkerPoolInstanceMetricDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a specific instance of a worker pool of an App Service Environment. + * @summary Get metrics for a specific instance of a worker pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param instance Name of the instance in the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPoolInstanceMetrics(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options?: Models.AppServiceEnvironmentsListWorkerPoolInstanceMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param instance Name of the instance in the worker pool. + * @param callback The callback + */ + listWorkerPoolInstanceMetrics(resourceGroupName: string, name: string, workerPoolName: string, instance: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param instance Name of the instance in the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolInstanceMetrics(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options: Models.AppServiceEnvironmentsListWorkerPoolInstanceMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listWorkerPoolInstanceMetrics(resourceGroupName: string, name: string, workerPoolName: string, instance: string, options?: Models.AppServiceEnvironmentsListWorkerPoolInstanceMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + instance, + options + }, + listWorkerPoolInstanceMetricsOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a worker pool of an App Service Environment. + * @summary Get metric definitions for a worker pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + listWebWorkerMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param callback The callback + */ + listWebWorkerMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + listWebWorkerMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebWorkerMetricDefinitions(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + options + }, + listWebWorkerMetricDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment). + * @summary Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of worker pool + * @param [options] The optional parameters + * @returns Promise + */ + listWebWorkerMetrics(resourceGroupName: string, name: string, workerPoolName: string, options?: Models.AppServiceEnvironmentsListWebWorkerMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of worker pool + * @param callback The callback + */ + listWebWorkerMetrics(resourceGroupName: string, name: string, workerPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of worker pool + * @param options The optional parameters + * @param callback The callback + */ + listWebWorkerMetrics(resourceGroupName: string, name: string, workerPoolName: string, options: Models.AppServiceEnvironmentsListWebWorkerMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listWebWorkerMetrics(resourceGroupName: string, name: string, workerPoolName: string, options?: Models.AppServiceEnvironmentsListWebWorkerMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + options + }, + listWebWorkerMetricsOperationSpec, + callback) as Promise; + } + + /** + * Get available SKUs for scaling a worker pool. + * @summary Get available SKUs for scaling a worker pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPoolSkus(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param callback The callback + */ + listWorkerPoolSkus(resourceGroupName: string, name: string, workerPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolSkus(resourceGroupName: string, name: string, workerPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPoolSkus(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + options + }, + listWorkerPoolSkusOperationSpec, + callback) as Promise; + } + + /** + * Get usage metrics for a worker pool of an App Service Environment. + * @summary Get usage metrics for a worker pool of an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + listWebWorkerUsages(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param callback The callback + */ + listWebWorkerUsages(resourceGroupName: string, name: string, workerPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param options The optional parameters + * @param callback The callback + */ + listWebWorkerUsages(resourceGroupName: string, name: string, workerPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebWorkerUsages(resourceGroupName: string, name: string, workerPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerPoolName, + options + }, + listWebWorkerUsagesOperationSpec, + callback) as Promise; + } + + /** + * Create or update an App Service Environment. + * @summary Create or update an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param hostingEnvironmentEnvelope Configuration details of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, name: string, hostingEnvironmentEnvelope: Models.AppServiceEnvironmentResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + hostingEnvironmentEnvelope, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete an App Service Environment. + * @summary Delete an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, name: string, options?: Models.AppServiceEnvironmentsBeginDeleteMethodOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Move an App Service Environment to a different VNET. + * @summary Move an App Service Environment to a different VNET. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param vnetInfo Details for the new virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + beginChangeVnet(resourceGroupName: string, name: string, vnetInfo: Models.VirtualNetworkProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + vnetInfo, + options + }, + beginChangeVnetOperationSpec, + options); + } + + /** + * Create or update a multi-role pool. + * @summary Create or update a multi-role pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param multiRolePoolEnvelope Properties of the multi-role pool. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateMultiRolePool(resourceGroupName: string, name: string, multiRolePoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + multiRolePoolEnvelope, + options + }, + beginCreateOrUpdateMultiRolePoolOperationSpec, + options); + } + + /** + * Resume an App Service Environment. + * @summary Resume an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + beginResume(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginResumeOperationSpec, + options); + } + + /** + * Suspend an App Service Environment. + * @summary Suspend an App Service Environment. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param [options] The optional parameters + * @returns Promise + */ + beginSuspend(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginSuspendOperationSpec, + options); + } + + /** + * Create or update a worker pool. + * @summary Create or update a worker pool. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param workerPoolName Name of the worker pool. + * @param workerPoolEnvelope Properties of the worker pool. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateWorkerPool(resourceGroupName: string, name: string, workerPoolName: string, workerPoolEnvelope: Models.WorkerPoolResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + workerPoolName, + workerPoolEnvelope, + options + }, + beginCreateOrUpdateWorkerPoolOperationSpec, + options); + } + + /** + * Get all App Service Environments for a subscription. + * @summary Get all App Service Environments for a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get all App Service Environments in a resource group. + * @summary Get all App Service Environments in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Get the used, available, and total worker capacity an App Service Environment. + * @summary Get the used, available, and total worker capacity an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listCapacitiesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listCapacitiesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listCapacitiesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCapacitiesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listCapacitiesNextOperationSpec, + callback) as Promise; + } + + /** + * Move an App Service Environment to a different VNET. + * @summary Move an App Service Environment to a different VNET. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + changeVnetNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginChangeVnetNext(nextPageLink,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get global metrics of an App Service Environment. + * @summary Get global metrics of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Get all multi-role pools. + * @summary Get all multi-role pools. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRolePoolsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRolePoolsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePoolsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRolePoolsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a specific instance of a multi-role pool of an App Service + * Environment. + * @summary Get metric definitions for a specific instance of a multi-role pool of an App Service + * Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listMultiRolePoolInstanceMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRolePoolInstanceMetricDefinitionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolInstanceMetricDefinitionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePoolInstanceMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRolePoolInstanceMetricDefinitionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a specific instance of a multi-role pool of an App Service Environment. + * @summary Get metrics for a specific instance of a multi-role pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRolePoolInstanceMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRolePoolInstanceMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolInstanceMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePoolInstanceMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRolePoolInstanceMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a multi-role pool of an App Service Environment. + * @summary Get metric definitions for a multi-role pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRoleMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRoleMetricDefinitionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRoleMetricDefinitionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRoleMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRoleMetricDefinitionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a multi-role pool of an App Service Environment. + * @summary Get metrics for a multi-role pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRoleMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRoleMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRoleMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRoleMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRoleMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Get available SKUs for scaling a multi-role pool. + * @summary Get available SKUs for scaling a multi-role pool. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRolePoolSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRolePoolSkusNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRolePoolSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRolePoolSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRolePoolSkusNextOperationSpec, + callback) as Promise; + } + + /** + * Get usage metrics for a multi-role pool of an App Service Environment. + * @summary Get usage metrics for a multi-role pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMultiRoleUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMultiRoleUsagesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMultiRoleUsagesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMultiRoleUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMultiRoleUsagesNextOperationSpec, + callback) as Promise; + } + + /** + * Resume an App Service Environment. + * @summary Resume an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + resumeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResumeNext(nextPageLink,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get all App Service plans in an App Service Environment. + * @summary Get all App Service plans in an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAppServicePlansNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAppServicePlansNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAppServicePlansNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAppServicePlansNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAppServicePlansNextOperationSpec, + callback) as Promise; + } + + /** + * Get all apps in an App Service Environment. + * @summary Get all apps in an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebAppsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebAppsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebAppsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebAppsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebAppsNextOperationSpec, + callback) as Promise; + } + + /** + * Suspend an App Service Environment. + * @summary Suspend an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + suspendNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginSuspendNext(nextPageLink,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get global usage metrics of an App Service Environment. + * @summary Get global usage metrics of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listUsagesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listUsagesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUsagesNextOperationSpec, + callback) as Promise; + } + + /** + * Get all worker pools of an App Service Environment. + * @summary Get all worker pools of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPoolsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWorkerPoolsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPoolsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWorkerPoolsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a specific instance of a worker pool of an App Service Environment. + * @summary Get metric definitions for a specific instance of a worker pool of an App Service + * Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWorkerPoolInstanceMetricDefinitionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a specific instance of a worker pool of an App Service Environment. + * @summary Get metrics for a specific instance of a worker pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPoolInstanceMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWorkerPoolInstanceMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolInstanceMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPoolInstanceMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWorkerPoolInstanceMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metric definitions for a worker pool of an App Service Environment. + * @summary Get metric definitions for a worker pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebWorkerMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebWorkerMetricDefinitionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebWorkerMetricDefinitionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebWorkerMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebWorkerMetricDefinitionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment). + * @summary Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebWorkerMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebWorkerMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebWorkerMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebWorkerMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebWorkerMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Get available SKUs for scaling a worker pool. + * @summary Get available SKUs for scaling a worker pool. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWorkerPoolSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWorkerPoolSkusNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWorkerPoolSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWorkerPoolSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWorkerPoolSkusNextOperationSpec, + callback) as Promise; + } + + /** + * Get usage metrics for a worker pool of an App Service Environment. + * @summary Get usage metrics for a worker pool of an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebWorkerUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebWorkerUsagesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebWorkerUsagesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebWorkerUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebWorkerUsagesNextOperationSpec, + callback) as Promise; + } + + /** + * Move an App Service Environment to a different VNET. + * @summary Move an App Service Environment to a different VNET. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginChangeVnetNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + nextPageLink, + options + }, + beginChangeVnetNextOperationSpec, + options); + } + + /** + * Resume an App Service Environment. + * @summary Resume an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginResumeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + nextPageLink, + options + }, + beginResumeNextOperationSpec, + options); + } + + /** + * Suspend an App Service Environment. + * @summary Suspend an App Service Environment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginSuspendNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + nextPageLink, + options + }, + beginSuspendNextOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "hostingEnvironmentEnvelope", + mapper: { + ...Mappers.AppServiceEnvironmentPatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentResource + }, + 202: { + bodyMapper: Mappers.AppServiceEnvironmentResource + }, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listCapacitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StampCapacityCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listVipsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddressResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDiagnosticsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostingEnvironmentDiagnostics" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDiagnosticsItemOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.diagnosticsName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostingEnvironmentDiagnostics + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MetricDefinition + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMultiRolePoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateMultiRolePoolOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "multiRolePoolEnvelope", + mapper: { + ...Mappers.WorkerPoolResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolResource + }, + 202: { + bodyMapper: Mappers.WorkerPoolResource + }, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listMultiRolePoolInstanceMetricDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.instance, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolInstanceMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.instance, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRoleMetricDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRoleMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime1, + Parameters.endTime1, + Parameters.timeGrain1, + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRoleUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UsageCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOperationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const rebootOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/reboot", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAppServicePlansOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/serverfarms", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlanCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebAppsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/sites", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.propertiesToInclude, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getWorkerPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateWorkerPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workerPoolEnvelope", + mapper: { + ...Mappers.WorkerPoolResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolResource + }, + 202: { + bodyMapper: Mappers.WorkerPoolResource + }, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listWorkerPoolInstanceMetricDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.instance, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolInstanceMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.instance, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebWorkerMetricDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebWorkerMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/skus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebWorkerUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UsageCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "hostingEnvironmentEnvelope", + mapper: { + ...Mappers.AppServiceEnvironmentResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentResource + }, + 202: { + bodyMapper: Mappers.AppServiceEnvironmentResource + }, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.forceDelete, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginChangeVnetOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/changeVirtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "vnetInfo", + mapper: { + ...Mappers.VirtualNetworkProfile, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + 202: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateMultiRolePoolOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "multiRolePoolEnvelope", + mapper: { + ...Mappers.WorkerPoolResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolResource + }, + 202: { + bodyMapper: Mappers.WorkerPoolResource + }, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResumeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/resume", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + 202: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginSuspendOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/suspend", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + 202: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateWorkerPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workerPoolEnvelope", + mapper: { + ...Mappers.WorkerPoolResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolResource + }, + 202: { + bodyMapper: Mappers.WorkerPoolResource + }, + 400: {}, + 404: {}, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServiceEnvironmentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listCapacitiesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StampCapacityCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolInstanceMetricDefinitionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolInstanceMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRoleMetricDefinitionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRoleMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRolePoolSkusNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMultiRoleUsagesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UsageCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listAppServicePlansNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlanCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebAppsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listUsagesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkerPoolCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolInstanceMetricDefinitionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolInstanceMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebWorkerMetricDefinitionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebWorkerMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWorkerPoolSkusNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebWorkerUsagesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UsageCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginChangeVnetNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + 202: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginResumeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + 202: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginSuspendNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + 202: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts b/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts new file mode 100644 index 000000000000..48c10b8496a6 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts @@ -0,0 +1,2329 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/appServicePlansMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a AppServicePlans. */ +export class AppServicePlans { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a AppServicePlans. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get all App Service plans for a subcription. + * @summary Get all App Service plans for a subcription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.AppServicePlansListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.AppServicePlansListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.AppServicePlansListOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get all App Service plans in a resource group. + * @summary Get all App Service plans in a resource group. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get an App Service plan. + * @summary Get an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an App Service Plan. + * @summary Creates or updates an App Service Plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param appServicePlan Details of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, name: string, appServicePlan: Models.AppServicePlan, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,name,appServicePlan,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete an App Service plan. + * @summary Delete an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Creates or updates an App Service Plan. + * @summary Creates or updates an App Service Plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param appServicePlan Details of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, name: string, appServicePlan: Models.AppServicePlanPatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param appServicePlan Details of the App Service plan. + * @param callback The callback + */ + update(resourceGroupName: string, name: string, appServicePlan: Models.AppServicePlanPatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param appServicePlan Details of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, name: string, appServicePlan: Models.AppServicePlanPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, name: string, appServicePlan: Models.AppServicePlanPatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + appServicePlan, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List all capabilities of an App Service plan. + * @summary List all capabilities of an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + listCapabilities(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + listCapabilities(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + listCapabilities(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCapabilities(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listCapabilitiesOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a Hybrid Connection in use in an App Service plan. + * @summary Retrieve a Hybrid Connection in use in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Service Bus namespace. + * @param relayName Name of the Service Bus relay. + * @param [options] The optional parameters + * @returns Promise + */ + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Service Bus namespace. + * @param relayName Name of the Service Bus relay. + * @param callback The callback + */ + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Service Bus namespace. + * @param relayName Name of the Service Bus relay. + * @param options The optional parameters + * @param callback The callback + */ + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + getHybridConnectionOperationSpec, + callback) as Promise; + } + + /** + * Delete a Hybrid Connection in use in an App Service plan. + * @summary Delete a Hybrid Connection in use in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Service Bus namespace. + * @param relayName Name of the Service Bus relay. + * @param [options] The optional parameters + * @returns Promise + */ + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Service Bus namespace. + * @param relayName Name of the Service Bus relay. + * @param callback The callback + */ + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Service Bus namespace. + * @param relayName Name of the Service Bus relay. + * @param options The optional parameters + * @param callback The callback + */ + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + deleteHybridConnectionOperationSpec, + callback); + } + + /** + * Get the send key name and value of a Hybrid Connection. + * @summary Get the send key name and value of a Hybrid Connection. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName The name of the Service Bus namespace. + * @param relayName The name of the Service Bus relay. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName The name of the Service Bus namespace. + * @param relayName The name of the Service Bus relay. + * @param callback The callback + */ + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName The name of the Service Bus namespace. + * @param relayName The name of the Service Bus relay. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + listHybridConnectionKeysOperationSpec, + callback) as Promise; + } + + /** + * Get all apps that use a Hybrid Connection in an App Service Plan. + * @summary Get all apps that use a Hybrid Connection in an App Service Plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Hybrid Connection namespace. + * @param relayName Name of the Hybrid Connection relay. + * @param [options] The optional parameters + * @returns Promise + */ + listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Hybrid Connection namespace. + * @param relayName Name of the Hybrid Connection relay. + * @param callback The callback + */ + listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param namespaceName Name of the Hybrid Connection namespace. + * @param relayName Name of the Hybrid Connection relay. + * @param options The optional parameters + * @param callback The callback + */ + listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebAppsByHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + listWebAppsByHybridConnectionOperationSpec, + callback) as Promise; + } + + /** + * Get the maximum number of Hybrid Connections allowed in an App Service plan. + * @summary Get the maximum number of Hybrid Connections allowed in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + getHybridConnectionPlanLimit(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + getHybridConnectionPlanLimit(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + getHybridConnectionPlanLimit(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHybridConnectionPlanLimit(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getHybridConnectionPlanLimitOperationSpec, + callback) as Promise; + } + + /** + * Retrieve all Hybrid Connections in use in an App Service plan. + * @summary Retrieve all Hybrid Connections in use in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + listHybridConnections(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnections(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listHybridConnectionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics that can be queried for an App Service plan, and their definitions. + * @summary Get metrics that can be queried for an App Service plan, and their definitions. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefintions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + listMetricDefintions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefintions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefintions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricDefintionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for an App Serice plan. + * @summary Get metrics for an App Serice plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + listMetrics(resourceGroupName: string, name: string, options?: Models.AppServicePlansListMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + listMetrics(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + listMetrics(resourceGroupName: string, name: string, options: Models.AppServicePlansListMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listMetrics(resourceGroupName: string, name: string, options?: Models.AppServicePlansListMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricsOperationSpec, + callback) as Promise; + } + + /** + * Restart all apps in an App Service plan. + * @summary Restart all apps in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + restartWebApps(resourceGroupName: string, name: string, options?: Models.AppServicePlansRestartWebAppsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + restartWebApps(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + restartWebApps(resourceGroupName: string, name: string, options: Models.AppServicePlansRestartWebAppsOptionalParams, callback: msRest.ServiceCallback): void; + restartWebApps(resourceGroupName: string, name: string, options?: Models.AppServicePlansRestartWebAppsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + restartWebAppsOperationSpec, + callback); + } + + /** + * Get all apps associated with an App Service plan. + * @summary Get all apps associated with an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + listWebApps(resourceGroupName: string, name: string, options?: Models.AppServicePlansListWebAppsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + listWebApps(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + listWebApps(resourceGroupName: string, name: string, options: Models.AppServicePlansListWebAppsOptionalParams, callback: msRest.ServiceCallback): void; + listWebApps(resourceGroupName: string, name: string, options?: Models.AppServicePlansListWebAppsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listWebAppsOperationSpec, + callback) as Promise; + } + + /** + * Gets all selectable sku's for a given App Service Plan + * @summary Gets all selectable sku's for a given App Service Plan + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of App Service Plan + * @param [options] The optional parameters + * @returns Promise + */ + getServerFarmSkus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of App Service Plan + * @param callback The callback + */ + getServerFarmSkus(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of App Service Plan + * @param options The optional parameters + * @param callback The callback + */ + getServerFarmSkus(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getServerFarmSkus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getServerFarmSkusOperationSpec, + callback) as Promise; + } + + /** + * Gets server farm usage information + * @summary Gets server farm usage information + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of App Service Plan + * @param [options] The optional parameters + * @returns Promise + */ + listUsages(resourceGroupName: string, name: string, options?: Models.AppServicePlansListUsagesOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of App Service Plan + * @param callback The callback + */ + listUsages(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of App Service Plan + * @param options The optional parameters + * @param callback The callback + */ + listUsages(resourceGroupName: string, name: string, options: Models.AppServicePlansListUsagesOptionalParams, callback: msRest.ServiceCallback): void; + listUsages(resourceGroupName: string, name: string, options?: Models.AppServicePlansListUsagesOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listUsagesOperationSpec, + callback) as Promise; + } + + /** + * Get all Virtual Networks associated with an App Service plan. + * @summary Get all Virtual Networks associated with an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + listVnets(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param callback The callback + */ + listVnets(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param options The optional parameters + * @param callback The callback + */ + listVnets(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVnets(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listVnetsOperationSpec, + callback) as Promise; + } + + /** + * Get a Virtual Network associated with an App Service plan. + * @summary Get a Virtual Network associated with an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param [options] The optional parameters + * @returns Promise + */ + getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param callback The callback + */ + getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param options The optional parameters + * @param callback The callback + */ + getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVnetFromServerFarm(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + options + }, + getVnetFromServerFarmOperationSpec, + callback) as Promise; + } + + /** + * Get a Virtual Network gateway. + * @summary Get a Virtual Network gateway. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported. + * @param [options] The optional parameters + * @returns Promise + */ + getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported. + * @param callback The callback + */ + getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported. + * @param options The optional parameters + * @param callback The callback + */ + getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + options + }, + getVnetGatewayOperationSpec, + callback) as Promise; + } + + /** + * Update a Virtual Network gateway. + * @summary Update a Virtual Network gateway. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported. + * @param connectionEnvelope Definition of the gateway. + * @param [options] The optional parameters + * @returns Promise + */ + updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported. + * @param connectionEnvelope Definition of the gateway. + * @param callback The callback + */ + updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Only the 'primary' gateway is supported. + * @param connectionEnvelope Definition of the gateway. + * @param options The optional parameters + * @param callback The callback + */ + updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateVnetGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + connectionEnvelope, + options + }, + updateVnetGatewayOperationSpec, + callback) as Promise; + } + + /** + * Get all routes that are associated with a Virtual Network in an App Service plan. + * @summary Get all routes that are associated with a Virtual Network in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param [options] The optional parameters + * @returns Promise + */ + listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param callback The callback + */ + listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param options The optional parameters + * @param callback The callback + */ + listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRoutesForVnet(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + options + }, + listRoutesForVnetOperationSpec, + callback) as Promise; + } + + /** + * Get a Virtual Network route in an App Service plan. + * @summary Get a Virtual Network route in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param [options] The optional parameters + * @returns Promise + */ + getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param callback The callback + */ + getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param options The optional parameters + * @param callback The callback + */ + getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRouteForVnet(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + routeName, + options + }, + getRouteForVnetOperationSpec, + callback) as Promise; + } + + /** + * Create or update a Virtual Network route in an App Service plan. + * @summary Create or update a Virtual Network route in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param route Definition of the Virtual Network route. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param route Definition of the Virtual Network route. + * @param callback The callback + */ + createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param route Definition of the Virtual Network route. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + routeName, + route, + options + }, + createOrUpdateVnetRouteOperationSpec, + callback) as Promise; + } + + /** + * Delete a Virtual Network route in an App Service plan. + * @summary Delete a Virtual Network route in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param [options] The optional parameters + * @returns Promise + */ + deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param callback The callback + */ + deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param options The optional parameters + * @param callback The callback + */ + deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + routeName, + options + }, + deleteVnetRouteOperationSpec, + callback); + } + + /** + * Create or update a Virtual Network route in an App Service plan. + * @summary Create or update a Virtual Network route in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param route Definition of the Virtual Network route. + * @param [options] The optional parameters + * @returns Promise + */ + updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param route Definition of the Virtual Network route. + * @param callback The callback + */ + updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param vnetName Name of the Virtual Network. + * @param routeName Name of the Virtual Network route. + * @param route Definition of the Virtual Network route. + * @param options The optional parameters + * @param callback The callback + */ + updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateVnetRoute(resourceGroupName: string, name: string, vnetName: string, routeName: string, route: Models.VnetRoute, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + routeName, + route, + options + }, + updateVnetRouteOperationSpec, + callback) as Promise; + } + + /** + * Reboot a worker machine in an App Service plan. + * @summary Reboot a worker machine in an App Service plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param workerName Name of worker machine, which typically starts with RD. + * @param [options] The optional parameters + * @returns Promise + */ + rebootWorker(resourceGroupName: string, name: string, workerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param workerName Name of worker machine, which typically starts with RD. + * @param callback The callback + */ + rebootWorker(resourceGroupName: string, name: string, workerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param workerName Name of worker machine, which typically starts with RD. + * @param options The optional parameters + * @param callback The callback + */ + rebootWorker(resourceGroupName: string, name: string, workerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + rebootWorker(resourceGroupName: string, name: string, workerName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + workerName, + options + }, + rebootWorkerOperationSpec, + callback); + } + + /** + * Creates or updates an App Service Plan. + * @summary Creates or updates an App Service Plan. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service plan. + * @param appServicePlan Details of the App Service plan. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, name: string, appServicePlan: Models.AppServicePlan, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + appServicePlan, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Get all App Service plans for a subcription. + * @summary Get all App Service plans for a subcription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get all App Service plans in a resource group. + * @summary Get all App Service plans in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Get all apps that use a Hybrid Connection in an App Service Plan. + * @summary Get all apps that use a Hybrid Connection in an App Service Plan. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebAppsByHybridConnectionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebAppsByHybridConnectionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebAppsByHybridConnectionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebAppsByHybridConnectionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebAppsByHybridConnectionNextOperationSpec, + callback) as Promise; + } + + /** + * Retrieve all Hybrid Connections in use in an App Service plan. + * @summary Retrieve all Hybrid Connections in use in an App Service plan. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHybridConnectionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnectionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHybridConnectionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics that can be queried for an App Service plan, and their definitions. + * @summary Get metrics that can be queried for an App Service plan, and their definitions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefintionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricDefintionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefintionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefintionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricDefintionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for an App Serice plan. + * @summary Get metrics for an App Serice plan. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Get all apps associated with an App Service plan. + * @summary Get all apps associated with an App Service plan. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebAppsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebAppsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebAppsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebAppsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebAppsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets server farm usage information + * @summary Gets server farm usage information + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listUsagesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listUsagesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUsagesNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/serverfarms", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.detailed, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlanCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlanCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlan + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appServicePlan", + mapper: { + ...Mappers.AppServicePlanPatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServicePlan + }, + 202: { + bodyMapper: Mappers.AppServicePlan + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listCapabilitiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/capabilities", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Capability" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listHybridConnectionKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnectionKey + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebAppsByHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/sites", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getHybridConnectionPlanLimitOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionPlanLimits/limit", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnectionLimits + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHybridConnectionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionRelays", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnectionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricDefintionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const restartWebAppsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.softRestart, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listWebAppsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/sites", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.skipToken, + Parameters.filter, + Parameters.top, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getServerFarmSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Object" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listVnetsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getVnetFromServerFarmOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getVnetGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateVnetGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRoutesForVnetOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetRoute" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getRouteForVnetOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetRoute" + } + } + } + } + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateVnetRouteOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "route", + mapper: { + ...Mappers.VnetRoute, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetRoute + }, + 400: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteVnetRouteOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateVnetRouteOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "route", + mapper: { + ...Mappers.VnetRoute, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetRoute + }, + 400: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const rebootWorkerOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.workerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appServicePlan", + mapper: { + ...Mappers.AppServicePlan, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AppServicePlan + }, + 202: { + bodyMapper: Mappers.AppServicePlan + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlanCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AppServicePlanCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebAppsByHybridConnectionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHybridConnectionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnectionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricDefintionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebAppsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listUsagesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/certificateRegistrationProvider.ts b/packages/@azure/arm-appservice/lib/operations/certificateRegistrationProvider.ts new file mode 100644 index 000000000000..481948a7efd3 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/certificateRegistrationProvider.ts @@ -0,0 +1,129 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/certificateRegistrationProviderMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a CertificateRegistrationProvider. */ +export class CertificateRegistrationProvider { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a CertificateRegistrationProvider. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Implements Csm operations Api to exposes the list of available Csm Apis under the resource + * provider + * @summary Implements Csm operations Api to exposes the list of available Csm Apis under the + * resource provider + * @param [options] The optional parameters + * @returns Promise + */ + listOperations(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listOperations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperations(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationsOperationSpec, + callback) as Promise; + } + + /** + * Implements Csm operations Api to exposes the list of available Csm Apis under the resource + * provider + * @summary Implements Csm operations Api to exposes the list of available Csm Apis under the + * resource provider + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listOperationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listOperationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listOperationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listOperationsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.CertificateRegistration/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmOperationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOperationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmOperationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/certificates.ts b/packages/@azure/arm-appservice/lib/operations/certificates.ts new file mode 100644 index 000000000000..a379b6132c55 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/certificates.ts @@ -0,0 +1,484 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/certificatesMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a Certificates. */ +export class Certificates { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a Certificates. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get all certificates for a subscription. + * @summary Get all certificates for a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get all certificates in a resource group. + * @summary Get all certificates in a resource group. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get a certificate. + * @summary Get a certificate. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param callback The callback + */ + get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update a certificate. + * @summary Create or update a certificate. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param certificateEnvelope Details of certificate, if it exists already. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, name: string, certificateEnvelope: Models.Certificate, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param certificateEnvelope Details of certificate, if it exists already. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, name: string, certificateEnvelope: Models.Certificate, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param certificateEnvelope Details of certificate, if it exists already. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, name: string, certificateEnvelope: Models.Certificate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, name: string, certificateEnvelope: Models.Certificate, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + certificateEnvelope, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete a certificate. + * @summary Delete a certificate. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Create or update a certificate. + * @summary Create or update a certificate. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param certificateEnvelope Details of certificate, if it exists already. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, name: string, certificateEnvelope: Models.CertificatePatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param certificateEnvelope Details of certificate, if it exists already. + * @param callback The callback + */ + update(resourceGroupName: string, name: string, certificateEnvelope: Models.CertificatePatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the certificate. + * @param certificateEnvelope Details of certificate, if it exists already. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, name: string, certificateEnvelope: Models.CertificatePatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, name: string, certificateEnvelope: Models.CertificatePatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + certificateEnvelope, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Get all certificates for a subscription. + * @summary Get all certificates for a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get all certificates in a resource group. + * @summary Get all certificates in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Certificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "certificateEnvelope", + mapper: { + ...Mappers.Certificate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Certificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "certificateEnvelope", + mapper: { + ...Mappers.CertificatePatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Certificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/deletedWebApps.ts b/packages/@azure/arm-appservice/lib/operations/deletedWebApps.ts new file mode 100644 index 000000000000..6e26a39931fd --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/deletedWebApps.ts @@ -0,0 +1,128 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/deletedWebAppsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a DeletedWebApps. */ +export class DeletedWebApps { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a DeletedWebApps. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get all deleted apps for a subscription. + * @summary Get all deleted apps for a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get all deleted apps for a subscription. + * @summary Get all deleted apps for a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedWebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedWebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/diagnostics.ts b/packages/@azure/arm-appservice/lib/operations/diagnostics.ts new file mode 100644 index 000000000000..2b301ff83e27 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/diagnostics.ts @@ -0,0 +1,2052 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/diagnosticsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a Diagnostics. */ +export class Diagnostics { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a Diagnostics. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * List Hosting Environment Detector Responses + * @summary List Hosting Environment Detector Responses + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site Name + * @param [options] The optional parameters + * @returns Promise + */ + listHostingEnvironmentDetectorResponses(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site Name + * @param callback The callback + */ + listHostingEnvironmentDetectorResponses(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site Name + * @param options The optional parameters + * @param callback The callback + */ + listHostingEnvironmentDetectorResponses(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostingEnvironmentDetectorResponses(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listHostingEnvironmentDetectorResponsesOperationSpec, + callback) as Promise; + } + + /** + * Get Hosting Environment Detector Response + * @summary Get Hosting Environment Detector Response + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param [options] The optional parameters + * @returns Promise + */ + getHostingEnvironmentDetectorResponse(resourceGroupName: string, name: string, detectorName: string, options?: Models.DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param callback The callback + */ + getHostingEnvironmentDetectorResponse(resourceGroupName: string, name: string, detectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param options The optional parameters + * @param callback The callback + */ + getHostingEnvironmentDetectorResponse(resourceGroupName: string, name: string, detectorName: string, options: Models.DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams, callback: msRest.ServiceCallback): void; + getHostingEnvironmentDetectorResponse(resourceGroupName: string, name: string, detectorName: string, options?: Models.DiagnosticsGetHostingEnvironmentDetectorResponseOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + detectorName, + options + }, + getHostingEnvironmentDetectorResponseOperationSpec, + callback) as Promise; + } + + /** + * List Site Detector Responses + * @summary List Site Detector Responses + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorResponses(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param callback The callback + */ + listSiteDetectorResponses(resourceGroupName: string, siteName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorResponses(resourceGroupName: string, siteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorResponses(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + options + }, + listSiteDetectorResponsesOperationSpec, + callback) as Promise; + } + + /** + * Get site detector response + * @summary Get site detector response + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDetectorResponse(resourceGroupName: string, siteName: string, detectorName: string, options?: Models.DiagnosticsGetSiteDetectorResponseOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param callback The callback + */ + getSiteDetectorResponse(resourceGroupName: string, siteName: string, detectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param options The optional parameters + * @param callback The callback + */ + getSiteDetectorResponse(resourceGroupName: string, siteName: string, detectorName: string, options: Models.DiagnosticsGetSiteDetectorResponseOptionalParams, callback: msRest.ServiceCallback): void; + getSiteDetectorResponse(resourceGroupName: string, siteName: string, detectorName: string, options?: Models.DiagnosticsGetSiteDetectorResponseOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + detectorName, + options + }, + getSiteDetectorResponseOperationSpec, + callback) as Promise; + } + + /** + * Get Diagnostics Categories + * @summary Get Diagnostics Categories + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDiagnosticCategories(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param callback The callback + */ + listSiteDiagnosticCategories(resourceGroupName: string, siteName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param options The optional parameters + * @param callback The callback + */ + listSiteDiagnosticCategories(resourceGroupName: string, siteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDiagnosticCategories(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + options + }, + listSiteDiagnosticCategoriesOperationSpec, + callback) as Promise; + } + + /** + * Get Diagnostics Category + * @summary Get Diagnostics Category + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDiagnosticCategory(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param callback The callback + */ + getSiteDiagnosticCategory(resourceGroupName: string, siteName: string, diagnosticCategory: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param options The optional parameters + * @param callback The callback + */ + getSiteDiagnosticCategory(resourceGroupName: string, siteName: string, diagnosticCategory: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteDiagnosticCategory(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + options + }, + getSiteDiagnosticCategoryOperationSpec, + callback) as Promise; + } + + /** + * Get Site Analyses + * @summary Get Site Analyses + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param [options] The optional parameters + * @returns Promise + */ + listSiteAnalyses(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param callback The callback + */ + listSiteAnalyses(resourceGroupName: string, siteName: string, diagnosticCategory: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param options The optional parameters + * @param callback The callback + */ + listSiteAnalyses(resourceGroupName: string, siteName: string, diagnosticCategory: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteAnalyses(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + options + }, + listSiteAnalysesOperationSpec, + callback) as Promise; + } + + /** + * Get Site Analysis + * @summary Get Site Analysis + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param [options] The optional parameters + * @returns Promise + */ + getSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param callback The callback + */ + getSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param options The optional parameters + * @param callback The callback + */ + getSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + analysisName, + options + }, + getSiteAnalysisOperationSpec, + callback) as Promise; + } + + /** + * Execute Analysis + * @summary Execute Analysis + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param [options] The optional parameters + * @returns Promise + */ + executeSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options?: Models.DiagnosticsExecuteSiteAnalysisOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param callback The callback + */ + executeSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param options The optional parameters + * @param callback The callback + */ + executeSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options: Models.DiagnosticsExecuteSiteAnalysisOptionalParams, callback: msRest.ServiceCallback): void; + executeSiteAnalysis(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, options?: Models.DiagnosticsExecuteSiteAnalysisOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + analysisName, + options + }, + executeSiteAnalysisOperationSpec, + callback) as Promise; + } + + /** + * Get Detectors + * @summary Get Detectors + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectors(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param callback The callback + */ + listSiteDetectors(resourceGroupName: string, siteName: string, diagnosticCategory: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectors(resourceGroupName: string, siteName: string, diagnosticCategory: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectors(resourceGroupName: string, siteName: string, diagnosticCategory: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + options + }, + listSiteDetectorsOperationSpec, + callback) as Promise; + } + + /** + * Get Detector + * @summary Get Detector + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDetector(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name + * @param callback The callback + */ + getSiteDetector(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name + * @param options The optional parameters + * @param callback The callback + */ + getSiteDetector(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteDetector(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + detectorName, + options + }, + getSiteDetectorOperationSpec, + callback) as Promise; + } + + /** + * Execute Detector + * @summary Execute Detector + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param [options] The optional parameters + * @returns Promise + */ + executeSiteDetector(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, options?: Models.DiagnosticsExecuteSiteDetectorOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param callback The callback + */ + executeSiteDetector(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param options The optional parameters + * @param callback The callback + */ + executeSiteDetector(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, options: Models.DiagnosticsExecuteSiteDetectorOptionalParams, callback: msRest.ServiceCallback): void; + executeSiteDetector(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, options?: Models.DiagnosticsExecuteSiteDetectorOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + detectorName, + diagnosticCategory, + options + }, + executeSiteDetectorOperationSpec, + callback) as Promise; + } + + /** + * List Site Detector Responses + * @summary List Site Detector Responses + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorResponsesSlot(resourceGroupName: string, siteName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param slot Slot Name + * @param callback The callback + */ + listSiteDetectorResponsesSlot(resourceGroupName: string, siteName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorResponsesSlot(resourceGroupName: string, siteName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorResponsesSlot(resourceGroupName: string, siteName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + slot, + options + }, + listSiteDetectorResponsesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get site detector response + * @summary Get site detector response + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDetectorResponseSlot(resourceGroupName: string, siteName: string, detectorName: string, slot: string, options?: Models.DiagnosticsGetSiteDetectorResponseSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param slot Slot Name + * @param callback The callback + */ + getSiteDetectorResponseSlot(resourceGroupName: string, siteName: string, detectorName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + getSiteDetectorResponseSlot(resourceGroupName: string, siteName: string, detectorName: string, slot: string, options: Models.DiagnosticsGetSiteDetectorResponseSlotOptionalParams, callback: msRest.ServiceCallback): void; + getSiteDetectorResponseSlot(resourceGroupName: string, siteName: string, detectorName: string, slot: string, options?: Models.DiagnosticsGetSiteDetectorResponseSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + detectorName, + slot, + options + }, + getSiteDetectorResponseSlotOperationSpec, + callback) as Promise; + } + + /** + * Get Diagnostics Categories + * @summary Get Diagnostics Categories + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDiagnosticCategoriesSlot(resourceGroupName: string, siteName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param slot Slot Name + * @param callback The callback + */ + listSiteDiagnosticCategoriesSlot(resourceGroupName: string, siteName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + listSiteDiagnosticCategoriesSlot(resourceGroupName: string, siteName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDiagnosticCategoriesSlot(resourceGroupName: string, siteName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + slot, + options + }, + listSiteDiagnosticCategoriesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get Diagnostics Category + * @summary Get Diagnostics Category + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDiagnosticCategorySlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param callback The callback + */ + getSiteDiagnosticCategorySlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + getSiteDiagnosticCategorySlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteDiagnosticCategorySlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + slot, + options + }, + getSiteDiagnosticCategorySlotOperationSpec, + callback) as Promise; + } + + /** + * Get Site Analyses + * @summary Get Site Analyses + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + listSiteAnalysesSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param callback The callback + */ + listSiteAnalysesSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + listSiteAnalysesSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteAnalysesSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + slot, + options + }, + listSiteAnalysesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get Site Analysis + * @summary Get Site Analysis + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param slot Slot - optional + * @param [options] The optional parameters + * @returns Promise + */ + getSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param slot Slot - optional + * @param callback The callback + */ + getSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param slot Slot - optional + * @param options The optional parameters + * @param callback The callback + */ + getSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + analysisName, + slot, + options + }, + getSiteAnalysisSlotOperationSpec, + callback) as Promise; + } + + /** + * Execute Analysis + * @summary Execute Analysis + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + executeSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options?: Models.DiagnosticsExecuteSiteAnalysisSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param slot Slot Name + * @param callback The callback + */ + executeSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + executeSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options: Models.DiagnosticsExecuteSiteAnalysisSlotOptionalParams, callback: msRest.ServiceCallback): void; + executeSiteAnalysisSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, analysisName: string, slot: string, options?: Models.DiagnosticsExecuteSiteAnalysisSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + analysisName, + slot, + options + }, + executeSiteAnalysisSlotOperationSpec, + callback) as Promise; + } + + /** + * Get Detectors + * @summary Get Detectors + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorsSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param callback The callback + */ + listSiteDetectorsSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorsSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorsSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + slot, + options + }, + listSiteDetectorsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get Detector + * @summary Get Detector + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDetectorSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name + * @param slot Slot Name + * @param callback The callback + */ + getSiteDetectorSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + getSiteDetectorSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteDetectorSlot(resourceGroupName: string, siteName: string, diagnosticCategory: string, detectorName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + diagnosticCategory, + detectorName, + slot, + options + }, + getSiteDetectorSlotOperationSpec, + callback) as Promise; + } + + /** + * Execute Detector + * @summary Execute Detector + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param slot Slot Name + * @param [options] The optional parameters + * @returns Promise + */ + executeSiteDetectorSlot(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, slot: string, options?: Models.DiagnosticsExecuteSiteDetectorSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param slot Slot Name + * @param callback The callback + */ + executeSiteDetectorSlot(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param slot Slot Name + * @param options The optional parameters + * @param callback The callback + */ + executeSiteDetectorSlot(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, slot: string, options: Models.DiagnosticsExecuteSiteDetectorSlotOptionalParams, callback: msRest.ServiceCallback): void; + executeSiteDetectorSlot(resourceGroupName: string, siteName: string, detectorName: string, diagnosticCategory: string, slot: string, options?: Models.DiagnosticsExecuteSiteDetectorSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + detectorName, + diagnosticCategory, + slot, + options + }, + executeSiteDetectorSlotOperationSpec, + callback) as Promise; + } + + /** + * List Hosting Environment Detector Responses + * @summary List Hosting Environment Detector Responses + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listHostingEnvironmentDetectorResponsesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHostingEnvironmentDetectorResponsesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listHostingEnvironmentDetectorResponsesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostingEnvironmentDetectorResponsesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHostingEnvironmentDetectorResponsesNextOperationSpec, + callback) as Promise; + } + + /** + * List Site Detector Responses + * @summary List Site Detector Responses + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorResponsesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteDetectorResponsesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorResponsesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorResponsesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteDetectorResponsesNextOperationSpec, + callback) as Promise; + } + + /** + * Get Diagnostics Categories + * @summary Get Diagnostics Categories + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDiagnosticCategoriesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteDiagnosticCategoriesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteDiagnosticCategoriesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDiagnosticCategoriesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteDiagnosticCategoriesNextOperationSpec, + callback) as Promise; + } + + /** + * Get Site Analyses + * @summary Get Site Analyses + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteAnalysesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteAnalysesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteAnalysesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteAnalysesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteAnalysesNextOperationSpec, + callback) as Promise; + } + + /** + * Get Detectors + * @summary Get Detectors + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteDetectorsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteDetectorsNextOperationSpec, + callback) as Promise; + } + + /** + * Get Detector + * @summary Get Detector + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDetectorNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + getSiteDetectorNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + getSiteDetectorNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteDetectorNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + getSiteDetectorNextOperationSpec, + callback) as Promise; + } + + /** + * List Site Detector Responses + * @summary List Site Detector Responses + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorResponsesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteDetectorResponsesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorResponsesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorResponsesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteDetectorResponsesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get Diagnostics Categories + * @summary Get Diagnostics Categories + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDiagnosticCategoriesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteDiagnosticCategoriesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteDiagnosticCategoriesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDiagnosticCategoriesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteDiagnosticCategoriesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get Site Analyses + * @summary Get Site Analyses + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteAnalysesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteAnalysesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteAnalysesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteAnalysesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteAnalysesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get Detectors + * @summary Get Detectors + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteDetectorsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteDetectorsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteDetectorsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteDetectorsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteDetectorsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get Detector + * @summary Get Detector + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + getSiteDetectorSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + getSiteDetectorSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + getSiteDetectorSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteDetectorSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + getSiteDetectorSlotNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listHostingEnvironmentDetectorResponsesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponseCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getHostingEnvironmentDetectorResponseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.detectorName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorResponsesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponseCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDetectorResponseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.detectorName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDiagnosticCategoriesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCategoryCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDiagnosticCategoryOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCategory + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteAnalysesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysisCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteAnalysisOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.analysisName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysis + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const executeSiteAnalysisOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.analysisName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysis + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDetectorOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.detectorName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const executeSiteDetectorOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.detectorName, + Parameters.diagnosticCategory, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorResponsesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponseCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDetectorResponseSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.detectorName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDiagnosticCategoriesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCategoryCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDiagnosticCategorySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCategory + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteAnalysesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysisCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteAnalysisSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.analysisName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysis + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const executeSiteAnalysisSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.analysisName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysis + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDetectorSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.diagnosticCategory, + Parameters.detectorName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const executeSiteDetectorSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.detectorName, + Parameters.diagnosticCategory, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.timeGrain0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHostingEnvironmentDetectorResponsesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponseCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorResponsesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponseCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDiagnosticCategoriesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCategoryCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteAnalysesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysisCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDetectorNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorResponsesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DetectorResponseCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDiagnosticCategoriesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCategoryCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteAnalysesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticAnalysisCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteDetectorsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSiteDetectorSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticDetectorCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/domainRegistrationProvider.ts b/packages/@azure/arm-appservice/lib/operations/domainRegistrationProvider.ts new file mode 100644 index 000000000000..13ff6fd95c0b --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/domainRegistrationProvider.ts @@ -0,0 +1,129 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/domainRegistrationProviderMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a DomainRegistrationProvider. */ +export class DomainRegistrationProvider { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a DomainRegistrationProvider. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Implements Csm operations Api to exposes the list of available Csm Apis under the resource + * provider + * @summary Implements Csm operations Api to exposes the list of available Csm Apis under the + * resource provider + * @param [options] The optional parameters + * @returns Promise + */ + listOperations(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listOperations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperations(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationsOperationSpec, + callback) as Promise; + } + + /** + * Implements Csm operations Api to exposes the list of available Csm Apis under the resource + * provider + * @summary Implements Csm operations Api to exposes the list of available Csm Apis under the + * resource provider + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listOperationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listOperationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listOperationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listOperationsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.DomainRegistration/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmOperationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOperationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmOperationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/domains.ts b/packages/@azure/arm-appservice/lib/operations/domains.ts new file mode 100644 index 000000000000..3b472577fee6 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/domains.ts @@ -0,0 +1,1152 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/domainsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a Domains. */ +export class Domains { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a Domains. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Check if a domain is available for registration. + * @summary Check if a domain is available for registration. + * @param [options] The optional parameters + * @returns Promise + */ + checkAvailability(options?: Models.DomainsCheckAvailabilityOptionalParams): Promise; + /** + * @param callback The callback + */ + checkAvailability(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + checkAvailability(options: Models.DomainsCheckAvailabilityOptionalParams, callback: msRest.ServiceCallback): void; + checkAvailability(options?: Models.DomainsCheckAvailabilityOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + checkAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Get all domains in a subscription. + * @summary Get all domains in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Generate a single sign-on request for the domain management portal. + * @summary Generate a single sign-on request for the domain management portal. + * @param [options] The optional parameters + * @returns Promise + */ + getControlCenterSsoRequest(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + getControlCenterSsoRequest(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getControlCenterSsoRequest(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getControlCenterSsoRequest(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getControlCenterSsoRequestOperationSpec, + callback) as Promise; + } + + /** + * Get domain name recommendations based on keywords. + * @summary Get domain name recommendations based on keywords. + * @param parameters Search parameters for domain name recommendations. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendations(parameters: Models.DomainRecommendationSearchParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param parameters Search parameters for domain name recommendations. + * @param callback The callback + */ + listRecommendations(parameters: Models.DomainRecommendationSearchParameters, callback: msRest.ServiceCallback): void; + /** + * @param parameters Search parameters for domain name recommendations. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendations(parameters: Models.DomainRecommendationSearchParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRecommendations(parameters: Models.DomainRecommendationSearchParameters, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + parameters, + options + }, + listRecommendationsOperationSpec, + callback) as Promise; + } + + /** + * Get all domains in a resource group. + * @summary Get all domains in a resource group. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get a domain. + * @summary Get a domain. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param callback The callback + */ + get(resourceGroupName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a domain. + * @summary Creates or updates a domain. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param domain Domain registration information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, domainName: string, domain: Models.Domain, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,domainName,domain,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a domain. + * @summary Delete a domain. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, domainName: string, options?: Models.DomainsDeleteMethodOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, domainName: string, options: Models.DomainsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, domainName: string, options?: Models.DomainsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Creates or updates a domain. + * @summary Creates or updates a domain. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param domain Domain registration information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, domainName: string, domain: Models.DomainPatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param domain Domain registration information. + * @param callback The callback + */ + update(resourceGroupName: string, domainName: string, domain: Models.DomainPatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param domain Domain registration information. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, domainName: string, domain: Models.DomainPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, domainName: string, domain: Models.DomainPatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + domain, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Lists domain ownership identifiers. + * @summary Lists domain ownership identifiers. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param [options] The optional parameters + * @returns Promise + */ + listOwnershipIdentifiers(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param callback The callback + */ + listOwnershipIdentifiers(resourceGroupName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param options The optional parameters + * @param callback The callback + */ + listOwnershipIdentifiers(resourceGroupName: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOwnershipIdentifiers(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + options + }, + listOwnershipIdentifiersOperationSpec, + callback) as Promise; + } + + /** + * Get ownership identifier for domain + * @summary Get ownership identifier for domain + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param [options] The optional parameters + * @returns Promise + */ + getOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param callback The callback + */ + getOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param options The optional parameters + * @param callback The callback + */ + getOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + name, + options + }, + getOwnershipIdentifierOperationSpec, + callback) as Promise; + } + + /** + * Creates an ownership identifier for a domain or updates identifier details for an existing + * identifer + * @summary Creates an ownership identifier for a domain or updates identifier details for an + * existing identifer + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param callback The callback + */ + createOrUpdateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + name, + domainOwnershipIdentifier, + options + }, + createOrUpdateOwnershipIdentifierOperationSpec, + callback) as Promise; + } + + /** + * Delete ownership identifier for domain + * @summary Delete ownership identifier for domain + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param [options] The optional parameters + * @returns Promise + */ + deleteOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param callback The callback + */ + deleteOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param options The optional parameters + * @param callback The callback + */ + deleteOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + name, + options + }, + deleteOwnershipIdentifierOperationSpec, + callback); + } + + /** + * Creates an ownership identifier for a domain or updates identifier details for an existing + * identifer + * @summary Creates an ownership identifier for a domain or updates identifier details for an + * existing identifer + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param [options] The optional parameters + * @returns Promise + */ + updateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param callback The callback + */ + updateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of domain. + * @param name Name of identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param options The optional parameters + * @param callback The callback + */ + updateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateOwnershipIdentifier(resourceGroupName: string, domainName: string, name: string, domainOwnershipIdentifier: Models.DomainOwnershipIdentifier, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + name, + domainOwnershipIdentifier, + options + }, + updateOwnershipIdentifierOperationSpec, + callback) as Promise; + } + + /** + * Renew a domain. + * @summary Renew a domain. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param [options] The optional parameters + * @returns Promise + */ + renew(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param callback The callback + */ + renew(resourceGroupName: string, domainName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param options The optional parameters + * @param callback The callback + */ + renew(resourceGroupName: string, domainName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + renew(resourceGroupName: string, domainName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainName, + options + }, + renewOperationSpec, + callback); + } + + /** + * Creates or updates a domain. + * @summary Creates or updates a domain. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param domainName Name of the domain. + * @param domain Domain registration information. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, domainName: string, domain: Models.Domain, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + domainName, + domain, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Get all domains in a subscription. + * @summary Get all domains in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get domain name recommendations based on keywords. + * @summary Get domain name recommendations based on keywords. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listRecommendationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRecommendationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listRecommendationsNextOperationSpec, + callback) as Promise; + } + + /** + * Get all domains in a resource group. + * @summary Get all domains in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Lists domain ownership identifiers. + * @summary Lists domain ownership identifiers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listOwnershipIdentifiersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listOwnershipIdentifiersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listOwnershipIdentifiersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOwnershipIdentifiersNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listOwnershipIdentifiersNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const checkAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + name: [ + "options", + "name" + ] + }, + mapper: { + ...Mappers.NameIdentifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DomainAvailablilityCheckResult + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getControlCenterSsoRequestOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainControlCenterSsoRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRecommendationsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DomainRecommendationSearchParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NameIdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Domain + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.forceHardDeleteDomain, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domain", + mapper: { + ...Mappers.DomainPatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Domain + }, + 202: { + bodyMapper: Mappers.Domain + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOwnershipIdentifiersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainOwnershipIdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainOwnershipIdentifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainOwnershipIdentifier", + mapper: { + ...Mappers.DomainOwnershipIdentifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DomainOwnershipIdentifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainOwnershipIdentifier", + mapper: { + ...Mappers.DomainOwnershipIdentifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DomainOwnershipIdentifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const renewOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + 400: {}, + 500: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.domainName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domain", + mapper: { + ...Mappers.Domain, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Domain + }, + 202: { + bodyMapper: Mappers.Domain + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRecommendationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NameIdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOwnershipIdentifiersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DomainOwnershipIdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/index.ts b/packages/@azure/arm-appservice/lib/operations/index.ts new file mode 100644 index 000000000000..6924e2aa9d67 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/index.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./appServiceCertificateOrders"; +export * from "./certificateRegistrationProvider"; +export * from "./domains"; +export * from "./topLevelDomains"; +export * from "./domainRegistrationProvider"; +export * from "./certificates"; +export * from "./deletedWebApps"; +export * from "./diagnostics"; +export * from "./provider"; +export * from "./recommendations"; +export * from "./webApps"; +export * from "./appServiceEnvironments"; +export * from "./appServicePlans"; +export * from "./resourceHealthMetadataOperations"; diff --git a/packages/@azure/arm-appservice/lib/operations/provider.ts b/packages/@azure/arm-appservice/lib/operations/provider.ts new file mode 100644 index 000000000000..b8223e78adae --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/provider.ts @@ -0,0 +1,324 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/providerMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a Provider. */ +export class Provider { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a Provider. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get available application frameworks and their versions + * @summary Get available application frameworks and their versions + * @param [options] The optional parameters + * @returns Promise + */ + getAvailableStacks(options?: Models.ProviderGetAvailableStacksOptionalParams): Promise; + /** + * @param callback The callback + */ + getAvailableStacks(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getAvailableStacks(options: Models.ProviderGetAvailableStacksOptionalParams, callback: msRest.ServiceCallback): void; + getAvailableStacks(options?: Models.ProviderGetAvailableStacksOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getAvailableStacksOperationSpec, + callback) as Promise; + } + + /** + * Gets all available operations for the Microsoft.Web resource provider. Also exposes resource + * metric definitions + * @summary Gets all available operations for the Microsoft.Web resource provider. Also exposes + * resource metric definitions + * @param [options] The optional parameters + * @returns Promise + */ + listOperations(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listOperations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperations(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationsOperationSpec, + callback) as Promise; + } + + /** + * Get available application frameworks and their versions + * @summary Get available application frameworks and their versions + * @param [options] The optional parameters + * @returns Promise + */ + getAvailableStacksOnPrem(options?: Models.ProviderGetAvailableStacksOnPremOptionalParams): Promise; + /** + * @param callback The callback + */ + getAvailableStacksOnPrem(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getAvailableStacksOnPrem(options: Models.ProviderGetAvailableStacksOnPremOptionalParams, callback: msRest.ServiceCallback): void; + getAvailableStacksOnPrem(options?: Models.ProviderGetAvailableStacksOnPremOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getAvailableStacksOnPremOperationSpec, + callback) as Promise; + } + + /** + * Get available application frameworks and their versions + * @summary Get available application frameworks and their versions + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + getAvailableStacksNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + getAvailableStacksNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + getAvailableStacksNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAvailableStacksNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + getAvailableStacksNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all available operations for the Microsoft.Web resource provider. Also exposes resource + * metric definitions + * @summary Gets all available operations for the Microsoft.Web resource provider. Also exposes + * resource metric definitions + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listOperationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listOperationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listOperationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listOperationsNextOperationSpec, + callback) as Promise; + } + + /** + * Get available application frameworks and their versions + * @summary Get available application frameworks and their versions + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + getAvailableStacksOnPremNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + getAvailableStacksOnPremNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + getAvailableStacksOnPremNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAvailableStacksOnPremNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + getAvailableStacksOnPremNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getAvailableStacksOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Web/availableStacks", + queryParameters: [ + Parameters.osTypeSelected, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationStackCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOperationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Web/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmOperationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getAvailableStacksOnPremOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/availableStacks", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.osTypeSelected, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationStackCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getAvailableStacksNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationStackCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listOperationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmOperationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getAvailableStacksOnPremNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationStackCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/recommendations.ts b/packages/@azure/arm-appservice/lib/operations/recommendations.ts new file mode 100644 index 000000000000..1c69595d03a4 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/recommendations.ts @@ -0,0 +1,685 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recommendationsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a Recommendations. */ +export class Recommendations { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a Recommendations. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * List all recommendations for a subscription. + * @summary List all recommendations for a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.RecommendationsListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.RecommendationsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.RecommendationsListOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Reset all recommendation opt-out settings for a subscription. + * @summary Reset all recommendation opt-out settings for a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + resetAllFilters(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + resetAllFilters(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + resetAllFilters(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resetAllFilters(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + resetAllFiltersOperationSpec, + callback); + } + + /** + * Disables the specified rule so it will not apply to a subscription in the future. + * @summary Disables the specified rule so it will not apply to a subscription in the future. + * @param name Rule name + * @param [options] The optional parameters + * @returns Promise + */ + disableRecommendationForSubscription(name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Rule name + * @param callback The callback + */ + disableRecommendationForSubscription(name: string, callback: msRest.ServiceCallback): void; + /** + * @param name Rule name + * @param options The optional parameters + * @param callback The callback + */ + disableRecommendationForSubscription(name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableRecommendationForSubscription(name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + options + }, + disableRecommendationForSubscriptionOperationSpec, + callback); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * @summary Get past recommendations for an app, optionally specified by the time range. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listHistoryForWebApp(resourceGroupName: string, siteName: string, options?: Models.RecommendationsListHistoryForWebAppOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param callback The callback + */ + listHistoryForWebApp(resourceGroupName: string, siteName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listHistoryForWebApp(resourceGroupName: string, siteName: string, options: Models.RecommendationsListHistoryForWebAppOptionalParams, callback: msRest.ServiceCallback): void; + listHistoryForWebApp(resourceGroupName: string, siteName: string, options?: Models.RecommendationsListHistoryForWebAppOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + options + }, + listHistoryForWebAppOperationSpec, + callback) as Promise; + } + + /** + * Get all recommendations for an app. + * @summary Get all recommendations for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedRulesForWebApp(resourceGroupName: string, siteName: string, options?: Models.RecommendationsListRecommendedRulesForWebAppOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param callback The callback + */ + listRecommendedRulesForWebApp(resourceGroupName: string, siteName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedRulesForWebApp(resourceGroupName: string, siteName: string, options: Models.RecommendationsListRecommendedRulesForWebAppOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedRulesForWebApp(resourceGroupName: string, siteName: string, options?: Models.RecommendationsListRecommendedRulesForWebAppOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + options + }, + listRecommendedRulesForWebAppOperationSpec, + callback) as Promise; + } + + /** + * Disable all recommendations for an app. + * @summary Disable all recommendations for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + disableAllForWebApp(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param callback The callback + */ + disableAllForWebApp(resourceGroupName: string, siteName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + disableAllForWebApp(resourceGroupName: string, siteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableAllForWebApp(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + options + }, + disableAllForWebAppOperationSpec, + callback); + } + + /** + * Reset all recommendation opt-out settings for an app. + * @summary Reset all recommendation opt-out settings for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param callback The callback + */ + resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + options + }, + resetAllFiltersForWebAppOperationSpec, + callback); + } + + /** + * Get a recommendation rule for an app. + * @summary Get a recommendation rule for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param [options] The optional parameters + * @returns Promise + */ + getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options?: Models.RecommendationsGetRuleDetailsByWebAppOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param callback The callback + */ + getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param options The optional parameters + * @param callback The callback + */ + getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options: Models.RecommendationsGetRuleDetailsByWebAppOptionalParams, callback: msRest.ServiceCallback): void; + getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options?: Models.RecommendationsGetRuleDetailsByWebAppOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + name, + options + }, + getRuleDetailsByWebAppOperationSpec, + callback) as Promise; + } + + /** + * Disables the specific rule for a web site permanently. + * @summary Disables the specific rule for a web site permanently. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @param [options] The optional parameters + * @returns Promise + */ + disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @param callback The callback + */ + disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @param options The optional parameters + * @param callback The callback + */ + disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + siteName, + name, + options + }, + disableRecommendationForSiteOperationSpec, + callback); + } + + /** + * List all recommendations for a subscription. + * @summary List all recommendations for a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * @summary Get past recommendations for an app, optionally specified by the time range. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listHistoryForWebAppNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHistoryForWebAppNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listHistoryForWebAppNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHistoryForWebAppNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHistoryForWebAppNextOperationSpec, + callback) as Promise; + } + + /** + * Get all recommendations for an app. + * @summary Get all recommendations for an app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedRulesForWebAppNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listRecommendedRulesForWebAppNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedRulesForWebAppNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRecommendedRulesForWebAppNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listRecommendedRulesForWebAppNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.featured, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const resetAllFiltersOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const disableRecommendationForSubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable", + urlParameters: [ + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listHistoryForWebAppOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expiredOnly, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRecommendedRulesForWebAppOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.featured, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const disableAllForWebAppOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const resetAllFiltersForWebAppOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getRuleDetailsByWebAppOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.updateSeen, + Parameters.recommendationId, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationRule + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const disableRecommendationForSiteOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.siteName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHistoryForWebAppNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRecommendedRulesForWebAppNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/resourceHealthMetadataOperations.ts b/packages/@azure/arm-appservice/lib/operations/resourceHealthMetadataOperations.ts new file mode 100644 index 000000000000..e06f158cd4e5 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/resourceHealthMetadataOperations.ts @@ -0,0 +1,575 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/resourceHealthMetadataOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a ResourceHealthMetadataOperations. */ +export class ResourceHealthMetadataOperations { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a ResourceHealthMetadataOperations. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * @summary List all ResourceHealthMetadata for all sites in the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * @summary List all ResourceHealthMetadata for all sites in the resource group in the + * subscription. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @summary Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + listBySite(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + listBySite(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + listBySite(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySite(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listBySiteOperationSpec, + callback) as Promise; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site + * @summary Gets the category of ResourceHealthMetadata to use for the given site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param [options] The optional parameters + * @returns Promise + */ + getBySite(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param callback The callback + */ + getBySite(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param options The optional parameters + * @param callback The callback + */ + getBySite(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBySite(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getBySiteOperationSpec, + callback) as Promise; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @summary Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + listBySiteSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + listBySiteSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listBySiteSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site + * @summary Gets the category of ResourceHealthMetadata to use for the given site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getBySiteSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getBySiteSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getBySiteSlotOperationSpec, + callback) as Promise; + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * @summary List all ResourceHealthMetadata for all sites in the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * @summary List all ResourceHealthMetadata for all sites in the resource group in the + * subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @summary Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySiteNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySiteNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySiteNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySiteNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySiteNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @summary Gets the category of ResourceHealthMetadata to use for the given site as a collection + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySiteSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySiteSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySiteSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySiteSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySiteSlotNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/resourceHealthMetadata", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBySiteOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getBySiteOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadata + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBySiteSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getBySiteSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadata + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBySiteNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBySiteSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceHealthMetadataCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/topLevelDomains.ts b/packages/@azure/arm-appservice/lib/operations/topLevelDomains.ts new file mode 100644 index 000000000000..de6e7a34a5ef --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/topLevelDomains.ts @@ -0,0 +1,295 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/topLevelDomainsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a TopLevelDomains. */ +export class TopLevelDomains { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a TopLevelDomains. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get all top-level domains supported for registration. + * @summary Get all top-level domains supported for registration. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get details of a top-level domain. + * @summary Get details of a top-level domain. + * @param name Name of the top-level domain. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Name of the top-level domain. + * @param callback The callback + */ + get(name: string, callback: msRest.ServiceCallback): void; + /** + * @param name Name of the top-level domain. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all legal agreements that user needs to accept before purchasing a domain. + * @summary Gets all legal agreements that user needs to accept before purchasing a domain. + * @param name Name of the top-level domain. + * @param agreementOption Domain agreement options. + * @param [options] The optional parameters + * @returns Promise + */ + listAgreements(name: string, agreementOption: Models.TopLevelDomainAgreementOption, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Name of the top-level domain. + * @param agreementOption Domain agreement options. + * @param callback The callback + */ + listAgreements(name: string, agreementOption: Models.TopLevelDomainAgreementOption, callback: msRest.ServiceCallback): void; + /** + * @param name Name of the top-level domain. + * @param agreementOption Domain agreement options. + * @param options The optional parameters + * @param callback The callback + */ + listAgreements(name: string, agreementOption: Models.TopLevelDomainAgreementOption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAgreements(name: string, agreementOption: Models.TopLevelDomainAgreementOption, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + agreementOption, + options + }, + listAgreementsOperationSpec, + callback) as Promise; + } + + /** + * Get all top-level domains supported for registration. + * @summary Get all top-level domains supported for registration. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all legal agreements that user needs to accept before purchasing a domain. + * @summary Gets all legal agreements that user needs to accept before purchasing a domain. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAgreementsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAgreementsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAgreementsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAgreementsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAgreementsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TopLevelDomainCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}", + urlParameters: [ + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TopLevelDomain + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listAgreementsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements", + urlParameters: [ + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "agreementOption", + mapper: { + ...Mappers.TopLevelDomainAgreementOption, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.TldLegalAgreementCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TopLevelDomainCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listAgreementsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TldLegalAgreementCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/operations/webApps.ts b/packages/@azure/arm-appservice/lib/operations/webApps.ts new file mode 100644 index 000000000000..3eb20e865163 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/operations/webApps.ts @@ -0,0 +1,26704 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/webAppsMappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; + +/** Class representing a WebApps. */ +export class WebApps { + private readonly client: WebSiteManagementClientContext; + + /** + * Create a WebApps. + * @param {WebSiteManagementClientContext} client Reference to the service client. + */ + constructor(client: WebSiteManagementClientContext) { + this.client = client; + } + + /** + * Get all apps for a subscription. + * @summary Get all apps for a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets all web, mobile, and API apps in the specified resource group. + * @summary Gets all web, mobile, and API apps in the specified resource group. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.WebAppsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.WebAppsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.WebAppsListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of a web, mobile, or API app. + * @summary Gets the details of a web, mobile, or API app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * @summary Creates a new web, mobile, or API app in an existing resource group, or updates an + * existing app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, name: string, siteEnvelope: Models.Site, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,name,siteEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a web, mobile, or API app, or one of the deployment slots. + * @summary Deletes a web, mobile, or API app, or one of the deployment slots. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app to delete. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, name: string, options?: Models.WebAppsDeleteMethodOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app to delete. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app to delete. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, name: string, options: Models.WebAppsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, name: string, options?: Models.WebAppsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * @summary Creates a new web, mobile, or API app in an existing resource group, or updates an + * existing app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param callback The callback + */ + update(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteEnvelope, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Analyze a custom hostname. + * @summary Analyze a custom hostname. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + analyzeCustomHostname(resourceGroupName: string, name: string, options?: Models.WebAppsAnalyzeCustomHostnameOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + analyzeCustomHostname(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + analyzeCustomHostname(resourceGroupName: string, name: string, options: Models.WebAppsAnalyzeCustomHostnameOptionalParams, callback: msRest.ServiceCallback): void; + analyzeCustomHostname(resourceGroupName: string, name: string, options?: Models.WebAppsAnalyzeCustomHostnameOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + analyzeCustomHostnameOperationSpec, + callback) as Promise; + } + + /** + * Applies the configuration settings from the target slot onto the current slot. + * @summary Applies the configuration settings from the target slot onto the current slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param [options] The optional parameters + * @returns Promise + */ + applySlotConfigToProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param callback The callback + */ + applySlotConfigToProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param options The optional parameters + * @param callback The callback + */ + applySlotConfigToProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + applySlotConfigToProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slotSwapEntity, + options + }, + applySlotConfigToProductionOperationSpec, + callback); + } + + /** + * Creates a backup of an app. + * @summary Creates a backup of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Backup configuration. You can use the JSON response from the POST action as input + * here. + * @param [options] The optional parameters + * @returns Promise + */ + backup(resourceGroupName: string, name: string, request: Models.BackupRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Backup configuration. You can use the JSON response from the POST action as input + * here. + * @param callback The callback + */ + backup(resourceGroupName: string, name: string, request: Models.BackupRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Backup configuration. You can use the JSON response from the POST action as input + * here. + * @param options The optional parameters + * @param callback The callback + */ + backup(resourceGroupName: string, name: string, request: Models.BackupRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + backup(resourceGroupName: string, name: string, request: Models.BackupRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + request, + options + }, + backupOperationSpec, + callback) as Promise; + } + + /** + * Gets existing backups of an app. + * @summary Gets existing backups of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listBackups(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listBackups(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listBackups(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackups(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listBackupsOperationSpec, + callback) as Promise; + } + + /** + * Gets a backup of an app by its ID. + * @summary Gets a backup of an app by its ID. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param [options] The optional parameters + * @returns Promise + */ + getBackupStatus(resourceGroupName: string, name: string, backupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param callback The callback + */ + getBackupStatus(resourceGroupName: string, name: string, backupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param options The optional parameters + * @param callback The callback + */ + getBackupStatus(resourceGroupName: string, name: string, backupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBackupStatus(resourceGroupName: string, name: string, backupId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + backupId, + options + }, + getBackupStatusOperationSpec, + callback) as Promise; + } + + /** + * Deletes a backup of an app by its ID. + * @summary Deletes a backup of an app by its ID. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param [options] The optional parameters + * @returns Promise + */ + deleteBackup(resourceGroupName: string, name: string, backupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param callback The callback + */ + deleteBackup(resourceGroupName: string, name: string, backupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param options The optional parameters + * @param callback The callback + */ + deleteBackup(resourceGroupName: string, name: string, backupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteBackup(resourceGroupName: string, name: string, backupId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + backupId, + options + }, + deleteBackupOperationSpec, + callback); + } + + /** + * Gets status of a web app backup that may be in progress, including secrets associated with the + * backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup + * if a new URL is passed in the request body. + * @summary Gets status of a web app backup that may be in progress, including secrets associated + * with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for + * the backup if a new URL is passed in the request body. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param backupId ID of backup. + * @param request Information on backup request. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupStatusSecrets(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param backupId ID of backup. + * @param request Information on backup request. + * @param callback The callback + */ + listBackupStatusSecrets(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param backupId ID of backup. + * @param request Information on backup request. + * @param options The optional parameters + * @param callback The callback + */ + listBackupStatusSecrets(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupStatusSecrets(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + backupId, + request, + options + }, + listBackupStatusSecretsOperationSpec, + callback) as Promise; + } + + /** + * Restores a specific backup to another app (or deployment slot, if specified). + * @summary Restores a specific backup to another app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param request Information on restore request . + * @param [options] The optional parameters + * @returns Promise + */ + restore(resourceGroupName: string, name: string, backupId: string, request: Models.RestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestore(resourceGroupName,name,backupId,request,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * List the configurations of an app + * @summary List the configurations of an app + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurations(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listConfigurations(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurations(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurations(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listConfigurationsOperationSpec, + callback) as Promise; + } + + /** + * Replaces the application settings of an app. + * @summary Replaces the application settings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param appSettings Application settings of the app. + * @param [options] The optional parameters + * @returns Promise + */ + updateApplicationSettings(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param appSettings Application settings of the app. + * @param callback The callback + */ + updateApplicationSettings(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param appSettings Application settings of the app. + * @param options The optional parameters + * @param callback The callback + */ + updateApplicationSettings(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateApplicationSettings(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + appSettings, + options + }, + updateApplicationSettingsOperationSpec, + callback) as Promise; + } + + /** + * Gets the application settings of an app. + * @summary Gets the application settings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listApplicationSettings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listApplicationSettings(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listApplicationSettings(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listApplicationSettings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listApplicationSettingsOperationSpec, + callback) as Promise; + } + + /** + * Updates the Authentication / Authorization settings associated with web app. + * @summary Updates the Authentication / Authorization settings associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param siteAuthSettings Auth settings associated with web app. + * @param [options] The optional parameters + * @returns Promise + */ + updateAuthSettings(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param siteAuthSettings Auth settings associated with web app. + * @param callback The callback + */ + updateAuthSettings(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param siteAuthSettings Auth settings associated with web app. + * @param options The optional parameters + * @param callback The callback + */ + updateAuthSettings(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateAuthSettings(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteAuthSettings, + options + }, + updateAuthSettingsOperationSpec, + callback) as Promise; + } + + /** + * Gets the Authentication/Authorization settings of an app. + * @summary Gets the Authentication/Authorization settings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getAuthSettings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getAuthSettings(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getAuthSettings(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAuthSettings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getAuthSettingsOperationSpec, + callback) as Promise; + } + + /** + * Updates the Azure storage account configurations of an app. + * @summary Updates the Azure storage account configurations of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param [options] The optional parameters + * @returns Promise + */ + updateAzureStorageAccounts(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param callback The callback + */ + updateAzureStorageAccounts(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param options The optional parameters + * @param callback The callback + */ + updateAzureStorageAccounts(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateAzureStorageAccounts(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + azureStorageAccounts, + options + }, + updateAzureStorageAccountsOperationSpec, + callback) as Promise; + } + + /** + * Gets the Azure storage account configurations of an app. + * @summary Gets the Azure storage account configurations of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listAzureStorageAccounts(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listAzureStorageAccounts(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listAzureStorageAccounts(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAzureStorageAccounts(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listAzureStorageAccountsOperationSpec, + callback) as Promise; + } + + /** + * Updates the backup configuration of an app. + * @summary Updates the backup configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Edited backup configuration. + * @param [options] The optional parameters + * @returns Promise + */ + updateBackupConfiguration(resourceGroupName: string, name: string, request: Models.BackupRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Edited backup configuration. + * @param callback The callback + */ + updateBackupConfiguration(resourceGroupName: string, name: string, request: Models.BackupRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Edited backup configuration. + * @param options The optional parameters + * @param callback The callback + */ + updateBackupConfiguration(resourceGroupName: string, name: string, request: Models.BackupRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateBackupConfiguration(resourceGroupName: string, name: string, request: Models.BackupRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + request, + options + }, + updateBackupConfigurationOperationSpec, + callback) as Promise; + } + + /** + * Deletes the backup configuration of an app. + * @summary Deletes the backup configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + deleteBackupConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + deleteBackupConfiguration(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + deleteBackupConfiguration(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteBackupConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + deleteBackupConfigurationOperationSpec, + callback); + } + + /** + * Gets the backup configuration of an app. + * @summary Gets the backup configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getBackupConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getBackupConfiguration(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getBackupConfiguration(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBackupConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getBackupConfigurationOperationSpec, + callback) as Promise; + } + + /** + * Replaces the connection strings of an app. + * @summary Replaces the connection strings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateConnectionStrings(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param callback The callback + */ + updateConnectionStrings(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateConnectionStrings(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateConnectionStrings(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionStrings, + options + }, + updateConnectionStringsOperationSpec, + callback) as Promise; + } + + /** + * Gets the connection strings of an app. + * @summary Gets the connection strings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listConnectionStrings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listConnectionStrings(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listConnectionStrings(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionStrings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listConnectionStringsOperationSpec, + callback) as Promise; + } + + /** + * Gets the logging configuration of an app. + * @summary Gets the logging configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getDiagnosticLogsConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getDiagnosticLogsConfiguration(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getDiagnosticLogsConfiguration(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDiagnosticLogsConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getDiagnosticLogsConfigurationOperationSpec, + callback) as Promise; + } + + /** + * Updates the logging configuration of an app. + * @summary Updates the logging configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to + * change in the "properties" property. + * @param [options] The optional parameters + * @returns Promise + */ + updateDiagnosticLogsConfig(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to + * change in the "properties" property. + * @param callback The callback + */ + updateDiagnosticLogsConfig(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to + * change in the "properties" property. + * @param options The optional parameters + * @param callback The callback + */ + updateDiagnosticLogsConfig(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateDiagnosticLogsConfig(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteLogsConfig, + options + }, + updateDiagnosticLogsConfigOperationSpec, + callback) as Promise; + } + + /** + * Replaces the metadata of an app. + * @summary Replaces the metadata of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param metadata Edited metadata of the app or deployment slot. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateMetadata(resourceGroupName: string, name: string, metadata: Models.StringDictionary, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param metadata Edited metadata of the app or deployment slot. See example. + * @param callback The callback + */ + updateMetadata(resourceGroupName: string, name: string, metadata: Models.StringDictionary, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param metadata Edited metadata of the app or deployment slot. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateMetadata(resourceGroupName: string, name: string, metadata: Models.StringDictionary, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateMetadata(resourceGroupName: string, name: string, metadata: Models.StringDictionary, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + metadata, + options + }, + updateMetadataOperationSpec, + callback) as Promise; + } + + /** + * Gets the metadata of an app. + * @summary Gets the metadata of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listMetadata(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listMetadata(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listMetadata(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetadata(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetadataOperationSpec, + callback) as Promise; + } + + /** + * Gets the Git/FTP publishing credentials of an app. + * @summary Gets the Git/FTP publishing credentials of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishingCredentials(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginListPublishingCredentials(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates the Push settings associated with web app. + * @summary Updates the Push settings associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param pushSettings Push settings associated with web app. + * @param [options] The optional parameters + * @returns Promise + */ + updateSitePushSettings(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param pushSettings Push settings associated with web app. + * @param callback The callback + */ + updateSitePushSettings(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param pushSettings Push settings associated with web app. + * @param options The optional parameters + * @param callback The callback + */ + updateSitePushSettings(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSitePushSettings(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + pushSettings, + options + }, + updateSitePushSettingsOperationSpec, + callback) as Promise; + } + + /** + * Gets the Push settings associated with web app. + * @summary Gets the Push settings associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + listSitePushSettings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + listSitePushSettings(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + listSitePushSettings(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSitePushSettings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSitePushSettingsOperationSpec, + callback) as Promise; + } + + /** + * Gets the names of app settings and connection strings that stick to the slot (not swapped). + * @summary Gets the names of app settings and connection strings that stick to the slot (not + * swapped). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listSlotConfigurationNames(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listSlotConfigurationNames(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listSlotConfigurationNames(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlotConfigurationNames(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSlotConfigurationNamesOperationSpec, + callback) as Promise; + } + + /** + * Updates the names of application settings and connection string that remain with the slot during + * swap operation. + * @summary Updates the names of application settings and connection string that remain with the + * slot during swap operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotConfigNames Names of application settings and connection strings. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: Models.SlotConfigNamesResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotConfigNames Names of application settings and connection strings. See example. + * @param callback The callback + */ + updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: Models.SlotConfigNamesResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotConfigNames Names of application settings and connection strings. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: Models.SlotConfigNamesResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: Models.SlotConfigNamesResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slotConfigNames, + options + }, + updateSlotConfigurationNamesOperationSpec, + callback) as Promise; + } + + /** + * Gets a Swift Virtual Network connection. + * @summary Gets a Swift Virtual Network connection. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getSwiftVirtualNetworkConnectionOperationSpec, + callback) as Promise; + } + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @summary Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" + * is true when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param callback The callback + */ + createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionEnvelope, + options + }, + createOrUpdateSwiftVirtualNetworkConnectionOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * @summary Deletes a Swift Virtual Network connection from an app (or deployment slot). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + deleteSwiftVirtualNetworkOperationSpec, + callback); + } + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @summary Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" + * is true when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param callback The callback + */ + updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionEnvelope, + options + }, + updateSwiftVirtualNetworkConnectionOperationSpec, + callback) as Promise; + } + + /** + * Gets the configuration of an app, such as platform version and bitness, default documents, + * virtual applications, Always On, etc. + * @summary Gets the configuration of an app, such as platform version and bitness, default + * documents, virtual applications, Always On, etc. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getConfiguration(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getConfiguration(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getConfiguration(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getConfigurationOperationSpec, + callback) as Promise; + } + + /** + * Updates the configuration of an app. + * @summary Updates the configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param callback The callback + */ + createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteConfig, + options + }, + createOrUpdateConfigurationOperationSpec, + callback) as Promise; + } + + /** + * Updates the configuration of an app. + * @summary Updates the configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param callback The callback + */ + updateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateConfiguration(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteConfig, + options + }, + updateConfigurationOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a + * timestamp and the ID of the snapshot. + * @summary Gets a list of web app configuration snapshots identifiers. Each element of the list + * contains a timestamp and the ID of the snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationSnapshotInfo(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listConfigurationSnapshotInfo(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationSnapshotInfo(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationSnapshotInfo(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listConfigurationSnapshotInfoOperationSpec, + callback) as Promise; + } + + /** + * Gets a snapshot of the configuration of an app at a previous point in time. + * @summary Gets a snapshot of the configuration of an app at a previous point in time. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param [options] The optional parameters + * @returns Promise + */ + getConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param callback The callback + */ + getConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param options The optional parameters + * @param callback The callback + */ + getConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + snapshotId, + options + }, + getConfigurationSnapshotOperationSpec, + callback) as Promise; + } + + /** + * Reverts the configuration of an app to a previous snapshot. + * @summary Reverts the configuration of an app to a previous snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param [options] The optional parameters + * @returns Promise + */ + recoverSiteConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param callback The callback + */ + recoverSiteConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param options The optional parameters + * @param callback The callback + */ + recoverSiteConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + recoverSiteConfigurationSnapshot(resourceGroupName: string, name: string, snapshotId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + snapshotId, + options + }, + recoverSiteConfigurationSnapshotOperationSpec, + callback); + } + + /** + * Gets the last lines of docker logs for the given site + * @summary Gets the last lines of docker logs for the given site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getWebSiteContainerLogs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getWebSiteContainerLogs(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getWebSiteContainerLogs(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getWebSiteContainerLogs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getWebSiteContainerLogsOperationSpec, + callback) as Promise; + } + + /** + * Gets the ZIP archived docker log files for the given site + * @summary Gets the ZIP archived docker log files for the given site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getContainerLogsZip(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getContainerLogsZip(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getContainerLogsZip(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContainerLogsZip(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getContainerLogsZipOperationSpec, + callback) as Promise; + } + + /** + * List continuous web jobs for an app, or a deployment slot. + * @summary List continuous web jobs for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param [options] The optional parameters + * @returns Promise + */ + listContinuousWebJobs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param callback The callback + */ + listContinuousWebJobs(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param options The optional parameters + * @param callback The callback + */ + listContinuousWebJobs(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listContinuousWebJobs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listContinuousWebJobsOperationSpec, + callback) as Promise; + } + + /** + * Gets a continuous web job by its ID for an app, or a deployment slot. + * @summary Gets a continuous web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + getContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + getContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + getContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + getContinuousWebJobOperationSpec, + callback) as Promise; + } + + /** + * Delete a continuous web job by its ID for an app, or a deployment slot. + * @summary Delete a continuous web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + deleteContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + deleteContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + deleteContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + deleteContinuousWebJobOperationSpec, + callback); + } + + /** + * Start a continuous web job for an app, or a deployment slot. + * @summary Start a continuous web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + startContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + startContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + startContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + startContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + startContinuousWebJobOperationSpec, + callback); + } + + /** + * Stop a continuous web job for an app, or a deployment slot. + * @summary Stop a continuous web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + stopContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + stopContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + stopContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopContinuousWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + stopContinuousWebJobOperationSpec, + callback); + } + + /** + * List deployments for an app, or a deployment slot. + * @summary List deployments for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listDeployments(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listDeployments(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listDeployments(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDeployments(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listDeploymentsOperationSpec, + callback) as Promise; + } + + /** + * Get a deployment by its ID for an app, or a deployment slot. + * @summary Get a deployment by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param [options] The optional parameters + * @returns Promise + */ + getDeployment(resourceGroupName: string, name: string, id: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param callback The callback + */ + getDeployment(resourceGroupName: string, name: string, id: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param options The optional parameters + * @param callback The callback + */ + getDeployment(resourceGroupName: string, name: string, id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDeployment(resourceGroupName: string, name: string, id: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + options + }, + getDeploymentOperationSpec, + callback) as Promise; + } + + /** + * Create a deployment for an app, or a deployment slot. + * @summary Create a deployment for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param deployment Deployment details. + * @param [options] The optional parameters + * @returns Promise + */ + createDeployment(resourceGroupName: string, name: string, id: string, deployment: Models.Deployment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param deployment Deployment details. + * @param callback The callback + */ + createDeployment(resourceGroupName: string, name: string, id: string, deployment: Models.Deployment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param deployment Deployment details. + * @param options The optional parameters + * @param callback The callback + */ + createDeployment(resourceGroupName: string, name: string, id: string, deployment: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createDeployment(resourceGroupName: string, name: string, id: string, deployment: Models.Deployment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + deployment, + options + }, + createDeploymentOperationSpec, + callback) as Promise; + } + + /** + * Delete a deployment by its ID for an app, or a deployment slot. + * @summary Delete a deployment by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param [options] The optional parameters + * @returns Promise + */ + deleteDeployment(resourceGroupName: string, name: string, id: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param callback The callback + */ + deleteDeployment(resourceGroupName: string, name: string, id: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param options The optional parameters + * @param callback The callback + */ + deleteDeployment(resourceGroupName: string, name: string, id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteDeployment(resourceGroupName: string, name: string, id: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + options + }, + deleteDeploymentOperationSpec, + callback); + } + + /** + * List deployment log for specific deployment for an app, or a deployment slot. + * @summary List deployment log for specific deployment for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON + * response from "GET /api/sites/{siteName}/deployments". + * @param [options] The optional parameters + * @returns Promise + */ + listDeploymentLog(resourceGroupName: string, name: string, id: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON + * response from "GET /api/sites/{siteName}/deployments". + * @param callback The callback + */ + listDeploymentLog(resourceGroupName: string, name: string, id: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON + * response from "GET /api/sites/{siteName}/deployments". + * @param options The optional parameters + * @param callback The callback + */ + listDeploymentLog(resourceGroupName: string, name: string, id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDeploymentLog(resourceGroupName: string, name: string, id: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + options + }, + listDeploymentLogOperationSpec, + callback) as Promise; + } + + /** + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to + * get information about the databases stored in a backup. + * @summary Discovers an existing app backup that can be restored from a blob in Azure storage. Use + * this to get information about the databases stored in a backup. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for + * discovery of backup. + * @param [options] The optional parameters + * @returns Promise + */ + discoverBackup(resourceGroupName: string, name: string, request: Models.RestoreRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for + * discovery of backup. + * @param callback The callback + */ + discoverBackup(resourceGroupName: string, name: string, request: Models.RestoreRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for + * discovery of backup. + * @param options The optional parameters + * @param callback The callback + */ + discoverBackup(resourceGroupName: string, name: string, request: Models.RestoreRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + discoverBackup(resourceGroupName: string, name: string, request: Models.RestoreRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + request, + options + }, + discoverBackupOperationSpec, + callback) as Promise; + } + + /** + * Lists ownership identifiers for domain associated with web app. + * @summary Lists ownership identifiers for domain associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listDomainOwnershipIdentifiers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listDomainOwnershipIdentifiers(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listDomainOwnershipIdentifiers(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDomainOwnershipIdentifiers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listDomainOwnershipIdentifiersOperationSpec, + callback) as Promise; + } + + /** + * Get domain ownership identifier for web app. + * @summary Get domain ownership identifier for web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param [options] The optional parameters + * @returns Promise + */ + getDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param callback The callback + */ + getDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param options The optional parameters + * @param callback The callback + */ + getDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + options + }, + getDomainOwnershipIdentifierOperationSpec, + callback) as Promise; + } + + /** + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * @summary Creates a domain ownership identifier for web app, or updates an existing ownership + * identifier. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param callback The callback + */ + createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + domainOwnershipIdentifier, + options + }, + createOrUpdateDomainOwnershipIdentifierOperationSpec, + callback) as Promise; + } + + /** + * Deletes a domain ownership identifier for a web app. + * @summary Deletes a domain ownership identifier for a web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param [options] The optional parameters + * @returns Promise + */ + deleteDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param callback The callback + */ + deleteDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param options The optional parameters + * @param callback The callback + */ + deleteDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + options + }, + deleteDomainOwnershipIdentifierOperationSpec, + callback); + } + + /** + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * @summary Creates a domain ownership identifier for web app, or updates an existing ownership + * identifier. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param [options] The optional parameters + * @returns Promise + */ + updateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param callback The callback + */ + updateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param options The optional parameters + * @param callback The callback + */ + updateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateDomainOwnershipIdentifier(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + domainOwnershipIdentifier, + options + }, + updateDomainOwnershipIdentifierOperationSpec, + callback) as Promise; + } + + /** + * Get the status of the last MSDeploy operation. + * @summary Get the status of the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getMSDeployStatus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getMSDeployStatus(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getMSDeployStatus(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMSDeployStatus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getMSDeployStatusOperationSpec, + callback) as Promise; + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + createMSDeployOperation(resourceGroupName: string, name: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateMSDeployOperation(resourceGroupName,name,mSDeploy,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * @summary Get the MSDeploy Log for the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getMSDeployLog(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getMSDeployLog(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getMSDeployLog(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMSDeployLog(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getMSDeployLogOperationSpec, + callback) as Promise; + } + + /** + * List the functions for a web site, or a deployment slot. + * @summary List the functions for a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param [options] The optional parameters + * @returns Promise + */ + listFunctions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param callback The callback + */ + listFunctions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param options The optional parameters + * @param callback The callback + */ + listFunctions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFunctions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listFunctionsOperationSpec, + callback) as Promise; + } + + /** + * Fetch a short lived token that can be exchanged for a master key. + * @summary Fetch a short lived token that can be exchanged for a master key. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getFunctionsAdminToken(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getFunctionsAdminToken(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getFunctionsAdminToken(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getFunctionsAdminToken(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getFunctionsAdminTokenOperationSpec, + callback) as Promise; + } + + /** + * Get function information by its ID for web site, or a deployment slot. + * @summary Get function information by its ID for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param [options] The optional parameters + * @returns Promise + */ + getFunction(resourceGroupName: string, name: string, functionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param callback The callback + */ + getFunction(resourceGroupName: string, name: string, functionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param options The optional parameters + * @param callback The callback + */ + getFunction(resourceGroupName: string, name: string, functionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getFunction(resourceGroupName: string, name: string, functionName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + functionName, + options + }, + getFunctionOperationSpec, + callback) as Promise; + } + + /** + * Create function for web site, or a deployment slot. + * @summary Create function for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param functionEnvelope Function details. + * @param [options] The optional parameters + * @returns Promise + */ + createFunction(resourceGroupName: string, name: string, functionName: string, functionEnvelope: Models.FunctionEnvelope, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateFunction(resourceGroupName,name,functionName,functionEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a function for web site, or a deployment slot. + * @summary Delete a function for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteFunction(resourceGroupName: string, name: string, functionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param callback The callback + */ + deleteFunction(resourceGroupName: string, name: string, functionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param options The optional parameters + * @param callback The callback + */ + deleteFunction(resourceGroupName: string, name: string, functionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteFunction(resourceGroupName: string, name: string, functionName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + functionName, + options + }, + deleteFunctionOperationSpec, + callback); + } + + /** + * Get function secrets for a function in a web site, or a deployment slot. + * @summary Get function secrets for a function in a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param [options] The optional parameters + * @returns Promise + */ + listFunctionSecrets(resourceGroupName: string, name: string, functionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param callback The callback + */ + listFunctionSecrets(resourceGroupName: string, name: string, functionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param options The optional parameters + * @param callback The callback + */ + listFunctionSecrets(resourceGroupName: string, name: string, functionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFunctionSecrets(resourceGroupName: string, name: string, functionName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + functionName, + options + }, + listFunctionSecretsOperationSpec, + callback) as Promise; + } + + /** + * Get hostname bindings for an app or a deployment slot. + * @summary Get hostname bindings for an app or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listHostNameBindings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listHostNameBindings(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listHostNameBindings(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostNameBindings(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listHostNameBindingsOperationSpec, + callback) as Promise; + } + + /** + * Get the named hostname binding for an app (or deployment slot, if specified). + * @summary Get the named hostname binding for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param [options] The optional parameters + * @returns Promise + */ + getHostNameBinding(resourceGroupName: string, name: string, hostName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param callback The callback + */ + getHostNameBinding(resourceGroupName: string, name: string, hostName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param options The optional parameters + * @param callback The callback + */ + getHostNameBinding(resourceGroupName: string, name: string, hostName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHostNameBinding(resourceGroupName: string, name: string, hostName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + hostName, + options + }, + getHostNameBindingOperationSpec, + callback) as Promise; + } + + /** + * Creates a hostname binding for an app. + * @summary Creates a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding + * object. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateHostNameBinding(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding + * object. + * @param callback The callback + */ + createOrUpdateHostNameBinding(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding + * object. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateHostNameBinding(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateHostNameBinding(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + hostName, + hostNameBinding, + options + }, + createOrUpdateHostNameBindingOperationSpec, + callback) as Promise; + } + + /** + * Deletes a hostname binding for an app. + * @summary Deletes a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param [options] The optional parameters + * @returns Promise + */ + deleteHostNameBinding(resourceGroupName: string, name: string, hostName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param callback The callback + */ + deleteHostNameBinding(resourceGroupName: string, name: string, hostName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param options The optional parameters + * @param callback The callback + */ + deleteHostNameBinding(resourceGroupName: string, name: string, hostName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHostNameBinding(resourceGroupName: string, name: string, hostName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + hostName, + options + }, + deleteHostNameBindingOperationSpec, + callback); + } + + /** + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * @summary Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param [options] The optional parameters + * @returns Promise + */ + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param callback The callback + */ + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param options The optional parameters + * @param callback The callback + */ + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + getHybridConnectionOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * @summary Creates a new Hybrid Connection using a Service Bus relay. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param callback The callback + */ + createOrUpdateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + connectionEnvelope, + options + }, + createOrUpdateHybridConnectionOperationSpec, + callback) as Promise; + } + + /** + * Removes a Hybrid Connection from this site. + * @summary Removes a Hybrid Connection from this site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param callback The callback + */ + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param options The optional parameters + * @param callback The callback + */ + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + deleteHybridConnectionOperationSpec, + callback); + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * @summary Creates a new Hybrid Connection using a Service Bus relay. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param [options] The optional parameters + * @returns Promise + */ + updateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param callback The callback + */ + updateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param options The optional parameters + * @param callback The callback + */ + updateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateHybridConnection(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + connectionEnvelope, + options + }, + updateHybridConnectionOperationSpec, + callback) as Promise; + } + + /** + * Gets the send key name and value for a Hybrid Connection. + * @summary Gets the send key name and value for a Hybrid Connection. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param callback The callback + */ + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnectionKeys(resourceGroupName: string, name: string, namespaceName: string, relayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + options + }, + listHybridConnectionKeysOperationSpec, + callback) as Promise; + } + + /** + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * @summary Retrieves all Service Bus Hybrid Connections used by this Web App. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param callback The callback + */ + listHybridConnections(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnections(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listHybridConnectionsOperationSpec, + callback) as Promise; + } + + /** + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * @summary Gets hybrid connections configured for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listRelayServiceConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listRelayServiceConnections(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listRelayServiceConnections(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRelayServiceConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listRelayServiceConnectionsOperationSpec, + callback) as Promise; + } + + /** + * Gets a hybrid connection configuration by its name. + * @summary Gets a hybrid connection configuration by its name. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param [options] The optional parameters + * @returns Promise + */ + getRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param callback The callback + */ + getRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param options The optional parameters + * @param callback The callback + */ + getRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + options + }, + getRelayServiceConnectionOperationSpec, + callback) as Promise; + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * @summary Creates a new hybrid connection configuration (PUT), or updates an existing one + * (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param callback The callback + */ + createOrUpdateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + connectionEnvelope, + options + }, + createOrUpdateRelayServiceConnectionOperationSpec, + callback) as Promise; + } + + /** + * Deletes a relay service connection by its name. + * @summary Deletes a relay service connection by its name. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param [options] The optional parameters + * @returns Promise + */ + deleteRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param callback The callback + */ + deleteRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param options The optional parameters + * @param callback The callback + */ + deleteRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + options + }, + deleteRelayServiceConnectionOperationSpec, + callback); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * @summary Creates a new hybrid connection configuration (PUT), or updates an existing one + * (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param [options] The optional parameters + * @returns Promise + */ + updateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param callback The callback + */ + updateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param options The optional parameters + * @param callback The callback + */ + updateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateRelayServiceConnection(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + connectionEnvelope, + options + }, + updateRelayServiceConnectionOperationSpec, + callback) as Promise; + } + + /** + * Gets all scale-out instances of an app. + * @summary Gets all scale-out instances of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceIdentifiers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listInstanceIdentifiers(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceIdentifiers(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceIdentifiers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listInstanceIdentifiersOperationSpec, + callback) as Promise; + } + + /** + * Get the status of the last MSDeploy operation. + * @summary Get the status of the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceMsDeployStatus(resourceGroupName: string, name: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param callback The callback + */ + getInstanceMsDeployStatus(resourceGroupName: string, name: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param options The optional parameters + * @param callback The callback + */ + getInstanceMsDeployStatus(resourceGroupName: string, name: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceMsDeployStatus(resourceGroupName: string, name: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + instanceId, + options + }, + getInstanceMsDeployStatusOperationSpec, + callback) as Promise; + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + createInstanceMSDeployOperation(resourceGroupName: string, name: string, instanceId: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateInstanceMSDeployOperation(resourceGroupName,name,instanceId,mSDeploy,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * @summary Get the MSDeploy Log for the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceMSDeployLog(resourceGroupName: string, name: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param callback The callback + */ + getInstanceMSDeployLog(resourceGroupName: string, name: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param options The optional parameters + * @param callback The callback + */ + getInstanceMSDeployLog(resourceGroupName: string, name: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceMSDeployLog(resourceGroupName: string, name: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + instanceId, + options + }, + getInstanceMSDeployLogOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcesses(resourceGroupName: string, name: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + listInstanceProcesses(resourceGroupName: string, name: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcesses(resourceGroupName: string, name: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcesses(resourceGroupName: string, name: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + instanceId, + options + }, + listInstanceProcessesOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + instanceId, + options + }, + getInstanceProcessOperationSpec, + callback) as Promise; + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out + * instance in a web site. + * @summary Terminate a process by its ID for a web site, or a deployment slot, or specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + deleteInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + deleteInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + deleteInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteInstanceProcess(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + instanceId, + options + }, + deleteInstanceProcessOperationSpec, + callback); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * @summary Get a memory dump of a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessDump(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessDump(resourceGroupName: string, name: string, processId: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessDump(resourceGroupName: string, name: string, processId: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessDump(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + instanceId, + options + }, + getInstanceProcessDumpOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessModules(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + listInstanceProcessModules(resourceGroupName: string, name: string, processId: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessModules(resourceGroupName: string, name: string, processId: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessModules(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + instanceId, + options + }, + listInstanceProcessModulesOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + baseAddress, + instanceId, + options + }, + getInstanceProcessModuleOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessThreads(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + listInstanceProcessThreads(resourceGroupName: string, name: string, processId: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessThreads(resourceGroupName: string, name: string, processId: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessThreads(resourceGroupName: string, name: string, processId: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + instanceId, + options + }, + listInstanceProcessThreadsOperationSpec, + callback) as Promise; + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in + * a web site. + * @summary Get thread information by Thread ID for a specific process, in a specific scaled-out + * instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + threadId, + instanceId, + options + }, + getInstanceProcessThreadOperationSpec, + callback) as Promise; + } + + /** + * Shows whether an app can be cloned to another resource group or subscription. + * @summary Shows whether an app can be cloned to another resource group or subscription. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + isCloneable(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + isCloneable(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + isCloneable(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + isCloneable(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + isCloneableOperationSpec, + callback) as Promise; + } + + /** + * This is to allow calling via powershell and ARM template. + * @summary This is to allow calling via powershell and ARM template. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listSyncFunctionTriggers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listSyncFunctionTriggers(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listSyncFunctionTriggers(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSyncFunctionTriggers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSyncFunctionTriggersOperationSpec, + callback) as Promise; + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * @summary Gets all metric definitions of an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefinitions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listMetricDefinitions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefinitions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefinitions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * @summary Gets performance metrics of an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listMetrics(resourceGroupName: string, name: string, options?: Models.WebAppsListMetricsOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listMetrics(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listMetrics(resourceGroupName: string, name: string, options: Models.WebAppsListMetricsOptionalParams, callback: msRest.ServiceCallback): void; + listMetrics(resourceGroupName: string, name: string, options?: Models.WebAppsListMetricsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricsOperationSpec, + callback) as Promise; + } + + /** + * Restores a web app. + * @summary Restores a web app. + * @param subscriptionName Azure subscription. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param migrationOptions Migration migrationOptions. + * @param [options] The optional parameters + * @returns Promise + */ + migrateStorage(subscriptionName: string, resourceGroupName: string, name: string, migrationOptions: Models.StorageMigrationOptions, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateStorage(subscriptionName,resourceGroupName,name,migrationOptions,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrates a local (in-app) MySql database to a remote MySql database. + * @summary Migrates a local (in-app) MySql database to a remote MySql database. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param migrationRequestEnvelope MySql migration options. + * @param [options] The optional parameters + * @returns Promise + */ + migrateMySql(resourceGroupName: string, name: string, migrationRequestEnvelope: Models.MigrateMySqlRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMySql(resourceGroupName,name,migrationRequestEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app + * is enabled + * @summary Returns the status of MySql in app migration, if one is active, and whether or not + * MySql in app is enabled + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getMigrateMySqlStatus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getMigrateMySqlStatus(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getMigrateMySqlStatus(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMigrateMySqlStatus(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getMigrateMySqlStatusOperationSpec, + callback) as Promise; + } + + /** + * Gets all network features used by the app (or deployment slot, if specified). + * @summary Gets all network features used by the app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param [options] The optional parameters + * @returns Promise + */ + listNetworkFeatures(resourceGroupName: string, name: string, view: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param callback The callback + */ + listNetworkFeatures(resourceGroupName: string, name: string, view: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param options The optional parameters + * @param callback The callback + */ + listNetworkFeatures(resourceGroupName: string, name: string, view: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNetworkFeatures(resourceGroupName: string, name: string, view: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + view, + options + }, + listNetworkFeaturesOperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param callback The callback + */ + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + options + }, + getNetworkTraceOperationOperationSpec, + callback) as Promise; + } + + /** + * Start capturing network packets for the site (To be deprecated). + * @summary Start capturing network packets for the site (To be deprecated). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + startWebSiteNetworkTrace(resourceGroupName: string, name: string, options?: Models.WebAppsStartWebSiteNetworkTraceOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param callback The callback + */ + startWebSiteNetworkTrace(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param options The optional parameters + * @param callback The callback + */ + startWebSiteNetworkTrace(resourceGroupName: string, name: string, options: Models.WebAppsStartWebSiteNetworkTraceOptionalParams, callback: msRest.ServiceCallback): void; + startWebSiteNetworkTrace(resourceGroupName: string, name: string, options?: Models.WebAppsStartWebSiteNetworkTraceOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + startWebSiteNetworkTraceOperationSpec, + callback) as Promise; + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + startWebSiteNetworkTraceOperation(resourceGroupName: string, name: string, options?: Models.WebAppsStartWebSiteNetworkTraceOperationOptionalParams): Promise { + return this.beginStartWebSiteNetworkTraceOperation(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Stop ongoing capturing network packets for the site. + * @summary Stop ongoing capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + stopWebSiteNetworkTrace(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param callback The callback + */ + stopWebSiteNetworkTrace(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param options The optional parameters + * @param callback The callback + */ + stopWebSiteNetworkTrace(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopWebSiteNetworkTrace(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + stopWebSiteNetworkTraceOperationSpec, + callback); + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraces(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param callback The callback + */ + getNetworkTraces(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraces(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraces(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + options + }, + getNetworkTracesOperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param callback The callback + */ + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + options + }, + getNetworkTraceOperationV2OperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param callback The callback + */ + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + options + }, + getNetworkTracesV2OperationSpec, + callback) as Promise; + } + + /** + * Generates a new publishing password for an app (or deployment slot, if specified). + * @summary Generates a new publishing password for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + generateNewSitePublishingPassword(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + generateNewSitePublishingPassword(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + generateNewSitePublishingPassword(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateNewSitePublishingPassword(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + generateNewSitePublishingPasswordOperationSpec, + callback); + } + + /** + * Gets perfmon counters for web app. + * @summary Gets perfmon counters for web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + listPerfMonCounters(resourceGroupName: string, name: string, options?: Models.WebAppsListPerfMonCountersOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + listPerfMonCounters(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + listPerfMonCounters(resourceGroupName: string, name: string, options: Models.WebAppsListPerfMonCountersOptionalParams, callback: msRest.ServiceCallback): void; + listPerfMonCounters(resourceGroupName: string, name: string, options?: Models.WebAppsListPerfMonCountersOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listPerfMonCountersOperationSpec, + callback) as Promise; + } + + /** + * Gets web app's event logs. + * @summary Gets web app's event logs. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + getSitePhpErrorLogFlag(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + getSitePhpErrorLogFlag(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + getSitePhpErrorLogFlag(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSitePhpErrorLogFlag(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getSitePhpErrorLogFlagOperationSpec, + callback) as Promise; + } + + /** + * Gets the premier add-ons of an app. + * @summary Gets the premier add-ons of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listPremierAddOns(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listPremierAddOns(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listPremierAddOns(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPremierAddOns(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listPremierAddOnsOperationSpec, + callback) as Promise; + } + + /** + * Gets a named add-on of an app. + * @summary Gets a named add-on of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param [options] The optional parameters + * @returns Promise + */ + getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param callback The callback + */ + getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param options The optional parameters + * @param callback The callback + */ + getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + options + }, + getPremierAddOnOperationSpec, + callback) as Promise; + } + + /** + * Updates a named add-on of an app. + * @summary Updates a named add-on of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param [options] The optional parameters + * @returns Promise + */ + addPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param callback The callback + */ + addPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param options The optional parameters + * @param callback The callback + */ + addPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + premierAddOn, + options + }, + addPremierAddOnOperationSpec, + callback) as Promise; + } + + /** + * Delete a premier add-on from an app. + * @summary Delete a premier add-on from an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param [options] The optional parameters + * @returns Promise + */ + deletePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param callback The callback + */ + deletePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param options The optional parameters + * @param callback The callback + */ + deletePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + options + }, + deletePremierAddOnOperationSpec, + callback); + } + + /** + * Updates a named add-on of an app. + * @summary Updates a named add-on of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param [options] The optional parameters + * @returns Promise + */ + updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param callback The callback + */ + updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param options The optional parameters + * @param callback The callback + */ + updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + premierAddOn, + options + }, + updatePremierAddOnOperationSpec, + callback) as Promise; + } + + /** + * Gets data around private site access enablement and authorized Virtual Networks that can access + * the site. + * @summary Gets data around private site access enablement and authorized Virtual Networks that + * can access the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + getPrivateAccess(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param callback The callback + */ + getPrivateAccess(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param options The optional parameters + * @param callback The callback + */ + getPrivateAccess(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrivateAccess(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getPrivateAccessOperationSpec, + callback) as Promise; + } + + /** + * Sets data around private site access enablement and authorized Virtual Networks that can access + * the site. + * @summary Sets data around private site access enablement and authorized Virtual Networks that + * can access the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param access The information for the private access + * @param [options] The optional parameters + * @returns Promise + */ + putPrivateAccessVnet(resourceGroupName: string, name: string, access: Models.PrivateAccess, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param access The information for the private access + * @param callback The callback + */ + putPrivateAccessVnet(resourceGroupName: string, name: string, access: Models.PrivateAccess, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param access The information for the private access + * @param options The optional parameters + * @param callback The callback + */ + putPrivateAccessVnet(resourceGroupName: string, name: string, access: Models.PrivateAccess, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + putPrivateAccessVnet(resourceGroupName: string, name: string, access: Models.PrivateAccess, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + access, + options + }, + putPrivateAccessVnetOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param [options] The optional parameters + * @returns Promise + */ + listProcesses(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param callback The callback + */ + listProcesses(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param options The optional parameters + * @param callback The callback + */ + listProcesses(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcesses(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listProcessesOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param [options] The optional parameters + * @returns Promise + */ + getProcess(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param callback The callback + */ + getProcess(resourceGroupName: string, name: string, processId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param options The optional parameters + * @param callback The callback + */ + getProcess(resourceGroupName: string, name: string, processId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcess(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + options + }, + getProcessOperationSpec, + callback) as Promise; + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out + * instance in a web site. + * @summary Terminate a process by its ID for a web site, or a deployment slot, or specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param [options] The optional parameters + * @returns Promise + */ + deleteProcess(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param callback The callback + */ + deleteProcess(resourceGroupName: string, name: string, processId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param options The optional parameters + * @param callback The callback + */ + deleteProcess(resourceGroupName: string, name: string, processId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteProcess(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + options + }, + deleteProcessOperationSpec, + callback); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * @summary Get a memory dump of a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessDump(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param callback The callback + */ + getProcessDump(resourceGroupName: string, name: string, processId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param options The optional parameters + * @param callback The callback + */ + getProcessDump(resourceGroupName: string, name: string, processId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessDump(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + options + }, + getProcessDumpOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessModules(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param callback The callback + */ + listProcessModules(resourceGroupName: string, name: string, processId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param options The optional parameters + * @param callback The callback + */ + listProcessModules(resourceGroupName: string, name: string, processId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessModules(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + options + }, + listProcessModulesOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param callback The callback + */ + getProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param options The optional parameters + * @param callback The callback + */ + getProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessModule(resourceGroupName: string, name: string, processId: string, baseAddress: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + baseAddress, + options + }, + getProcessModuleOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessThreads(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param callback The callback + */ + listProcessThreads(resourceGroupName: string, name: string, processId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param options The optional parameters + * @param callback The callback + */ + listProcessThreads(resourceGroupName: string, name: string, processId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessThreads(resourceGroupName: string, name: string, processId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + options + }, + listProcessThreadsOperationSpec, + callback) as Promise; + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in + * a web site. + * @summary Get thread information by Thread ID for a specific process, in a specific scaled-out + * instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param callback The callback + */ + getProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param options The optional parameters + * @param callback The callback + */ + getProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessThread(resourceGroupName: string, name: string, processId: string, threadId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + threadId, + options + }, + getProcessThreadOperationSpec, + callback) as Promise; + } + + /** + * Get public certificates for an app or a deployment slot. + * @summary Get public certificates for an app or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listPublicCertificates(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listPublicCertificates(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listPublicCertificates(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublicCertificates(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listPublicCertificatesOperationSpec, + callback) as Promise; + } + + /** + * Get the named public certificate for an app (or deployment slot, if specified). + * @summary Get the named public certificate for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param [options] The optional parameters + * @returns Promise + */ + getPublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param callback The callback + */ + getPublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param options The optional parameters + * @param callback The callback + */ + getPublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + publicCertificateName, + options + }, + getPublicCertificateOperationSpec, + callback) as Promise; + } + + /** + * Creates a hostname binding for an app. + * @summary Creates a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a + * PublicCertificate object. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdatePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a + * PublicCertificate object. + * @param callback The callback + */ + createOrUpdatePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a + * PublicCertificate object. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdatePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdatePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + publicCertificateName, + publicCertificate, + options + }, + createOrUpdatePublicCertificateOperationSpec, + callback) as Promise; + } + + /** + * Deletes a hostname binding for an app. + * @summary Deletes a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param [options] The optional parameters + * @returns Promise + */ + deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param callback The callback + */ + deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param options The optional parameters + * @param callback The callback + */ + deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + publicCertificateName, + options + }, + deletePublicCertificateOperationSpec, + callback); + } + + /** + * Gets the publishing profile for an app (or deployment slot, if specified). + * @summary Gets the publishing profile for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For + * example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishingProfileXmlWithSecrets(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For + * example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. + * @param callback The callback + */ + listPublishingProfileXmlWithSecrets(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For + * example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. + * @param options The optional parameters + * @param callback The callback + */ + listPublishingProfileXmlWithSecrets(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublishingProfileXmlWithSecrets(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + publishingProfileOptions, + options + }, + listPublishingProfileXmlWithSecretsOperationSpec, + callback) as Promise; + } + + /** + * Resets the configuration settings of the current slot if they were previously modified by + * calling the API with POST. + * @summary Resets the configuration settings of the current slot if they were previously modified + * by calling the API with POST. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + resetProductionSlotConfig(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + resetProductionSlotConfig(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + resetProductionSlotConfig(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resetProductionSlotConfig(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + resetProductionSlotConfigOperationSpec, + callback); + } + + /** + * Restarts an app (or deployment slot, if specified). + * @summary Restarts an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + restart(resourceGroupName: string, name: string, options?: Models.WebAppsRestartOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + restart(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + restart(resourceGroupName: string, name: string, options: Models.WebAppsRestartOptionalParams, callback: msRest.ServiceCallback): void; + restart(resourceGroupName: string, name: string, options?: Models.WebAppsRestartOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + restartOperationSpec, + callback); + } + + /** + * Restores an app from a backup blob in Azure Storage. + * @summary Restores an app from a backup blob in Azure Storage. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Information on restore request . + * @param [options] The optional parameters + * @returns Promise + */ + restoreFromBackupBlob(resourceGroupName: string, name: string, request: Models.RestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreFromBackupBlob(resourceGroupName,name,request,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restores a deleted web app to this web app. + * @summary Restores a deleted web app to this web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. + * @param [options] The optional parameters + * @returns Promise + */ + restoreFromDeletedApp(resourceGroupName: string, name: string, restoreRequest: Models.DeletedAppRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreFromDeletedApp(resourceGroupName,name,restoreRequest,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restores a web app from a snapshot. + * @summary Restores a web app from a snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling + * GetDeletedSites or GetSiteSnapshots API. + * @param [options] The optional parameters + * @returns Promise + */ + restoreSnapshot(resourceGroupName: string, name: string, restoreRequest: Models.SnapshotRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreSnapshot(resourceGroupName,name,restoreRequest,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Get list of siteextensions for a web site, or a deployment slot. + * @summary Get list of siteextensions for a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteExtensions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param callback The callback + */ + listSiteExtensions(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param options The optional parameters + * @param callback The callback + */ + listSiteExtensions(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteExtensions(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSiteExtensionsOperationSpec, + callback) as Promise; + } + + /** + * Get site extension information by its ID for a web site, or a deployment slot. + * @summary Get site extension information by its ID for a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param [options] The optional parameters + * @returns Promise + */ + getSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param callback The callback + */ + getSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param options The optional parameters + * @param callback The callback + */ + getSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteExtensionId, + options + }, + getSiteExtensionOperationSpec, + callback) as Promise; + } + + /** + * Install site extension on a web site, or a deployment slot. + * @summary Install site extension on a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param [options] The optional parameters + * @returns Promise + */ + installSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginInstallSiteExtension(resourceGroupName,name,siteExtensionId,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Remove a site extension from a web site, or a deployment slot. + * @summary Remove a site extension from a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param callback The callback + */ + deleteSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param options The optional parameters + * @param callback The callback + */ + deleteSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteExtensionId, + options + }, + deleteSiteExtensionOperationSpec, + callback); + } + + /** + * Gets an app's deployment slots. + * @summary Gets an app's deployment slots. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listSlots(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listSlots(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listSlots(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlots(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSlotsOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of a web, mobile, or API app. + * @summary Gets the details of a web, mobile, or API app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param callback The callback + */ + getSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getSlotOperationSpec, + callback) as Promise; + } + + /** + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * @summary Creates a new web, mobile, or API app in an existing resource group, or updates an + * existing app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to + * create or modify the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateSlot(resourceGroupName: string, name: string, siteEnvelope: Models.Site, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateSlot(resourceGroupName,name,siteEnvelope,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a web, mobile, or API app, or one of the deployment slots. + * @summary Deletes a web, mobile, or API app, or one of the deployment slots. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production + * slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsDeleteSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production + * slot. + * @param callback The callback + */ + deleteSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production + * slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsDeleteSlotOptionalParams, callback: msRest.ServiceCallback): void; + deleteSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsDeleteSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + deleteSlotOperationSpec, + callback); + } + + /** + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * @summary Creates a new web, mobile, or API app in an existing resource group, or updates an + * existing app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to + * create or modify the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateSlot(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to + * create or modify the production slot. + * @param callback The callback + */ + updateSlot(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to + * create or modify the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateSlot(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSlot(resourceGroupName: string, name: string, siteEnvelope: Models.SitePatchResource, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteEnvelope, + slot, + options + }, + updateSlotOperationSpec, + callback) as Promise; + } + + /** + * Analyze a custom hostname. + * @summary Analyze a custom hostname. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + analyzeCustomHostnameSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsAnalyzeCustomHostnameSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + analyzeCustomHostnameSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + analyzeCustomHostnameSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsAnalyzeCustomHostnameSlotOptionalParams, callback: msRest.ServiceCallback): void; + analyzeCustomHostnameSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsAnalyzeCustomHostnameSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + analyzeCustomHostnameSlotOperationSpec, + callback) as Promise; + } + + /** + * Applies the configuration settings from the target slot onto the current slot. + * @summary Applies the configuration settings from the target slot onto the current slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param [options] The optional parameters + * @returns Promise + */ + applySlotConfigurationSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param callback The callback + */ + applySlotConfigurationSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param options The optional parameters + * @param callback The callback + */ + applySlotConfigurationSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + applySlotConfigurationSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slotSwapEntity, + slot, + options + }, + applySlotConfigurationSlotOperationSpec, + callback); + } + + /** + * Creates a backup of an app. + * @summary Creates a backup of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Backup configuration. You can use the JSON response from the POST action as input + * here. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * backup for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + backupSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Backup configuration. You can use the JSON response from the POST action as input + * here. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * backup for the production slot. + * @param callback The callback + */ + backupSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Backup configuration. You can use the JSON response from the POST action as input + * here. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * backup for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + backupSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + backupSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + request, + slot, + options + }, + backupSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets existing backups of an app. + * @summary Gets existing backups of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of + * the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of + * the production slot. + * @param callback The callback + */ + listBackupsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of + * the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listBackupsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listBackupsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a backup of an app by its ID. + * @summary Gets a backup of an app by its ID. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup + * of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getBackupStatusSlot(resourceGroupName: string, name: string, backupId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup + * of the production slot. + * @param callback The callback + */ + getBackupStatusSlot(resourceGroupName: string, name: string, backupId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup + * of the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getBackupStatusSlot(resourceGroupName: string, name: string, backupId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBackupStatusSlot(resourceGroupName: string, name: string, backupId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + backupId, + slot, + options + }, + getBackupStatusSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a backup of an app by its ID. + * @summary Deletes a backup of an app by its ID. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteBackupSlot(resourceGroupName: string, name: string, backupId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a + * backup of the production slot. + * @param callback The callback + */ + deleteBackupSlot(resourceGroupName: string, name: string, backupId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a + * backup of the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteBackupSlot(resourceGroupName: string, name: string, backupId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteBackupSlot(resourceGroupName: string, name: string, backupId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + backupId, + slot, + options + }, + deleteBackupSlotOperationSpec, + callback); + } + + /** + * Gets status of a web app backup that may be in progress, including secrets associated with the + * backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup + * if a new URL is passed in the request body. + * @summary Gets status of a web app backup that may be in progress, including secrets associated + * with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for + * the backup if a new URL is passed in the request body. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param backupId ID of backup. + * @param request Information on backup request. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupStatusSecretsSlot(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param backupId ID of backup. + * @param request Information on backup request. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + listBackupStatusSecretsSlot(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param backupId ID of backup. + * @param request Information on backup request. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + listBackupStatusSecretsSlot(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupStatusSecretsSlot(resourceGroupName: string, name: string, backupId: string, request: Models.BackupRequest, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + backupId, + request, + slot, + options + }, + listBackupStatusSecretsSlotOperationSpec, + callback) as Promise; + } + + /** + * Restores a specific backup to another app (or deployment slot, if specified). + * @summary Restores a specific backup to another app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param request Information on restore request . + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + restoreSlot(resourceGroupName: string, name: string, backupId: string, request: Models.RestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreSlot(resourceGroupName,name,backupId,request,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * List the configurations of an app + * @summary List the configurations of an app + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param callback The callback + */ + listConfigurationsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listConfigurationsSlotOperationSpec, + callback) as Promise; + } + + /** + * Replaces the application settings of an app. + * @summary Replaces the application settings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param appSettings Application settings of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * application settings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateApplicationSettingsSlot(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param appSettings Application settings of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * application settings for the production slot. + * @param callback The callback + */ + updateApplicationSettingsSlot(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param appSettings Application settings of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * application settings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateApplicationSettingsSlot(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateApplicationSettingsSlot(resourceGroupName: string, name: string, appSettings: Models.StringDictionary, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + appSettings, + slot, + options + }, + updateApplicationSettingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the application settings of an app. + * @summary Gets the application settings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * application settings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listApplicationSettingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * application settings for the production slot. + * @param callback The callback + */ + listApplicationSettingsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * application settings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listApplicationSettingsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listApplicationSettingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listApplicationSettingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the Authentication / Authorization settings associated with web app. + * @summary Updates the Authentication / Authorization settings associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param siteAuthSettings Auth settings associated with web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateAuthSettingsSlot(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param siteAuthSettings Auth settings associated with web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + updateAuthSettingsSlot(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param siteAuthSettings Auth settings associated with web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateAuthSettingsSlot(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateAuthSettingsSlot(resourceGroupName: string, name: string, siteAuthSettings: Models.SiteAuthSettings, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteAuthSettings, + slot, + options + }, + updateAuthSettingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the Authentication/Authorization settings of an app. + * @summary Gets the Authentication/Authorization settings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * settings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getAuthSettingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * settings for the production slot. + * @param callback The callback + */ + getAuthSettingsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * settings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getAuthSettingsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAuthSettingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getAuthSettingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the Azure storage account configurations of an app. + * @summary Updates the Azure storage account configurations of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * Azure storage account configurations for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateAzureStorageAccountsSlot(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * Azure storage account configurations for the production slot. + * @param callback The callback + */ + updateAzureStorageAccountsSlot(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * Azure storage account configurations for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateAzureStorageAccountsSlot(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateAzureStorageAccountsSlot(resourceGroupName: string, name: string, azureStorageAccounts: Models.AzureStoragePropertyDictionaryResource, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + azureStorageAccounts, + slot, + options + }, + updateAzureStorageAccountsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the Azure storage account configurations of an app. + * @summary Gets the Azure storage account configurations of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * Azure storage account configurations for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listAzureStorageAccountsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * Azure storage account configurations for the production slot. + * @param callback The callback + */ + listAzureStorageAccountsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * Azure storage account configurations for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listAzureStorageAccountsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAzureStorageAccountsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listAzureStorageAccountsSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the backup configuration of an app. + * @summary Updates the backup configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Edited backup configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * backup configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateBackupConfigurationSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Edited backup configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * backup configuration for the production slot. + * @param callback The callback + */ + updateBackupConfigurationSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Edited backup configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * backup configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateBackupConfigurationSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateBackupConfigurationSlot(resourceGroupName: string, name: string, request: Models.BackupRequest, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + request, + slot, + options + }, + updateBackupConfigurationSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes the backup configuration of an app. + * @summary Deletes the backup configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * backup configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * backup configuration for the production slot. + * @param callback The callback + */ + deleteBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * backup configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + deleteBackupConfigurationSlotOperationSpec, + callback); + } + + /** + * Gets the backup configuration of an app. + * @summary Gets the backup configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup + * configuration for the production slot. + * @param callback The callback + */ + getBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBackupConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getBackupConfigurationSlotOperationSpec, + callback) as Promise; + } + + /** + * Replaces the connection strings of an app. + * @summary Replaces the connection strings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * connection settings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateConnectionStringsSlot(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * connection settings for the production slot. + * @param callback The callback + */ + updateConnectionStringsSlot(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * connection settings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateConnectionStringsSlot(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateConnectionStringsSlot(resourceGroupName: string, name: string, connectionStrings: Models.ConnectionStringDictionary, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionStrings, + slot, + options + }, + updateConnectionStringsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the connection strings of an app. + * @summary Gets the connection strings of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * connection settings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listConnectionStringsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * connection settings for the production slot. + * @param callback The callback + */ + listConnectionStringsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * connection settings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listConnectionStringsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionStringsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listConnectionStringsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the logging configuration of an app. + * @summary Gets the logging configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * logging configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getDiagnosticLogsConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * logging configuration for the production slot. + * @param callback The callback + */ + getDiagnosticLogsConfigurationSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * logging configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getDiagnosticLogsConfigurationSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDiagnosticLogsConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getDiagnosticLogsConfigurationSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the logging configuration of an app. + * @summary Updates the logging configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to + * change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * logging configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateDiagnosticLogsConfigSlot(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to + * change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * logging configuration for the production slot. + * @param callback The callback + */ + updateDiagnosticLogsConfigSlot(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to + * change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * logging configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateDiagnosticLogsConfigSlot(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateDiagnosticLogsConfigSlot(resourceGroupName: string, name: string, siteLogsConfig: Models.SiteLogsConfig, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteLogsConfig, + slot, + options + }, + updateDiagnosticLogsConfigSlotOperationSpec, + callback) as Promise; + } + + /** + * Replaces the metadata of an app. + * @summary Replaces the metadata of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * metadata for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateMetadataSlot(resourceGroupName: string, name: string, metadata: Models.StringDictionary, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * metadata for the production slot. + * @param callback The callback + */ + updateMetadataSlot(resourceGroupName: string, name: string, metadata: Models.StringDictionary, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * metadata for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateMetadataSlot(resourceGroupName: string, name: string, metadata: Models.StringDictionary, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateMetadataSlot(resourceGroupName: string, name: string, metadata: Models.StringDictionary, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + metadata, + slot, + options + }, + updateMetadataSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the metadata of an app. + * @summary Gets the metadata of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * metadata for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listMetadataSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * metadata for the production slot. + * @param callback The callback + */ + listMetadataSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * metadata for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listMetadataSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetadataSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listMetadataSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the Git/FTP publishing credentials of an app. + * @summary Gets the Git/FTP publishing credentials of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * publishing credentials for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishingCredentialsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginListPublishingCredentialsSlot(resourceGroupName,name,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates the Push settings associated with web app. + * @summary Updates the Push settings associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param pushSettings Push settings associated with web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateSitePushSettingsSlot(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param pushSettings Push settings associated with web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + updateSitePushSettingsSlot(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param pushSettings Push settings associated with web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateSitePushSettingsSlot(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSitePushSettingsSlot(resourceGroupName: string, name: string, pushSettings: Models.PushSettings, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + pushSettings, + slot, + options + }, + updateSitePushSettingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the Push settings associated with web app. + * @summary Gets the Push settings associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listSitePushSettingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + listSitePushSettingsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + listSitePushSettingsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSitePushSettingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSitePushSettingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a Swift Virtual Network connection. + * @summary Gets a Swift Virtual Network connection. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway + * for the production slot's Virtual Network. + * @param [options] The optional parameters + * @returns Promise + */ + getSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway + * for the production slot's Virtual Network. + * @param callback The callback + */ + getSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway + * for the production slot's Virtual Network. + * @param options The optional parameters + * @param callback The callback + */ + getSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getSwiftVirtualNetworkConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @summary Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" + * is true when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param callback The callback + */ + createOrUpdateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionEnvelope, + slot, + options + }, + createOrUpdateSwiftVirtualNetworkConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * @summary Deletes a Swift Virtual Network connection from an app (or deployment slot). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * connection for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSwiftVirtualNetworkSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * connection for the production slot. + * @param callback The callback + */ + deleteSwiftVirtualNetworkSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * connection for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteSwiftVirtualNetworkSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSwiftVirtualNetworkSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + deleteSwiftVirtualNetworkSlotOperationSpec, + callback); + } + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true + * when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @summary Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" + * is true when doing a GET against this resource, and 2) that the target Subnet has already been + * delegated, and is not + * in use by another App Service Plan other than the one this App is in. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param callback The callback + */ + updateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSwiftVirtualNetworkConnectionSlot(resourceGroupName: string, name: string, connectionEnvelope: Models.SwiftVirtualNetwork, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionEnvelope, + slot, + options + }, + updateSwiftVirtualNetworkConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the configuration of an app, such as platform version and bitness, default documents, + * virtual applications, Always On, etc. + * @summary Gets the configuration of an app, such as platform version and bitness, default + * documents, virtual applications, Always On, etc. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param callback The callback + */ + getConfigurationSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getConfigurationSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getConfigurationSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the configuration of an app. + * @summary Updates the configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update + * configuration for the production slot. + * @param callback The callback + */ + createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteConfig, + slot, + options + }, + createOrUpdateConfigurationSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the configuration of an app. + * @summary Updates the configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update + * configuration for the production slot. + * @param callback The callback + */ + updateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateConfigurationSlot(resourceGroupName: string, name: string, siteConfig: Models.SiteConfigResource, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteConfig, + slot, + options + }, + updateConfigurationSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a + * timestamp and the ID of the snapshot. + * @summary Gets a list of web app configuration snapshots identifiers. Each element of the list + * contains a timestamp and the ID of the snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationSnapshotInfoSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param callback The callback + */ + listConfigurationSnapshotInfoSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationSnapshotInfoSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationSnapshotInfoSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listConfigurationSnapshotInfoSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a snapshot of the configuration of an app at a previous point in time. + * @summary Gets a snapshot of the configuration of an app at a previous point in time. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param callback The callback + */ + getConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + snapshotId, + slot, + options + }, + getConfigurationSnapshotSlotOperationSpec, + callback) as Promise; + } + + /** + * Reverts the configuration of an app to a previous snapshot. + * @summary Reverts the configuration of an app to a previous snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + recoverSiteConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param callback The callback + */ + recoverSiteConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return + * configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + recoverSiteConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + recoverSiteConfigurationSnapshotSlot(resourceGroupName: string, name: string, snapshotId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + snapshotId, + slot, + options + }, + recoverSiteConfigurationSnapshotSlotOperationSpec, + callback); + } + + /** + * Gets the last lines of docker logs for the given site + * @summary Gets the last lines of docker logs for the given site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getWebSiteContainerLogsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getWebSiteContainerLogsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getWebSiteContainerLogsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getWebSiteContainerLogsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getWebSiteContainerLogsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the ZIP archived docker log files for the given site + * @summary Gets the ZIP archived docker log files for the given site + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getContainerLogsZipSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getContainerLogsZipSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getContainerLogsZipSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContainerLogsZipSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getContainerLogsZipSlotOperationSpec, + callback) as Promise; + } + + /** + * List continuous web jobs for an app, or a deployment slot. + * @summary List continuous web jobs for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listContinuousWebJobsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + listContinuousWebJobsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listContinuousWebJobsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listContinuousWebJobsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listContinuousWebJobsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a continuous web job by its ID for an app, or a deployment slot. + * @summary Gets a continuous web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + getContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + getContinuousWebJobSlotOperationSpec, + callback) as Promise; + } + + /** + * Delete a continuous web job by its ID for an app, or a deployment slot. + * @summary Delete a continuous web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + deleteContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + deleteContinuousWebJobSlotOperationSpec, + callback); + } + + /** + * Start a continuous web job for an app, or a deployment slot. + * @summary Start a continuous web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + startContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + startContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + startContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + startContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + startContinuousWebJobSlotOperationSpec, + callback); + } + + /** + * Stop a continuous web job for an app, or a deployment slot. + * @summary Stop a continuous web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + stopContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + stopContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + stopContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopContinuousWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + stopContinuousWebJobSlotOperationSpec, + callback); + } + + /** + * List deployments for an app, or a deployment slot. + * @summary List deployments for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listDeploymentsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + listDeploymentsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listDeploymentsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDeploymentsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listDeploymentsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get a deployment by its ID for an app, or a deployment slot. + * @summary Get a deployment by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment + * for the production slot. + * @param callback The callback + */ + getDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + slot, + options + }, + getDeploymentSlotOperationSpec, + callback) as Promise; + } + + /** + * Create a deployment for an app, or a deployment slot. + * @summary Create a deployment for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a + * deployment for the production slot. + * @param deployment Deployment details. + * @param [options] The optional parameters + * @returns Promise + */ + createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Models.Deployment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a + * deployment for the production slot. + * @param deployment Deployment details. + * @param callback The callback + */ + createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Models.Deployment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a + * deployment for the production slot. + * @param deployment Deployment details. + * @param options The optional parameters + * @param callback The callback + */ + createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Models.Deployment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, deployment: Models.Deployment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + slot, + deployment, + options + }, + createDeploymentSlotOperationSpec, + callback) as Promise; + } + + /** + * Delete a deployment by its ID for an app, or a deployment slot. + * @summary Delete a deployment by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + deleteDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteDeploymentSlot(resourceGroupName: string, name: string, id: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + slot, + options + }, + deleteDeploymentSlotOperationSpec, + callback); + } + + /** + * List deployment log for specific deployment for an app, or a deployment slot. + * @summary List deployment log for specific deployment for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON + * response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listDeploymentLogSlot(resourceGroupName: string, name: string, id: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON + * response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + listDeploymentLogSlot(resourceGroupName: string, name: string, id: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON + * response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listDeploymentLogSlot(resourceGroupName: string, name: string, id: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDeploymentLogSlot(resourceGroupName: string, name: string, id: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + id, + slot, + options + }, + listDeploymentLogSlotOperationSpec, + callback) as Promise; + } + + /** + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to + * get information about the databases stored in a backup. + * @summary Discovers an existing app backup that can be restored from a blob in Azure storage. Use + * this to get information about the databases stored in a backup. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for + * discovery of backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform + * discovery for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + discoverBackupSlot(resourceGroupName: string, name: string, request: Models.RestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for + * discovery of backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform + * discovery for the production slot. + * @param callback The callback + */ + discoverBackupSlot(resourceGroupName: string, name: string, request: Models.RestoreRequest, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for + * discovery of backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform + * discovery for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + discoverBackupSlot(resourceGroupName: string, name: string, request: Models.RestoreRequest, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + discoverBackupSlot(resourceGroupName: string, name: string, request: Models.RestoreRequest, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + request, + slot, + options + }, + discoverBackupSlotOperationSpec, + callback) as Promise; + } + + /** + * Lists ownership identifiers for domain associated with web app. + * @summary Lists ownership identifiers for domain associated with web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listDomainOwnershipIdentifiersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param callback The callback + */ + listDomainOwnershipIdentifiersSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listDomainOwnershipIdentifiersSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDomainOwnershipIdentifiersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listDomainOwnershipIdentifiersSlotOperationSpec, + callback) as Promise; + } + + /** + * Get domain ownership identifier for web app. + * @summary Get domain ownership identifier for web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param callback The callback + */ + getDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + slot, + options + }, + getDomainOwnershipIdentifierSlotOperationSpec, + callback) as Promise; + } + + /** + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * @summary Creates a domain ownership identifier for web app, or updates an existing ownership + * identifier. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param callback The callback + */ + createOrUpdateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + domainOwnershipIdentifier, + slot, + options + }, + createOrUpdateDomainOwnershipIdentifierSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a domain ownership identifier for a web app. + * @summary Deletes a domain ownership identifier for a web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param callback The callback + */ + deleteDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + slot, + options + }, + deleteDomainOwnershipIdentifierSlotOperationSpec, + callback); + } + + /** + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * @summary Creates a domain ownership identifier for web app, or updates an existing ownership + * identifier. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param callback The callback + */ + updateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateDomainOwnershipIdentifierSlot(resourceGroupName: string, name: string, domainOwnershipIdentifierName: string, domainOwnershipIdentifier: Models.Identifier, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + domainOwnershipIdentifierName, + domainOwnershipIdentifier, + slot, + options + }, + updateDomainOwnershipIdentifierSlotOperationSpec, + callback) as Promise; + } + + /** + * Get the status of the last MSDeploy operation. + * @summary Get the status of the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getMSDeployStatusSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getMSDeployStatusSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getMSDeployStatusSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMSDeployStatusSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getMSDeployStatusSlotOperationSpec, + callback) as Promise; + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + createMSDeployOperationSlot(resourceGroupName: string, name: string, slot: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateMSDeployOperationSlot(resourceGroupName,name,slot,mSDeploy,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * @summary Get the MSDeploy Log for the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getMSDeployLogSlotOperationSpec, + callback) as Promise; + } + + /** + * List the functions for a web site, or a deployment slot. + * @summary List the functions for a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceFunctionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + listInstanceFunctionsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceFunctionsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceFunctionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listInstanceFunctionsSlotOperationSpec, + callback) as Promise; + } + + /** + * Fetch a short lived token that can be exchanged for a master key. + * @summary Fetch a short lived token that can be exchanged for a master key. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getFunctionsAdminTokenSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getFunctionsAdminTokenSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getFunctionsAdminTokenSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getFunctionsAdminTokenSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getFunctionsAdminTokenSlotOperationSpec, + callback) as Promise; + } + + /** + * Get function information by its ID for web site, or a deployment slot. + * @summary Get function information by its ID for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + getInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + functionName, + slot, + options + }, + getInstanceFunctionSlotOperationSpec, + callback) as Promise; + } + + /** + * Create function for web site, or a deployment slot. + * @summary Create function for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param functionEnvelope Function details. + * @param [options] The optional parameters + * @returns Promise + */ + createInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, functionEnvelope: Models.FunctionEnvelope, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateInstanceFunctionSlot(resourceGroupName,name,functionName,slot,functionEnvelope,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a function for web site, or a deployment slot. + * @summary Delete a function for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + deleteInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + functionName, + slot, + options + }, + deleteInstanceFunctionSlotOperationSpec, + callback); + } + + /** + * Get function secrets for a function in a web site, or a deployment slot. + * @summary Get function secrets for a function in a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listFunctionSecretsSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + listFunctionSecretsSlot(resourceGroupName: string, name: string, functionName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listFunctionSecretsSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFunctionSecretsSlot(resourceGroupName: string, name: string, functionName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + functionName, + slot, + options + }, + listFunctionSecretsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get hostname bindings for an app or a deployment slot. + * @summary Get hostname bindings for an app or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname + * bindings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listHostNameBindingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname + * bindings for the production slot. + * @param callback The callback + */ + listHostNameBindingsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname + * bindings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listHostNameBindingsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostNameBindingsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listHostNameBindingsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get the named hostname binding for an app (or deployment slot, if specified). + * @summary Get the named hostname binding for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding + * for the production slot. + * @param hostName Hostname in the hostname binding. + * @param [options] The optional parameters + * @returns Promise + */ + getHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding + * for the production slot. + * @param hostName Hostname in the hostname binding. + * @param callback The callback + */ + getHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding + * for the production slot. + * @param hostName Hostname in the hostname binding. + * @param options The optional parameters + * @param callback The callback + */ + getHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + hostName, + options + }, + getHostNameBindingSlotOperationSpec, + callback) as Promise; + } + + /** + * Creates a hostname binding for an app. + * @summary Creates a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding + * object. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateHostNameBindingSlot(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding + * object. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * binding for the production slot. + * @param callback The callback + */ + createOrUpdateHostNameBindingSlot(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param hostName Hostname in the hostname binding. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding + * object. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateHostNameBindingSlot(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateHostNameBindingSlot(resourceGroupName: string, name: string, hostName: string, hostNameBinding: Models.HostNameBinding, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + hostName, + hostNameBinding, + slot, + options + }, + createOrUpdateHostNameBindingSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a hostname binding for an app. + * @summary Deletes a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param hostName Hostname in the hostname binding. + * @param [options] The optional parameters + * @returns Promise + */ + deleteHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param hostName Hostname in the hostname binding. + * @param callback The callback + */ + deleteHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param hostName Hostname in the hostname binding. + * @param options The optional parameters + * @param callback The callback + */ + deleteHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHostNameBindingSlot(resourceGroupName: string, name: string, slot: string, hostName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + hostName, + options + }, + deleteHostNameBindingSlotOperationSpec, + callback); + } + + /** + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * @summary Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + getHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + getHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + getHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + slot, + options + }, + getHybridConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * @summary Creates a new Hybrid Connection using a Service Bus relay. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + createOrUpdateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + connectionEnvelope, + slot, + options + }, + createOrUpdateHybridConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Removes a Hybrid Connection from this site. + * @summary Removes a Hybrid Connection from this site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + deleteHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + deleteHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + deleteHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + slot, + options + }, + deleteHybridConnectionSlotOperationSpec, + callback); + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * @summary Creates a new Hybrid Connection using a Service Bus relay. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + updateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + updateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param connectionEnvelope The details of the hybrid connection. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + updateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateHybridConnectionSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, connectionEnvelope: Models.HybridConnection, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + connectionEnvelope, + slot, + options + }, + updateHybridConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the send key name and value for a Hybrid Connection. + * @summary Gets the send key name and value for a Hybrid Connection. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnectionKeysSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + listHybridConnectionKeysSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnectionKeysSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnectionKeysSlot(resourceGroupName: string, name: string, namespaceName: string, relayName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + namespaceName, + relayName, + slot, + options + }, + listHybridConnectionKeysSlotOperationSpec, + callback) as Promise; + } + + /** + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * @summary Retrieves all Service Bus Hybrid Connections used by this Web App. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + listHybridConnectionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + listHybridConnectionsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + listHybridConnectionsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHybridConnectionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listHybridConnectionsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * @summary Gets hybrid connections configured for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid + * connections for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listRelayServiceConnectionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid + * connections for the production slot. + * @param callback The callback + */ + listRelayServiceConnectionsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid + * connections for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listRelayServiceConnectionsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRelayServiceConnectionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listRelayServiceConnectionsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a hybrid connection configuration by its name. + * @summary Gets a hybrid connection configuration by its name. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid + * connection for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid + * connection for the production slot. + * @param callback The callback + */ + getRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid + * connection for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + slot, + options + }, + getRelayServiceConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * @summary Creates a new hybrid connection configuration (PUT), or updates an existing one + * (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or + * update a hybrid connection for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or + * update a hybrid connection for the production slot. + * @param callback The callback + */ + createOrUpdateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or + * update a hybrid connection for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + connectionEnvelope, + slot, + options + }, + createOrUpdateRelayServiceConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a relay service connection by its name. + * @summary Deletes a relay service connection by its name. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a + * hybrid connection for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a + * hybrid connection for the production slot. + * @param callback The callback + */ + deleteRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a + * hybrid connection for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + slot, + options + }, + deleteRelayServiceConnectionSlotOperationSpec, + callback); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * @summary Creates a new hybrid connection configuration (PUT), or updates an existing one + * (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or + * update a hybrid connection for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or + * update a hybrid connection for the production slot. + * @param callback The callback + */ + updateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or + * update a hybrid connection for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateRelayServiceConnectionSlot(resourceGroupName: string, name: string, entityName: string, connectionEnvelope: Models.RelayServiceConnectionEntity, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + entityName, + connectionEnvelope, + slot, + options + }, + updateRelayServiceConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets all scale-out instances of an app. + * @summary Gets all scale-out instances of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production + * slot instances. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceIdentifiersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production + * slot instances. + * @param callback The callback + */ + listInstanceIdentifiersSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production + * slot instances. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceIdentifiersSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceIdentifiersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listInstanceIdentifiersSlotOperationSpec, + callback) as Promise; + } + + /** + * Get the status of the last MSDeploy operation. + * @summary Get the status of the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceMsDeployStatusSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param callback The callback + */ + getInstanceMsDeployStatusSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param options The optional parameters + * @param callback The callback + */ + getInstanceMsDeployStatusSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceMsDeployStatusSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + instanceId, + options + }, + getInstanceMsDeployStatusSlotOperationSpec, + callback) as Promise; + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + createInstanceMSDeployOperationSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateInstanceMSDeployOperationSlot(resourceGroupName,name,slot,instanceId,mSDeploy,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * @summary Get the MSDeploy Log for the last MSDeploy operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param callback The callback + */ + getInstanceMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param options The optional parameters + * @param callback The callback + */ + getInstanceMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceMSDeployLogSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + instanceId, + options + }, + getInstanceMSDeployLogSlotOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessesSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + listInstanceProcessesSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessesSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessesSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + instanceId, + options + }, + listInstanceProcessesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + instanceId, + options + }, + getInstanceProcessSlotOperationSpec, + callback) as Promise; + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out + * instance in a web site. + * @summary Terminate a process by its ID for a web site, or a deployment slot, or specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + deleteInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + deleteInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + deleteInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteInstanceProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + instanceId, + options + }, + deleteInstanceProcessSlotOperationSpec, + callback); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * @summary Get a memory dump of a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + instanceId, + options + }, + getInstanceProcessDumpSlotOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + listInstanceProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + instanceId, + options + }, + listInstanceProcessModulesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + baseAddress, + slot, + instanceId, + options + }, + getInstanceProcessModuleSlotOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + listInstanceProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + instanceId, + options + }, + listInstanceProcessThreadsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in + * a web site. + * @summary Get thread information by Thread ID for a specific process, in a specific scaled-out + * instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param [options] The optional parameters + * @returns Promise + */ + getInstanceProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param callback The callback + */ + getInstanceProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property + * in the JSON response from "GET api/sites/{siteName}/instances". + * @param options The optional parameters + * @param callback The callback + */ + getInstanceProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, instanceId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + threadId, + slot, + instanceId, + options + }, + getInstanceProcessThreadSlotOperationSpec, + callback) as Promise; + } + + /** + * Shows whether an app can be cloned to another resource group or subscription. + * @summary Shows whether an app can be cloned to another resource group or subscription. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the + * production slot. + * @param [options] The optional parameters + * @returns Promise + */ + isCloneableSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the + * production slot. + * @param callback The callback + */ + isCloneableSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the + * production slot. + * @param options The optional parameters + * @param callback The callback + */ + isCloneableSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + isCloneableSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + isCloneableSlotOperationSpec, + callback) as Promise; + } + + /** + * This is to allow calling via powershell and ARM template. + * @summary This is to allow calling via powershell and ARM template. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listSyncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param callback The callback + */ + listSyncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listSyncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSyncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSyncFunctionTriggersSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * @summary Gets all metric definitions of an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric + * definitions of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefinitionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric + * definitions of the production slot. + * @param callback The callback + */ + listMetricDefinitionsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric + * definitions of the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefinitionsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefinitionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listMetricDefinitionsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * @summary Gets performance metrics of an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of + * the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricsSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsListMetricsSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of + * the production slot. + * @param callback The callback + */ + listMetricsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of + * the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listMetricsSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsListMetricsSlotOptionalParams, callback: msRest.ServiceCallback): void; + listMetricsSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsListMetricsSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listMetricsSlotOperationSpec, + callback) as Promise; + } + + /** + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app + * is enabled + * @summary Returns the status of MySql in app migration, if one is active, and whether or not + * MySql in app is enabled + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of the deployment slot. + * @param [options] The optional parameters + * @returns Promise + */ + getMigrateMySqlStatusSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of the deployment slot. + * @param callback The callback + */ + getMigrateMySqlStatusSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of the deployment slot. + * @param options The optional parameters + * @param callback The callback + */ + getMigrateMySqlStatusSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMigrateMySqlStatusSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getMigrateMySqlStatusSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets all network features used by the app (or deployment slot, if specified). + * @summary Gets all network features used by the app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network + * features for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listNetworkFeaturesSlot(resourceGroupName: string, name: string, view: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network + * features for the production slot. + * @param callback The callback + */ + listNetworkFeaturesSlot(resourceGroupName: string, name: string, view: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network + * features for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listNetworkFeaturesSlot(resourceGroupName: string, name: string, view: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNetworkFeaturesSlot(resourceGroupName: string, name: string, view: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + view, + slot, + options + }, + listNetworkFeaturesSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param callback The callback + */ + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + slot, + options + }, + getNetworkTraceOperationSlotOperationSpec, + callback) as Promise; + } + + /** + * Start capturing network packets for the site (To be deprecated). + * @summary Start capturing network packets for the site (To be deprecated). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + startWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsStartWebSiteNetworkTraceSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param callback The callback + */ + startWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param options The optional parameters + * @param callback The callback + */ + startWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsStartWebSiteNetworkTraceSlotOptionalParams, callback: msRest.ServiceCallback): void; + startWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsStartWebSiteNetworkTraceSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + startWebSiteNetworkTraceSlotOperationSpec, + callback) as Promise; + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + startWebSiteNetworkTraceOperationSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsStartWebSiteNetworkTraceOperationSlotOptionalParams): Promise { + return this.beginStartWebSiteNetworkTraceOperationSlot(resourceGroupName,name,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Stop ongoing capturing network packets for the site. + * @summary Stop ongoing capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + stopWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param callback The callback + */ + stopWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param options The optional parameters + * @param callback The callback + */ + stopWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopWebSiteNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + stopWebSiteNetworkTraceSlotOperationSpec, + callback); + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param callback The callback + */ + getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTracesSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + slot, + options + }, + getNetworkTracesSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param callback The callback + */ + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + slot, + options + }, + getNetworkTraceOperationSlotV2OperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param callback The callback + */ + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + slot, + options + }, + getNetworkTracesSlotV2OperationSpec, + callback) as Promise; + } + + /** + * Generates a new publishing password for an app (or deployment slot, if specified). + * @summary Generates a new publishing password for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API generate a new + * publishing password for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + generateNewSitePublishingPasswordSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API generate a new + * publishing password for the production slot. + * @param callback The callback + */ + generateNewSitePublishingPasswordSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API generate a new + * publishing password for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + generateNewSitePublishingPasswordSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateNewSitePublishingPasswordSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + generateNewSitePublishingPasswordSlotOperationSpec, + callback); + } + + /** + * Gets perfmon counters for web app. + * @summary Gets perfmon counters for web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listPerfMonCountersSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsListPerfMonCountersSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + listPerfMonCountersSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + listPerfMonCountersSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsListPerfMonCountersSlotOptionalParams, callback: msRest.ServiceCallback): void; + listPerfMonCountersSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsListPerfMonCountersSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listPerfMonCountersSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets web app's event logs. + * @summary Gets web app's event logs. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getSitePhpErrorLogFlagSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + getSitePhpErrorLogFlagSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + getSitePhpErrorLogFlagSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSitePhpErrorLogFlagSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getSitePhpErrorLogFlagSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the premier add-ons of an app. + * @summary Gets the premier add-ons of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * premier add-ons for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listPremierAddOnsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * premier add-ons for the production slot. + * @param callback The callback + */ + listPremierAddOnsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * premier add-ons for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listPremierAddOnsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPremierAddOnsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listPremierAddOnsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a named add-on of an app. + * @summary Gets a named add-on of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the named + * add-on for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the named + * add-on for the production slot. + * @param callback The callback + */ + getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the named + * add-on for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + slot, + options + }, + getPremierAddOnSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates a named add-on of an app. + * @summary Updates a named add-on of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * named add-on for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + addPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * named add-on for the production slot. + * @param callback The callback + */ + addPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * named add-on for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + addPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + addPremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOn, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + premierAddOn, + slot, + options + }, + addPremierAddOnSlotOperationSpec, + callback) as Promise; + } + + /** + * Delete a premier add-on from an app. + * @summary Delete a premier add-on from an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * named add-on for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deletePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * named add-on for the production slot. + * @param callback The callback + */ + deletePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * named add-on for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deletePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + slot, + options + }, + deletePremierAddOnSlotOperationSpec, + callback); + } + + /** + * Updates a named add-on of an app. + * @summary Updates a named add-on of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * named add-on for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updatePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * named add-on for the production slot. + * @param callback The callback + */ + updatePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * named add-on for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updatePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePremierAddOnSlot(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: Models.PremierAddOnPatchResource, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + premierAddOnName, + premierAddOn, + slot, + options + }, + updatePremierAddOnSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets data around private site access enablement and authorized Virtual Networks that can access + * the site. + * @summary Gets data around private site access enablement and authorized Virtual Networks that + * can access the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + getPrivateAccessSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + getPrivateAccessSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + getPrivateAccessSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrivateAccessSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getPrivateAccessSlotOperationSpec, + callback) as Promise; + } + + /** + * Sets data around private site access enablement and authorized Virtual Networks that can access + * the site. + * @summary Sets data around private site access enablement and authorized Virtual Networks that + * can access the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param access The information for the private access + * @param slot The name of the slot for the web app. + * @param [options] The optional parameters + * @returns Promise + */ + putPrivateAccessVnetSlot(resourceGroupName: string, name: string, access: Models.PrivateAccess, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param access The information for the private access + * @param slot The name of the slot for the web app. + * @param callback The callback + */ + putPrivateAccessVnetSlot(resourceGroupName: string, name: string, access: Models.PrivateAccess, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param access The information for the private access + * @param slot The name of the slot for the web app. + * @param options The optional parameters + * @param callback The callback + */ + putPrivateAccessVnetSlot(resourceGroupName: string, name: string, access: Models.PrivateAccess, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + putPrivateAccessVnetSlot(resourceGroupName: string, name: string, access: Models.PrivateAccess, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + access, + slot, + options + }, + putPrivateAccessVnetSlotOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessesSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + listProcessesSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listProcessesSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessesSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listProcessesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + getProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + options + }, + getProcessSlotOperationSpec, + callback) as Promise; + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out + * instance in a web site. + * @summary Terminate a process by its ID for a web site, or a deployment slot, or specific + * scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + deleteProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteProcessSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + options + }, + deleteProcessSlotOperationSpec, + callback); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * @summary Get a memory dump of a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + getProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessDumpSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + options + }, + getProcessDumpSlotOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + listProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessModulesSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + options + }, + listProcessModulesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * @summary Get process information by its ID for a specific scaled-out instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + getProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessModuleSlot(resourceGroupName: string, name: string, processId: string, baseAddress: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + baseAddress, + slot, + options + }, + getProcessModuleSlotOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + listProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessThreadsSlot(resourceGroupName: string, name: string, processId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + slot, + options + }, + listProcessThreadsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in + * a web site. + * @summary Get thread information by Thread ID for a specific process, in a specific scaled-out + * instance in a web site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + getProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProcessThreadSlot(resourceGroupName: string, name: string, processId: string, threadId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + processId, + threadId, + slot, + options + }, + getProcessThreadSlotOperationSpec, + callback) as Promise; + } + + /** + * Get public certificates for an app or a deployment slot. + * @summary Get public certificates for an app or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname + * bindings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listPublicCertificatesSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname + * bindings for the production slot. + * @param callback The callback + */ + listPublicCertificatesSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname + * bindings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listPublicCertificatesSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublicCertificatesSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listPublicCertificatesSlotOperationSpec, + callback) as Promise; + } + + /** + * Get the named public certificate for an app (or deployment slot, if specified). + * @summary Get the named public certificate for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding + * for the production slot. + * @param publicCertificateName Public certificate name. + * @param [options] The optional parameters + * @returns Promise + */ + getPublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding + * for the production slot. + * @param publicCertificateName Public certificate name. + * @param callback The callback + */ + getPublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding + * for the production slot. + * @param publicCertificateName Public certificate name. + * @param options The optional parameters + * @param callback The callback + */ + getPublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + publicCertificateName, + options + }, + getPublicCertificateSlotOperationSpec, + callback) as Promise; + } + + /** + * Creates a hostname binding for an app. + * @summary Creates a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a + * PublicCertificate object. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * binding for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdatePublicCertificateSlot(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a + * PublicCertificate object. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * binding for the production slot. + * @param callback The callback + */ + createOrUpdatePublicCertificateSlot(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a + * PublicCertificate object. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a + * binding for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdatePublicCertificateSlot(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdatePublicCertificateSlot(resourceGroupName: string, name: string, publicCertificateName: string, publicCertificate: Models.PublicCertificate, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + publicCertificateName, + publicCertificate, + slot, + options + }, + createOrUpdatePublicCertificateSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a hostname binding for an app. + * @summary Deletes a hostname binding for an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param publicCertificateName Public certificate name. + * @param [options] The optional parameters + * @returns Promise + */ + deletePublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param publicCertificateName Public certificate name. + * @param callback The callback + */ + deletePublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * binding for the production slot. + * @param publicCertificateName Public certificate name. + * @param options The optional parameters + * @param callback The callback + */ + deletePublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deletePublicCertificateSlot(resourceGroupName: string, name: string, slot: string, publicCertificateName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + publicCertificateName, + options + }, + deletePublicCertificateSlotOperationSpec, + callback); + } + + /** + * Gets the publishing profile for an app (or deployment slot, if specified). + * @summary Gets the publishing profile for an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For + * example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * publishing profile for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listPublishingProfileXmlWithSecretsSlot(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For + * example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * publishing profile for the production slot. + * @param callback The callback + */ + listPublishingProfileXmlWithSecretsSlot(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For + * example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * publishing profile for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listPublishingProfileXmlWithSecretsSlot(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublishingProfileXmlWithSecretsSlot(resourceGroupName: string, name: string, publishingProfileOptions: Models.CsmPublishingProfileOptions, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + publishingProfileOptions, + slot, + options + }, + listPublishingProfileXmlWithSecretsSlotOperationSpec, + callback) as Promise; + } + + /** + * Resets the configuration settings of the current slot if they were previously modified by + * calling the API with POST. + * @summary Resets the configuration settings of the current slot if they were previously modified + * by calling the API with POST. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API resets + * configuration settings for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + resetSlotConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API resets + * configuration settings for the production slot. + * @param callback The callback + */ + resetSlotConfigurationSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API resets + * configuration settings for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + resetSlotConfigurationSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resetSlotConfigurationSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + resetSlotConfigurationSlotOperationSpec, + callback); + } + + /** + * Restarts an app (or deployment slot, if specified). + * @summary Restarts an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restart the + * production slot. + * @param [options] The optional parameters + * @returns Promise + */ + restartSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsRestartSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restart the + * production slot. + * @param callback The callback + */ + restartSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restart the + * production slot. + * @param options The optional parameters + * @param callback The callback + */ + restartSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsRestartSlotOptionalParams, callback: msRest.ServiceCallback): void; + restartSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsRestartSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + restartSlotOperationSpec, + callback); + } + + /** + * Restores an app from a backup blob in Azure Storage. + * @summary Restores an app from a backup blob in Azure Storage. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Information on restore request . + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + restoreFromBackupBlobSlot(resourceGroupName: string, name: string, request: Models.RestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreFromBackupBlobSlot(resourceGroupName,name,request,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restores a deleted web app to this web app. + * @summary Restores a deleted web app to this web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + restoreFromDeletedAppSlot(resourceGroupName: string, name: string, restoreRequest: Models.DeletedAppRestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreFromDeletedAppSlot(resourceGroupName,name,restoreRequest,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Restores a web app from a snapshot. + * @summary Restores a web app from a snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling + * GetDeletedSites or GetSiteSnapshots API. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + restoreSnapshotSlot(resourceGroupName: string, name: string, restoreRequest: Models.SnapshotRestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestoreSnapshotSlot(resourceGroupName,name,restoreRequest,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Get list of siteextensions for a web site, or a deployment slot. + * @summary Get list of siteextensions for a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteExtensionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + listSiteExtensionsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listSiteExtensionsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteExtensionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSiteExtensionsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get site extension information by its ID for a web site, or a deployment slot. + * @summary Get site extension information by its ID for a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + getSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteExtensionId, + slot, + options + }, + getSiteExtensionSlotOperationSpec, + callback) as Promise; + } + + /** + * Install site extension on a web site, or a deployment slot. + * @summary Install site extension on a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + installSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginInstallSiteExtensionSlot(resourceGroupName,name,siteExtensionId,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Remove a site extension from a web site, or a deployment slot. + * @summary Remove a site extension from a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + deleteSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteExtensionId, + slot, + options + }, + deleteSiteExtensionSlotOperationSpec, + callback); + } + + /** + * Get the difference in configuration settings between two web app slots. + * @summary Get the difference in configuration settings between two web app slots. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param [options] The optional parameters + * @returns Promise + */ + listSlotDifferencesSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param callback The callback + */ + listSlotDifferencesSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param options The optional parameters + * @param callback The callback + */ + listSlotDifferencesSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlotDifferencesSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slotSwapEntity, + slot, + options + }, + listSlotDifferencesSlotOperationSpec, + callback) as Promise; + } + + /** + * Swaps two deployment slots of an app. + * @summary Swaps two deployment slots of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param [options] The optional parameters + * @returns Promise + */ + swapSlotSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginSwapSlotSlot(resourceGroupName,name,slotSwapEntity,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns all Snapshots to the user. + * @summary Returns all Snapshots to the user. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshotsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @param callback The callback + */ + listSnapshotsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @param options The optional parameters + * @param callback The callback + */ + listSnapshotsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSnapshotsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the source control configuration of an app. + * @summary Gets the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the source + * control configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getSourceControlSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the source + * control configuration for the production slot. + * @param callback The callback + */ + getSourceControlSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the source + * control configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getSourceControlSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSourceControlSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getSourceControlSlotOperationSpec, + callback) as Promise; + } + + /** + * Updates the source control configuration of an app. + * @summary Updates the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * source control configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateSourceControlSlot(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateSourceControlSlot(resourceGroupName,name,siteSourceControl,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the source control configuration of an app. + * @summary Deletes the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * source control configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSourceControlSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * source control configuration for the production slot. + * @param callback The callback + */ + deleteSourceControlSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * source control configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteSourceControlSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSourceControlSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + deleteSourceControlSlotOperationSpec, + callback); + } + + /** + * Updates the source control configuration of an app. + * @summary Updates the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * source control configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateSourceControlSlot(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * source control configuration for the production slot. + * @param callback The callback + */ + updateSourceControlSlot(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * source control configuration for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateSourceControlSlot(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSourceControlSlot(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteSourceControl, + slot, + options + }, + updateSourceControlSlotOperationSpec, + callback) as Promise; + } + + /** + * Starts an app (or deployment slot, if specified). + * @summary Starts an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will start the + * production slot. + * @param [options] The optional parameters + * @returns Promise + */ + startSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will start the + * production slot. + * @param callback The callback + */ + startSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will start the + * production slot. + * @param options The optional parameters + * @param callback The callback + */ + startSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + startSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + startSlotOperationSpec, + callback); + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + startNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsStartNetworkTraceSlotOptionalParams): Promise { + return this.beginStartNetworkTraceSlot(resourceGroupName,name,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Stops an app (or deployment slot, if specified). + * @summary Stops an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will stop the + * production slot. + * @param [options] The optional parameters + * @returns Promise + */ + stopSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will stop the + * production slot. + * @param callback The callback + */ + stopSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will stop the + * production slot. + * @param options The optional parameters + * @param callback The callback + */ + stopSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + stopSlotOperationSpec, + callback); + } + + /** + * Stop ongoing capturing network packets for the site. + * @summary Stop ongoing capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param callback The callback + */ + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param options The optional parameters + * @param callback The callback + */ + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + stopNetworkTraceSlotOperationSpec, + callback); + } + + /** + * Sync web app repository. + * @summary Sync web app repository. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + syncRepositorySlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param callback The callback + */ + syncRepositorySlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param options The optional parameters + * @param callback The callback + */ + syncRepositorySlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + syncRepositorySlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + syncRepositorySlotOperationSpec, + callback); + } + + /** + * Syncs function trigger metadata to the scale controller + * @summary Syncs function trigger metadata to the scale controller + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + syncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param callback The callback + */ + syncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param options The optional parameters + * @param callback The callback + */ + syncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + syncFunctionTriggersSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + syncFunctionTriggersSlotOperationSpec, + callback); + } + + /** + * List triggered web jobs for an app, or a deployment slot. + * @summary List triggered web jobs for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + listTriggeredWebJobsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listTriggeredWebJobsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a triggered web job by its ID for an app, or a deployment slot. + * @summary Gets a triggered web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + getTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + getTriggeredWebJobSlotOperationSpec, + callback) as Promise; + } + + /** + * Delete a triggered web job by its ID for an app, or a deployment slot. + * @summary Delete a triggered web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + deleteTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + deleteTriggeredWebJobSlotOperationSpec, + callback); + } + + /** + * List a triggered web job's history for an app, or a deployment slot. + * @summary List a triggered web job's history for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + listTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + listTriggeredWebJobHistorySlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a triggered web job's history by its ID for an app, , or a deployment slot. + * @summary Gets a triggered web job's history by its ID for an app, , or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param id History ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, id: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param id History ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + getTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, id: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param id History ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, id: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTriggeredWebJobHistorySlot(resourceGroupName: string, name: string, webJobName: string, id: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + id, + slot, + options + }, + getTriggeredWebJobHistorySlotOperationSpec, + callback) as Promise; + } + + /** + * Run a triggered web job for an app, or a deployment slot. + * @summary Run a triggered web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + runTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param callback The callback + */ + runTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + runTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + runTriggeredWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + runTriggeredWebJobSlotOperationSpec, + callback); + } + + /** + * Gets the quota usage information of an app (or deployment slot, if specified). + * @summary Gets the quota usage information of an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota + * information of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listUsagesSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsListUsagesSlotOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota + * information of the production slot. + * @param callback The callback + */ + listUsagesSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota + * information of the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listUsagesSlot(resourceGroupName: string, name: string, slot: string, options: Models.WebAppsListUsagesSlotOptionalParams, callback: msRest.ServiceCallback): void; + listUsagesSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsListUsagesSlotOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listUsagesSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets the virtual networks the app (or deployment slot) is connected to. + * @summary Gets the virtual networks the app (or deployment slot) is connected to. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get virtual + * network connections for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listVnetConnectionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get virtual + * network connections for the production slot. + * @param callback The callback + */ + listVnetConnectionsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get virtual + * network connections for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listVnetConnectionsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVnetConnectionsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listVnetConnectionsSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets a virtual network the app (or deployment slot) is connected to by name. + * @summary Gets a virtual network the app (or deployment slot) is connected to by name. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the named + * virtual network for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the named + * virtual network for the production slot. + * @param callback The callback + */ + getVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the named + * virtual network for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + slot, + options + }, + getVnetConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties + * (PATCH). + * @summary Adds a Virtual Network connection to an app or slot (PUT) or updates the connection + * properties (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param callback The callback + */ + createOrUpdateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + connectionEnvelope, + slot, + options + }, + createOrUpdateVnetConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Deletes a connection from an app (or deployment slot to a named virtual network. + * @summary Deletes a connection from an app (or deployment slot to a named virtual network. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * connection for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + deleteVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * connection for the production slot. + * @param callback The callback + */ + deleteVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the + * connection for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + deleteVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + slot, + options + }, + deleteVnetConnectionSlotOperationSpec, + callback); + } + + /** + * Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties + * (PATCH). + * @summary Adds a Virtual Network connection to an app or slot (PUT) or updates the connection + * properties (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + updateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param callback The callback + */ + updateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * connections for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + updateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateVnetConnectionSlot(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + connectionEnvelope, + slot, + options + }, + updateVnetConnectionSlotOperationSpec, + callback) as Promise; + } + + /** + * Gets an app's Virtual Network gateway. + * @summary Gets an app's Virtual Network gateway. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway + * for the production slot's Virtual Network. + * @param [options] The optional parameters + * @returns Promise + */ + getVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway + * for the production slot's Virtual Network. + * @param callback The callback + */ + getVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway + * for the production slot's Virtual Network. + * @param options The optional parameters + * @param callback The callback + */ + getVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + slot, + options + }, + getVnetConnectionGatewaySlotOperationSpec, + callback) as Promise; + } + + /** + * Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @summary Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * a gateway for the production slot's Virtual Network. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * a gateway for the production slot's Virtual Network. + * @param callback The callback + */ + createOrUpdateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * a gateway for the production slot's Virtual Network. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + connectionEnvelope, + slot, + options + }, + createOrUpdateVnetConnectionGatewaySlotOperationSpec, + callback) as Promise; + } + + /** + * Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @summary Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * a gateway for the production slot's Virtual Network. + * @param [options] The optional parameters + * @returns Promise + */ + updateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * a gateway for the production slot's Virtual Network. + * @param callback The callback + */ + updateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update + * a gateway for the production slot's Virtual Network. + * @param options The optional parameters + * @param callback The callback + */ + updateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateVnetConnectionGatewaySlot(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + connectionEnvelope, + slot, + options + }, + updateVnetConnectionGatewaySlotOperationSpec, + callback) as Promise; + } + + /** + * List webjobs for an app, or a deployment slot. + * @summary List webjobs for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + listWebJobsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + listWebJobsSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + listWebJobsSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebJobsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listWebJobsSlotOperationSpec, + callback) as Promise; + } + + /** + * Get webjob information for an app, or a deployment slot. + * @summary Get webjob information for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of the web job. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of the web job. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param callback The callback + */ + getWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of the web job. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments + * for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getWebJobSlot(resourceGroupName: string, name: string, webJobName: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + slot, + options + }, + getWebJobSlotOperationSpec, + callback) as Promise; + } + + /** + * Get the difference in configuration settings between two web app slots. + * @summary Get the difference in configuration settings between two web app slots. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param [options] The optional parameters + * @returns Promise + */ + listSlotDifferencesFromProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param callback The callback + */ + listSlotDifferencesFromProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param options The optional parameters + * @param callback The callback + */ + listSlotDifferencesFromProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlotDifferencesFromProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slotSwapEntity, + options + }, + listSlotDifferencesFromProductionOperationSpec, + callback) as Promise; + } + + /** + * Swaps two deployment slots of an app. + * @summary Swaps two deployment slots of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param [options] The optional parameters + * @returns Promise + */ + swapSlotWithProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options?: msRest.RequestOptionsBase): Promise { + return this.beginSwapSlotWithProduction(resourceGroupName,name,slotSwapEntity,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns all Snapshots to the user. + * @summary Returns all Snapshots to the user. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshots(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param callback The callback + */ + listSnapshots(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param options The optional parameters + * @param callback The callback + */ + listSnapshots(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshots(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSnapshotsOperationSpec, + callback) as Promise; + } + + /** + * Gets the source control configuration of an app. + * @summary Gets the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getSourceControl(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getSourceControl(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getSourceControl(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSourceControl(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getSourceControlOperationSpec, + callback) as Promise; + } + + /** + * Updates the source control configuration of an app. + * @summary Updates the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateSourceControl(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdateSourceControl(resourceGroupName,name,siteSourceControl,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the source control configuration of an app. + * @summary Deletes the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSourceControl(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + deleteSourceControl(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + deleteSourceControl(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteSourceControl(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + deleteSourceControlOperationSpec, + callback); + } + + /** + * Updates the source control configuration of an app. + * @summary Updates the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateSourceControl(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param callback The callback + */ + updateSourceControl(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateSourceControl(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSourceControl(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + siteSourceControl, + options + }, + updateSourceControlOperationSpec, + callback) as Promise; + } + + /** + * Starts an app (or deployment slot, if specified). + * @summary Starts an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + start(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + start(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + start(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + start(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + startOperationSpec, + callback); + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + startNetworkTrace(resourceGroupName: string, name: string, options?: Models.WebAppsStartNetworkTraceOptionalParams): Promise { + return this.beginStartNetworkTrace(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Stops an app (or deployment slot, if specified). + * @summary Stops an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + stop(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + stop(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stop(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + stopOperationSpec, + callback); + } + + /** + * Stop ongoing capturing network packets for the site. + * @summary Stop ongoing capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + stopNetworkTrace(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param callback The callback + */ + stopNetworkTrace(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param options The optional parameters + * @param callback The callback + */ + stopNetworkTrace(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopNetworkTrace(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + stopNetworkTraceOperationSpec, + callback); + } + + /** + * Sync web app repository. + * @summary Sync web app repository. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param [options] The optional parameters + * @returns Promise + */ + syncRepository(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param callback The callback + */ + syncRepository(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param options The optional parameters + * @param callback The callback + */ + syncRepository(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + syncRepository(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + syncRepositoryOperationSpec, + callback); + } + + /** + * Syncs function trigger metadata to the scale controller + * @summary Syncs function trigger metadata to the scale controller + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + syncFunctionTriggers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + syncFunctionTriggers(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + syncFunctionTriggers(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + syncFunctionTriggers(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + syncFunctionTriggersOperationSpec, + callback); + } + + /** + * List triggered web jobs for an app, or a deployment slot. + * @summary List triggered web jobs for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param callback The callback + */ + listTriggeredWebJobs(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobs(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listTriggeredWebJobsOperationSpec, + callback) as Promise; + } + + /** + * Gets a triggered web job by its ID for an app, or a deployment slot. + * @summary Gets a triggered web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + getTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + getTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + getTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + getTriggeredWebJobOperationSpec, + callback) as Promise; + } + + /** + * Delete a triggered web job by its ID for an app, or a deployment slot. + * @summary Delete a triggered web job by its ID for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + deleteTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + deleteTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + deleteTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + deleteTriggeredWebJobOperationSpec, + callback); + } + + /** + * List a triggered web job's history for an app, or a deployment slot. + * @summary List a triggered web job's history for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + listTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + listTriggeredWebJobHistoryOperationSpec, + callback) as Promise; + } + + /** + * Gets a triggered web job's history by its ID for an app, , or a deployment slot. + * @summary Gets a triggered web job's history by its ID for an app, , or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param id History ID. + * @param [options] The optional parameters + * @returns Promise + */ + getTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, id: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param id History ID. + * @param callback The callback + */ + getTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, id: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param id History ID. + * @param options The optional parameters + * @param callback The callback + */ + getTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTriggeredWebJobHistory(resourceGroupName: string, name: string, webJobName: string, id: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + id, + options + }, + getTriggeredWebJobHistoryOperationSpec, + callback) as Promise; + } + + /** + * Run a triggered web job for an app, or a deployment slot. + * @summary Run a triggered web job for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param [options] The optional parameters + * @returns Promise + */ + runTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param callback The callback + */ + runTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param options The optional parameters + * @param callback The callback + */ + runTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + runTriggeredWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + runTriggeredWebJobOperationSpec, + callback); + } + + /** + * Gets the quota usage information of an app (or deployment slot, if specified). + * @summary Gets the quota usage information of an app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listUsages(resourceGroupName: string, name: string, options?: Models.WebAppsListUsagesOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listUsages(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listUsages(resourceGroupName: string, name: string, options: Models.WebAppsListUsagesOptionalParams, callback: msRest.ServiceCallback): void; + listUsages(resourceGroupName: string, name: string, options?: Models.WebAppsListUsagesOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listUsagesOperationSpec, + callback) as Promise; + } + + /** + * Gets the virtual networks the app (or deployment slot) is connected to. + * @summary Gets the virtual networks the app (or deployment slot) is connected to. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listVnetConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + listVnetConnections(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listVnetConnections(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVnetConnections(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listVnetConnectionsOperationSpec, + callback) as Promise; + } + + /** + * Gets a virtual network the app (or deployment slot) is connected to by name. + * @summary Gets a virtual network the app (or deployment slot) is connected to by name. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + getVnetConnection(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param callback The callback + */ + getVnetConnection(resourceGroupName: string, name: string, vnetName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + getVnetConnection(resourceGroupName: string, name: string, vnetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVnetConnection(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + options + }, + getVnetConnectionOperationSpec, + callback) as Promise; + } + + /** + * Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties + * (PATCH). + * @summary Adds a Virtual Network connection to an app or slot (PUT) or updates the connection + * properties (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param callback The callback + */ + createOrUpdateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + connectionEnvelope, + options + }, + createOrUpdateVnetConnectionOperationSpec, + callback) as Promise; + } + + /** + * Deletes a connection from an app (or deployment slot to a named virtual network. + * @summary Deletes a connection from an app (or deployment slot to a named virtual network. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + deleteVnetConnection(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param callback The callback + */ + deleteVnetConnection(resourceGroupName: string, name: string, vnetName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + deleteVnetConnection(resourceGroupName: string, name: string, vnetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteVnetConnection(resourceGroupName: string, name: string, vnetName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + options + }, + deleteVnetConnectionOperationSpec, + callback); + } + + /** + * Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties + * (PATCH). + * @summary Adds a Virtual Network connection to an app or slot (PUT) or updates the connection + * properties (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param [options] The optional parameters + * @returns Promise + */ + updateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param callback The callback + */ + updateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of an existing Virtual Network. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @param options The optional parameters + * @param callback The callback + */ + updateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateVnetConnection(resourceGroupName: string, name: string, vnetName: string, connectionEnvelope: Models.VnetInfo, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + connectionEnvelope, + options + }, + updateVnetConnectionOperationSpec, + callback) as Promise; + } + + /** + * Gets an app's Virtual Network gateway. + * @summary Gets an app's Virtual Network gateway. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param [options] The optional parameters + * @returns Promise + */ + getVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param callback The callback + */ + getVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param options The optional parameters + * @param callback The callback + */ + getVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + options + }, + getVnetConnectionGatewayOperationSpec, + callback) as Promise; + } + + /** + * Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @summary Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param callback The callback + */ + createOrUpdateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + connectionEnvelope, + options + }, + createOrUpdateVnetConnectionGatewayOperationSpec, + callback) as Promise; + } + + /** + * Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @summary Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param [options] The optional parameters + * @returns Promise + */ + updateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param callback The callback + */ + updateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param vnetName Name of the Virtual Network. + * @param gatewayName Name of the gateway. Currently, the only supported string is "primary". + * @param connectionEnvelope The properties to update this gateway with. + * @param options The optional parameters + * @param callback The callback + */ + updateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateVnetConnectionGateway(resourceGroupName: string, name: string, vnetName: string, gatewayName: string, connectionEnvelope: Models.VnetGateway, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + vnetName, + gatewayName, + connectionEnvelope, + options + }, + updateVnetConnectionGatewayOperationSpec, + callback) as Promise; + } + + /** + * List webjobs for an app, or a deployment slot. + * @summary List webjobs for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param [options] The optional parameters + * @returns Promise + */ + listWebJobs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param callback The callback + */ + listWebJobs(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param options The optional parameters + * @param callback The callback + */ + listWebJobs(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebJobs(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listWebJobsOperationSpec, + callback) as Promise; + } + + /** + * Get webjob information for an app, or a deployment slot. + * @summary Get webjob information for an app, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of the web job. + * @param [options] The optional parameters + * @returns Promise + */ + getWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of the web job. + * @param callback The callback + */ + getWebJob(resourceGroupName: string, name: string, webJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param webJobName Name of the web job. + * @param options The optional parameters + * @param callback The callback + */ + getWebJob(resourceGroupName: string, name: string, webJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getWebJob(resourceGroupName: string, name: string, webJobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + webJobName, + options + }, + getWebJobOperationSpec, + callback) as Promise; + } + + /** + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * @summary Creates a new web, mobile, or API app in an existing resource group, or updates an + * existing app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, name: string, siteEnvelope: Models.Site, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + siteEnvelope, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Restores a specific backup to another app (or deployment slot, if specified). + * @summary Restores a specific backup to another app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param request Information on restore request . + * @param [options] The optional parameters + * @returns Promise + */ + beginRestore(resourceGroupName: string, name: string, backupId: string, request: Models.RestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + backupId, + request, + options + }, + beginRestoreOperationSpec, + options); + } + + /** + * Gets the Git/FTP publishing credentials of an app. + * @summary Gets the Git/FTP publishing credentials of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + beginListPublishingCredentials(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginListPublishingCredentialsOperationSpec, + options); + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateMSDeployOperation(resourceGroupName: string, name: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + mSDeploy, + options + }, + beginCreateMSDeployOperationOperationSpec, + options); + } + + /** + * Create function for web site, or a deployment slot. + * @summary Create function for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param functionEnvelope Function details. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateFunction(resourceGroupName: string, name: string, functionName: string, functionEnvelope: Models.FunctionEnvelope, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + functionName, + functionEnvelope, + options + }, + beginCreateFunctionOperationSpec, + options); + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateInstanceMSDeployOperation(resourceGroupName: string, name: string, instanceId: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + instanceId, + mSDeploy, + options + }, + beginCreateInstanceMSDeployOperationOperationSpec, + options); + } + + /** + * Restores a web app. + * @summary Restores a web app. + * @param subscriptionName Azure subscription. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param migrationOptions Migration migrationOptions. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateStorage(subscriptionName: string, resourceGroupName: string, name: string, migrationOptions: Models.StorageMigrationOptions, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + subscriptionName, + resourceGroupName, + name, + migrationOptions, + options + }, + beginMigrateStorageOperationSpec, + options); + } + + /** + * Migrates a local (in-app) MySql database to a remote MySql database. + * @summary Migrates a local (in-app) MySql database to a remote MySql database. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param migrationRequestEnvelope MySql migration options. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateMySql(resourceGroupName: string, name: string, migrationRequestEnvelope: Models.MigrateMySqlRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + migrationRequestEnvelope, + options + }, + beginMigrateMySqlOperationSpec, + options); + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + beginStartWebSiteNetworkTraceOperation(resourceGroupName: string, name: string, options?: Models.WebAppsBeginStartWebSiteNetworkTraceOperationOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginStartWebSiteNetworkTraceOperationOperationSpec, + options); + } + + /** + * Restores an app from a backup blob in Azure Storage. + * @summary Restores an app from a backup blob in Azure Storage. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Information on restore request . + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreFromBackupBlob(resourceGroupName: string, name: string, request: Models.RestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + request, + options + }, + beginRestoreFromBackupBlobOperationSpec, + options); + } + + /** + * Restores a deleted web app to this web app. + * @summary Restores a deleted web app to this web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreFromDeletedApp(resourceGroupName: string, name: string, restoreRequest: Models.DeletedAppRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + restoreRequest, + options + }, + beginRestoreFromDeletedAppOperationSpec, + options); + } + + /** + * Restores a web app from a snapshot. + * @summary Restores a web app from a snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling + * GetDeletedSites or GetSiteSnapshots API. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreSnapshot(resourceGroupName: string, name: string, restoreRequest: Models.SnapshotRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + restoreRequest, + options + }, + beginRestoreSnapshotOperationSpec, + options); + } + + /** + * Install site extension on a web site, or a deployment slot. + * @summary Install site extension on a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param [options] The optional parameters + * @returns Promise + */ + beginInstallSiteExtension(resourceGroupName: string, name: string, siteExtensionId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + siteExtensionId, + options + }, + beginInstallSiteExtensionOperationSpec, + options); + } + + /** + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * @summary Creates a new web, mobile, or API app in an existing resource group, or updates an + * existing app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Unique name of the app to create or update. To create or update a deployment slot, + * use the {slot} parameter. + * @param siteEnvelope A JSON representation of the app properties. See example. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to + * create or modify the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateSlot(resourceGroupName: string, name: string, siteEnvelope: Models.Site, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + siteEnvelope, + slot, + options + }, + beginCreateOrUpdateSlotOperationSpec, + options); + } + + /** + * Restores a specific backup to another app (or deployment slot, if specified). + * @summary Restores a specific backup to another app (or deployment slot, if specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param backupId ID of the backup. + * @param request Information on restore request . + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreSlot(resourceGroupName: string, name: string, backupId: string, request: Models.RestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + backupId, + request, + slot, + options + }, + beginRestoreSlotOperationSpec, + options); + } + + /** + * Gets the Git/FTP publishing credentials of an app. + * @summary Gets the Git/FTP publishing credentials of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the + * publishing credentials for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginListPublishingCredentialsSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slot, + options + }, + beginListPublishingCredentialsSlotOperationSpec, + options); + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateMSDeployOperationSlot(resourceGroupName: string, name: string, slot: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slot, + mSDeploy, + options + }, + beginCreateMSDeployOperationSlotOperationSpec, + options); + } + + /** + * Create function for web site, or a deployment slot. + * @summary Create function for web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param functionEnvelope Function details. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateInstanceFunctionSlot(resourceGroupName: string, name: string, functionName: string, slot: string, functionEnvelope: Models.FunctionEnvelope, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + functionName, + slot, + functionEnvelope, + options + }, + beginCreateInstanceFunctionSlotOperationSpec, + options); + } + + /** + * Invoke the MSDeploy web app extension. + * @summary Invoke the MSDeploy web app extension. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateInstanceMSDeployOperationSlot(resourceGroupName: string, name: string, slot: string, instanceId: string, mSDeploy: Models.MSDeploy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slot, + instanceId, + mSDeploy, + options + }, + beginCreateInstanceMSDeployOperationSlotOperationSpec, + options); + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + beginStartWebSiteNetworkTraceOperationSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsBeginStartWebSiteNetworkTraceOperationSlotOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slot, + options + }, + beginStartWebSiteNetworkTraceOperationSlotOperationSpec, + options); + } + + /** + * Restores an app from a backup blob in Azure Storage. + * @summary Restores an app from a backup blob in Azure Storage. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request Information on restore request . + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a + * backup of the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreFromBackupBlobSlot(resourceGroupName: string, name: string, request: Models.RestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + request, + slot, + options + }, + beginRestoreFromBackupBlobSlotOperationSpec, + options); + } + + /** + * Restores a deleted web app to this web app. + * @summary Restores a deleted web app to this web app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreFromDeletedAppSlot(resourceGroupName: string, name: string, restoreRequest: Models.DeletedAppRestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + restoreRequest, + slot, + options + }, + beginRestoreFromDeletedAppSlotOperationSpec, + options); + } + + /** + * Restores a web app from a snapshot. + * @summary Restores a web app from a snapshot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling + * GetDeletedSites or GetSiteSnapshots API. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestoreSnapshotSlot(resourceGroupName: string, name: string, restoreRequest: Models.SnapshotRestoreRequest, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + restoreRequest, + slot, + options + }, + beginRestoreSnapshotSlotOperationSpec, + options); + } + + /** + * Install site extension on a web site, or a deployment slot. + * @summary Install site extension on a web site, or a deployment slot. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a + * deployment for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginInstallSiteExtensionSlot(resourceGroupName: string, name: string, siteExtensionId: string, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + siteExtensionId, + slot, + options + }, + beginInstallSiteExtensionSlotOperationSpec, + options); + } + + /** + * Swaps two deployment slots of an app. + * @summary Swaps two deployment slots of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as + * the source slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginSwapSlotSlot(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slotSwapEntity, + slot, + options + }, + beginSwapSlotSlotOperationSpec, + options); + } + + /** + * Updates the source control configuration of an app. + * @summary Updates the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the + * source control configuration for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateSourceControlSlot(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, slot: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + siteSourceControl, + slot, + options + }, + beginCreateOrUpdateSourceControlSlotOperationSpec, + options); + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + beginStartNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsBeginStartNetworkTraceSlotOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slot, + options + }, + beginStartNetworkTraceSlotOperationSpec, + options); + } + + /** + * Swaps two deployment slots of an app. + * @summary Swaps two deployment slots of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param [options] The optional parameters + * @returns Promise + */ + beginSwapSlotWithProduction(resourceGroupName: string, name: string, slotSwapEntity: Models.CsmSlotEntity, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slotSwapEntity, + options + }, + beginSwapSlotWithProductionOperationSpec, + options); + } + + /** + * Updates the source control configuration of an app. + * @summary Updates the source control configuration of an app. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param siteSourceControl JSON representation of a SiteSourceControl object. See example. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdateSourceControl(resourceGroupName: string, name: string, siteSourceControl: Models.SiteSourceControl, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + siteSourceControl, + options + }, + beginCreateOrUpdateSourceControlOperationSpec, + options); + } + + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + beginStartNetworkTrace(resourceGroupName: string, name: string, options?: Models.WebAppsBeginStartNetworkTraceOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginStartNetworkTraceOperationSpec, + options); + } + + /** + * Get all apps for a subscription. + * @summary Get all apps for a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all web, mobile, and API apps in the specified resource group. + * @summary Gets all web, mobile, and API apps in the specified resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Gets existing backups of an app. + * @summary Gets existing backups of an app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBackupsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBackupsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBackupsNextOperationSpec, + callback) as Promise; + } + + /** + * List the configurations of an app + * @summary List the configurations of an app + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listConfigurationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listConfigurationsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a + * timestamp and the ID of the snapshot. + * @summary Gets a list of web app configuration snapshots identifiers. Each element of the list + * contains a timestamp and the ID of the snapshot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationSnapshotInfoNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listConfigurationSnapshotInfoNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationSnapshotInfoNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationSnapshotInfoNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listConfigurationSnapshotInfoNextOperationSpec, + callback) as Promise; + } + + /** + * List continuous web jobs for an app, or a deployment slot. + * @summary List continuous web jobs for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listContinuousWebJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listContinuousWebJobsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listContinuousWebJobsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listContinuousWebJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listContinuousWebJobsNextOperationSpec, + callback) as Promise; + } + + /** + * List deployments for an app, or a deployment slot. + * @summary List deployments for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDeploymentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDeploymentsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listDeploymentsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDeploymentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDeploymentsNextOperationSpec, + callback) as Promise; + } + + /** + * Lists ownership identifiers for domain associated with web app. + * @summary Lists ownership identifiers for domain associated with web app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDomainOwnershipIdentifiersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDomainOwnershipIdentifiersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listDomainOwnershipIdentifiersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDomainOwnershipIdentifiersNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDomainOwnershipIdentifiersNextOperationSpec, + callback) as Promise; + } + + /** + * List the functions for a web site, or a deployment slot. + * @summary List the functions for a web site, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listFunctionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listFunctionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listFunctionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFunctionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listFunctionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get hostname bindings for an app or a deployment slot. + * @summary Get hostname bindings for an app or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listHostNameBindingsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHostNameBindingsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listHostNameBindingsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostNameBindingsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHostNameBindingsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all scale-out instances of an app. + * @summary Gets all scale-out instances of an app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceIdentifiersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceIdentifiersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceIdentifiersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceIdentifiersNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceIdentifiersNextOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceProcessesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceProcessesNextOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessModulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceProcessModulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessModulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessModulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceProcessModulesNextOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessThreadsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceProcessThreadsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessThreadsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessThreadsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceProcessThreadsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * @summary Gets all metric definitions of an app (or deployment slot, if specified). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricDefinitionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefinitionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefinitionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricDefinitionsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * @summary Gets performance metrics of an app (or deployment slot, if specified). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets perfmon counters for web app. + * @summary Gets perfmon counters for web app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPerfMonCountersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPerfMonCountersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listPerfMonCountersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPerfMonCountersNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPerfMonCountersNextOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listProcessesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listProcessesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listProcessesNextOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessModulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listProcessModulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listProcessModulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessModulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listProcessModulesNextOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessThreadsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listProcessThreadsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listProcessThreadsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessThreadsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listProcessThreadsNextOperationSpec, + callback) as Promise; + } + + /** + * Get public certificates for an app or a deployment slot. + * @summary Get public certificates for an app or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPublicCertificatesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPublicCertificatesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listPublicCertificatesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublicCertificatesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPublicCertificatesNextOperationSpec, + callback) as Promise; + } + + /** + * Get list of siteextensions for a web site, or a deployment slot. + * @summary Get list of siteextensions for a web site, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteExtensionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteExtensionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteExtensionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteExtensionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteExtensionsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets an app's deployment slots. + * @summary Gets an app's deployment slots. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSlotsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSlotsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSlotsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlotsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSlotsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets existing backups of an app. + * @summary Gets existing backups of an app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBackupsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBackupsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBackupsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List the configurations of an app + * @summary List the configurations of an app + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listConfigurationsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listConfigurationsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a + * timestamp and the ID of the snapshot. + * @summary Gets a list of web app configuration snapshots identifiers. Each element of the list + * contains a timestamp and the ID of the snapshot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listConfigurationSnapshotInfoSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listConfigurationSnapshotInfoSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listConfigurationSnapshotInfoSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConfigurationSnapshotInfoSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listConfigurationSnapshotInfoSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List continuous web jobs for an app, or a deployment slot. + * @summary List continuous web jobs for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listContinuousWebJobsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listContinuousWebJobsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listContinuousWebJobsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listContinuousWebJobsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listContinuousWebJobsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List deployments for an app, or a deployment slot. + * @summary List deployments for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDeploymentsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDeploymentsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listDeploymentsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDeploymentsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDeploymentsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Lists ownership identifiers for domain associated with web app. + * @summary Lists ownership identifiers for domain associated with web app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDomainOwnershipIdentifiersSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDomainOwnershipIdentifiersSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listDomainOwnershipIdentifiersSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDomainOwnershipIdentifiersSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDomainOwnershipIdentifiersSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List the functions for a web site, or a deployment slot. + * @summary List the functions for a web site, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceFunctionsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceFunctionsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceFunctionsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceFunctionsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceFunctionsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get hostname bindings for an app or a deployment slot. + * @summary Get hostname bindings for an app or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listHostNameBindingsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHostNameBindingsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listHostNameBindingsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHostNameBindingsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHostNameBindingsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all scale-out instances of an app. + * @summary Gets all scale-out instances of an app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceIdentifiersSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceIdentifiersSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceIdentifiersSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceIdentifiersSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceIdentifiersSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceProcessesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceProcessesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessModulesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceProcessModulesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessModulesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessModulesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceProcessModulesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInstanceProcessThreadsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInstanceProcessThreadsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInstanceProcessThreadsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInstanceProcessThreadsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInstanceProcessThreadsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * @summary Gets all metric definitions of an app (or deployment slot, if specified). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricDefinitionsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricDefinitionsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricDefinitionsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricDefinitionsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricDefinitionsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * @summary Gets performance metrics of an app (or deployment slot, if specified). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listMetricsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listMetricsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listMetricsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMetricsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Gets perfmon counters for web app. + * @summary Gets perfmon counters for web app. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPerfMonCountersSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPerfMonCountersSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listPerfMonCountersSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPerfMonCountersSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPerfMonCountersSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out + * instance in a web site. + * @summary Get list of processes for a web site, or a deployment slot, or for a specific + * scaled-out instance in a web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listProcessesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listProcessesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listProcessesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web + * site. + * @summary List module information for a process by its ID for a specific scaled-out instance in a + * web site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessModulesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listProcessModulesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listProcessModulesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessModulesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listProcessModulesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * @summary List the threads in a process by its ID for a specific scaled-out instance in a web + * site. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listProcessThreadsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listProcessThreadsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listProcessThreadsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listProcessThreadsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listProcessThreadsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get public certificates for an app or a deployment slot. + * @summary Get public certificates for an app or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPublicCertificatesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPublicCertificatesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listPublicCertificatesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPublicCertificatesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPublicCertificatesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get list of siteextensions for a web site, or a deployment slot. + * @summary Get list of siteextensions for a web site, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteExtensionsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteExtensionsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteExtensionsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteExtensionsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteExtensionsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get the difference in configuration settings between two web app slots. + * @summary Get the difference in configuration settings between two web app slots. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSlotDifferencesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSlotDifferencesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSlotDifferencesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlotDifferencesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSlotDifferencesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Returns all Snapshots to the user. + * @summary Returns all Snapshots to the user. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshotsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSnapshotsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSnapshotsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSnapshotsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List triggered web jobs for an app, or a deployment slot. + * @summary List triggered web jobs for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listTriggeredWebJobsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listTriggeredWebJobsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List a triggered web job's history for an app, or a deployment slot. + * @summary List a triggered web job's history for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobHistorySlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listTriggeredWebJobHistorySlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobHistorySlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobHistorySlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listTriggeredWebJobHistorySlotNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the quota usage information of an app (or deployment slot, if specified). + * @summary Gets the quota usage information of an app (or deployment slot, if specified). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listUsagesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listUsagesSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listUsagesSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsagesSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUsagesSlotNextOperationSpec, + callback) as Promise; + } + + /** + * List webjobs for an app, or a deployment slot. + * @summary List webjobs for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebJobsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebJobsSlotNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebJobsSlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebJobsSlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebJobsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Get the difference in configuration settings between two web app slots. + * @summary Get the difference in configuration settings between two web app slots. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSlotDifferencesFromProductionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSlotDifferencesFromProductionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSlotDifferencesFromProductionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSlotDifferencesFromProductionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSlotDifferencesFromProductionNextOperationSpec, + callback) as Promise; + } + + /** + * Returns all Snapshots to the user. + * @summary Returns all Snapshots to the user. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshotsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSnapshotsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSnapshotsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSnapshotsNextOperationSpec, + callback) as Promise; + } + + /** + * List triggered web jobs for an app, or a deployment slot. + * @summary List triggered web jobs for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listTriggeredWebJobsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listTriggeredWebJobsNextOperationSpec, + callback) as Promise; + } + + /** + * List a triggered web job's history for an app, or a deployment slot. + * @summary List a triggered web job's history for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listTriggeredWebJobHistoryNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listTriggeredWebJobHistoryNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listTriggeredWebJobHistoryNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTriggeredWebJobHistoryNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listTriggeredWebJobHistoryNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the quota usage information of an app (or deployment slot, if specified). + * @summary Gets the quota usage information of an app (or deployment slot, if specified). + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listUsagesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listUsagesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsagesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUsagesNextOperationSpec, + callback) as Promise; + } + + /** + * List webjobs for an app, or a deployment slot. + * @summary List webjobs for an app, or a deployment slot. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listWebJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listWebJobsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listWebJobsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listWebJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listWebJobsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/sites", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.includeSlots, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Site + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.deleteMetrics, + Parameters.deleteEmptyServerFarm, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteEnvelope", + mapper: { + ...Mappers.SitePatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Site + }, + 202: { + bodyMapper: Mappers.Site + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const analyzeCustomHostnameOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/analyzeCustomHostname", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.hostName0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CustomHostnameAnalysisResult + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const applySlotConfigToProductionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotSwapEntity", + mapper: { + ...Mappers.CsmSlotEntity, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const backupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.BackupRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupItem + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBackupsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupItemCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getBackupStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupItem + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteBackupOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBackupStatusSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.BackupRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupItem + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResourceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateApplicationSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appSettings", + mapper: { + ...Mappers.StringDictionary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listApplicationSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateAuthSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteAuthSettings", + mapper: { + ...Mappers.SiteAuthSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteAuthSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getAuthSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteAuthSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateAzureStorageAccountsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "azureStorageAccounts", + mapper: { + ...Mappers.AzureStoragePropertyDictionaryResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AzureStoragePropertyDictionaryResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listAzureStorageAccountsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureStoragePropertyDictionaryResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateBackupConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.BackupRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteBackupConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getBackupConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateConnectionStringsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionStrings", + mapper: { + ...Mappers.ConnectionStringDictionary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectionStringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConnectionStringsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionStringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDiagnosticLogsConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteLogsConfig + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateDiagnosticLogsConfigOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteLogsConfig", + mapper: { + ...Mappers.SiteLogsConfig, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteLogsConfig + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateMetadataOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "metadata", + mapper: { + ...Mappers.StringDictionary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetadataOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateSitePushSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "pushSettings", + mapper: { + ...Mappers.PushSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PushSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSitePushSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PushSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSlotConfigurationNamesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SlotConfigNamesResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateSlotConfigurationNamesOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotConfigNames", + mapper: { + ...Mappers.SlotConfigNamesResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SlotConfigNamesResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSwiftVirtualNetworkConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SwiftVirtualNetwork + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateSwiftVirtualNetworkConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.SwiftVirtualNetwork, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SwiftVirtualNetwork + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteSwiftVirtualNetworkOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSwiftVirtualNetworkConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.SwiftVirtualNetwork, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SwiftVirtualNetwork + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteConfig", + mapper: { + ...Mappers.SiteConfigResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateConfigurationOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteConfig", + mapper: { + ...Mappers.SiteConfigResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationSnapshotInfoOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigurationSnapshotInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getConfigurationSnapshotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots/{snapshotId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.snapshotId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const recoverSiteConfigurationSnapshotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots/{snapshotId}/recover", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.snapshotId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getWebSiteContainerLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getContainerLogsZipOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs/zip/download", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listContinuousWebJobsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContinuousWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getContinuousWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContinuousWebJob + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteContinuousWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const startContinuousWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopContinuousWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDeploymentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDeploymentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Deployment + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createDeploymentOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "deployment", + mapper: { + ...Mappers.Deployment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Deployment + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteDeploymentOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDeploymentLogOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Deployment + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const discoverBackupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/discoverbackup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.RestoreRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RestoreRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDomainOwnershipIdentifiersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDomainOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Identifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateDomainOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainOwnershipIdentifier", + mapper: { + ...Mappers.Identifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Identifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteDomainOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateDomainOwnershipIdentifierOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainOwnershipIdentifier", + mapper: { + ...Mappers.Identifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Identifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMSDeployStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMSDeployLogOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy/log", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployLog + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listFunctionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionEnvelopeCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getFunctionsAdminTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/admin/token", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getFunctionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionEnvelope + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteFunctionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listFunctionSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/listsecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionSecrets + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHostNameBindingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBindingCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getHostNameBindingOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.hostName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBinding + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateHostNameBindingOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.hostName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "hostNameBinding", + mapper: { + ...Mappers.HostNameBinding, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HostNameBinding + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteHostNameBindingOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.hostName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.HybridConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateHybridConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.HybridConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHybridConnectionKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnectionKey + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHybridConnectionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionRelays", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRelayServiceConnectionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getRelayServiceConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateRelayServiceConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.RelayServiceConnectionEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteRelayServiceConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateRelayServiceConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.RelayServiceConnectionEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceIdentifiersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppInstanceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getInstanceMsDeployStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getInstanceMSDeployLogOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy/log", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployLog + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteInstanceProcessOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessDumpOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/dump", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessModulesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessModuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.baseAddress, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessThreadsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessThreadOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads/{threadId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.threadId, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const isCloneableOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteCloneability + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSyncFunctionTriggersOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listsyncfunctiontriggerstatus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionSecrets + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMigrateMySqlStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrateMySqlStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNetworkFeaturesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkFeatures/{view}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.view, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkFeatures + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getNetworkTraceOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/operationresults/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const startWebSiteNetworkTraceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const stopWebSiteNetworkTraceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getNetworkTracesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getNetworkTraceOperationV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/current/operationresults/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getNetworkTracesV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const generateNewSitePublishingPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPerfMonCountersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/perfcounters", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PerfMonCounterCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSitePhpErrorLogFlagOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/phplogging", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SitePhpErrorLogFlag + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listPremierAddOnsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getPremierAddOnOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const addPremierAddOnOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "premierAddOn", + mapper: { + ...Mappers.PremierAddOn, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deletePremierAddOnOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updatePremierAddOnOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "premierAddOn", + mapper: { + ...Mappers.PremierAddOnPatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getPrivateAccessOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateAccess + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const putPrivateAccessVnetOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "access", + mapper: { + ...Mappers.PrivateAccess, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateAccess + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listProcessesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteProcessOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessDumpOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/dump", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessModulesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessModuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules/{baseAddress}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.baseAddress, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessThreadsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/threads", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessThreadOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/threads/{threadId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.threadId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublicCertificatesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicCertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getPublicCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.publicCertificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicCertificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdatePublicCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.publicCertificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "publicCertificate", + mapper: { + ...Mappers.PublicCertificate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PublicCertificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deletePublicCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.publicCertificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublishingProfileXmlWithSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "publishingProfileOptions", + mapper: { + ...Mappers.CsmPublishingProfileOptions, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const resetProductionSlotConfigOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resetSlotConfig", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const restartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.softRestart, + Parameters.synchronous, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSiteExtensionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSiteExtensionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.siteExtensionId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteSiteExtensionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.siteExtensionId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSlotsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Site + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.deleteMetrics, + Parameters.deleteEmptyServerFarm, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteEnvelope", + mapper: { + ...Mappers.SitePatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Site + }, + 202: { + bodyMapper: Mappers.Site + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const analyzeCustomHostnameSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/analyzeCustomHostname", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.hostName0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CustomHostnameAnalysisResult + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const applySlotConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/applySlotConfig", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotSwapEntity", + mapper: { + ...Mappers.CsmSlotEntity, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const backupSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.BackupRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupItem + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBackupsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupItemCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getBackupStatusSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupItem + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteBackupSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBackupStatusSecretsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.BackupRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupItem + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResourceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateApplicationSettingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "appSettings", + mapper: { + ...Mappers.StringDictionary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listApplicationSettingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateAuthSettingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteAuthSettings", + mapper: { + ...Mappers.SiteAuthSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteAuthSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getAuthSettingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteAuthSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateAzureStorageAccountsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "azureStorageAccounts", + mapper: { + ...Mappers.AzureStoragePropertyDictionaryResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AzureStoragePropertyDictionaryResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listAzureStorageAccountsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureStoragePropertyDictionaryResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateBackupConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.BackupRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteBackupConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getBackupConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateConnectionStringsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionStrings", + mapper: { + ...Mappers.ConnectionStringDictionary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectionStringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConnectionStringsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionStringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDiagnosticLogsConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteLogsConfig + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateDiagnosticLogsConfigSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteLogsConfig", + mapper: { + ...Mappers.SiteLogsConfig, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteLogsConfig + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateMetadataSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "metadata", + mapper: { + ...Mappers.StringDictionary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetadataSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StringDictionary + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateSitePushSettingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "pushSettings", + mapper: { + ...Mappers.PushSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PushSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSitePushSettingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PushSettings + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSwiftVirtualNetworkConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SwiftVirtualNetwork + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateSwiftVirtualNetworkConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.SwiftVirtualNetwork, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SwiftVirtualNetwork + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteSwiftVirtualNetworkSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSwiftVirtualNetworkConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.SwiftVirtualNetwork, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SwiftVirtualNetwork + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteConfig", + mapper: { + ...Mappers.SiteConfigResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteConfig", + mapper: { + ...Mappers.SiteConfigResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationSnapshotInfoSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigurationSnapshotInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getConfigurationSnapshotSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.snapshotId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResource + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const recoverSiteConfigurationSnapshotSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.snapshotId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getWebSiteContainerLogsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getContainerLogsZipSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs/zip/download", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listContinuousWebJobsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContinuousWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getContinuousWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContinuousWebJob + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteContinuousWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const startContinuousWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopContinuousWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDeploymentsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDeploymentSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Deployment + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createDeploymentSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "deployment", + mapper: { + ...Mappers.Deployment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Deployment + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteDeploymentSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDeploymentLogSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}/log", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.id, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Deployment + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const discoverBackupSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/discoverbackup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.RestoreRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RestoreRequest + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDomainOwnershipIdentifiersSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getDomainOwnershipIdentifierSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Identifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateDomainOwnershipIdentifierSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainOwnershipIdentifier", + mapper: { + ...Mappers.Identifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Identifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteDomainOwnershipIdentifierSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateDomainOwnershipIdentifierSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.domainOwnershipIdentifierName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "domainOwnershipIdentifier", + mapper: { + ...Mappers.Identifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Identifier + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMSDeployStatusSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMSDeployLogSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy/log", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployLog + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceFunctionsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionEnvelopeCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getFunctionsAdminTokenSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/admin/token", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getInstanceFunctionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionEnvelope + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteInstanceFunctionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listFunctionSecretsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/listsecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionSecrets + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHostNameBindingsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBindingCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getHostNameBindingSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.hostName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBinding + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateHostNameBindingSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.hostName1, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "hostNameBinding", + mapper: { + ...Mappers.HostNameBinding, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HostNameBinding + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteHostNameBindingSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.hostName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getHybridConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateHybridConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.HybridConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteHybridConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateHybridConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.HybridConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHybridConnectionKeysSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.namespaceName, + Parameters.relayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnectionKey + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listHybridConnectionsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionRelays", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridConnection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRelayServiceConnectionsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getRelayServiceConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateRelayServiceConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.RelayServiceConnectionEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteRelayServiceConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateRelayServiceConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.entityName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.RelayServiceConnectionEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RelayServiceConnectionEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceIdentifiersSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppInstanceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getInstanceMsDeployStatusSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getInstanceMSDeployLogSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy/log", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MSDeployLog + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteInstanceProcessSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessDumpSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/dump", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessModulesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessModuleSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.baseAddress, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessThreadsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/threads", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getInstanceProcessThreadSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/threads/{threadId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.threadId, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const isCloneableSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/iscloneable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteCloneability + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSyncFunctionTriggersSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/listsyncfunctiontriggerstatus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionSecrets + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricDefinitionsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metricdefinitions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/metrics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.details, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getMigrateMySqlStatusSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MigrateMySqlStatus + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNetworkFeaturesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.view, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkFeatures + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getNetworkTraceOperationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/operationresults/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const startWebSiteNetworkTraceSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const stopWebSiteNetworkTraceSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getNetworkTracesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getNetworkTraceOperationSlotV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/current/operationresults/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getNetworkTracesSlotV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const generateNewSitePublishingPasswordSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/newpassword", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPerfMonCountersSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/perfcounters", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PerfMonCounterCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSitePhpErrorLogFlagSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/phplogging", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SitePhpErrorLogFlag + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listPremierAddOnsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getPremierAddOnSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const addPremierAddOnSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "premierAddOn", + mapper: { + ...Mappers.PremierAddOn, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deletePremierAddOnSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updatePremierAddOnSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.premierAddOnName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "premierAddOn", + mapper: { + ...Mappers.PremierAddOnPatchResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PremierAddOn + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getPrivateAccessSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateAccess/virtualNetworks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateAccess + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const putPrivateAccessVnetSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateAccess/virtualNetworks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "access", + mapper: { + ...Mappers.PrivateAccess, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateAccess + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listProcessesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteProcessSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessDumpSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/dump", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessModulesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessModuleSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules/{baseAddress}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.baseAddress, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessThreadsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/threads", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getProcessThreadSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/threads/{threadId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.processId, + Parameters.threadId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublicCertificatesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicCertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getPublicCertificateSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.publicCertificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicCertificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdatePublicCertificateSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.publicCertificateName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "publicCertificate", + mapper: { + ...Mappers.PublicCertificate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PublicCertificate + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deletePublicCertificateSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.publicCertificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublishingProfileXmlWithSecretsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publishxml", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "publishingProfileOptions", + mapper: { + ...Mappers.CsmPublishingProfileOptions, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const resetSlotConfigurationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resetSlotConfig", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const restartSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restart", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.softRestart, + Parameters.synchronous, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSiteExtensionsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSiteExtensionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.siteExtensionId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfo + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteSiteExtensionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.siteExtensionId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSlotDifferencesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsdiffs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotSwapEntity", + mapper: { + ...Mappers.CsmSlotEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SlotDifferenceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSnapshotsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshots", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SnapshotCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSourceControlSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteSourceControl + }, + 201: { + bodyMapper: Mappers.SiteSourceControl + }, + 202: { + bodyMapper: Mappers.SiteSourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteSourceControlSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSourceControlSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteSourceControl", + mapper: { + ...Mappers.SiteSourceControl, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteSourceControl + }, + 201: { + bodyMapper: Mappers.SiteSourceControl + }, + 202: { + bodyMapper: Mappers.SiteSourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const startSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopNetworkTraceSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stopNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const syncRepositorySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sync", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const syncFunctionTriggersSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/syncfunctiontriggers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTriggeredWebJobsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getTriggeredWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredWebJob + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteTriggeredWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTriggeredWebJobHistorySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredJobHistoryCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getTriggeredWebJobHistorySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.id, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredJobHistory + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const runTriggeredWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/run", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUsagesSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listVnetConnectionsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getVnetConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateVnetConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetInfo, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteVnetConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateVnetConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetInfo, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getVnetConnectionGatewaySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateVnetConnectionGatewaySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateVnetConnectionGatewaySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebJobsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/webjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getWebJobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/webjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebJob + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSlotDifferencesFromProductionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsdiffs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotSwapEntity", + mapper: { + ...Mappers.CsmSlotEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SlotDifferenceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSnapshotsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshots", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SnapshotCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSourceControlOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteSourceControl + }, + 201: { + bodyMapper: Mappers.SiteSourceControl + }, + 202: { + bodyMapper: Mappers.SiteSourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteSourceControlOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSourceControlOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteSourceControl", + mapper: { + ...Mappers.SiteSourceControl, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteSourceControl + }, + 201: { + bodyMapper: Mappers.SiteSourceControl + }, + 202: { + bodyMapper: Mappers.SiteSourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const startOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const stopNetworkTraceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stopNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const syncRepositoryOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sync", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const syncFunctionTriggersOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/syncfunctiontriggers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTriggeredWebJobsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getTriggeredWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredWebJob + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteTriggeredWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTriggeredWebJobHistoryOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredJobHistoryCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getTriggeredWebJobHistoryOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history/{id}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.id, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredJobHistory + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const runTriggeredWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/run", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listVnetConnectionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VnetInfo" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getVnetConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const createOrUpdateVnetConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetInfo, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const deleteVnetConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateVnetConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetInfo, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetInfo + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getVnetConnectionGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateVnetConnectionGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateVnetConnectionGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.vnetName, + Parameters.gatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectionEnvelope", + mapper: { + ...Mappers.VnetGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetGateway + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebJobsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/webjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getWebJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/webjobs/{webJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.webJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebJob + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteEnvelope", + mapper: { + ...Mappers.Site, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Site + }, + 202: { + bodyMapper: Mappers.Site + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginRestoreOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/restore", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.RestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginListPublishingCredentialsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/publishingcredentials/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.User + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateMSDeployOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "mSDeploy", + mapper: { + ...Mappers.MSDeploy, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.MSDeployStatus + }, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateFunctionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "functionEnvelope", + mapper: { + ...Mappers.FunctionEnvelope, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.FunctionEnvelope + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateInstanceMSDeployOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "mSDeploy", + mapper: { + ...Mappers.MSDeploy, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.MSDeployStatus + }, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateStorageOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migrate", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.subscriptionName, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "migrationOptions", + mapper: { + ...Mappers.StorageMigrationOptions, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.StorageMigrationResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginMigrateMySqlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "migrationRequestEnvelope", + mapper: { + ...Mappers.MigrateMySqlRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginStartWebSiteNetworkTraceOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/startOperation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginRestoreFromBackupBlobOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromBackupBlob", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.RestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestoreFromDeletedAppOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromDeletedApp", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "restoreRequest", + mapper: { + ...Mappers.DeletedAppRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestoreSnapshotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreSnapshot", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "restoreRequest", + mapper: { + ...Mappers.SnapshotRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginInstallSiteExtensionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.siteExtensionId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfo + }, + 201: { + bodyMapper: Mappers.SiteExtensionInfo + }, + 429: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteEnvelope", + mapper: { + ...Mappers.Site, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Site + }, + 202: { + bodyMapper: Mappers.Site + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginRestoreSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/restore", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.backupId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.RestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginListPublishingCredentialsSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/publishingcredentials/list", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.User + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateMSDeployOperationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "mSDeploy", + mapper: { + ...Mappers.MSDeploy, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.MSDeployStatus + }, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateInstanceFunctionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.functionName, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "functionEnvelope", + mapper: { + ...Mappers.FunctionEnvelope, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.FunctionEnvelope + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginCreateInstanceMSDeployOperationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "mSDeploy", + mapper: { + ...Mappers.MSDeploy, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.MSDeployStatus + }, + 409: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStartWebSiteNetworkTraceOperationSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/startOperation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginRestoreFromBackupBlobSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restoreFromBackupBlob", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "request", + mapper: { + ...Mappers.RestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestoreFromDeletedAppSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restoreFromDeletedApp", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "restoreRequest", + mapper: { + ...Mappers.DeletedAppRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestoreSnapshotSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restoreSnapshot", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "restoreRequest", + mapper: { + ...Mappers.SnapshotRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginInstallSiteExtensionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.siteExtensionId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfo + }, + 201: { + bodyMapper: Mappers.SiteExtensionInfo + }, + 429: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginSwapSlotSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsswap", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotSwapEntity", + mapper: { + ...Mappers.CsmSlotEntity, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateSourceControlSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteSourceControl", + mapper: { + ...Mappers.SiteSourceControl, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteSourceControl + }, + 201: { + bodyMapper: Mappers.SiteSourceControl + }, + 202: { + bodyMapper: Mappers.SiteSourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginStartNetworkTraceSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/startNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginSwapSlotWithProductionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "slotSwapEntity", + mapper: { + ...Mappers.CsmSlotEntity, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateSourceControlOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "siteSourceControl", + mapper: { + ...Mappers.SiteSourceControl, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SiteSourceControl + }, + 201: { + bodyMapper: Mappers.SiteSourceControl + }, + 202: { + bodyMapper: Mappers.SiteSourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const beginStartNetworkTraceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/startNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBackupsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupItemCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResourceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationSnapshotInfoNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigurationSnapshotInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listContinuousWebJobsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContinuousWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDeploymentsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDomainOwnershipIdentifiersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listFunctionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionEnvelopeCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listHostNameBindingsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBindingCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceIdentifiersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppInstanceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceProcessesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessModulesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessThreadsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listMetricDefinitionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listPerfMonCountersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PerfMonCounterCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listProcessesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessModulesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessThreadsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublicCertificatesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicCertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteExtensionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSlotsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBackupsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupItemCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigResourceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listConfigurationSnapshotInfoSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteConfigurationSnapshotInfoCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listContinuousWebJobsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContinuousWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDeploymentsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listDomainOwnershipIdentifiersSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceFunctionsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FunctionEnvelopeCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listHostNameBindingsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HostNameBindingCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceIdentifiersSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebAppInstanceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listInstanceProcessesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessModulesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInstanceProcessThreadsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listMetricDefinitionsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricDefinitionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listMetricsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceMetricCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listPerfMonCountersSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PerfMonCounterCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listProcessesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessModulesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessModuleInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listProcessThreadsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProcessThreadInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPublicCertificatesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicCertificateCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteExtensionsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SiteExtensionInfoCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSlotDifferencesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SlotDifferenceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSnapshotsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SnapshotCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listTriggeredWebJobsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listTriggeredWebJobHistorySlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredJobHistoryCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUsagesSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebJobsSlotNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSlotDifferencesFromProductionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SlotDifferenceCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSnapshotsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SnapshotCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listTriggeredWebJobsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredWebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listTriggeredWebJobHistoryNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggeredJobHistoryCollection + }, + 404: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUsagesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listWebJobsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebJobCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClient.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClient.ts new file mode 100644 index 000000000000..b873507e44bc --- /dev/null +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClient.ts @@ -0,0 +1,1212 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters"; +import * as operations from "./operations"; +import { WebSiteManagementClientContext } from "./webSiteManagementClientContext"; + + +class WebSiteManagementClient extends WebSiteManagementClientContext { + // Operation groups + appServiceCertificateOrders: operations.AppServiceCertificateOrders; + certificateRegistrationProvider: operations.CertificateRegistrationProvider; + domains: operations.Domains; + topLevelDomains: operations.TopLevelDomains; + domainRegistrationProvider: operations.DomainRegistrationProvider; + certificates: operations.Certificates; + deletedWebApps: operations.DeletedWebApps; + diagnostics: operations.Diagnostics; + provider: operations.Provider; + recommendations: operations.Recommendations; + webApps: operations.WebApps; + appServiceEnvironments: operations.AppServiceEnvironments; + appServicePlans: operations.AppServicePlans; + resourceHealthMetadata: operations.ResourceHealthMetadataOperations; + + /** + * Initializes a new instance of the WebSiteManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Your Azure subscription ID. This is a GUID-formatted string (e.g. + * 00000000-0000-0000-0000-000000000000). + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.WebSiteManagementClientOptions) { + super(credentials, subscriptionId, options); + this.appServiceCertificateOrders = new operations.AppServiceCertificateOrders(this); + this.certificateRegistrationProvider = new operations.CertificateRegistrationProvider(this); + this.domains = new operations.Domains(this); + this.topLevelDomains = new operations.TopLevelDomains(this); + this.domainRegistrationProvider = new operations.DomainRegistrationProvider(this); + this.certificates = new operations.Certificates(this); + this.deletedWebApps = new operations.DeletedWebApps(this); + this.diagnostics = new operations.Diagnostics(this); + this.provider = new operations.Provider(this); + this.recommendations = new operations.Recommendations(this); + this.webApps = new operations.WebApps(this); + this.appServiceEnvironments = new operations.AppServiceEnvironments(this); + this.appServicePlans = new operations.AppServicePlans(this); + this.resourceHealthMetadata = new operations.ResourceHealthMetadataOperations(this); + } + + /** + * Gets publishing user + * @summary Gets publishing user + * @param [options] The optional parameters + * @returns Promise + */ + getPublishingUser(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + getPublishingUser(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getPublishingUser(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPublishingUser(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + getPublishingUserOperationSpec, + callback) as Promise; + } + + /** + * Updates publishing user + * @summary Updates publishing user + * @param userDetails Details of publishing user + * @param [options] The optional parameters + * @returns Promise + */ + updatePublishingUser(userDetails: Models.User, options?: msRest.RequestOptionsBase): Promise; + /** + * @param userDetails Details of publishing user + * @param callback The callback + */ + updatePublishingUser(userDetails: Models.User, callback: msRest.ServiceCallback): void; + /** + * @param userDetails Details of publishing user + * @param options The optional parameters + * @param callback The callback + */ + updatePublishingUser(userDetails: Models.User, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updatePublishingUser(userDetails: Models.User, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + userDetails, + options + }, + updatePublishingUserOperationSpec, + callback) as Promise; + } + + /** + * Gets the source controls available for Azure websites. + * @summary Gets the source controls available for Azure websites. + * @param [options] The optional parameters + * @returns Promise + */ + listSourceControls(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listSourceControls(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listSourceControls(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSourceControls(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listSourceControlsOperationSpec, + callback) as Promise; + } + + /** + * Gets source control token + * @summary Gets source control token + * @param sourceControlType Type of source control + * @param [options] The optional parameters + * @returns Promise + */ + getSourceControl(sourceControlType: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param sourceControlType Type of source control + * @param callback The callback + */ + getSourceControl(sourceControlType: string, callback: msRest.ServiceCallback): void; + /** + * @param sourceControlType Type of source control + * @param options The optional parameters + * @param callback The callback + */ + getSourceControl(sourceControlType: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSourceControl(sourceControlType: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + sourceControlType, + options + }, + getSourceControlOperationSpec, + callback) as Promise; + } + + /** + * Updates source control token + * @summary Updates source control token + * @param sourceControlType Type of source control + * @param requestMessage Source control token information + * @param [options] The optional parameters + * @returns Promise + */ + updateSourceControl(sourceControlType: string, requestMessage: Models.SourceControl, options?: msRest.RequestOptionsBase): Promise; + /** + * @param sourceControlType Type of source control + * @param requestMessage Source control token information + * @param callback The callback + */ + updateSourceControl(sourceControlType: string, requestMessage: Models.SourceControl, callback: msRest.ServiceCallback): void; + /** + * @param sourceControlType Type of source control + * @param requestMessage Source control token information + * @param options The optional parameters + * @param callback The callback + */ + updateSourceControl(sourceControlType: string, requestMessage: Models.SourceControl, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSourceControl(sourceControlType: string, requestMessage: Models.SourceControl, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + sourceControlType, + requestMessage, + options + }, + updateSourceControlOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of meters for a given location. + * @summary Gets a list of meters for a given location. + * @param [options] The optional parameters + * @returns Promise + */ + listBillingMeters(options?: Models.WebSiteManagementClientListBillingMetersOptionalParams): Promise; + /** + * @param callback The callback + */ + listBillingMeters(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBillingMeters(options: Models.WebSiteManagementClientListBillingMetersOptionalParams, callback: msRest.ServiceCallback): void; + listBillingMeters(options?: Models.WebSiteManagementClientListBillingMetersOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listBillingMetersOperationSpec, + callback) as Promise; + } + + /** + * Check if a resource name is available. + * @summary Check if a resource name is available. + * @param name Resource name to verify. + * @param type Resource type used for verification. Possible values include: 'Site', 'Slot', + * 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', + * 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers' + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(name: string, type: Models.CheckNameResourceTypes, options?: Models.WebSiteManagementClientCheckNameAvailabilityOptionalParams): Promise; + /** + * @param name Resource name to verify. + * @param type Resource type used for verification. Possible values include: 'Site', 'Slot', + * 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', + * 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers' + * @param callback The callback + */ + checkNameAvailability(name: string, type: Models.CheckNameResourceTypes, callback: msRest.ServiceCallback): void; + /** + * @param name Resource name to verify. + * @param type Resource type used for verification. Possible values include: 'Site', 'Slot', + * 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', + * 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers' + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(name: string, type: Models.CheckNameResourceTypes, options: Models.WebSiteManagementClientCheckNameAvailabilityOptionalParams, callback: msRest.ServiceCallback): void; + checkNameAvailability(name: string, type: Models.CheckNameResourceTypes, options?: Models.WebSiteManagementClientCheckNameAvailabilityOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + name, + type, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Gets list of available geo regions plus ministamps + * @summary Gets list of available geo regions plus ministamps + * @param [options] The optional parameters + * @returns Promise + */ + getSubscriptionDeploymentLocations(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + getSubscriptionDeploymentLocations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getSubscriptionDeploymentLocations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSubscriptionDeploymentLocations(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + getSubscriptionDeploymentLocationsOperationSpec, + callback) as Promise; + } + + /** + * Get a list of available geographical regions. + * @summary Get a list of available geographical regions. + * @param [options] The optional parameters + * @returns Promise + */ + listGeoRegions(options?: Models.WebSiteManagementClientListGeoRegionsOptionalParams): Promise; + /** + * @param callback The callback + */ + listGeoRegions(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listGeoRegions(options: Models.WebSiteManagementClientListGeoRegionsOptionalParams, callback: msRest.ServiceCallback): void; + listGeoRegions(options?: Models.WebSiteManagementClientListGeoRegionsOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listGeoRegionsOperationSpec, + callback) as Promise; + } + + /** + * List all apps that are assigned to a hostname. + * @summary List all apps that are assigned to a hostname. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteIdentifiersAssignedToHostName(options?: Models.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams): Promise; + /** + * @param callback The callback + */ + listSiteIdentifiersAssignedToHostName(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listSiteIdentifiersAssignedToHostName(options: Models.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams, callback: msRest.ServiceCallback): void; + listSiteIdentifiersAssignedToHostName(options?: Models.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listSiteIdentifiersAssignedToHostNameOperationSpec, + callback) as Promise; + } + + /** + * List all premier add-on offers. + * @summary List all premier add-on offers. + * @param [options] The optional parameters + * @returns Promise + */ + listPremierAddOnOffers(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listPremierAddOnOffers(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listPremierAddOnOffers(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPremierAddOnOffers(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listPremierAddOnOffersOperationSpec, + callback) as Promise; + } + + /** + * List all SKUs. + * @summary List all SKUs. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listSkus(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listSkusOperationSpec, + callback) as Promise; + } + + /** + * Verifies if this VNET is compatible with an App Service Environment by analyzing the Network + * Security Group rules. + * @summary Verifies if this VNET is compatible with an App Service Environment by analyzing the + * Network Security Group rules. + * @param parameters VNET information + * @param [options] The optional parameters + * @returns Promise + */ + verifyHostingEnvironmentVnet(parameters: Models.VnetParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param parameters VNET information + * @param callback The callback + */ + verifyHostingEnvironmentVnet(parameters: Models.VnetParameters, callback: msRest.ServiceCallback): void; + /** + * @param parameters VNET information + * @param options The optional parameters + * @param callback The callback + */ + verifyHostingEnvironmentVnet(parameters: Models.VnetParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + verifyHostingEnvironmentVnet(parameters: Models.VnetParameters, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + parameters, + options + }, + verifyHostingEnvironmentVnetOperationSpec, + callback) as Promise; + } + + /** + * Move resources between resource groups. + * @summary Move resources between resource groups. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param moveResourceEnvelope Object that represents the resource to move. + * @param [options] The optional parameters + * @returns Promise + */ + move(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param moveResourceEnvelope Object that represents the resource to move. + * @param callback The callback + */ + move(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param moveResourceEnvelope Object that represents the resource to move. + * @param options The optional parameters + * @param callback The callback + */ + move(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + move(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + resourceGroupName, + moveResourceEnvelope, + options + }, + moveOperationSpec, + callback); + } + + /** + * Validate if a resource can be created. + * @summary Validate if a resource can be created. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param validateRequest Request with the resources to validate. + * @param [options] The optional parameters + * @returns Promise + */ + validate(resourceGroupName: string, validateRequest: Models.ValidateRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param validateRequest Request with the resources to validate. + * @param callback The callback + */ + validate(resourceGroupName: string, validateRequest: Models.ValidateRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param validateRequest Request with the resources to validate. + * @param options The optional parameters + * @param callback The callback + */ + validate(resourceGroupName: string, validateRequest: Models.ValidateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validate(resourceGroupName: string, validateRequest: Models.ValidateRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + resourceGroupName, + validateRequest, + options + }, + validateOperationSpec, + callback) as Promise; + } + + /** + * Validate whether a resource can be moved. + * @summary Validate whether a resource can be moved. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param moveResourceEnvelope Object that represents the resource to move. + * @param [options] The optional parameters + * @returns Promise + */ + validateMove(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param moveResourceEnvelope Object that represents the resource to move. + * @param callback The callback + */ + validateMove(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param moveResourceEnvelope Object that represents the resource to move. + * @param options The optional parameters + * @param callback The callback + */ + validateMove(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validateMove(resourceGroupName: string, moveResourceEnvelope: Models.CsmMoveResourceEnvelope, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + resourceGroupName, + moveResourceEnvelope, + options + }, + validateMoveOperationSpec, + callback); + } + + /** + * Gets the source controls available for Azure websites. + * @summary Gets the source controls available for Azure websites. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSourceControlsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSourceControlsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSourceControlsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSourceControlsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nextPageLink, + options + }, + listSourceControlsNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of meters for a given location. + * @summary Gets a list of meters for a given location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBillingMetersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBillingMetersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBillingMetersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBillingMetersNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nextPageLink, + options + }, + listBillingMetersNextOperationSpec, + callback) as Promise; + } + + /** + * Get a list of available geographical regions. + * @summary Get a list of available geographical regions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listGeoRegionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listGeoRegionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listGeoRegionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGeoRegionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nextPageLink, + options + }, + listGeoRegionsNextOperationSpec, + callback) as Promise; + } + + /** + * List all apps that are assigned to a hostname. + * @summary List all apps that are assigned to a hostname. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSiteIdentifiersAssignedToHostNameNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSiteIdentifiersAssignedToHostNameNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSiteIdentifiersAssignedToHostNameNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSiteIdentifiersAssignedToHostNameNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nextPageLink, + options + }, + listSiteIdentifiersAssignedToHostNameNextOperationSpec, + callback) as Promise; + } + + /** + * List all premier add-on offers. + * @summary List all premier add-on offers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPremierAddOnOffersNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPremierAddOnOffersNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listPremierAddOnOffersNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPremierAddOnOffersNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nextPageLink, + options + }, + listPremierAddOnOffersNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getPublishingUserOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Web/publishingUsers/web", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.User + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updatePublishingUserOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "providers/Microsoft.Web/publishingUsers/web", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "userDetails", + mapper: { + ...Mappers.User, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.User + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSourceControlsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Web/sourcecontrols", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSourceControlOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Web/sourcecontrols/{sourceControlType}", + urlParameters: [ + Parameters.sourceControlType + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateSourceControlOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "providers/Microsoft.Web/sourcecontrols/{sourceControlType}", + urlParameters: [ + Parameters.sourceControlType + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "requestMessage", + mapper: { + ...Mappers.SourceControl, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SourceControl + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBillingMetersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.billingLocation, + Parameters.osType, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BillingMeterCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + name: "name", + type: "type", + isFqdn: [ + "options", + "isFqdn" + ] + }, + mapper: { + ...Mappers.ResourceNameAvailabilityRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ResourceNameAvailability + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getSubscriptionDeploymentLocationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeploymentLocations + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listGeoRegionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.sku, + Parameters.linuxWorkersEnabled, + Parameters.xenonWorkersEnabled, + Parameters.linuxDynamicWorkersEnabled, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GeoRegionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteIdentifiersAssignedToHostNameOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + name: [ + "options", + "name" + ] + }, + mapper: { + ...Mappers.NameIdentifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listPremierAddOnOffersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PremierAddOnOfferCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/skus", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuInfos + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const verifyHostingEnvironmentVnetOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VnetParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VnetValidationFailureDetails + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const moveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "moveResourceEnvelope", + mapper: { + ...Mappers.CsmMoveResourceEnvelope, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const validateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "validateRequest", + mapper: { + ...Mappers.ValidateRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ValidateResponse + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const validateMoveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "moveResourceEnvelope", + mapper: { + ...Mappers.CsmMoveResourceEnvelope, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSourceControlsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listBillingMetersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BillingMeterCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listGeoRegionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GeoRegionCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listSiteIdentifiersAssignedToHostNameNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentifierCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listPremierAddOnOffersNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PremierAddOnOfferCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +export { + WebSiteManagementClient, + WebSiteManagementClientContext, + Models as WebSiteManagementModels, + Mappers as WebSiteManagementMappers +}; +export * from "./operations"; diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts new file mode 100644 index 000000000000..8b350e14efb4 --- /dev/null +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; + +const packageName = "@azure/arm-appservice"; +const packageVersion = "1.0.0"; + +export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClient { + + credentials: msRest.ServiceClientCredentials; + + subscriptionId: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + + /** + * Initializes a new instance of the WebSiteManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Your Azure subscription ID. This is a GUID-formatted string (e.g. + * 00000000-0000-0000-0000-000000000000). + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.WebSiteManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + super(credentials, options); + + this.apiVersion = '2018-02-01'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + this.addUserAgentInfo(`${packageName}/${packageVersion}`); + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json new file mode 100644 index 000000000000..57ddba96800f --- /dev/null +++ b/packages/@azure/arm-appservice/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure/arm-appservice", + "author": "Microsoft Corporation", + "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", + "tslib": "^1.9.3" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-appservice.js", + "module": "./esm/webSiteManagementClient.js", + "types": "./esm/webSiteManagementClient.d.ts", + "devDependencies": { + "typescript": "^3.1.1", + "rollup": "^0.66.2", + "rollup-plugin-node-resolve": "^3.4.0", + "uglify-js": "^3.4.9" + }, + "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-appservice", + "repository": { + "type": "git", + "url": "https://github.com/azure/azure-sdk-for-js.git" + }, + "bugs": { + "url": "https://github.com/azure/azure-sdk-for-js/issues" + }, + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-appservice.js.map'\" -o ./dist/arm-appservice.min.js ./dist/arm-appservice.js", + "prepare": "npm run build" + }, + "sideEffects": false +} diff --git a/packages/@azure/arm-appservice/rollup.config.js b/packages/@azure/arm-appservice/rollup.config.js new file mode 100644 index 000000000000..de3d961d0a09 --- /dev/null +++ b/packages/@azure/arm-appservice/rollup.config.js @@ -0,0 +1,31 @@ +import nodeResolve from "rollup-plugin-node-resolve"; +/** + * @type {import('rollup').RollupFileOptions} + */ +const config = { + input: './esm/webSiteManagementClient.js', + external: ["ms-rest-js", "ms-rest-azure-js"], + output: { + file: "./dist/arm-appservice.js", + format: "umd", + name: "Azure.ArmAppservice", + sourcemap: true, + globals: { + "ms-rest-js": "msRest", + "ms-rest-azure-js": "msRestAzure" + }, + banner: `/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */` + }, + plugins: [ + nodeResolve({ module: true }) + ] +}; +export default config; diff --git a/packages/@azure/arm-appservice/tsconfig.json b/packages/@azure/arm-appservice/tsconfig.json new file mode 100644 index 000000000000..f32d1664f320 --- /dev/null +++ b/packages/@azure/arm-appservice/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./lib/**/*"], + "exclude": ["node_modules"] +} From 676749857842703457e65458f4d6049d726da759 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 20:45:41 +0000 Subject: [PATCH 02/10] Regenerated "@azure/arm-appservice" SDK. --- packages/@azure/arm-appservice/README.md | 2 +- .../@azure/arm-appservice/lib/models/index.ts | 272 ++++++++ .../arm-appservice/lib/operations/webApps.ts | 599 +++++++++++++++++- packages/@azure/arm-appservice/package.json | 15 +- 4 files changed, 883 insertions(+), 5 deletions(-) diff --git a/packages/@azure/arm-appservice/README.md b/packages/@azure/arm-appservice/README.md index fdf56a0f405f..ce999a4418ef 100644 --- a/packages/@azure/arm-appservice/README.md +++ b/packages/@azure/arm-appservice/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index 41d14577738d..c69c21e69afd 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -9970,6 +9970,30 @@ export interface WebAppsRestartSlotOptionalParams extends msRest.RequestOptionsB synchronous?: boolean; } +/** + * @interface + * An interface representing WebAppsStartNetworkTraceSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + /** * @interface * An interface representing WebAppsListUsagesSlotOptionalParams. @@ -9987,6 +10011,30 @@ export interface WebAppsListUsagesSlotOptionalParams extends msRest.RequestOptio filter?: string; } +/** + * @interface + * An interface representing WebAppsStartNetworkTraceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsStartNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + /** * @interface * An interface representing WebAppsListUsagesOptionalParams. @@ -10052,6 +10100,54 @@ export interface WebAppsBeginStartWebSiteNetworkTraceOperationSlotOptionalParams sasUrl?: string; } +/** + * @interface + * An interface representing WebAppsBeginStartNetworkTraceSlotOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsBeginStartNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * @interface + * An interface representing WebAppsBeginStartNetworkTraceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebAppsBeginStartNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [durationInSeconds] The duration to keep capturing in + * seconds. + */ + durationInSeconds?: number; + /** + * @member {number} [maxFrameLength] The maximum frame length in bytes + * (Optional). + */ + maxFrameLength?: number; + /** + * @member {string} [sasUrl] The Blob URL to store capture file. + */ + sasUrl?: string; +} + /** * @interface * An interface representing AppServiceEnvironmentsDeleteMethodOptionalParams. @@ -16220,6 +16316,48 @@ export type WebAppsGetNetworkTracesResponse = Array & { }; }; +/** + * Contains response data for the getNetworkTraceOperationV2 operation. + */ +export type WebAppsGetNetworkTraceOperationV2Response = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the getNetworkTracesV2 operation. + */ +export type WebAppsGetNetworkTracesV2Response = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkTrace[]; + }; +}; + /** * Contains response data for the listPerfMonCounters operation. */ @@ -18370,6 +18508,48 @@ export type WebAppsGetNetworkTracesSlotResponse = Array & { }; }; +/** + * Contains response data for the getNetworkTraceOperationSlotV2 operation. + */ +export type WebAppsGetNetworkTraceOperationSlotV2Response = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the getNetworkTracesSlotV2 operation. + */ +export type WebAppsGetNetworkTracesSlotV2Response = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkTrace[]; + }; +}; + /** * Contains response data for the listPerfMonCountersSlot operation. */ @@ -18893,6 +19073,29 @@ export type WebAppsUpdateSourceControlSlotResponse = SiteSourceControl & { }; }; +/** + * Contains response data for the startNetworkTraceSlot operation. + */ +export type WebAppsStartNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + /** * Contains response data for the listTriggeredWebJobsSlot operation. */ @@ -19254,6 +19457,29 @@ export type WebAppsUpdateSourceControlResponse = SiteSourceControl & { }; }; +/** + * Contains response data for the startNetworkTrace operation. + */ +export type WebAppsStartNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + /** * Contains response data for the listTriggeredWebJobs operation. */ @@ -19851,6 +20077,29 @@ export type WebAppsBeginCreateOrUpdateSourceControlSlotResponse = SiteSourceCont }; }; +/** + * Contains response data for the beginStartNetworkTraceSlot operation. + */ +export type WebAppsBeginStartNetworkTraceSlotResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + /** * Contains response data for the beginCreateOrUpdateSourceControl operation. */ @@ -19870,6 +20119,29 @@ export type WebAppsBeginCreateOrUpdateSourceControlResponse = SiteSourceControl }; }; +/** + * Contains response data for the beginStartNetworkTrace operation. + */ +export type WebAppsBeginStartNetworkTraceResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + /** * Contains response data for the listNext operation. */ diff --git a/packages/@azure/arm-appservice/lib/operations/webApps.ts b/packages/@azure/arm-appservice/lib/operations/webApps.ts index cc33a90003d7..3eb20e865163 100644 --- a/packages/@azure/arm-appservice/lib/operations/webApps.ts +++ b/packages/@azure/arm-appservice/lib/operations/webApps.ts @@ -3970,6 +3970,82 @@ export class WebApps { callback) as Promise; } + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param callback The callback + */ + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + options + }, + getNetworkTraceOperationV2OperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param callback The callback + */ + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTracesV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + options + }, + getNetworkTracesV2OperationSpec, + callback) as Promise; + } + /** * Generates a new publishing password for an app (or deployment slot, if specified). * @summary Generates a new publishing password for an app (or deployment slot, if specified). @@ -9523,6 +9599,96 @@ export class WebApps { callback) as Promise; } + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param callback The callback + */ + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + slot, + options + }, + getNetworkTraceOperationSlotV2OperationSpec, + callback) as Promise; + } + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * @summary Gets a named operation for a network trace capturing (or deployment slot, if + * specified). + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param callback The callback + */ + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an + * operation for the production slot. + * @param options The optional parameters + * @param callback The callback + */ + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTracesSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + operationId, + slot, + options + }, + getNetworkTracesSlotV2OperationSpec, + callback) as Promise; + } + /** * Generates a new publishing password for an app (or deployment slot, if specified). * @summary Generates a new publishing password for an app (or deployment slot, if specified). @@ -11085,6 +11251,20 @@ export class WebApps { callback); } + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + startNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsStartNetworkTraceSlotOptionalParams): Promise { + return this.beginStartNetworkTraceSlot(resourceGroupName,name,slot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Stops an app (or deployment slot, if specified). * @summary Stops an app (or deployment slot, if specified). @@ -11125,6 +11305,43 @@ export class WebApps { callback); } + /** + * Stop ongoing capturing network packets for the site. + * @summary Stop ongoing capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param callback The callback + */ + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param options The optional parameters + * @param callback The callback + */ + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + stopNetworkTraceSlotOperationSpec, + callback); + } + /** * Sync web app repository. * @summary Sync web app repository. @@ -12204,6 +12421,19 @@ export class WebApps { callback); } + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + startNetworkTrace(resourceGroupName: string, name: string, options?: Models.WebAppsStartNetworkTraceOptionalParams): Promise { + return this.beginStartNetworkTrace(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Stops an app (or deployment slot, if specified). * @summary Stops an app (or deployment slot, if specified). @@ -12237,6 +12467,39 @@ export class WebApps { callback); } + /** + * Stop ongoing capturing network packets for the site. + * @summary Stop ongoing capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + stopNetworkTrace(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param callback The callback + */ + stopNetworkTrace(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param options The optional parameters + * @param callback The callback + */ + stopNetworkTrace(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stopNetworkTrace(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + stopNetworkTraceOperationSpec, + callback); + } + /** * Sync web app repository. * @summary Sync web app repository. @@ -13544,6 +13807,27 @@ export class WebApps { options); } + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param [options] The optional parameters + * @returns Promise + */ + beginStartNetworkTraceSlot(resourceGroupName: string, name: string, slot: string, options?: Models.WebAppsBeginStartNetworkTraceSlotOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + slot, + options + }, + beginStartNetworkTraceSlotOperationSpec, + options); + } + /** * Swaps two deployment slots of an app. * @summary Swaps two deployment slots of an app. @@ -13586,6 +13870,25 @@ export class WebApps { options); } + /** + * Start capturing network packets for the site. + * @summary Start capturing network packets for the site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param [options] The optional parameters + * @returns Promise + */ + beginStartNetworkTrace(resourceGroupName: string, name: string, options?: Models.WebAppsBeginStartNetworkTraceOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginStartNetworkTraceOperationSpec, + options); + } + /** * Get all apps for a subscription. * @summary Get all apps for a subscription. @@ -18080,9 +18383,86 @@ const getNetworkTracesOperationSpec: msRest.OperationSpec = { serializer }; -const generateNewSitePublishingPasswordOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword", +const getNetworkTraceOperationV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/current/operationresults/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getNetworkTracesV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const generateNewSitePublishingPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword", urlParameters: [ Parameters.resourceGroupName, Parameters.name, @@ -21736,6 +22116,85 @@ const getNetworkTracesSlotOperationSpec: msRest.OperationSpec = { serializer }; +const getNetworkTraceOperationSlotV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/current/operationresults/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getNetworkTracesSlotV2OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.operationId, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + const generateNewSitePublishingPasswordSlotOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/newpassword", @@ -22733,6 +23192,31 @@ const stopSlotOperationSpec: msRest.OperationSpec = { serializer }; +const stopNetworkTraceSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stopNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const syncRepositorySlotOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sync", @@ -23478,6 +23962,30 @@ const stopOperationSpec: msRest.OperationSpec = { serializer }; +const stopNetworkTraceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stopNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const syncRepositoryOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sync", @@ -24868,6 +25376,49 @@ const beginCreateOrUpdateSourceControlSlotOperationSpec: msRest.OperationSpec = serializer }; +const beginStartNetworkTraceSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/startNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.slot, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + const beginSwapSlotWithProductionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap", @@ -24937,6 +25488,48 @@ const beginCreateOrUpdateSourceControlOperationSpec: msRest.OperationSpec = { serializer }; +const beginStartNetworkTraceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/startNetworkTrace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.durationInSeconds, + Parameters.maxFrameLength, + Parameters.sasUrl, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 202: { + bodyMapper: Mappers.Operation + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index 3bdc26ff6dcd..8c6ce1d955c0 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-appservice.js.map'\" -o ./dist/arm-appservice.min.js ./dist/arm-appservice.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } From af9ddd9ce7c07013d469595c0410c1703c25ed97 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 20:52:15 +0000 Subject: [PATCH 03/10] Regenerated "@azure/arm-appservice" SDK. From cdc7639c6b7244981b92bbf8660d5a68b5d73b14 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 26 Oct 2018 20:58:29 +0000 Subject: [PATCH 04/10] Regenerated "@azure/arm-appservice" SDK. --- packages/@azure/arm-appservice/README.md | 2 +- .../lib/webSiteManagementClientContext.ts | 9 +-------- packages/@azure/arm-appservice/package.json | 19 ++++++++++++++++--- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/@azure/arm-appservice/README.md b/packages/@azure/arm-appservice/README.md index fdf56a0f405f..ce999a4418ef 100644 --- a/packages/@azure/arm-appservice/README.md +++ b/packages/@azure/arm-appservice/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts index 8b350e14efb4..2ce3b3248e6e 100644 --- a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-appservice"; const packageVersion = "1.0.0"; export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the WebSiteManagementClient class. diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index 57ddba96800f..8c6ce1d955c0 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -4,8 +4,8 @@ "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.166", - "ms-rest-js": "^1.0.439", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-appservice.js.map'\" -o ./dist/arm-appservice.min.js ./dist/arm-appservice.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } From 4b1c00a0a338ba39db02cb55b377d478f8109c69 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 29 Oct 2018 21:05:19 +0000 Subject: [PATCH 05/10] Generated from 02eda495643fbf77dfbff8d631e1ab91dbcb8a30 Add examples of 201 response to AppServicePlans_CreateOrUpdate. --- packages/@azure/arm-appservice/.npmignore | 70 ++++---- packages/@azure/arm-appservice/LICENSE.txt | 42 ++--- packages/@azure/arm-appservice/README.md | 154 +++++++++--------- .../lib/operations/appServicePlans.ts | 3 + .../lib/webSiteManagementClientContext.ts | 9 +- packages/@azure/arm-appservice/package.json | 19 +-- 6 files changed, 147 insertions(+), 150 deletions(-) diff --git a/packages/@azure/arm-appservice/.npmignore b/packages/@azure/arm-appservice/.npmignore index 3b46bc6202d8..a07a455ac10c 100644 --- a/packages/@azure/arm-appservice/.npmignore +++ b/packages/@azure/arm-appservice/.npmignore @@ -1,35 +1,35 @@ -#git -.git -.gitignore -#gulp -gulpfile.js -#documentation -doc/ -docs/ -#dependencies -node_modules/ -#samples -sample/ -samples/ -#tests -test/ -tests/ -coverage/ -#tools and scripts -tools/ -scripts/ -#IDE settings -*.sln -.vscode/ -.idea -.editorconfig -.ntvs_analysis.* -#build tools -.travis.yml -.jenkins.yml -.codeclimate.yml -appveyor.yml -# Nuget packages # -.nuget/ -packages/ -packages.config +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-appservice/LICENSE.txt b/packages/@azure/arm-appservice/LICENSE.txt index a70e8cf66038..5431ba98b936 100644 --- a/packages/@azure/arm-appservice/LICENSE.txt +++ b/packages/@azure/arm-appservice/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-appservice/README.md b/packages/@azure/arm-appservice/README.md index ce999a4418ef..54c44a99e138 100644 --- a/packages/@azure/arm-appservice/README.md +++ b/packages/@azure/arm-appservice/README.md @@ -1,77 +1,77 @@ -# Azure WebSiteManagementClient SDK for JavaScript -This package contains an isomorphic SDK for WebSiteManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript - -## How to Install -``` -npm install @azure/arm-appservice -``` - - -## How to use - -### nodejs - Authentication, client creation and list appServiceCertificateOrders as an example written in TypeScript. - -```ts -import * as msRest from "ms-rest-js"; -import * as msRestAzure from "ms-rest-azure-js"; -import * as msRestNodeAuth from "ms-rest-nodeauth"; -import { WebSiteManagementClient, WebSiteManagementModels, WebSiteManagementMappers } from "@azure/arm-appservice"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new WebSiteManagementClient(creds, subscriptionId); - client.appServiceCertificateOrders.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -### browser - Authentication, client creation and list appServiceCertificateOrders as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-appservice sample - - - - - - - - - -``` - -# Related projects - - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +# Azure WebSiteManagementClient SDK for JavaScript +This package contains an isomorphic SDK for WebSiteManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-appservice +``` + + +## How to use + +### nodejs - Authentication, client creation and list appServiceCertificateOrders as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { WebSiteManagementClient, WebSiteManagementModels, WebSiteManagementMappers } from "@azure/arm-appservice"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new WebSiteManagementClient(creds, subscriptionId); + client.appServiceCertificateOrders.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and list appServiceCertificateOrders as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-appservice sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts b/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts index 48c10b8496a6..77201ca961f7 100644 --- a/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts +++ b/packages/@azure/arm-appservice/lib/operations/appServicePlans.ts @@ -2150,6 +2150,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.AppServicePlan }, + 201: { + bodyMapper: Mappers.AppServicePlan + }, 202: { bodyMapper: Mappers.AppServicePlan }, diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts index 2ce3b3248e6e..8b350e14efb4 100644 --- a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts @@ -16,9 +16,16 @@ const packageName = "@azure/arm-appservice"; const packageVersion = "1.0.0"; export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; - apiVersion?: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; /** * Initializes a new instance of the WebSiteManagementClient class. diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index 8c6ce1d955c0..57ddba96800f 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -4,8 +4,8 @@ "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", "tslib": "^1.9.3" }, "keywords": [ @@ -33,23 +33,10 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "lib/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-appservice.js.map'\" -o ./dist/arm-appservice.min.js ./dist/arm-appservice.js", - "prepack": "npm install && npm run build" + "prepare": "npm run build" }, "sideEffects": false } From d2dcdbb05f2d896e8913d342b2c2e17af410481c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 31 Oct 2018 22:59:19 +0000 Subject: [PATCH 06/10] Generated from 99c5161a59952ca647839f697c76c875d67b80f8 Update AppServicePlan model to match examples. --- packages/@azure/arm-appservice/README.md | 2 +- .../lib/webSiteManagementClientContext.ts | 9 +-------- packages/@azure/arm-appservice/package.json | 19 ++++++++++++++++--- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/@azure/arm-appservice/README.md b/packages/@azure/arm-appservice/README.md index 54c44a99e138..6683d779c058 100644 --- a/packages/@azure/arm-appservice/README.md +++ b/packages/@azure/arm-appservice/README.md @@ -62,7 +62,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to console.log("The result is:"); console.log(result); }).catch((err) => { - console.log('An error occurred:'); + console.log("An error occurred:"); console.error(err); }); }); diff --git a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts index 8b350e14efb4..2ce3b3248e6e 100644 --- a/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts +++ b/packages/@azure/arm-appservice/lib/webSiteManagementClientContext.ts @@ -16,16 +16,9 @@ const packageName = "@azure/arm-appservice"; const packageVersion = "1.0.0"; export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - - apiVersion: string; - - acceptLanguage: string; - - longRunningOperationRetryTimeout: number; + apiVersion?: string; /** * Initializes a new instance of the WebSiteManagementClient class. diff --git a/packages/@azure/arm-appservice/package.json b/packages/@azure/arm-appservice/package.json index 57ddba96800f..8c6ce1d955c0 100644 --- a/packages/@azure/arm-appservice/package.json +++ b/packages/@azure/arm-appservice/package.json @@ -4,8 +4,8 @@ "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.166", - "ms-rest-js": "^1.0.439", + "ms-rest-azure-js": "^1.0.176", + "ms-rest-js": "^1.0.455", "tslib": "^1.9.3" }, "keywords": [ @@ -33,10 +33,23 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-js/issues" }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "lib/**/*.ts", + "rollup.config.js", + "tsconfig.json" + ], "scripts": { "build": "tsc && rollup -c rollup.config.js && npm run minify", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-appservice.js.map'\" -o ./dist/arm-appservice.min.js ./dist/arm-appservice.js", - "prepare": "npm run build" + "prepack": "npm install && npm run build" }, "sideEffects": false } From 5b7be4f8ee98e76c194c6648e2169b6ef06fb92f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 1 Nov 2018 00:17:08 +0000 Subject: [PATCH 07/10] Generated from 08500fb4fff0337246c3fb0134b72bc607f40b0e Update AppServicePlan model to match examples. --- .../@azure/arm-appservice/lib/models/index.ts | 25 +++++++++++++ .../arm-appservice/lib/models/mappers.ts | 35 +++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index c69c21e69afd..47d19e6218bf 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -2366,6 +2366,31 @@ export interface AppServicePlan extends Resource { * the server.** */ readonly provisioningState?: ProvisioningState; + /** + * @member {string} [mdmId] **NOTE: This property will not be serialized. It + * can only be populated by the server.** + */ + readonly mdmId?: string; + /** + * @member {number} [currentNumberOfWorkers] **NOTE: This property will not + * be serialized. It can only be populated by the server.** + */ + readonly currentNumberOfWorkers?: number; + /** + * @member {string} [currentWorkerSize] **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly currentWorkerSize?: string; + /** + * @member {number} [numberOfWorkers] **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly numberOfWorkers?: number; + /** + * @member {string} [workerSize] **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly workerSize?: string; /** * @member {SkuDescription} [sku] */ diff --git a/packages/@azure/arm-appservice/lib/models/mappers.ts b/packages/@azure/arm-appservice/lib/models/mappers.ts index c0e9640a9ff5..9e02cc94758b 100644 --- a/packages/@azure/arm-appservice/lib/models/mappers.ts +++ b/packages/@azure/arm-appservice/lib/models/mappers.ts @@ -3112,6 +3112,41 @@ export const AppServicePlan: msRest.CompositeMapper = { ] } }, + mdmId: { + readOnly: true, + serializedName: "properties.mdmId", + type: { + name: "String" + } + }, + currentNumberOfWorkers: { + readOnly: true, + serializedName: "properties.currentNumberOfWorkers", + type: { + name: "Number" + } + }, + currentWorkerSize: { + readOnly: true, + serializedName: "properties.currentWorkerSize", + type: { + name: "String" + } + }, + numberOfWorkers: { + readOnly: true, + serializedName: "properties.numberOfWorkers", + type: { + name: "Number" + } + }, + workerSize: { + readOnly: true, + serializedName: "properties.workerSize", + type: { + name: "String" + } + }, sku: { serializedName: "sku", type: { From 8d4e5c3999f1dc6f55c49ac4afeaa1de97aef408 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 1 Nov 2018 00:28:17 +0000 Subject: [PATCH 08/10] Generated from 3b520fc9a8d982c9d7ca750ad7e697559a71da8e Update AppServicePlan model to match examples. --- packages/@azure/arm-appservice/lib/models/index.ts | 5 +++++ packages/@azure/arm-appservice/lib/models/mappers.ts | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index 47d19e6218bf..fdbd5017879d 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -2366,6 +2366,11 @@ export interface AppServicePlan extends Resource { * the server.** */ readonly provisioningState?: ProvisioningState; + /** + * @member {string} [appServicePlanKind] **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly appServicePlanKind?: string; /** * @member {string} [mdmId] **NOTE: This property will not be serialized. It * can only be populated by the server.** diff --git a/packages/@azure/arm-appservice/lib/models/mappers.ts b/packages/@azure/arm-appservice/lib/models/mappers.ts index 9e02cc94758b..cd5910588d91 100644 --- a/packages/@azure/arm-appservice/lib/models/mappers.ts +++ b/packages/@azure/arm-appservice/lib/models/mappers.ts @@ -3112,6 +3112,13 @@ export const AppServicePlan: msRest.CompositeMapper = { ] } }, + appServicePlanKind: { + readOnly: true, + serializedName: "properties.kind", + type: { + name: "String" + } + }, mdmId: { readOnly: true, serializedName: "properties.mdmId", From 14d2cf67895e47d75b2889c7babbaf387015be9f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 1 Nov 2018 00:33:40 +0000 Subject: [PATCH 09/10] Generated from 422b947db6ea795c355e73a8705f695d5bd61670 Update AppServicePlan model to match examples. --- packages/@azure/arm-appservice/lib/models/index.ts | 4 ++++ packages/@azure/arm-appservice/lib/models/mappers.ts | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index fdbd5017879d..d0a3a314bdf6 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -2252,6 +2252,10 @@ export interface SkuDescription { * @extends Resource */ export interface AppServicePlan extends Resource { + /** + * @member {string} [appServicePlanName] Name for the App Service plan. + */ + appServicePlanName?: string; /** * @member {string} [workerTierName] Target worker tier assigned to the App * Service plan. diff --git a/packages/@azure/arm-appservice/lib/models/mappers.ts b/packages/@azure/arm-appservice/lib/models/mappers.ts index cd5910588d91..64ad51522f17 100644 --- a/packages/@azure/arm-appservice/lib/models/mappers.ts +++ b/packages/@azure/arm-appservice/lib/models/mappers.ts @@ -2968,6 +2968,12 @@ export const AppServicePlan: msRest.CompositeMapper = { className: "AppServicePlan", modelProperties: { ...Resource.type.modelProperties, + appServicePlanName: { + serializedName: "properties.name", + type: { + name: "String" + } + }, workerTierName: { serializedName: "properties.workerTierName", type: { From c21432dea9286d061f8865770048ae3075f23dd7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 1 Nov 2018 20:33:00 +0000 Subject: [PATCH 10/10] Generated from 0c2a91f0a7de5c0484a4b638daebc7827bf098c3 Add descriptions to new AppServicePlan properties. --- .../@azure/arm-appservice/lib/models/index.ts | 126 ++++++----------- .../arm-appservice/lib/operations/webApps.ts | 128 +++++++++++++++--- 2 files changed, 150 insertions(+), 104 deletions(-) diff --git a/packages/@azure/arm-appservice/lib/models/index.ts b/packages/@azure/arm-appservice/lib/models/index.ts index d0a3a314bdf6..02e02705aa13 100644 --- a/packages/@azure/arm-appservice/lib/models/index.ts +++ b/packages/@azure/arm-appservice/lib/models/index.ts @@ -2371,33 +2371,39 @@ export interface AppServicePlan extends Resource { */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [appServicePlanKind] **NOTE: This property will not be - * serialized. It can only be populated by the server.** + * @member {string} [appServicePlanKind] Kind of resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly appServicePlanKind?: string; /** - * @member {string} [mdmId] **NOTE: This property will not be serialized. It - * can only be populated by the server.** + * @member {string} [mdmId] MDM ID of the App Service plan. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly mdmId?: string; /** - * @member {number} [currentNumberOfWorkers] **NOTE: This property will not - * be serialized. It can only be populated by the server.** + * @member {number} [currentNumberOfWorkers] Current worker count. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly currentNumberOfWorkers?: number; /** - * @member {string} [currentWorkerSize] **NOTE: This property will not be - * serialized. It can only be populated by the server.** + * @member {string} [currentWorkerSize] Current worker size. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly currentWorkerSize?: string; /** - * @member {number} [numberOfWorkers] **NOTE: This property will not be - * serialized. It can only be populated by the server.** + * @member {number} [numberOfWorkers] Worker count. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly numberOfWorkers?: number; /** - * @member {string} [workerSize] **NOTE: This property will not be - * serialized. It can only be populated by the server.** + * @member {string} [workerSize] Worker size. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly workerSize?: string; /** @@ -16265,11 +16271,7 @@ export type WebAppsListNetworkFeaturesResponse = NetworkFeatures & { /** * Contains response data for the getNetworkTraceOperation operation. */ -export type WebAppsGetNetworkTraceOperationResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationResponse = Array & { /** * The underlying HTTP response. */ @@ -16281,7 +16283,7 @@ export type WebAppsGetNetworkTraceOperationResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -16311,11 +16313,7 @@ export type WebAppsStartWebSiteNetworkTraceResponse = { /** * Contains response data for the startWebSiteNetworkTraceOperation operation. */ -export type WebAppsStartWebSiteNetworkTraceOperationResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartWebSiteNetworkTraceOperationResponse = Array & { /** * The underlying HTTP response. */ @@ -16327,7 +16325,7 @@ export type WebAppsStartWebSiteNetworkTraceOperationResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -16353,11 +16351,7 @@ export type WebAppsGetNetworkTracesResponse = Array & { /** * Contains response data for the getNetworkTraceOperationV2 operation. */ -export type WebAppsGetNetworkTraceOperationV2Response = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationV2Response = Array & { /** * The underlying HTTP response. */ @@ -16369,7 +16363,7 @@ export type WebAppsGetNetworkTraceOperationV2Response = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -18457,11 +18451,7 @@ export type WebAppsListNetworkFeaturesSlotResponse = NetworkFeatures & { /** * Contains response data for the getNetworkTraceOperationSlot operation. */ -export type WebAppsGetNetworkTraceOperationSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -18473,7 +18463,7 @@ export type WebAppsGetNetworkTraceOperationSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -18503,11 +18493,7 @@ export type WebAppsStartWebSiteNetworkTraceSlotResponse = { /** * Contains response data for the startWebSiteNetworkTraceOperationSlot operation. */ -export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -18519,7 +18505,7 @@ export type WebAppsStartWebSiteNetworkTraceOperationSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -18545,11 +18531,7 @@ export type WebAppsGetNetworkTracesSlotResponse = Array & { /** * Contains response data for the getNetworkTraceOperationSlotV2 operation. */ -export type WebAppsGetNetworkTraceOperationSlotV2Response = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsGetNetworkTraceOperationSlotV2Response = Array & { /** * The underlying HTTP response. */ @@ -18561,7 +18543,7 @@ export type WebAppsGetNetworkTraceOperationSlotV2Response = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -19110,11 +19092,7 @@ export type WebAppsUpdateSourceControlSlotResponse = SiteSourceControl & { /** * Contains response data for the startNetworkTraceSlot operation. */ -export type WebAppsStartNetworkTraceSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartNetworkTraceSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -19126,7 +19104,7 @@ export type WebAppsStartNetworkTraceSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -19494,11 +19472,7 @@ export type WebAppsUpdateSourceControlResponse = SiteSourceControl & { /** * Contains response data for the startNetworkTrace operation. */ -export type WebAppsStartNetworkTraceResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsStartNetworkTraceResponse = Array & { /** * The underlying HTTP response. */ @@ -19510,7 +19484,7 @@ export type WebAppsStartNetworkTraceResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -19916,11 +19890,7 @@ export type WebAppsBeginMigrateMySqlResponse = Operation & { /** * Contains response data for the beginStartWebSiteNetworkTraceOperation operation. */ -export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = Array & { /** * The underlying HTTP response. */ @@ -19932,7 +19902,7 @@ export type WebAppsBeginStartWebSiteNetworkTraceOperationResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -20053,11 +20023,7 @@ export type WebAppsBeginCreateInstanceMSDeployOperationSlotResponse = MSDeploySt /** * Contains response data for the beginStartWebSiteNetworkTraceOperationSlot operation. */ -export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -20069,7 +20035,7 @@ export type WebAppsBeginStartWebSiteNetworkTraceOperationSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -20114,11 +20080,7 @@ export type WebAppsBeginCreateOrUpdateSourceControlSlotResponse = SiteSourceCont /** * Contains response data for the beginStartNetworkTraceSlot operation. */ -export type WebAppsBeginStartNetworkTraceSlotResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartNetworkTraceSlotResponse = Array & { /** * The underlying HTTP response. */ @@ -20130,7 +20092,7 @@ export type WebAppsBeginStartNetworkTraceSlotResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; @@ -20156,11 +20118,7 @@ export type WebAppsBeginCreateOrUpdateSourceControlResponse = SiteSourceControl /** * Contains response data for the beginStartNetworkTrace operation. */ -export type WebAppsBeginStartNetworkTraceResponse = { - /** - * The parsed response body. - */ - body: any; +export type WebAppsBeginStartNetworkTraceResponse = Array & { /** * The underlying HTTP response. */ @@ -20172,7 +20130,7 @@ export type WebAppsBeginStartNetworkTraceResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: NetworkTrace[]; }; }; diff --git a/packages/@azure/arm-appservice/lib/operations/webApps.ts b/packages/@azure/arm-appservice/lib/operations/webApps.ts index 3eb20e865163..0f87a90c62c2 100644 --- a/packages/@azure/arm-appservice/lib/operations/webApps.ts +++ b/packages/@azure/arm-appservice/lib/operations/webApps.ts @@ -3832,7 +3832,7 @@ export class WebApps { * @param operationId GUID of the operation. * @param callback The callback */ - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -3840,8 +3840,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperation(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -3987,7 +3987,7 @@ export class WebApps { * @param operationId GUID of the operation. * @param callback The callback */ - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -3995,8 +3995,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationV2(resourceGroupName: string, name: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -9442,7 +9442,7 @@ export class WebApps { * operation for the production slot. * @param callback The callback */ - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -9452,8 +9452,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlot(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -9620,7 +9620,7 @@ export class WebApps { * operation for the production slot. * @param callback The callback */ - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. @@ -9630,8 +9630,8 @@ export class WebApps { * @param options The optional parameters * @param callback The callback */ - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkTraceOperationSlotV2(resourceGroupName: string, name: string, operationId: string, slot: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -18280,7 +18280,18 @@ const getNetworkTraceOperationOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -18414,7 +18425,18 @@ const getNetworkTraceOperationV2OperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -22010,7 +22032,18 @@ const getNetworkTraceOperationSlotOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -22148,7 +22181,18 @@ const getNetworkTraceOperationSlotV2OperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -24805,7 +24849,18 @@ const beginStartWebSiteNetworkTraceOperationOperationSpec: msRest.OperationSpec } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25169,7 +25224,18 @@ const beginStartWebSiteNetworkTraceOperationSlotOperationSpec: msRest.OperationS } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25410,7 +25476,18 @@ const beginStartNetworkTraceSlotOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -25521,7 +25598,18 @@ const beginStartNetworkTraceOperationSpec: msRest.OperationSpec = { } }, 202: { - bodyMapper: Mappers.Operation + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } }, default: { bodyMapper: Mappers.DefaultErrorResponse