diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/LICENSE.txt b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/LICENSE.txt new file mode 100644 index 000000000000..b73b4a1293c3 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2019 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/README.md b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/README.md new file mode 100644 index 000000000000..cf292a606f22 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/README.md @@ -0,0 +1,96 @@ +## 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 + +```bash +npm install @azure/arm-appservice-profile-2019-03-01-hybrid +``` + +### How to use + +#### nodejs - Authentication, client creation and list certificates as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +```bash +npm install @azure/ms-rest-nodeauth +``` + +##### Sample code + +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { WebSiteManagementClient, WebSiteManagementModels, WebSiteManagementMappers } from "@azure/arm-appservice-profile-2019-03-01-hybrid"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new WebSiteManagementClient(creds, subscriptionId); + client.certificates.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and list certificates as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-appservice-profile-2019-03-01-hybrid sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/package.json b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/package.json new file mode 100644 index 000000000000..703c41e0442c --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/package.json @@ -0,0 +1,58 @@ +{ + "name": "@azure/arm-appservice-profile-2019-03-01-hybrid", + "author": "Microsoft Corporation", + "description": "WebSiteManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", + "tslib": "^1.9.3" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-appservice-profile-2019-03-01-hybrid.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", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.4.9" + }, + "homepage": "https://github.com/azure/azure-sdk-for-js", + "repository": { + "type": "git", + "url": "https://github.com/azure/azure-sdk-for-js.git" + }, + "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", + "src/**/*.ts", + "README.md", + "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-profile-2019-03-01-hybrid.js.map'\" -o ./dist/arm-appservice-profile-2019-03-01-hybrid.min.js ./dist/arm-appservice-profile-2019-03-01-hybrid.js", + "prepack": "npm install && npm run build" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/rollup.config.js b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/rollup.config.js new file mode 100644 index 000000000000..101fd341c213 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/rollup.config.js @@ -0,0 +1,37 @@ +import rollup from "rollup"; +import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + +/** + * @type {rollup.RollupFileOptions} + */ +const config = { + input: "./esm/webSiteManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], + output: { + file: "./dist/arm-appservice-profile-2019-03-01-hybrid.js", + format: "umd", + name: "Azure.ArmAppserviceProfile20190301Hybrid", + sourcemap: true, + globals: { + "@azure/ms-rest-js": "msRest", + "@azure/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 }), + sourcemaps() + ] +}; + +export default config; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/appServicePlansMappers.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/appServicePlansMappers.ts new file mode 100644 index 000000000000..82ac3c095957 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/appServicePlansMappers.ts @@ -0,0 +1,150 @@ +/* + * 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 { + ApiDefinitionInfo, + ApplicationLogsConfig, + AppServicePlan, + AppServicePlanCollection, + AppServicePlanPatchResource, + AutoHealActions, + AutoHealCustomAction, + AutoHealRules, + AutoHealTriggers, + AzureBlobStorageApplicationLogsConfig, + AzureBlobStorageHttpLogsConfig, + AzureStorageInfoValue, + AzureStoragePropertyDictionaryResource, + AzureTableStorageApplicationLogsConfig, + BackupItem, + BackupRequest, + BackupSchedule, + BaseResource, + BillingMeter, + Capability, + Certificate, + CertificatePatchResource, + CloningInfo, + CloudError, + ConnectionStringDictionary, + ConnStringInfo, + ConnStringValueTypePair, + ContinuousWebJob, + CorsSettings, + CsmUsageQuota, + CsmUsageQuotaCollection, + CustomHostnameAnalysisResult, + DatabaseBackupSetting, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DeletedAppRestoreRequest, + DeletedSite, + Deployment, + EnabledConfig, + ErrorEntity, + Experiments, + FileSystemApplicationLogsConfig, + FileSystemHttpLogsConfig, + FunctionEnvelope, + FunctionSecrets, + GeoDistribution, + GeoRegion, + HandlerMapping, + HostingEnvironmentProfile, + HostNameBinding, + HostNameSslState, + HttpLogsConfig, + HybridConnection, + HybridConnectionCollection, + HybridConnectionKey, + HybridConnectionLimits, + Identifier, + IpSecurityRestriction, + LocalizableString, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + MigrateMySqlRequest, + MigrateMySqlStatus, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + NameValuePair, + NetworkFeatures, + PremierAddOn, + PremierAddOnOffer, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessSubnet, + PrivateAccessVirtualNetwork, + ProcessInfo, + ProcessModuleInfo, + ProcessThreadInfo, + ProxyOnlyResource, + PublicCertificate, + PushSettings, + RampUpRule, + Recommendation, + RecommendationRule, + RelayServiceConnectionEntity, + RequestsBasedTrigger, + Resource, + ResourceCollection, + ResourceMetric, + ResourceMetricAvailability, + ResourceMetricCollection, + ResourceMetricDefinition, + ResourceMetricDefinitionCollection, + ResourceMetricName, + ResourceMetricProperty, + ResourceMetricValue, + RestoreRequest, + Site, + SiteAuthSettings, + SiteConfig, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLimits, + SiteLogsConfig, + SiteMachineKey, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SkuCapacity, + SkuDescription, + SlotConfigNamesResource, + SlotDifference, + SlotSwapStatus, + SlowRequestsBasedTrigger, + Snapshot, + SnapshotRecoverySource, + SnapshotRestoreRequest, + SourceControl, + StatusCodesBasedTrigger, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobHistory, + TriggeredJobRun, + TriggeredWebJob, + User, + VirtualApplication, + VirtualDirectory, + VnetGateway, + VnetInfo, + VnetParameters, + VnetRoute, + VnetValidationFailureDetails, + VnetValidationTestFailure, + WebAppCollection, + WebJob +} from "../models/mappers"; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/certificatesMappers.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/certificatesMappers.ts new file mode 100644 index 000000000000..7bec2cc38f0e --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/certificatesMappers.ts @@ -0,0 +1,138 @@ +/* + * 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 { + ApiDefinitionInfo, + ApplicationLogsConfig, + AppServicePlan, + AppServicePlanPatchResource, + AutoHealActions, + AutoHealCustomAction, + AutoHealRules, + AutoHealTriggers, + AzureBlobStorageApplicationLogsConfig, + AzureBlobStorageHttpLogsConfig, + AzureStorageInfoValue, + AzureStoragePropertyDictionaryResource, + AzureTableStorageApplicationLogsConfig, + BackupItem, + BackupRequest, + BackupSchedule, + BaseResource, + BillingMeter, + Capability, + Certificate, + CertificateCollection, + CertificatePatchResource, + CloningInfo, + CloudError, + ConnectionStringDictionary, + ConnStringInfo, + ConnStringValueTypePair, + ContinuousWebJob, + CorsSettings, + CustomHostnameAnalysisResult, + DatabaseBackupSetting, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DeletedAppRestoreRequest, + DeletedSite, + Deployment, + EnabledConfig, + ErrorEntity, + Experiments, + FileSystemApplicationLogsConfig, + FileSystemHttpLogsConfig, + FunctionEnvelope, + FunctionSecrets, + GeoDistribution, + GeoRegion, + HandlerMapping, + HostingEnvironmentProfile, + HostNameBinding, + HostNameSslState, + HttpLogsConfig, + HybridConnection, + HybridConnectionKey, + HybridConnectionLimits, + Identifier, + IpSecurityRestriction, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + MigrateMySqlRequest, + MigrateMySqlStatus, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + NameValuePair, + NetworkFeatures, + PremierAddOn, + PremierAddOnOffer, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessSubnet, + PrivateAccessVirtualNetwork, + ProcessInfo, + ProcessModuleInfo, + ProcessThreadInfo, + ProxyOnlyResource, + PublicCertificate, + PushSettings, + RampUpRule, + Recommendation, + RecommendationRule, + RelayServiceConnectionEntity, + RequestsBasedTrigger, + Resource, + ResourceMetricAvailability, + ResourceMetricDefinition, + RestoreRequest, + Site, + SiteAuthSettings, + SiteConfig, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLimits, + SiteLogsConfig, + SiteMachineKey, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SkuCapacity, + SkuDescription, + SlotConfigNamesResource, + SlotDifference, + SlotSwapStatus, + SlowRequestsBasedTrigger, + Snapshot, + SnapshotRecoverySource, + SnapshotRestoreRequest, + SourceControl, + StatusCodesBasedTrigger, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobHistory, + TriggeredJobRun, + TriggeredWebJob, + User, + VirtualApplication, + VirtualDirectory, + VnetGateway, + VnetInfo, + VnetParameters, + VnetRoute, + VnetValidationFailureDetails, + VnetValidationTestFailure, + WebJob +} from "../models/mappers"; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/index.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/index.ts new file mode 100644 index 000000000000..f63d756b67f8 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/index.ts @@ -0,0 +1,15891 @@ +/* + * 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 "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + +/** + * Specification for an App Service Environment to use for this resource. + */ +export interface HostingEnvironmentProfile { + /** + * Resource ID of the App Service Environment. + */ + id?: string; + /** + * Name of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * 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; +} + +/** + * Azure resource. This resource is tracked in Azure Resource Manager + */ +export interface Resource extends BaseResource { + /** + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource Name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Kind of resource. + */ + kind?: string; + /** + * Resource Location. + */ + location: string; + /** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * SSL certificate for an app. + */ +export interface Certificate extends Resource { + /** + * Friendly name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly friendlyName?: string; + /** + * Subject name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subjectName?: string; + /** + * Host names the certificate applies to. + */ + hostNames?: string[]; + /** + * Pfx blob. + */ + pfxBlob?: Uint8Array; + /** + * App name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly siteName?: string; + /** + * Self link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly selfLink?: string; + /** + * Certificate issuer. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issuer?: string; + /** + * Certificate issue Date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issueDate?: Date; + /** + * Certificate expiration date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expirationDate?: Date; + /** + * Certificate password. + */ + password: string; + /** + * Certificate thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly thumbprint?: string; + /** + * Is the certificate valid?. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly valid?: boolean; + /** + * Raw bytes of .cer file + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cerBlob?: Uint8Array; + /** + * Public key hash. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly publicKeyHash?: string; + /** + * 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; + /** + * Key Vault Csm resource Id. + */ + keyVaultId?: string; + /** + * Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * 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; + /** + * Resource ID of the associated App Service plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; +} + +/** + * Azure proxy only resource. This resource is not tracked by Azure Resource Manager. + */ +export interface ProxyOnlyResource extends BaseResource { + /** + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource Name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Kind of resource. + */ + kind?: string; + /** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * ARM resource for a certificate. + */ +export interface CertificatePatchResource extends ProxyOnlyResource { + /** + * Friendly name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly friendlyName?: string; + /** + * Subject name of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subjectName?: string; + /** + * Host names the certificate applies to. + */ + hostNames?: string[]; + /** + * Pfx blob. + */ + pfxBlob?: Uint8Array; + /** + * App name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly siteName?: string; + /** + * Self link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly selfLink?: string; + /** + * Certificate issuer. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issuer?: string; + /** + * Certificate issue Date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issueDate?: Date; + /** + * Certificate expiration date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expirationDate?: Date; + /** + * Certificate password. + */ + password: string; + /** + * Certificate thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly thumbprint?: string; + /** + * Is the certificate valid?. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly valid?: boolean; + /** + * Raw bytes of .cer file + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cerBlob?: Uint8Array; + /** + * Public key hash. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly publicKeyHash?: string; + /** + * 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; + /** + * Key Vault Csm resource Id. + */ + keyVaultId?: string; + /** + * Key Vault secret name. + */ + keyVaultSecretName?: string; + /** + * 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; + /** + * Resource ID of the associated App Service plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; +} + +/** + * Virtual Network route contract used to pass routing information for a Virtual Network. + */ +export interface VnetRoute extends ProxyOnlyResource { + /** + * 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; + /** + * The ending address for this route. If the start address is specified in CIDR notation, this + * must be omitted. + */ + endAddress?: string; + /** + * 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; +} + +/** + * Virtual Network information contract. + */ +export interface VnetInfo extends ProxyOnlyResource { + /** + * The Virtual Network's resource ID. + */ + vnetResourceId?: string; + /** + * The client certificate thumbprint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly certThumbprint?: string; + /** + * A certificate file (.cer) blob containing the public key of the private key used to + * authenticate a + * Point-To-Site VPN connection. + */ + certBlob?: string; + /** + * 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[]; + /** + * 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; + /** + * DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP + * addresses. + */ + dnsServers?: string; + /** + * Flag that is used to denote if this is VNET injection + */ + isSwift?: boolean; +} + +/** + * The Virtual Network gateway contract. This is used to give the Virtual Network gateway access to + * the VPN package. + */ +export interface VnetGateway extends ProxyOnlyResource { + /** + * The Virtual Network name. + */ + vnetName?: string; + /** + * The URI where the VPN package can be downloaded. + */ + vpnPackageUri: string; +} + +/** + * User credentials used for publishing activity. + */ +export interface User extends ProxyOnlyResource { + /** + * Username used for publishing. + */ + publishingUserName: string; + /** + * Password used for publishing. + */ + publishingPassword?: string; + /** + * Password hash used for publishing. + */ + publishingPasswordHash?: string; + /** + * Password hash salt used for publishing. + */ + publishingPasswordHashSalt?: string; + /** + * Url of SCM site. + */ + scmUri?: string; +} + +/** + * A snapshot of an app. + */ +export interface Snapshot extends ProxyOnlyResource { + /** + * The time the snapshot was taken. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly time?: string; +} + +/** + * Metrics availability and retention. + */ +export interface ResourceMetricAvailability { + /** + * Time grain . + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeGrain?: string; + /** + * 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; +} + +/** + * Metadata for the metrics. + */ +export interface ResourceMetricDefinition extends ProxyOnlyResource { + /** + * Unit of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; + /** + * Primary aggregation type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryAggregationType?: string; + /** + * 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[]; + /** + * Resource URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceUri?: string; + /** + * Resource metric definition properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: { [propertyName: string]: string }; +} + +/** + * Push settings for the App. + */ +export interface PushSettings extends ProxyOnlyResource { + /** + * Gets or sets a flag indicating whether the Push endpoint is enabled. + */ + isPushEnabled: boolean; + /** + * Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push + * registration endpoint. + */ + tagWhitelistJson?: string; + /** + * 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; + /** + * 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; +} + +/** + * A domain specific resource identifier. + */ +export interface Identifier extends ProxyOnlyResource { + /** + * String representation of the identity. + */ + identifierId?: string; +} + +/** + * Hybrid Connection key contract. This has the send key name and value for a Hybrid Connection. + */ +export interface HybridConnectionKey extends ProxyOnlyResource { + /** + * The name of the send key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sendKeyName?: string; + /** + * The value of the send key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sendKeyValue?: string; +} + +/** + * Hybrid Connection contract. This is used to configure a Hybrid Connection. + */ +export interface HybridConnection extends ProxyOnlyResource { + /** + * The name of the Service Bus namespace. + */ + serviceBusNamespace?: string; + /** + * The name of the Service Bus relay. + */ + relayName?: string; + /** + * The ARM URI to the Service Bus relay. + */ + relayArmUri?: string; + /** + * The hostname of the endpoint. + */ + hostname?: string; + /** + * The port of the endpoint. + */ + port?: number; + /** + * The name of the Service Bus key which has Send permissions. This is used to authenticate to + * Service Bus. + */ + sendKeyName?: string; + /** + * 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; + /** + * The suffix for the service bus endpoint. By default this is .servicebus.windows.net + */ + serviceBusSuffix?: string; +} + +/** + * A deleted app. + */ +export interface DeletedSite extends ProxyOnlyResource { + /** + * Numeric id for the deleted site + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deletedSiteId?: number; + /** + * 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; + /** + * Subscription containing the deleted site + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subscription?: string; + /** + * ResourceGroup that contained the deleted site + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceGroup?: string; + /** + * Name of the deleted site + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deletedSiteName?: string; + /** + * Slot of the deleted site + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly slot?: string; + /** + * Kind of site that was deleted + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deletedSiteKind?: string; + /** + * Geo Region of the deleted site + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly geoRegionName?: string; +} + +/** + * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * Principal Id of user assigned identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * Client Id of user assigned identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Managed service identity. + */ +export interface ManagedServiceIdentity { + /** + * Type of managed service identity. Possible values include: 'SystemAssigned', 'UserAssigned', + * 'SystemAssigned, UserAssigned', 'None' + */ + type?: ManagedServiceIdentityType; + /** + * Tenant of managed service identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * Principal Id of managed service identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The list of user assigned identities associated with the resource. The user identity + * dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + */ + userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; +} + +/** + * A global distribution definition. + */ +export interface GeoDistribution { + /** + * Location. + */ + location?: string; + /** + * NumberOfWorkers. + */ + numberOfWorkers?: number; +} + +/** + * The status of the last successful slot swap operation. + */ +export interface SlotSwapStatus { + /** + * 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; + /** + * 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; + /** + * 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; +} + +/** + * Information needed for cloning operation. + */ +export interface CloningInfo { + /** + * Correlation ID of cloning operation. This ID ties multiple cloning operations + * together to use the same snapshot. + */ + correlationId?: string; + /** + * true to overwrite destination app; otherwise, false. + */ + overwrite?: boolean; + /** + * true to clone custom hostnames from source app; otherwise, false. + */ + cloneCustomHostNames?: boolean; + /** + * true to clone source control from source app; otherwise, false. + */ + cloneSourceControl?: boolean; + /** + * 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; + /** + * Location of source app ex: West US or North Europe + */ + sourceWebAppLocation?: string; + /** + * App Service Environment. + */ + hostingEnvironment?: string; + /** + * 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 }; + /** + * true to configure load balancing for source and destination app. + */ + configureLoadBalancing?: boolean; + /** + * 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; + /** + * Name of Traffic Manager profile to create. This is only needed if Traffic Manager profile does + * not already exist. + */ + trafficManagerProfileName?: string; +} + +/** + * IP security restriction on an app. + */ +export interface IpSecurityRestriction { + /** + * 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; + /** + * Subnet mask for the range of IP addresses the restriction is valid for. + */ + subnetMask?: string; + /** + * Virtual network resource id + */ + vnetSubnetResourceId?: string; + /** + * (internal) Vnet traffic tag + */ + vnetTrafficTag?: number; + /** + * (internal) Subnet traffic tag + */ + subnetTrafficTag?: number; + /** + * Allow or Deny access for this IP range. + */ + action?: string; + /** + * Defines what this IP filter will be used for. This is to support IP filtering on proxies. + * Possible values include: 'Default', 'XffProxy' + */ + tag?: IpFilterTag; + /** + * Priority of IP restriction rule. + */ + priority?: number; + /** + * IP restriction rule name. + */ + name?: string; + /** + * IP restriction rule description. + */ + description?: string; +} + +/** + * Information about the formal API definition for the app. + */ +export interface ApiDefinitionInfo { + /** + * The URL of the API definition. + */ + url?: string; +} + +/** + * Cross-Origin Resource Sharing (CORS) settings for the app. + */ +export interface CorsSettings { + /** + * 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[]; + /** + * Gets or sets whether CORS requests with credentials are allowed. See + * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + * for more details. + */ + supportCredentials?: boolean; +} + +/** + * Custom action to be executed + * when an auto heal rule is triggered. + */ +export interface AutoHealCustomAction { + /** + * Executable to be run. + */ + exe?: string; + /** + * Parameters for the executable. + */ + parameters?: string; +} + +/** + * Actions which to take by the auto-heal module when a rule is triggered. + */ +export interface AutoHealActions { + /** + * Predefined action to be taken. Possible values include: 'Recycle', 'LogEvent', 'CustomAction' + */ + actionType?: AutoHealActionType; + /** + * Custom action to be taken. + */ + customAction?: AutoHealCustomAction; + /** + * Minimum time the process must execute + * before taking the action + */ + minProcessExecutionTime?: string; +} + +/** + * Trigger based on request execution time. + */ +export interface SlowRequestsBasedTrigger { + /** + * Time taken. + */ + timeTaken?: string; + /** + * Request Count. + */ + count?: number; + /** + * Time interval. + */ + timeInterval?: string; +} + +/** + * Trigger based on status code. + */ +export interface StatusCodesBasedTrigger { + /** + * HTTP status code. + */ + status?: number; + /** + * Request Sub Status. + */ + subStatus?: number; + /** + * Win32 error code. + */ + win32Status?: number; + /** + * Request Count. + */ + count?: number; + /** + * Time interval. + */ + timeInterval?: string; +} + +/** + * Trigger based on total requests. + */ +export interface RequestsBasedTrigger { + /** + * Request Count. + */ + count?: number; + /** + * Time interval. + */ + timeInterval?: string; +} + +/** + * Triggers for auto-heal. + */ +export interface AutoHealTriggers { + /** + * A rule based on total requests. + */ + requests?: RequestsBasedTrigger; + /** + * A rule based on private bytes. + */ + privateBytesInKB?: number; + /** + * A rule based on status codes. + */ + statusCodes?: StatusCodesBasedTrigger[]; + /** + * A rule based on request execution time. + */ + slowRequests?: SlowRequestsBasedTrigger; +} + +/** + * Rules that can be defined for auto-heal. + */ +export interface AutoHealRules { + /** + * Conditions that describe when to execute the auto-heal actions. + */ + triggers?: AutoHealTriggers; + /** + * Actions to be executed when a rule is triggered. + */ + actions?: AutoHealActions; +} + +/** + * Metric limits set on an app. + */ +export interface SiteLimits { + /** + * Maximum allowed CPU usage percentage. + */ + maxPercentageCpu?: number; + /** + * Maximum allowed memory usage in MB. + */ + maxMemoryInMb?: number; + /** + * Maximum allowed disk size usage in MB. + */ + maxDiskSizeInMb?: number; +} + +/** + * 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 { + /** + * Hostname of a slot to which the traffic will be redirected if decided to. E.g. + * myapp-stage.azurewebsites.net. + */ + actionHostName?: string; + /** + * Percentage of the traffic which will be redirected to ActionHostName. + */ + reroutePercentage?: number; + /** + * In auto ramp up scenario this is the step to add/remove from ReroutePercentage + * until it reaches + * MinReroutePercentage or MaxReroutePercentage. Site metrics are + * checked every N minutes specified in ChangeIntervalInMinutes. + * Custom decision algorithm can be provided in TiPCallback site extension which URL can be + * specified in ChangeDecisionCallbackUrl. + */ + changeStep?: number; + /** + * Specifies interval in minutes to reevaluate ReroutePercentage. + */ + changeIntervalInMinutes?: number; + /** + * Specifies lower boundary above which ReroutePercentage will stay. + */ + minReroutePercentage?: number; + /** + * Specifies upper boundary below which ReroutePercentage will stay. + */ + maxReroutePercentage?: number; + /** + * 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; + /** + * 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; +} + +/** + * Routing rules in production experiments. + */ +export interface Experiments { + /** + * List of ramp-up rules. + */ + rampUpRules?: RampUpRule[]; +} + +/** + * Directory for virtual application. + */ +export interface VirtualDirectory { + /** + * Path to virtual application. + */ + virtualPath?: string; + /** + * Physical path. + */ + physicalPath?: string; +} + +/** + * Virtual application in an app. + */ +export interface VirtualApplication { + /** + * Virtual path. + */ + virtualPath?: string; + /** + * Physical path. + */ + physicalPath?: string; + /** + * true if preloading is enabled; otherwise, false. + */ + preloadEnabled?: boolean; + /** + * Virtual directories for virtual application. + */ + virtualDirectories?: VirtualDirectory[]; +} + +/** + * 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 { + /** + * Requests with this extension will be handled using the specified FastCGI application. + */ + extension?: string; + /** + * The absolute path to the FastCGI application. + */ + scriptProcessor?: string; + /** + * Command-line arguments to be passed to the script processor. + */ + argumentsProperty?: string; +} + +/** + * MachineKey of an app. + */ +export interface SiteMachineKey { + /** + * MachineKey validation. + */ + validation?: string; + /** + * Validation key. + */ + validationKey?: string; + /** + * Algorithm used for decryption. + */ + decryption?: string; + /** + * Decryption key. + */ + decryptionKey?: string; +} + +/** + * Database connection string information. + */ +export interface ConnStringInfo { + /** + * Name of connection string. + */ + name?: string; + /** + * Connection string value. + */ + connectionString?: string; + /** + * Type of database. Possible values include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom', + * 'NotificationHub', 'ServiceBus', 'EventHub', 'ApiHub', 'DocDb', 'RedisCache', 'PostgreSQL' + */ + type?: ConnectionStringType; +} + +/** + * Azure Files or Blob Storage access information value for dictionary storage. + */ +export interface AzureStorageInfoValue { + /** + * Type of storage. Possible values include: 'AzureFiles', 'AzureBlob' + */ + type?: AzureStorageType; + /** + * Name of the storage account. + */ + accountName?: string; + /** + * Name of the file share (container name, for Blob storage). + */ + shareName?: string; + /** + * Access key for the storage account. + */ + accessKey?: string; + /** + * Path to mount the storage within the site's runtime environment. + */ + mountPath?: string; + /** + * 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; +} + +/** + * Name value pair. + */ +export interface NameValuePair { + /** + * Pair name. + */ + name?: string; + /** + * Pair value. + */ + value?: string; +} + +/** + * Configuration of an App Service app. + */ +export interface SiteConfig { + /** + * Number of workers. + */ + numberOfWorkers?: number; + /** + * Default documents. + */ + defaultDocuments?: string[]; + /** + * .NET Framework version. Default value: 'v4.6'. + */ + netFrameworkVersion?: string; + /** + * Version of PHP. + */ + phpVersion?: string; + /** + * Version of Python. + */ + pythonVersion?: string; + /** + * Version of Node.js. + */ + nodeVersion?: string; + /** + * Linux App Framework and version + */ + linuxFxVersion?: string; + /** + * Xenon App Framework and version + */ + windowsFxVersion?: string; + /** + * true if request tracing is enabled; otherwise, false. + */ + requestTracingEnabled?: boolean; + /** + * Request tracing expiration time. + */ + requestTracingExpirationTime?: Date; + /** + * true if remote debugging is enabled; otherwise, false. + */ + remoteDebuggingEnabled?: boolean; + /** + * Remote debugging version. + */ + remoteDebuggingVersion?: string; + /** + * true if HTTP logging is enabled; otherwise, false. + */ + httpLoggingEnabled?: boolean; + /** + * HTTP logs directory size limit. + */ + logsDirectorySizeLimit?: number; + /** + * true if detailed error logging is enabled; otherwise, false. + */ + detailedErrorLoggingEnabled?: boolean; + /** + * Publishing user name. + */ + publishingUsername?: string; + /** + * Application settings. + */ + appSettings?: NameValuePair[]; + /** + * User-provided Azure storage accounts. + */ + azureStorageAccounts?: { [propertyName: string]: AzureStorageInfoValue }; + /** + * Connection strings. + */ + connectionStrings?: ConnStringInfo[]; + /** + * Site MachineKey. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly machineKey?: SiteMachineKey; + /** + * Handler mappings. + */ + handlerMappings?: HandlerMapping[]; + /** + * Document root. + */ + documentRoot?: string; + /** + * SCM type. Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', + * 'CodePlexGit', 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', + * 'OneDrive', 'VSO' + */ + scmType?: ScmType; + /** + * true to use 32-bit worker process; otherwise, false. + */ + use32BitWorkerProcess?: boolean; + /** + * true if WebSocket is enabled; otherwise, false. + */ + webSocketsEnabled?: boolean; + /** + * true if Always On is enabled; otherwise, false. + */ + alwaysOn?: boolean; + /** + * Java version. + */ + javaVersion?: string; + /** + * Java container. + */ + javaContainer?: string; + /** + * Java container version. + */ + javaContainerVersion?: string; + /** + * App command line to launch. + */ + appCommandLine?: string; + /** + * Managed pipeline mode. Possible values include: 'Integrated', 'Classic' + */ + managedPipelineMode?: ManagedPipelineMode; + /** + * Virtual applications. + */ + virtualApplications?: VirtualApplication[]; + /** + * Site load balancing. Possible values include: 'WeightedRoundRobin', 'LeastRequests', + * 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' + */ + loadBalancing?: SiteLoadBalancing; + /** + * This is work around for polymorphic types. + */ + experiments?: Experiments; + /** + * Site limits. + */ + limits?: SiteLimits; + /** + * true if Auto Heal is enabled; otherwise, false. + */ + autoHealEnabled?: boolean; + /** + * Auto Heal rules. + */ + autoHealRules?: AutoHealRules; + /** + * Tracing options. + */ + tracingOptions?: string; + /** + * Virtual Network name. + */ + vnetName?: string; + /** + * Cross-Origin Resource Sharing (CORS) settings. + */ + cors?: CorsSettings; + /** + * Push endpoint settings. + */ + push?: PushSettings; + /** + * Information about the formal API definition for the app. + */ + apiDefinition?: ApiDefinitionInfo; + /** + * Auto-swap slot name. + */ + autoSwapSlotName?: string; + /** + * true to enable local MySQL; otherwise, false. Default value: false. + */ + localMySqlEnabled?: boolean; + /** + * Managed Service Identity Id + */ + managedServiceIdentityId?: number; + /** + * Explicit Managed Service Identity Id + */ + xManagedServiceIdentityId?: number; + /** + * IP security restrictions for main. + */ + ipSecurityRestrictions?: IpSecurityRestriction[]; + /** + * IP security restrictions for scm. + */ + scmIpSecurityRestrictions?: IpSecurityRestriction[]; + /** + * IP security restrictions for scm to use main. + */ + scmIpSecurityRestrictionsUseMain?: boolean; + /** + * Http20Enabled: configures a web site to allow clients to connect over http2.0. Default value: + * true. + */ + http20Enabled?: boolean; + /** + * MinTlsVersion: configures the minimum version of TLS required for SSL requests. Possible + * values include: '1.0', '1.1', '1.2' + */ + minTlsVersion?: SupportedTlsVersions; + /** + * State of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled' + */ + ftpsState?: FtpsState; + /** + * Number of reserved instances. + * This setting only applies to the Consumption Plan + */ + reservedInstanceCount?: number; +} + +/** + * SSL-enabled hostname. + */ +export interface HostNameSslState { + /** + * Hostname. + */ + name?: string; + /** + * SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + */ + sslState?: SslState; + /** + * Virtual IP address assigned to the hostname if IP based SSL is enabled. + */ + virtualIP?: string; + /** + * SSL certificate thumbprint. + */ + thumbprint?: string; + /** + * Set to true to update existing hostname. + */ + toUpdate?: boolean; + /** + * Indicates whether the hostname is a standard or repository hostname. Possible values include: + * 'Standard', 'Repository' + */ + hostType?: HostType; +} + +/** + * A web app, a mobile app backend, or an API app. + */ +export interface Site extends Resource { + /** + * Current state of the app. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: string; + /** + * Hostnames associated with the app. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostNames?: string[]; + /** + * Name of the repository site. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly repositorySiteName?: string; + /** + * 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; + /** + * true if the app is enabled; otherwise, false. Setting this value to + * false disables the app (takes the app offline). + */ + enabled?: boolean; + /** + * 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[]; + /** + * 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; + /** + * Hostname SSL states are used to manage the SSL bindings for app's hostnames. + */ + hostNameSslStates?: HostNameSslState[]; + /** + * Resource ID of the associated App Service plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; + /** + * true if reserved; otherwise, false. Default value: false. + */ + reserved?: boolean; + /** + * Obsolete: Hyper-V sandbox. Default value: false. + */ + isXenon?: boolean; + /** + * Hyper-V sandbox. Default value: false. + */ + hyperV?: boolean; + /** + * 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; + /** + * Configuration of the app. + */ + siteConfig?: SiteConfig; + /** + * 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[]; + /** + * true to stop SCM (KUDU) site when the app is stopped; otherwise, + * false. The default is false. Default value: false. + */ + scmSiteAlsoStopped?: boolean; + /** + * 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; + /** + * App Service Environment to use for the app. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * 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; + /** + * true to enable client certificate authentication (TLS mutual authentication); + * otherwise, false. Default is false. + */ + clientCertEnabled?: boolean; + /** + * client certificate authentication comma-separated exclusion paths + */ + clientCertExclusionPaths?: string; + /** + * true to disable the public hostnames of the app; otherwise, false. + * If true, the app is only accessible via API management process. + */ + hostNamesDisabled?: boolean; + /** + * 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; + /** + * 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; + /** + * Size of the function container. + */ + containerSize?: number; + /** + * Maximum allowed daily memory-time quota (applicable on dynamic apps only). + */ + dailyMemoryTimeQuota?: number; + /** + * 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; + /** + * 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; + /** + * If specified during app creation, the app is cloned from a source app. + */ + cloningInfo?: CloningInfo; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * HttpsOnly: configures a web site to accept only https requests. Issues redirect for + * http requests + */ + httpsOnly?: boolean; + /** + * Site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', + * 'GeoRedundant' + */ + redundancyMode?: RedundancyMode; + /** + * Specifies an operation id if this site has a pending operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inProgressOperationId?: string; + /** + * GeoDistributions for this site + */ + geoDistributions?: GeoDistribution[]; + identity?: ManagedServiceIdentity; +} + +/** + * Describes the capabilities/features allowed for a specific SKU. + */ +export interface Capability { + /** + * Name of the SKU capability. + */ + name?: string; + /** + * Value of the SKU capability. + */ + value?: string; + /** + * Reason of the SKU capability. + */ + reason?: string; +} + +/** + * Description of the App Service plan scale options. + */ +export interface SkuCapacity { + /** + * Minimum number of workers for this App Service plan SKU. + */ + minimum?: number; + /** + * Maximum number of workers for this App Service plan SKU. + */ + maximum?: number; + /** + * Default number of workers for this App Service plan SKU. + */ + default?: number; + /** + * Available scale configurations for an App Service plan. + */ + scaleType?: string; +} + +/** + * Description of a SKU for a scalable resource. + */ +export interface SkuDescription { + /** + * Name of the resource SKU. + */ + name?: string; + /** + * Service tier of the resource SKU. + */ + tier?: string; + /** + * Size specifier of the resource SKU. + */ + size?: string; + /** + * Family code of the resource SKU. + */ + family?: string; + /** + * Current number of instances assigned to the resource. + */ + capacity?: number; + /** + * Min, max, and default scale values of the SKU. + */ + skuCapacity?: SkuCapacity; + /** + * Locations of the SKU. + */ + locations?: string[]; + /** + * Capabilities of the SKU, e.g., is traffic manager enabled? + */ + capabilities?: Capability[]; +} + +/** + * App Service plan. + */ +export interface AppServicePlan extends Resource { + /** + * Target worker tier assigned to the App Service plan. + */ + workerTierName?: string; + /** + * 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; + /** + * App Service plan subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subscription?: string; + /** + * Specification for the App Service Environment to use for the App Service plan. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan + */ + maximumElasticWorkerCount?: number; + /** + * 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; + /** + * If true, this App Service Plan owns spot instances. + */ + isSpot?: boolean; + /** + * The time when the server farm expires. Valid only if it is a spot server farm. + */ + spotExpirationTime?: Date; + /** + * The time when the server farm free offer expires. + */ + freeOfferExpirationTime?: Date; + /** + * 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; + /** + * If Linux app service plan true, false otherwise. Default value: + * false. + */ + reserved?: boolean; + /** + * Obsolete: If Hyper-V container app service plan true, false + * otherwise. Default value: false. + */ + isXenon?: boolean; + /** + * If Hyper-V container app service plan true, false otherwise. Default + * value: false. + */ + hyperV?: boolean; + /** + * Scaling worker count. + */ + targetWorkerCount?: number; + /** + * Scaling worker size ID. + */ + targetWorkerSizeId?: number; + /** + * 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; + sku?: SkuDescription; +} + +/** + * Detailed errors. + */ +export interface DefaultErrorResponseErrorDetailsItem { + /** + * 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; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; +} + +/** + * Error model. + */ +export interface DefaultErrorResponseError { + /** + * 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; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + details?: DefaultErrorResponseErrorDetailsItem[]; + /** + * More information to debug error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly innererror?: string; +} + +/** + * App Service error response. + */ +export interface DefaultErrorResponse { + /** + * Error model. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: DefaultErrorResponseError; +} + +/** + * Specification for using a Virtual Network. + */ +export interface VirtualNetworkProfile { + /** + * Resource id of the Virtual Network. + */ + id?: string; + /** + * 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; + /** + * 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; + /** + * Subnet within the Virtual Network. + */ + subnet?: string; +} + +/** + * Worker pool of an App Service Environment. + */ +export interface WorkerPool { + /** + * Worker size ID for referencing this worker pool. + */ + workerSizeId?: number; + /** + * Shared or dedicated app hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + */ + computeMode?: ComputeModeOptions; + /** + * VM size of the worker pool instances. + */ + workerSize?: string; + /** + * Number of instances in the worker pool. + */ + workerCount?: number; + /** + * 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[]; +} + +/** + * Virtual IP mapping. + */ +export interface VirtualIPMapping { + /** + * Virtual IP address. + */ + virtualIP?: string; + /** + * Internal HTTP port. + */ + internalHttpPort?: number; + /** + * Internal HTTPS port. + */ + internalHttpsPort?: number; + /** + * Is virtual IP mapping in use. + */ + inUse?: boolean; +} + +/** + * Stamp capacity information. + */ +export interface StampCapacity { + /** + * Name of the stamp. + */ + name?: string; + /** + * Available capacity (# of machines, bytes of storage etc...). + */ + availableCapacity?: number; + /** + * Total capacity (# of machines, bytes of storage etc...). + */ + totalCapacity?: number; + /** + * Name of the unit. + */ + unit?: string; + /** + * Shared/dedicated workers. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + */ + computeMode?: ComputeModeOptions; + /** + * Size of the machines. Possible values include: 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', + * 'Default' + */ + workerSize?: WorkerSizeOptions; + /** + * Size ID of machines: + * 0 - Small + * 1 - Medium + * 2 - Large + */ + workerSizeId?: number; + /** + * If true, it includes basic apps. + * Basic apps are not used for capacity allocation. + */ + excludeFromCapacityAllocation?: boolean; + /** + * true if capacity is applicable for all apps; otherwise, false. + */ + isApplicableForAllComputeModes?: boolean; + /** + * Shared or Dedicated. + */ + siteMode?: string; + /** + * Is this a linux stamp capacity + */ + isLinux?: boolean; +} + +/** + * Network access control entry. + */ +export interface NetworkAccessControlEntry { + /** + * Action object. Possible values include: 'Permit', 'Deny' + */ + action?: AccessControlEntryAction; + /** + * Description of network access control entry. + */ + description?: string; + /** + * Order of precedence. + */ + order?: number; + /** + * Remote subnet. + */ + remoteSubnet?: string; +} + +/** + * Description of an App Service Environment. + */ +export interface AppServiceEnvironment { + /** + * Name of the App Service Environment. + */ + name: string; + /** + * Location of the App Service Environment, e.g. "West US". + */ + location: string; + /** + * 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; + /** + * 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; + /** + * Name of the Virtual Network for the App Service Environment. + */ + vnetName?: string; + /** + * Resource group of the Virtual Network. + */ + vnetResourceGroupName?: string; + /** + * Subnet of the Virtual Network. + */ + vnetSubnetName?: string; + /** + * Description of the Virtual Network. + */ + virtualNetwork: VirtualNetworkProfile; + /** + * Specifies which endpoints to serve internally in the Virtual Network for the App Service + * Environment. Possible values include: 'None', 'Web', 'Publishing' + */ + internalLoadBalancingMode?: InternalLoadBalancingMode; + /** + * Front-end VM size, e.g. "Medium", "Large". + */ + multiSize?: string; + /** + * Number of front-end instances. + */ + multiRoleCount?: number; + /** + * Description of worker pools with worker size IDs, VM sizes, and number of workers in each + * pool. + */ + workerPools: WorkerPool[]; + /** + * Number of IP SSL addresses reserved for the App Service Environment. + */ + ipsslAddressCount?: number; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * Subscription of the App Service Environment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subscriptionId?: string; + /** + * DNS suffix of the App Service Environment. + */ + dnsSuffix?: string; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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[]; + /** + * 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[]; + /** + * Access control list for controlling traffic to the App Service Environment. + */ + networkAccessControlList?: NetworkAccessControlEntry[]; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * Scale factor for front-ends. + */ + frontEndScaleFactor?: number; + /** + * Default Scale Factor for FrontEnds. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly defaultFrontEndScaleFactor?: number; + /** + * API Management Account associated with the App Service Environment. + */ + apiManagementAccountId?: string; + /** + * 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; + /** + * 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; + /** + * Custom settings for changing the behavior of the App Service Environment. + */ + clusterSettings?: NameValuePair[]; + /** + * User added ip ranges to whitelist on ASE db + */ + userWhitelistedIpRanges?: string[]; + /** + * Flag that displays whether an ASE has linux workers or not + */ + hasLinuxWorkers?: boolean; + /** + * Key Vault ID for ILB App Service Environment default SSL certificate + */ + sslCertKeyVaultId?: string; + /** + * Key Vault Secret Name for ILB App Service Environment default SSL certificate + */ + sslCertKeyVaultSecretName?: string; +} + +/** + * Meta data about operation used for display in portal. + */ +export interface CsmOperationDisplay { + provider?: string; + resource?: string; + operation?: string; + description?: string; +} + +/** + * 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 { + name?: string; + displayName?: string; + internalName?: string; + toBeExportedForShoebox?: boolean; +} + +/** + * Retention policy of a resource metric. + */ +export interface MetricAvailability { + timeGrain?: string; + blobDuration?: string; +} + +/** + * Definition of a single resource metric. + */ +export interface MetricSpecification { + name?: string; + displayName?: string; + displayDescription?: string; + unit?: string; + aggregationType?: string; + supportsInstanceLevelAggregation?: boolean; + enableRegionalMdmAccount?: boolean; + sourceMdmAccount?: string; + sourceMdmNamespace?: string; + metricFilterPattern?: string; + fillGapWithZero?: boolean; + isInternal?: boolean; + dimensions?: Dimension[]; + category?: string; + availabilities?: MetricAvailability[]; +} + +/** + * Log Definition of a single resource metric. + */ +export interface LogSpecification { + name?: string; + displayName?: string; + blobDuration?: string; +} + +/** + * Resource metrics service provided by Microsoft.Insights resource provider. + */ +export interface ServiceSpecification { + metricSpecifications?: MetricSpecification[]; + logSpecifications?: LogSpecification[]; +} + +/** + * Properties available for a Microsoft.Web resource provider operation. + */ +export interface CsmOperationDescriptionProperties { + serviceSpecification?: ServiceSpecification; +} + +/** + * Description of an operation available for Microsoft.Web resource provider. + */ +export interface CsmOperationDescription { + name?: string; + display?: CsmOperationDisplay; + origin?: string; + properties?: CsmOperationDescriptionProperties; +} + +/** + * Localizable string object containing the name and a localized value. + */ +export interface LocalizableString { + /** + * Non-localized name. + */ + value?: string; + /** + * Localized name. + */ + localizedValue?: string; +} + +/** + * Usage of the quota resource. + */ +export interface CsmUsageQuota { + /** + * Units of measurement for the quota resource. + */ + unit?: string; + /** + * Next reset time for the resource counter. + */ + nextResetTime?: Date; + /** + * The current value of the resource counter. + */ + currentValue?: number; + /** + * The resource limit. + */ + limit?: number; + /** + * Quota name. + */ + name?: LocalizableString; +} + +/** + * Body of the error response returned from the API. + */ +export interface ErrorEntity { + /** + * Type of error. + */ + extendedCode?: string; + /** + * Message template. + */ + messageTemplate?: string; + /** + * Parameters for the template. + */ + parameters?: string[]; + /** + * Inner errors. + */ + innerErrors?: ErrorEntity[]; + /** + * Basic error code. + */ + code?: string; + /** + * Any details of the error. + */ + message?: string; +} + +/** + * Identifies an object. + */ +export interface NameIdentifier { + /** + * Name of the object. + */ + name?: string; +} + +/** + * An operation on a resource. + */ +export interface Operation { + /** + * Operation ID. + */ + id?: string; + /** + * Operation name. + */ + name?: string; + /** + * The current status of the operation. Possible values include: 'InProgress', 'Failed', + * 'Succeeded', 'TimedOut', 'Created' + */ + status?: OperationStatus; + /** + * Any errors associate with the operation. + */ + errors?: ErrorEntity[]; + /** + * Time when operation has started. + */ + createdTime?: Date; + /** + * Time when operation has been updated. + */ + modifiedTime?: Date; + /** + * Time when operation will expire. + */ + expirationTime?: Date; + /** + * Applicable only for stamp operation ids. + */ + geoMasterOperationId?: string; +} + +/** + * Name of a metric for any resource . + */ +export interface ResourceMetricName { + /** + * metric name value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; + /** + * Localized metric name value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly localizedValue?: string; +} + +/** + * Resource metric property. + */ +export interface ResourceMetricProperty { + /** + * Key for resource metric property. + */ + key?: string; + /** + * Value of pair. + */ + value?: string; +} + +/** + * Value of resource metric. + */ +export interface ResourceMetricValue { + /** + * Value timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timestamp?: string; + /** + * Value average. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly average?: number; + /** + * Value minimum. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly minimum?: number; + /** + * Value maximum. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maximum?: number; + /** + * Value total. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly total?: number; + /** + * Value count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly count?: number; + /** + * Resource metric properties collection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: ResourceMetricProperty[]; +} + +/** + * Object representing a metric for any resource . + */ +export interface ResourceMetric { + /** + * Name of metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: ResourceMetricName; + /** + * Metric unit. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; + /** + * 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; + /** + * Metric start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * Metric end time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * Metric resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceId?: string; + /** + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Metric values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricValues?: ResourceMetricValue[]; + /** + * Resource metric properties collection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: ResourceMetricProperty[]; +} + +/** + * Application logs to file system configuration. + */ +export interface FileSystemApplicationLogsConfig { + /** + * Log level. Possible values include: 'Off', 'Verbose', 'Information', 'Warning', 'Error'. + * Default value: 'Off'. + */ + level?: LogLevel; +} + +/** + * Application logs to Azure table storage configuration. + */ +export interface AzureTableStorageApplicationLogsConfig { + /** + * Log level. Possible values include: 'Off', 'Verbose', 'Information', 'Warning', 'Error' + */ + level?: LogLevel; + /** + * SAS URL to an Azure table with add/query/delete permissions. + */ + sasUrl: string; +} + +/** + * Application logs azure blob storage configuration. + */ +export interface AzureBlobStorageApplicationLogsConfig { + /** + * Log level. Possible values include: 'Off', 'Verbose', 'Information', 'Warning', 'Error' + */ + level?: LogLevel; + /** + * SAS url to a azure blob container with read/write/list/delete permissions. + */ + sasUrl?: string; + /** + * Retention in days. + * Remove blobs older than X days. + * 0 or lower means no retention. + */ + retentionInDays?: number; +} + +/** + * Application logs configuration. + */ +export interface ApplicationLogsConfig { + /** + * Application logs to file system configuration. + */ + fileSystem?: FileSystemApplicationLogsConfig; + /** + * Application logs to azure table storage configuration. + */ + azureTableStorage?: AzureTableStorageApplicationLogsConfig; + /** + * Application logs to blob storage configuration. + */ + azureBlobStorage?: AzureBlobStorageApplicationLogsConfig; +} + +/** + * Http logs to azure blob storage configuration. + */ +export interface AzureBlobStorageHttpLogsConfig { + /** + * SAS url to a azure blob container with read/write/list/delete permissions. + */ + sasUrl?: string; + /** + * Retention in days. + * Remove blobs older than X days. + * 0 or lower means no retention. + */ + retentionInDays?: number; + /** + * True if configuration is enabled, false if it is disabled and null if configuration is not + * set. + */ + enabled?: boolean; +} + +/** + * AzureStorageInfo dictionary resource. + */ +export interface AzureStoragePropertyDictionaryResource extends ProxyOnlyResource { + /** + * Azure storage accounts. + */ + properties?: { [propertyName: string]: AzureStorageInfoValue }; +} + +/** + * Database backup settings. + */ +export interface DatabaseBackupSetting { + /** + * Database type (e.g. SqlAzure / MySql). Possible values include: 'SqlAzure', 'MySql', + * 'LocalMySql', 'PostgreSql' + */ + databaseType: DatabaseType; + name?: string; + /** + * Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. + * This is used during restore with overwrite connection strings options. + */ + connectionStringName?: string; + /** + * 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; +} + +/** + * Backup description. + */ +export interface BackupItem extends ProxyOnlyResource { + /** + * Id of the backup. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupId?: number; + /** + * 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; + /** + * 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; + /** + * Name of this backup. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupItemName?: string; + /** + * 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; + /** + * Size of the backup in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sizeInBytes?: number; + /** + * Timestamp of the backup creation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly created?: Date; + /** + * 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; + /** + * 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[]; + /** + * 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; + /** + * 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; + /** + * Timestamp when this backup finished. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly finishedTimeStamp?: Date; + /** + * 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; + /** + * 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; +} + +/** + * Description of a backup schedule. Describes how often should be the backup performed and what + * should be the retention policy. + */ +export interface BackupSchedule { + /** + * 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; + /** + * 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; + /** + * 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; + /** + * After how many days backups should be deleted. Default value: 30. + */ + retentionPeriodInDays: number; + /** + * When the schedule should start working. + */ + startTime?: Date; + /** + * 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; +} + +/** + * Description of a backup which will be performed. + */ +export interface BackupRequest extends ProxyOnlyResource { + /** + * Name of the backup. + */ + backupName?: string; + /** + * True if the backup schedule is enabled (must be included in that case), false if the backup + * schedule should be disabled. + */ + enabled?: boolean; + /** + * SAS URL to the container. + */ + storageAccountUrl: string; + /** + * Schedule for the backup if it is executed periodically. + */ + backupSchedule?: BackupSchedule; + /** + * Databases included in the backup. + */ + databases?: DatabaseBackupSetting[]; +} + +/** + * Database connection string value to type pair. + */ +export interface ConnStringValueTypePair { + /** + * Value of pair. + */ + value: string; + /** + * Type of database. Possible values include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom', + * 'NotificationHub', 'ServiceBus', 'EventHub', 'ApiHub', 'DocDb', 'RedisCache', 'PostgreSQL' + */ + type: ConnectionStringType; +} + +/** + * String dictionary resource. + */ +export interface ConnectionStringDictionary extends ProxyOnlyResource { + /** + * Connection strings. + */ + properties?: { [propertyName: string]: ConnStringValueTypePair }; +} + +/** + * Continuous Web Job Information. + */ +export interface ContinuousWebJob extends ProxyOnlyResource { + /** + * Job status. Possible values include: 'Initializing', 'Starting', 'Running', 'PendingRestart', + * 'Stopped' + */ + status?: ContinuousWebJobStatus; + /** + * Detailed status. + */ + detailedStatus?: string; + /** + * Log URL. + */ + logUrl?: string; + /** + * Run command. + */ + runCommand?: string; + /** + * Job URL. + */ + url?: string; + /** + * Extra Info URL. + */ + extraInfoUrl?: string; + /** + * Job type. Possible values include: 'Continuous', 'Triggered' + */ + webJobType?: WebJobType; + /** + * Error information. + */ + error?: string; + /** + * Using SDK? + */ + usingSdk?: boolean; + /** + * Job settings. + */ + settings?: { [propertyName: string]: any }; +} + +/** + * Publishing options for requested profile. + */ +export interface CsmPublishingProfileOptions { + /** + * Name of the format. Valid values are: + * FileZilla3 + * WebDeploy -- default + * Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + */ + format?: PublishingProfileFormat; + /** + * Include the DisasterRecover endpoint if true + */ + includeDisasterRecoveryEndpoints?: boolean; +} + +/** + * Deployment slot parameters. + */ +export interface CsmSlotEntity { + /** + * Destination deployment slot during swap operation. + */ + targetSlot: string; + /** + * true to preserve Virtual Network to the slot during swap; otherwise, + * false. + */ + preserveVnet: boolean; +} + +/** + * Custom domain analysis. + */ +export interface CustomHostnameAnalysisResult extends ProxyOnlyResource { + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * true if there 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; + /** + * 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; + /** + * CName records controller can see for this hostname. + */ + cNameRecords?: string[]; + /** + * TXT records controller can see for this hostname. + */ + txtRecords?: string[]; + /** + * A records controller can see for this hostname. + */ + aRecords?: string[]; + /** + * Alternate CName records controller can see for this hostname. + */ + alternateCNameRecords?: string[]; + /** + * Alternate TXT records controller can see for this hostname. + */ + alternateTxtRecords?: string[]; +} + +/** + * Details about restoring a deleted app. + */ +export interface DeletedAppRestoreRequest extends ProxyOnlyResource { + /** + * ARM resource ID of the deleted app. Example: + * /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId} + */ + deletedSiteId?: string; + /** + * If true, deleted site configuration, in addition to content, will be restored. + */ + recoverConfiguration?: boolean; + /** + * 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; + /** + * If true, the snapshot is retrieved from DRSecondary endpoint. + */ + useDRSecondary?: boolean; +} + +/** + * User credentials used for publishing activity. + */ +export interface Deployment extends ProxyOnlyResource { + /** + * Deployment status. + */ + status?: number; + /** + * Details about deployment status. + */ + message?: string; + /** + * Who authored the deployment. + */ + author?: string; + /** + * Who performed the deployment. + */ + deployer?: string; + /** + * Author email. + */ + authorEmail?: string; + /** + * Start time. + */ + startTime?: Date; + /** + * End time. + */ + endTime?: Date; + /** + * True if deployment is currently active, false if completed and null if not started. + */ + active?: boolean; + /** + * Details on deployment. + */ + details?: string; +} + +/** + * Enabled configuration. + */ +export interface EnabledConfig { + /** + * True if configuration is enabled, false if it is disabled and null if configuration is not + * set. + */ + enabled?: boolean; +} + +/** + * Http logs to file system configuration. + */ +export interface FileSystemHttpLogsConfig { + /** + * 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; + /** + * Retention in days. + * Remove files older than X days. + * 0 or lower means no retention. + */ + retentionInDays?: number; + /** + * True if configuration is enabled, false if it is disabled and null if configuration is not + * set. + */ + enabled?: boolean; +} + +/** + * Web Job Information. + */ +export interface FunctionEnvelope extends ProxyOnlyResource { + /** + * Function App ID. + */ + functionAppId?: string; + /** + * Script root path URI. + */ + scriptRootPathHref?: string; + /** + * Script URI. + */ + scriptHref?: string; + /** + * Config URI. + */ + configHref?: string; + /** + * Secrets file URI. + */ + secretsFileHref?: string; + /** + * Function URI. + */ + href?: string; + /** + * Config information. + */ + config?: any; + /** + * File list. + */ + files?: { [propertyName: string]: string }; + /** + * Test data used when testing via the Azure Portal. + */ + testData?: string; +} + +/** + * Function secrets. + */ +export interface FunctionSecrets extends ProxyOnlyResource { + /** + * Secret key. + */ + key?: string; + /** + * Trigger URL. + */ + triggerUrl?: string; +} + +/** + * A hostname binding object. + */ +export interface HostNameBinding extends ProxyOnlyResource { + /** + * App Service app name. + */ + siteName?: string; + /** + * Fully qualified ARM domain resource URI. + */ + domainId?: string; + /** + * Azure resource name. + */ + azureResourceName?: string; + /** + * Azure resource type. Possible values include: 'Website', 'TrafficManager' + */ + azureResourceType?: AzureResourceType; + /** + * Custom DNS record type. Possible values include: 'CName', 'A' + */ + customHostNameDnsRecordType?: CustomHostNameDnsRecordType; + /** + * Hostname type. Possible values include: 'Verified', 'Managed' + */ + hostNameType?: HostNameType; + /** + * SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + */ + sslState?: SslState; + /** + * SSL certificate thumbprint + */ + thumbprint?: string; + /** + * 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; +} + +/** + * Http logs configuration. + */ +export interface HttpLogsConfig { + /** + * Http logs to file system configuration. + */ + fileSystem?: FileSystemHttpLogsConfig; + /** + * Http logs to azure blob storage configuration. + */ + azureBlobStorage?: AzureBlobStorageHttpLogsConfig; +} + +/** + * MSDeploy ARM PUT information + */ +export interface MSDeploy extends ProxyOnlyResource { + /** + * Package URI + */ + packageUri?: string; + /** + * SQL Connection String + */ + connectionString?: string; + /** + * Database Type + */ + dbType?: string; + /** + * URI of MSDeploy Parameters file. Must not be set if SetParameters is used. + */ + setParametersXmlFileUri?: string; + /** + * MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + */ + setParameters?: { [propertyName: string]: string }; + /** + * 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; + /** + * Sets the AppOffline rule while the MSDeploy operation executes. + * Setting is false by default. + */ + appOffline?: boolean; +} + +/** + * MSDeploy log entry + */ +export interface MSDeployLogEntry { + /** + * Timestamp of log entry + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly time?: Date; + /** + * 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; + /** + * Log entry message + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; +} + +/** + * MSDeploy log + */ +export interface MSDeployLog extends ProxyOnlyResource { + /** + * List of log entry messages + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly entries?: MSDeployLogEntry[]; +} + +/** + * MSDeploy ARM response + */ +export interface MSDeployStatus extends ProxyOnlyResource { + /** + * Username of deployer + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deployer?: string; + /** + * 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; + /** + * Start time of deploy operation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * End time of deploy operation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * Whether the deployment operation has completed + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly complete?: boolean; +} + +/** + * MySQL migration request. + */ +export interface MigrateMySqlRequest extends ProxyOnlyResource { + /** + * Connection string to the remote MySQL database. + */ + connectionString: string; + /** + * The type of migration operation to be done. Possible values include: 'LocalToRemote', + * 'RemoteToLocal' + */ + migrationType: MySqlMigrationType; +} + +/** + * MySQL migration status. + */ +export interface MigrateMySqlStatus extends ProxyOnlyResource { + /** + * 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; + /** + * Operation ID for the migration task. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationId?: string; + /** + * 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; +} + +/** + * Hybrid Connection for an App Service app. + */ +export interface RelayServiceConnectionEntity extends ProxyOnlyResource { + entityName?: string; + entityConnectionString?: string; + resourceType?: string; + resourceConnectionString?: string; + hostname?: string; + port?: number; + biztalkUri?: string; +} + +/** + * Full view of network features for an app (presently VNET integration and Hybrid Connections). + */ +export interface NetworkFeatures extends ProxyOnlyResource { + /** + * The Virtual Network name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualNetworkName?: string; + /** + * The Virtual Network summary view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualNetworkConnection?: VnetInfo; + /** + * The Hybrid Connections summary view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hybridConnections?: RelayServiceConnectionEntity[]; + /** + * 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[]; +} + +/** + * Network trace + */ +export interface NetworkTrace { + /** + * Local file path for the captured network trace file. + */ + path?: string; + /** + * Current status of the network trace operation, same as Operation.Status + * (InProgress/Succeeded/Failed). + */ + status?: string; + /** + * Detailed message of a network trace operation, e.g. error message in case of failure. + */ + message?: string; +} + +/** + * Performance monitor sample in a set. + */ +export interface PerfMonSample { + /** + * Point in time for which counter was measured. + */ + time?: Date; + /** + * Name of the server on which the measurement is made. + */ + instanceName?: string; + /** + * Value of counter at a certain time. + */ + value?: number; +} + +/** + * Metric information. + */ +export interface PerfMonSet { + /** + * Unique key name of the counter. + */ + name?: string; + /** + * Start time of the period. + */ + startTime?: Date; + /** + * End time of the period. + */ + endTime?: Date; + /** + * Presented time grain. + */ + timeGrain?: string; + /** + * Collection of workers that are active during this time. + */ + values?: PerfMonSample[]; +} + +/** + * Performance monitor API response. + */ +export interface PerfMonResponse { + /** + * The response code. + */ + code?: string; + /** + * The message. + */ + message?: string; + /** + * The performance monitor counters. + */ + data?: PerfMonSet; +} + +/** + * Premier add-on. + */ +export interface PremierAddOn extends Resource { + /** + * Premier add on SKU. + */ + sku?: string; + /** + * Premier add on Product. + */ + product?: string; + /** + * Premier add on Vendor. + */ + vendor?: string; + /** + * Premier add on Marketplace publisher. + */ + marketplacePublisher?: string; + /** + * Premier add on Marketplace offer. + */ + marketplaceOffer?: string; +} + +/** + * ARM resource for a PremierAddOn. + */ +export interface PremierAddOnPatchResource extends ProxyOnlyResource { + /** + * Premier add on SKU. + */ + sku?: string; + /** + * Premier add on Product. + */ + product?: string; + /** + * Premier add on Vendor. + */ + vendor?: string; + /** + * Premier add on Marketplace publisher. + */ + marketplacePublisher?: string; + /** + * Premier add on Marketplace offer. + */ + marketplaceOffer?: string; +} + +/** + * Description of a Virtual Network subnet that is useable for private site access. + */ +export interface PrivateAccessSubnet { + /** + * The name of the subnet. + */ + name?: string; + /** + * The key (ID) of the subnet. + */ + key?: number; +} + +/** + * Description of a Virtual Network that is useable for private site access. + */ +export interface PrivateAccessVirtualNetwork { + /** + * The name of the Virtual Network. + */ + name?: string; + /** + * The key (ID) of the Virtual Network. + */ + key?: number; + /** + * The ARM uri of the Virtual Network + */ + resourceId?: string; + /** + * 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[]; +} + +/** + * Description of the parameters of Private Access for a Web Site. + */ +export interface PrivateAccess extends ProxyOnlyResource { + /** + * Whether private access is enabled or not. + */ + enabled?: boolean; + /** + * The Virtual Networks (and subnets) allowed to access the site privately. + */ + virtualNetworks?: PrivateAccessVirtualNetwork[]; +} + +/** + * Process Thread Information. + */ +export interface ProcessThreadInfo extends ProxyOnlyResource { + /** + * Site extension ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly identifier?: number; + /** + * HRef URI. + */ + href?: string; + /** + * Process URI. + */ + process?: string; + /** + * Start address. + */ + startAddress?: string; + /** + * Current thread priority. + */ + currentPriority?: number; + /** + * Thread priority level. + */ + priorityLevel?: string; + /** + * Base priority. + */ + basePriority?: number; + /** + * Start time. + */ + startTime?: Date; + /** + * Total processor time. + */ + totalProcessorTime?: string; + /** + * User processor time. + */ + userProcessorTime?: string; + /** + * Privileged processor time. + */ + priviledgedProcessorTime?: string; + /** + * Thread state. + */ + state?: string; + /** + * Wait reason. + */ + waitReason?: string; +} + +/** + * Process Module Information. + */ +export interface ProcessModuleInfo extends ProxyOnlyResource { + /** + * Base address. Used as module identifier in ARM resource URI. + */ + baseAddress?: string; + /** + * File name. + */ + fileName?: string; + /** + * HRef URI. + */ + href?: string; + /** + * File path. + */ + filePath?: string; + /** + * Module memory size. + */ + moduleMemorySize?: number; + /** + * File version. + */ + fileVersion?: string; + /** + * File description. + */ + fileDescription?: string; + /** + * Product name. + */ + product?: string; + /** + * Product version. + */ + productVersion?: string; + /** + * Is debug? + */ + isDebug?: boolean; + /** + * Module language (locale). + */ + language?: string; +} + +/** + * Process Information. + */ +export interface ProcessInfo extends ProxyOnlyResource { + /** + * ARM Identifier for deployment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly identifier?: number; + /** + * Deployment name. + */ + deploymentName?: string; + /** + * HRef URI. + */ + href?: string; + /** + * Minidump URI. + */ + minidump?: string; + /** + * Is profile running? + */ + isProfileRunning?: boolean; + /** + * Is the IIS Profile running? + */ + isIisProfileRunning?: boolean; + /** + * IIS Profile timeout (seconds). + */ + iisProfileTimeoutInSeconds?: number; + /** + * Parent process. + */ + parent?: string; + /** + * Child process list. + */ + children?: string[]; + /** + * Thread list. + */ + threads?: ProcessThreadInfo[]; + /** + * List of open files. + */ + openFileHandles?: string[]; + /** + * List of modules. + */ + modules?: ProcessModuleInfo[]; + /** + * File name of this process. + */ + fileName?: string; + /** + * Command line. + */ + commandLine?: string; + /** + * User name. + */ + userName?: string; + /** + * Handle count. + */ + handleCount?: number; + /** + * Module count. + */ + moduleCount?: number; + /** + * Thread count. + */ + threadCount?: number; + /** + * Start time. + */ + startTime?: Date; + /** + * Total CPU time. + */ + totalCpuTime?: string; + /** + * User CPU time. + */ + userCpuTime?: string; + /** + * Privileged CPU time. + */ + privilegedCpuTime?: string; + /** + * Working set. + */ + workingSet?: number; + /** + * Peak working set. + */ + peakWorkingSet?: number; + /** + * Private memory size. + */ + privateMemory?: number; + /** + * Virtual memory size. + */ + virtualMemory?: number; + /** + * Peak virtual memory usage. + */ + peakVirtualMemory?: number; + /** + * Paged system memory. + */ + pagedSystemMemory?: number; + /** + * Non-paged system memory. + */ + nonPagedSystemMemory?: number; + /** + * Paged memory. + */ + pagedMemory?: number; + /** + * Peak paged memory. + */ + peakPagedMemory?: number; + /** + * Time stamp. + */ + timeStamp?: Date; + /** + * List of environment variables. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * Is this the SCM site? + */ + isScmSite?: boolean; + /** + * Is this a Web Job? + */ + isWebjob?: boolean; + /** + * Description of process. + */ + description?: string; +} + +/** + * Public certificate object + */ +export interface PublicCertificate extends ProxyOnlyResource { + /** + * Public Certificate byte array + */ + blob?: Uint8Array; + /** + * Public Certificate Location. Possible values include: 'CurrentUserMy', 'LocalMachineMy', + * 'Unknown' + */ + publicCertificateLocation?: PublicCertificateLocation; + /** + * Certificate Thumbprint + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly thumbprint?: string; +} + +/** + * Description of a restore request. + */ +export interface RestoreRequest extends ProxyOnlyResource { + /** + * SAS URL to the container. + */ + storageAccountUrl: string; + /** + * Name of a blob which contains the backup. + */ + blobName?: string; + /** + * true if the restore operation can overwrite target app; otherwise, + * false. true is needed if trying to restore over an existing app. + */ + overwrite: boolean; + /** + * Name of an app. + */ + siteName?: string; + /** + * Collection of databases which should be restored. This list has to match the list of databases + * included in the backup. + */ + databases?: DatabaseBackupSetting[]; + /** + * 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; + /** + * Ignore the databases and only restore the site content. Default value: false. + */ + ignoreDatabases?: boolean; + /** + * Specify app service plan that will own restored site. + */ + appServicePlan?: string; + /** + * Operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', + * 'CloudFS'. Default value: 'Default'. + */ + operationType?: BackupRestoreOperationType; + /** + * true if SiteConfig.ConnectionStrings should be set in new app; otherwise, + * false. + */ + adjustConnectionStrings?: boolean; + /** + * App Service Environment name, if needed (only when restoring an app to an App Service + * Environment). + */ + hostingEnvironment?: string; +} + +/** + * Configuration settings for the Azure App Service Authentication / Authorization feature. + */ +export interface SiteAuthSettings extends ProxyOnlyResource { + /** + * true if the Authentication / Authorization feature is enabled for the current + * app; otherwise, false. + */ + enabled?: boolean; + /** + * 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; + /** + * The action to take when an unauthenticated client attempts to access the app. Possible values + * include: 'RedirectToLoginPage', 'AllowAnonymous' + */ + unauthenticatedClientAction?: UnauthenticatedClientAction; + /** + * true to durably store platform-specific security tokens that are obtained during + * login flows; otherwise, false. + * The default is false. + */ + tokenStoreEnabled?: boolean; + /** + * 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[]; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * An alternative to the client secret, that is the thumbprint of a certificate used for signing + * purposes. This property acts as + * a replacement for the Client Secret. It is also optional. + */ + clientSecretCertificateThumbprint?: string; + /** + * 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; + /** + * Gets a value indicating whether the issuer should be a valid HTTPS url and be validated as + * such. + */ + validateIssuer?: boolean; + /** + * 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[]; + /** + * 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[]; + /** + * 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; + /** + * 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; + /** + * 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[]; + /** + * 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; + /** + * 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; + /** + * 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[]; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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[]; +} + +/** + * An app cloneability criterion. + */ +export interface SiteCloneabilityCriterion { + /** + * Name of criterion. + */ + name?: string; + /** + * Description of criterion. + */ + description?: string; +} + +/** + * Represents whether or not an app is cloneable. + */ +export interface SiteCloneability { + /** + * Name of app. Possible values include: 'Cloneable', 'PartiallyCloneable', 'NotCloneable' + */ + result?: CloneAbilityResult; + /** + * List of features enabled on app that prevent cloning. + */ + blockingFeatures?: SiteCloneabilityCriterion[]; + /** + * 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[]; + /** + * List of blocking application characteristics. + */ + blockingCharacteristics?: SiteCloneabilityCriterion[]; +} + +/** + * Web app configuration ARM resource. + */ +export interface SiteConfigResource extends ProxyOnlyResource { + /** + * Number of workers. + */ + numberOfWorkers?: number; + /** + * Default documents. + */ + defaultDocuments?: string[]; + /** + * .NET Framework version. Default value: 'v4.6'. + */ + netFrameworkVersion?: string; + /** + * Version of PHP. + */ + phpVersion?: string; + /** + * Version of Python. + */ + pythonVersion?: string; + /** + * Version of Node.js. + */ + nodeVersion?: string; + /** + * Linux App Framework and version + */ + linuxFxVersion?: string; + /** + * Xenon App Framework and version + */ + windowsFxVersion?: string; + /** + * true if request tracing is enabled; otherwise, false. + */ + requestTracingEnabled?: boolean; + /** + * Request tracing expiration time. + */ + requestTracingExpirationTime?: Date; + /** + * true if remote debugging is enabled; otherwise, false. + */ + remoteDebuggingEnabled?: boolean; + /** + * Remote debugging version. + */ + remoteDebuggingVersion?: string; + /** + * true if HTTP logging is enabled; otherwise, false. + */ + httpLoggingEnabled?: boolean; + /** + * HTTP logs directory size limit. + */ + logsDirectorySizeLimit?: number; + /** + * true if detailed error logging is enabled; otherwise, false. + */ + detailedErrorLoggingEnabled?: boolean; + /** + * Publishing user name. + */ + publishingUsername?: string; + /** + * Application settings. + */ + appSettings?: NameValuePair[]; + /** + * User-provided Azure storage accounts. + */ + azureStorageAccounts?: { [propertyName: string]: AzureStorageInfoValue }; + /** + * Connection strings. + */ + connectionStrings?: ConnStringInfo[]; + /** + * Site MachineKey. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly machineKey?: SiteMachineKey; + /** + * Handler mappings. + */ + handlerMappings?: HandlerMapping[]; + /** + * Document root. + */ + documentRoot?: string; + /** + * SCM type. Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', + * 'CodePlexGit', 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', + * 'OneDrive', 'VSO' + */ + scmType?: ScmType; + /** + * true to use 32-bit worker process; otherwise, false. + */ + use32BitWorkerProcess?: boolean; + /** + * true if WebSocket is enabled; otherwise, false. + */ + webSocketsEnabled?: boolean; + /** + * true if Always On is enabled; otherwise, false. + */ + alwaysOn?: boolean; + /** + * Java version. + */ + javaVersion?: string; + /** + * Java container. + */ + javaContainer?: string; + /** + * Java container version. + */ + javaContainerVersion?: string; + /** + * App command line to launch. + */ + appCommandLine?: string; + /** + * Managed pipeline mode. Possible values include: 'Integrated', 'Classic' + */ + managedPipelineMode?: ManagedPipelineMode; + /** + * Virtual applications. + */ + virtualApplications?: VirtualApplication[]; + /** + * Site load balancing. Possible values include: 'WeightedRoundRobin', 'LeastRequests', + * 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash' + */ + loadBalancing?: SiteLoadBalancing; + /** + * This is work around for polymorphic types. + */ + experiments?: Experiments; + /** + * Site limits. + */ + limits?: SiteLimits; + /** + * true if Auto Heal is enabled; otherwise, false. + */ + autoHealEnabled?: boolean; + /** + * Auto Heal rules. + */ + autoHealRules?: AutoHealRules; + /** + * Tracing options. + */ + tracingOptions?: string; + /** + * Virtual Network name. + */ + vnetName?: string; + /** + * Cross-Origin Resource Sharing (CORS) settings. + */ + cors?: CorsSettings; + /** + * Push endpoint settings. + */ + push?: PushSettings; + /** + * Information about the formal API definition for the app. + */ + apiDefinition?: ApiDefinitionInfo; + /** + * Auto-swap slot name. + */ + autoSwapSlotName?: string; + /** + * true to enable local MySQL; otherwise, false. Default value: false. + */ + localMySqlEnabled?: boolean; + /** + * Managed Service Identity Id + */ + managedServiceIdentityId?: number; + /** + * Explicit Managed Service Identity Id + */ + xManagedServiceIdentityId?: number; + /** + * IP security restrictions for main. + */ + ipSecurityRestrictions?: IpSecurityRestriction[]; + /** + * IP security restrictions for scm. + */ + scmIpSecurityRestrictions?: IpSecurityRestriction[]; + /** + * IP security restrictions for scm to use main. + */ + scmIpSecurityRestrictionsUseMain?: boolean; + /** + * Http20Enabled: configures a web site to allow clients to connect over http2.0. Default value: + * true. + */ + http20Enabled?: boolean; + /** + * MinTlsVersion: configures the minimum version of TLS required for SSL requests. Possible + * values include: '1.0', '1.1', '1.2' + */ + minTlsVersion?: SupportedTlsVersions; + /** + * State of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled' + */ + ftpsState?: FtpsState; + /** + * Number of reserved instances. + * This setting only applies to the Consumption Plan + */ + reservedInstanceCount?: number; +} + +/** + * A snapshot of a web app configuration. + */ +export interface SiteConfigurationSnapshotInfo extends ProxyOnlyResource { + /** + * The time the snapshot was taken. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly time?: Date; + /** + * The id of the snapshot + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snapshotId?: number; +} + +/** + * Site Extension Information. + */ +export interface SiteExtensionInfo extends ProxyOnlyResource { + /** + * Site extension ID. + */ + extensionId?: string; + title?: string; + /** + * Site extension type. Possible values include: 'Gallery', 'WebRoot' + */ + extensionType?: SiteExtensionType; + /** + * Summary description. + */ + summary?: string; + /** + * Detailed description. + */ + description?: string; + /** + * Version information. + */ + version?: string; + /** + * Extension URL. + */ + extensionUrl?: string; + /** + * Project URL. + */ + projectUrl?: string; + /** + * Icon URL. + */ + iconUrl?: string; + /** + * License URL. + */ + licenseUrl?: string; + /** + * Feed URL. + */ + feedUrl?: string; + /** + * List of authors. + */ + authors?: string[]; + /** + * Installer command line parameters. + */ + installerCommandLineParams?: string; + /** + * Published timestamp. + */ + publishedDateTime?: Date; + /** + * Count of downloads. + */ + downloadCount?: number; + /** + * true if the local version is the latest version; false otherwise. + */ + localIsLatestVersion?: boolean; + /** + * Local path. + */ + localPath?: string; + /** + * Installed timestamp. + */ + installedDateTime?: Date; + /** + * Provisioning state. + */ + provisioningState?: string; + /** + * Site Extension comment. + */ + comment?: string; +} + +/** + * Instance of an app. + */ +export interface SiteInstance extends ProxyOnlyResource { + /** + * Name of instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly siteInstanceName?: string; +} + +/** + * Configuration of App Service site logs. + */ +export interface SiteLogsConfig extends ProxyOnlyResource { + /** + * Application logs configuration. + */ + applicationLogs?: ApplicationLogsConfig; + /** + * HTTP logs configuration. + */ + httpLogs?: HttpLogsConfig; + /** + * Failed requests tracing configuration. + */ + failedRequestsTracing?: EnabledConfig; + /** + * Detailed error messages configuration. + */ + detailedErrorMessages?: EnabledConfig; +} + +/** + * ARM resource for a site. + */ +export interface SitePatchResource extends ProxyOnlyResource { + /** + * Current state of the app. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: string; + /** + * Hostnames associated with the app. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostNames?: string[]; + /** + * Name of the repository site. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly repositorySiteName?: string; + /** + * 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; + /** + * true if the app is enabled; otherwise, false. Setting this value to + * false disables the app (takes the app offline). + */ + enabled?: boolean; + /** + * 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[]; + /** + * 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; + /** + * Hostname SSL states are used to manage the SSL bindings for app's hostnames. + */ + hostNameSslStates?: HostNameSslState[]; + /** + * Resource ID of the associated App Service plan, formatted as: + * "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + */ + serverFarmId?: string; + /** + * true if reserved; otherwise, false. Default value: false. + */ + reserved?: boolean; + /** + * Obsolete: Hyper-V sandbox. Default value: false. + */ + isXenon?: boolean; + /** + * Hyper-V sandbox. Default value: false. + */ + hyperV?: boolean; + /** + * 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; + /** + * Configuration of the app. + */ + siteConfig?: SiteConfig; + /** + * 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[]; + /** + * true to stop SCM (KUDU) site when the app is stopped; otherwise, + * false. The default is false. Default value: false. + */ + scmSiteAlsoStopped?: boolean; + /** + * 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; + /** + * App Service Environment to use for the app. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * 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; + /** + * true to enable client certificate authentication (TLS mutual authentication); + * otherwise, false. Default is false. + */ + clientCertEnabled?: boolean; + /** + * client certificate authentication comma-separated exclusion paths + */ + clientCertExclusionPaths?: string; + /** + * true to disable the public hostnames of the app; otherwise, false. + * If true, the app is only accessible via API management process. + */ + hostNamesDisabled?: boolean; + /** + * 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; + /** + * 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; + /** + * Size of the function container. + */ + containerSize?: number; + /** + * Maximum allowed daily memory-time quota (applicable on dynamic apps only). + */ + dailyMemoryTimeQuota?: number; + /** + * 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; + /** + * 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; + /** + * If specified during app creation, the app is cloned from a source app. + */ + cloningInfo?: CloningInfo; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * HttpsOnly: configures a web site to accept only https requests. Issues redirect for + * http requests + */ + httpsOnly?: boolean; + /** + * Site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', + * 'GeoRedundant' + */ + redundancyMode?: RedundancyMode; + /** + * Specifies an operation id if this site has a pending operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inProgressOperationId?: string; + /** + * GeoDistributions for this site + */ + geoDistributions?: GeoDistribution[]; + identity?: ManagedServiceIdentity; +} + +/** + * Used for getting PHP error logging flag. + */ +export interface SitePhpErrorLogFlag extends ProxyOnlyResource { + /** + * Local log_errors setting. + */ + localLogErrors?: string; + /** + * Master log_errors setting. + */ + masterLogErrors?: string; + /** + * Local log_errors_max_len setting. + */ + localLogErrorsMaxLength?: string; + /** + * Master log_errors_max_len setting. + */ + masterLogErrorsMaxLength?: string; +} + +/** + * Source control configuration for an app. + */ +export interface SiteSourceControl extends ProxyOnlyResource { + /** + * Repository or source control URL. + */ + repoUrl?: string; + /** + * Name of branch to use for deployment. + */ + branch?: string; + /** + * true to limit to manual integration; false to enable continuous + * integration (which configures webhooks into online repos like GitHub). + */ + isManualIntegration?: boolean; + /** + * true to enable deployment rollback; otherwise, false. + */ + deploymentRollbackEnabled?: boolean; + /** + * true for a Mercurial repository; false for a Git repository. + */ + isMercurial?: boolean; +} + +/** + * Slot Config names azure resource. + */ +export interface SlotConfigNamesResource extends ProxyOnlyResource { + /** + * List of connection string names. + */ + connectionStringNames?: string[]; + /** + * List of application settings names. + */ + appSettingNames?: string[]; + /** + * List of external Azure storage account identifiers. + */ + azureStorageConfigNames?: string[]; +} + +/** + * A setting difference between two deployment slots of an app. + */ +export interface SlotDifference extends ProxyOnlyResource { + /** + * 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; + /** + * 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; + /** + * 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; + /** + * Name of the setting. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly settingName?: string; + /** + * 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; + /** + * 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; + /** + * Description of the setting difference. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * Specifies the web app that snapshot contents will be retrieved from. + */ +export interface SnapshotRecoverySource { + /** + * Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS + */ + location?: string; + /** + * 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; +} + +/** + * Details about app recovery operation. + */ +export interface SnapshotRestoreRequest extends ProxyOnlyResource { + /** + * Point in time in which the app restore should be done, formatted as a DateTime string. + */ + snapshotTime?: string; + /** + * 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; + /** + * If true the restore operation can overwrite source app; otherwise, + * false. + */ + overwrite: boolean; + /** + * If true, site configuration, in addition to content, will be reverted. + */ + recoverConfiguration?: boolean; + /** + * 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; + /** + * If true, the snapshot is retrieved from DRSecondary endpoint. + */ + useDRSecondary?: boolean; +} + +/** + * Options for app content migration. + */ +export interface StorageMigrationOptions extends ProxyOnlyResource { + /** + * AzureFiles connection string. + */ + azurefilesConnectionString: string; + /** + * AzureFiles share. + */ + azurefilesShare: string; + /** + * trueif the app should be switched over; otherwise, false. Default + * value: false. + */ + switchSiteAfterMigration?: boolean; + /** + * true if the app should be read only during copy operation; otherwise, + * false. Default value: false. + */ + blockWriteAccessToSite?: boolean; +} + +/** + * Response for a migration of app content request. + */ +export interface StorageMigrationResponse extends ProxyOnlyResource { + /** + * 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; +} + +/** + * String dictionary resource. + */ +export interface StringDictionary extends ProxyOnlyResource { + /** + * Settings. + */ + properties?: { [propertyName: string]: string }; +} + +/** + * Swift Virtual Network Contract. This is used to enable the new Swift way of doing virtual + * network integration. + */ +export interface SwiftVirtualNetwork extends ProxyOnlyResource { + /** + * 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; + /** + * A flag that specifies if the scale unit this Web App is on supports Swift integration. + */ + swiftSupported?: boolean; +} + +/** + * Triggered Web Job Run Information. + */ +export interface TriggeredJobRun extends ProxyOnlyResource { + /** + * Job ID. + */ + webJobId?: string; + /** + * Job name. + */ + webJobName?: string; + /** + * Job status. Possible values include: 'Success', 'Failed', 'Error' + */ + status?: TriggeredWebJobStatus; + /** + * Start time. + */ + startTime?: Date; + /** + * End time. + */ + endTime?: Date; + /** + * Job duration. + */ + duration?: string; + /** + * Output URL. + */ + outputUrl?: string; + /** + * Error URL. + */ + errorUrl?: string; + /** + * Job URL. + */ + url?: string; + /** + * Job name. + */ + jobName?: string; + /** + * Job trigger. + */ + trigger?: string; +} + +/** + * Triggered Web Job History. List of Triggered Web Job Run Information elements. + */ +export interface TriggeredJobHistory extends ProxyOnlyResource { + /** + * List of triggered web job runs. + */ + runs?: TriggeredJobRun[]; +} + +/** + * Triggered Web Job Information. + */ +export interface TriggeredWebJob extends ProxyOnlyResource { + /** + * Latest job run information. + */ + latestRun?: TriggeredJobRun; + /** + * History URL. + */ + historyUrl?: string; + /** + * Scheduler Logs URL. + */ + schedulerLogsUrl?: string; + /** + * Run command. + */ + runCommand?: string; + /** + * Job URL. + */ + url?: string; + /** + * Extra Info URL. + */ + extraInfoUrl?: string; + /** + * Job type. Possible values include: 'Continuous', 'Triggered' + */ + webJobType?: WebJobType; + /** + * Error information. + */ + error?: string; + /** + * Using SDK? + */ + usingSdk?: boolean; + /** + * Job settings. + */ + settings?: { [propertyName: string]: any }; +} + +/** + * Web Job Information. + */ +export interface WebJob extends ProxyOnlyResource { + /** + * Run command. + */ + runCommand?: string; + /** + * Job URL. + */ + url?: string; + /** + * Extra Info URL. + */ + extraInfoUrl?: string; + /** + * Job type. Possible values include: 'Continuous', 'Triggered' + */ + webJobType?: WebJobType; + /** + * Error information. + */ + error?: string; + /** + * Using SDK? + */ + usingSdk?: boolean; + /** + * Job settings. + */ + settings?: { [propertyName: string]: any }; +} + +/** + * App Service billing entity that contains information about meter which the Azure billing system + * utilizes to charge users for services. + */ +export interface BillingMeter extends ProxyOnlyResource { + /** + * Meter GUID onboarded in Commerce + */ + meterId?: string; + /** + * Azure Location of billable resource + */ + billingLocation?: string; + /** + * Short Name from App Service Azure pricing Page + */ + shortName?: string; + /** + * Friendly name of the meter + */ + friendlyName?: string; + /** + * App Service ResourceType meter used for + */ + resourceType?: string; + /** + * App Service OS type meter used for + */ + osType?: string; +} + +/** + * Object with a list of the resources that need to be moved and the resource group they should be + * moved to. + */ +export interface CsmMoveResourceEnvelope { + targetResourceGroup?: string; + resources?: string[]; +} + +/** + * Geographical region. + */ +export interface GeoRegion extends ProxyOnlyResource { + /** + * Region description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Display name for region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; +} + +/** + * Information needed to create resources on an App Service Environment. + */ +export interface HostingEnvironmentDeploymentInfo { + /** + * Name of the App Service Environment. + */ + name?: string; + /** + * Location of the App Service Environment. + */ + location?: string; +} + +/** + * List of available locations (regions or App Service Environments) for + * deployment of App Service resources. + */ +export interface DeploymentLocations { + /** + * Available regions. + */ + locations?: GeoRegion[]; + /** + * Available App Service Environments with full descriptions of the environments. + */ + hostingEnvironments?: AppServiceEnvironment[]; + /** + * Available App Service Environments with basic information. + */ + hostingEnvironmentDeploymentInfos?: HostingEnvironmentDeploymentInfo[]; +} + +/** + * A Global SKU Description. + */ +export interface GlobalCsmSkuDescription { + /** + * Name of the resource SKU. + */ + name?: string; + /** + * Service Tier of the resource SKU. + */ + tier?: string; + /** + * Size specifier of the resource SKU. + */ + size?: string; + /** + * Family code of the resource SKU. + */ + family?: string; + /** + * Min, max, and default scale values of the SKU. + */ + capacity?: SkuCapacity; + /** + * Locations of the SKU. + */ + locations?: string[]; + /** + * Capabilities of the SKU, e.g., is traffic manager enabled? + */ + capabilities?: Capability[]; +} + +/** + * Premier add-on offer. + */ +export interface PremierAddOnOffer extends ProxyOnlyResource { + /** + * Premier add on SKU. + */ + sku?: string; + /** + * Premier add on offer Product. + */ + product?: string; + /** + * Premier add on offer Vendor. + */ + vendor?: string; + /** + * true if promotion code is required; otherwise, false. + */ + promoCodeRequired?: boolean; + /** + * Premier add on offer Quota. + */ + quota?: number; + /** + * App Service plans this offer is restricted to. Possible values include: 'None', 'Free', + * 'Shared', 'Basic', 'Standard', 'Premium' + */ + webHostingPlanRestrictions?: AppServicePlanRestrictions; + /** + * Privacy policy URL. + */ + privacyPolicyUrl?: string; + /** + * Legal terms URL. + */ + legalTermsUrl?: string; + /** + * Marketplace publisher. + */ + marketplacePublisher?: string; + /** + * Marketplace offer. + */ + marketplaceOffer?: string; +} + +/** + * Information regarding availability of a resource name. + */ +export interface ResourceNameAvailability { + /** + * true indicates name is valid and available. false indicates the name + * is invalid, unavailable, or both. + */ + nameAvailable?: boolean; + /** + * 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; + /** + * 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; +} + +/** + * Resource name availability request content. + */ +export interface ResourceNameAvailabilityRequest { + /** + * Resource name to verify. + */ + name: string; + /** + * 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; + /** + * Is fully qualified domain name. + */ + isFqdn?: boolean; +} + +/** + * Collection of SKU information. + */ +export interface SkuInfos { + /** + * Resource type that this SKU applies to. + */ + resourceType?: string; + /** + * List of SKUs the subscription is able to use. + */ + skus?: GlobalCsmSkuDescription[]; +} + +/** + * The source control OAuth token. + */ +export interface SourceControl extends ProxyOnlyResource { + /** + * OAuth access token. + */ + token?: string; + /** + * OAuth access token secret. + */ + tokenSecret?: string; + /** + * OAuth refresh token. + */ + refreshToken?: string; + /** + * OAuth token expiration. + */ + expirationTime?: Date; +} + +/** + * Container settings validation request context + */ +export interface ValidateContainerSettingsRequest { + /** + * Base URL of the container registry + */ + baseUrl?: string; + /** + * Username for to access the container registry + */ + username?: string; + /** + * Password for to access the container registry + */ + password?: string; + /** + * Repository name (image name) + */ + repository?: string; + /** + * Image tag + */ + tag?: string; + /** + * Platform (windows or linux) + */ + platform?: string; +} + +/** + * Resource validation request content. + */ +export interface ValidateRequest { + /** + * Resource name to verify. + */ + name: string; + /** + * Resource type used for verification. Possible values include: 'ServerFarm', 'Site' + */ + type: ValidateResourceTypes; + /** + * Expected location of the resource. + */ + location: string; + /** + * ARM resource ID of an App Service plan that would host the app. + */ + serverFarmId?: string; + /** + * Name of the target SKU for the App Service plan. + */ + skuName?: string; + /** + * true if App Service plan is for Linux workers; otherwise, false. + */ + needLinuxWorkers?: boolean; + /** + * true if App Service plan is for Spot instances; otherwise, false. + */ + isSpot?: boolean; + /** + * Target capacity of the App Service plan (number of VMs). + */ + capacity?: number; + /** + * Name of App Service Environment where app or App Service plan should be created. + */ + hostingEnvironment?: string; + /** + * true if App Service plan is running as a windows container + */ + isXenon?: boolean; +} + +/** + * Error details for when validation fails. + */ +export interface ValidateResponseError { + /** + * Validation error code. + */ + code?: string; + /** + * Validation error message. + */ + message?: string; +} + +/** + * Describes the result of resource validation. + */ +export interface ValidateResponse { + /** + * Result of validation. + */ + status?: string; + /** + * Error details for the case when validation fails. + */ + error?: ValidateResponseError; +} + +/** + * The required set of inputs to validate a VNET + */ +export interface VnetParameters extends ProxyOnlyResource { + /** + * The Resource Group of the VNET to be validated + */ + vnetResourceGroup?: string; + /** + * The name of the VNET to be validated + */ + vnetName?: string; + /** + * The subnet name to be validated + */ + vnetSubnetName?: string; +} + +/** + * A class that describes a test that failed during NSG and UDR validation. + */ +export interface VnetValidationTestFailure extends ProxyOnlyResource { + /** + * The name of the test that failed. + */ + testName?: string; + /** + * The details of what caused the failure, e.g. the blocking rule name, etc. + */ + details?: string; +} + +/** + * A class that describes the reason for a validation failure. + */ +export interface VnetValidationFailureDetails extends ProxyOnlyResource { + /** + * A flag describing whether or not validation failed. + */ + failed?: boolean; + /** + * A list of tests that failed in the validation. + */ + failedTests?: VnetValidationTestFailure[]; +} + +/** + * ARM resource for a app service plan. + */ +export interface AppServicePlanPatchResource extends ProxyOnlyResource { + /** + * Target worker tier assigned to the App Service plan. + */ + workerTierName?: string; + /** + * 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; + /** + * App Service plan subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subscription?: string; + /** + * Specification for the App Service Environment to use for the App Service plan. + */ + hostingEnvironmentProfile?: HostingEnvironmentProfile; + /** + * 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; + /** + * 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; + /** + * 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; + /** + * Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan + */ + maximumElasticWorkerCount?: number; + /** + * 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; + /** + * If true, this App Service Plan owns spot instances. + */ + isSpot?: boolean; + /** + * The time when the server farm expires. Valid only if it is a spot server farm. + */ + spotExpirationTime?: Date; + /** + * The time when the server farm free offer expires. + */ + freeOfferExpirationTime?: Date; + /** + * 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; + /** + * If Linux app service plan true, false otherwise. Default value: + * false. + */ + reserved?: boolean; + /** + * Obsolete: If Hyper-V container app service plan true, false + * otherwise. Default value: false. + */ + isXenon?: boolean; + /** + * If Hyper-V container app service plan true, false otherwise. Default + * value: false. + */ + hyperV?: boolean; + /** + * Scaling worker count. + */ + targetWorkerCount?: number; + /** + * Scaling worker size ID. + */ + targetWorkerSizeId?: number; + /** + * 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; +} + +/** + * Hybrid Connection limits contract. This is used to return the plan limits of Hybrid Connections. + */ +export interface HybridConnectionLimits extends ProxyOnlyResource { + /** + * The current number of Hybrid Connections. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly current?: number; + /** + * 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; +} + +/** + * Application stack minor version. + */ +export interface StackMinorVersion { + /** + * Application stack minor version (display only). + */ + displayVersion?: string; + /** + * Application stack minor version (runtime only). + */ + runtimeVersion?: string; + /** + * true if this is the default minor version; otherwise, false. + */ + isDefault?: boolean; + /** + * true if this supports Remote Debugging, otherwise false. + */ + isRemoteDebuggingEnabled?: boolean; +} + +/** + * Application stack major version. + */ +export interface StackMajorVersion { + /** + * Application stack major version (display only). + */ + displayVersion?: string; + /** + * Application stack major version (runtime only). + */ + runtimeVersion?: string; + /** + * true if this is the default major version; otherwise, false. + */ + isDefault?: boolean; + /** + * Minor versions associated with the major version. + */ + minorVersions?: StackMinorVersion[]; + /** + * true if this supports Application Insights; otherwise, false. + */ + applicationInsights?: boolean; +} + +/** + * Application stack. + */ +export interface ApplicationStack { + /** + * Application stack name. + */ + name?: string; + /** + * Application stack display name. + */ + display?: string; + /** + * Application stack dependency. + */ + dependency?: string; + /** + * List of major versions available. + */ + majorVersions?: StackMajorVersion[]; + /** + * List of frameworks associated with application stack. + */ + frameworks?: ApplicationStack[]; +} + +/** + * Represents a recommendation result generated by the recommendation engine. + */ +export interface Recommendation extends ProxyOnlyResource { + /** + * Timestamp when this instance was created. + */ + creationTime?: Date; + /** + * A GUID value that each recommendation object is associated with. + */ + recommendationId?: string; + /** + * Full ARM resource ID string that this recommendation object is associated with. + */ + resourceId?: string; + /** + * Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site. + * Possible values include: 'ServerFarm', 'Subscription', 'WebSite' + */ + resourceScope?: ResourceScopeType; + /** + * Unique name of the rule. + */ + ruleName?: string; + /** + * UI friendly name of the rule (may not be unique). + */ + displayName?: string; + /** + * Recommendation text. + */ + message?: string; + /** + * Level indicating how critical this recommendation can impact. Possible values include: + * 'Critical', 'Warning', 'Information', 'NonUrgentSuggestion' + */ + level?: NotificationLevel; + /** + * List of channels that this recommendation can apply. Possible values include: 'Notification', + * 'Api', 'Email', 'Webhook', 'All' + */ + channels?: Channels; + /** + * 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[]; + /** + * Name of action recommended by this object. + */ + actionName?: string; + /** + * True if this recommendation is still valid (i.e. "actionable"). False if it is invalid. + */ + enabled?: number; + /** + * The list of states of this recommendation. If it's null then it should be considered "Active". + */ + states?: string[]; + /** + * The beginning time in UTC of a range that the recommendation refers to. + */ + startTime?: Date; + /** + * The end time in UTC of a range that the recommendation refers to. + */ + endTime?: Date; + /** + * When to notify this recommendation next in UTC. Null means that this will never be notified + * anymore. + */ + nextNotificationTime?: Date; + /** + * Date and time in UTC when this notification expires. + */ + notificationExpirationTime?: Date; + /** + * Last timestamp in UTC this instance was actually notified. Null means that this recommendation + * hasn't been notified yet. + */ + notifiedTime?: Date; + /** + * A metric value measured by the rule. + */ + score?: number; + /** + * True if this is associated with a dynamically added rule + */ + isDynamic?: boolean; + /** + * Extension name of the portal if exists. + */ + extensionName?: string; + /** + * Deep link to a blade on the portal. + */ + bladeName?: string; + /** + * Forward link to an external document associated with the rule. + */ + forwardLink?: string; +} + +/** + * Represents a recommendation rule that the recommendation engine can perform. + */ +export interface RecommendationRule extends ProxyOnlyResource { + /** + * Unique name of the rule. + */ + recommendationName?: string; + /** + * UI friendly name of the rule. + */ + displayName?: string; + /** + * Localized name of the rule (Good for UI). + */ + message?: string; + /** + * 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; + /** + * Localized detailed description of the rule. + */ + description?: string; + /** + * Name of action that is recommended by this rule in string. + */ + actionName?: string; + /** + * Level of impact indicating how critical this rule is. Possible values include: 'Critical', + * 'Warning', 'Information', 'NonUrgentSuggestion' + */ + level?: NotificationLevel; + /** + * List of available channels that this rule applies. Possible values include: 'Notification', + * 'Api', 'Email', 'Webhook', 'All' + */ + channels?: Channels; + /** + * 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[]; + /** + * True if this is associated with a dynamically added rule + */ + isDynamic?: boolean; + /** + * Extension name of the portal if exists. Applicable to dynamic rule only. + */ + extensionName?: string; + /** + * Deep link to a blade on the portal. Applicable to dynamic rule only. + */ + bladeName?: string; + /** + * Forward link to an external document associated with the rule. Applicable to dynamic rule + * only. + */ + forwardLink?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to include deployment slots in results. The default is false, + * which only gives you the production slot of all apps. + */ + includeSlots?: boolean; +} + +/** + * Optional Parameters. + */ +export interface WebAppsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * If true, web app metrics are also deleted. + */ + deleteMetrics?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsAnalyzeCustomHostnameOptionalParams extends msRest.RequestOptionsBase { + /** + * Custom hostname. + */ + hostName?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify "true" to include metric details in the response. It is "false" by default. + */ + details?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsStartWebSiteNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsStartWebSiteNetworkTraceOperationOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListPerfMonCountersOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsRestartOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * Specify true to block until the app is restarted. By default, it is set to false, and the API + * responds immediately (asynchronous). + */ + synchronous?: boolean; +} + +/** + * Optional Parameters. + */ +export interface WebAppsDeleteSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * If true, web app metrics are also deleted. + */ + deleteMetrics?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsAnalyzeCustomHostnameSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * Custom hostname. + */ + hostName?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListMetricsSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify "true" to include metric details in the response. It is "false" by default. + */ + details?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsStartWebSiteNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsStartWebSiteNetworkTraceOperationSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListPerfMonCountersSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsRestartSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * Specify true to block until the app is restarted. By default, it is set to false, and the API + * responds immediately (asynchronous). + */ + synchronous?: boolean; +} + +/** + * Optional Parameters. + */ +export interface WebAppsStartNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListUsagesSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsStartNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface WebAppsBeginStartWebSiteNetworkTraceOperationOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsBeginStartWebSiteNetworkTraceOperationSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsBeginStartNetworkTraceSlotOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebAppsBeginStartNetworkTraceOptionalParams extends msRest.RequestOptionsBase { + /** + * The duration to keep capturing in seconds. + */ + durationInSeconds?: number; + /** + * The maximum frame length in bytes (Optional). + */ + maxFrameLength?: number; + /** + * The Blob URL to store capture file. + */ + sasUrl?: string; +} + +/** + * Optional Parameters. + */ +export interface WebSiteManagementClientListBillingMetersOptionalParams extends msRest.RequestOptionsBase { + /** + * Azure Location of billable resource + */ + billingLocation?: string; + /** + * App Service OS type meters used for + */ + osType?: string; +} + +/** + * Optional Parameters. + */ +export interface WebSiteManagementClientCheckNameAvailabilityOptionalParams extends msRest.RequestOptionsBase { + /** + * Is fully qualified domain name. + */ + isFqdn?: boolean; +} + +/** + * Optional Parameters. + */ +export interface WebSiteManagementClientListGeoRegionsOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', + * 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' + */ + sku?: SkuName; + /** + * Specify true if you want to filter to only regions that support Linux workers. + */ + linuxWorkersEnabled?: boolean; + /** + * Specify true if you want to filter to only regions that support Xenon workers. + */ + xenonWorkersEnabled?: boolean; + /** + * Specify true if you want to filter to only regions that support Linux Consumption + * Workers. + */ + linuxDynamicWorkersEnabled?: boolean; +} + +/** + * Optional Parameters. + */ +export interface WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of the object. + */ + name?: string; +} + +/** + * Optional Parameters. + */ +export interface AppServicePlansListOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface AppServicePlansListMetricsOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to include instance details. The default is false. + */ + details?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface AppServicePlansRestartWebAppsOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to perform 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; +} + +/** + * Optional Parameters. + */ +export interface AppServicePlansListWebAppsOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * Supported filter: $filter=state eq running. Returns only web apps that are currently running + */ + filter?: string; + /** + * List page size. If specified, results are paged. + */ + top?: string; +} + +/** + * Optional Parameters. + */ +export interface AppServicePlansListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface ProviderGetAvailableStacksOptionalParams extends msRest.RequestOptionsBase { + /** + * Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' + */ + osTypeSelected?: OsTypeSelected; +} + +/** + * Optional Parameters. + */ +export interface ProviderGetAvailableStacksOnPremOptionalParams extends msRest.RequestOptionsBase { + /** + * Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' + */ + osTypeSelected?: OsTypeSelected1; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to return only the most critical recommendations. The default is + * false, which returns all recommendations. + */ + featured?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsListHistoryForHostingEnvironmentOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify false to return all recommendations. The default is true, + * which returns only expired recommendations. + */ + expiredOnly?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to return only the most critical recommendations. The default is + * false, which returns all recommendations. + */ + featured?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to update the last-seen timestamp of the recommendation object. + */ + updateSeen?: boolean; + /** + * The GUID of the recommendation object if you query an expired one. You don't need to specify + * it to query an active entry. + */ + recommendationId?: string; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsListHistoryForWebAppOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify false to return all recommendations. The default is true, + * which returns only expired recommendations. + */ + expiredOnly?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsListRecommendedRulesForWebAppOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to return only the most critical recommendations. The default is + * false, which returns all recommendations. + */ + featured?: boolean; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface RecommendationsGetRuleDetailsByWebAppOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify true to update the last-seen timestamp of the recommendation object. + */ + updateSeen?: boolean; + /** + * The GUID of the recommendation object if you query an expired one. You don't need to specify + * it to query an active entry. + */ + recommendationId?: string; +} + +/** + * An interface representing WebSiteManagementClientOptions. + */ +export interface WebSiteManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Collection of certificates. + * @extends Array + */ +export interface CertificateCollection extends Array { + /** + * 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 + * Collection of App Service apps. + * @extends Array + */ +export interface WebAppCollection extends Array { + /** + * 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 + * Collection of backup items. + * @extends Array + */ +export interface BackupItemCollection extends Array { + /** + * 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 + * Collection of site configurations. + * @extends Array + */ +export interface SiteConfigResourceCollection extends Array { + /** + * 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 + * Collection of metadata for the app configuration snapshots that can be restored. + * @extends Array + */ +export interface SiteConfigurationSnapshotInfoCollection extends Array { + /** + * 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 + * Collection of Kudu continuous web job information elements. + * @extends Array + */ +export interface ContinuousWebJobCollection extends Array { + /** + * 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 + * Collection of app deployments. + * @extends Array + */ +export interface DeploymentCollection extends Array { + /** + * 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 + * Collection of identifiers. + * @extends Array + */ +export interface IdentifierCollection extends Array { + /** + * 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 + * Collection of Kudu function information elements. + * @extends Array + */ +export interface FunctionEnvelopeCollection extends Array { + /** + * 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 + * Collection of hostname bindings. + * @extends Array + */ +export interface HostNameBindingCollection extends Array { + /** + * 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 + * Collection of app instances. + * @extends Array + */ +export interface WebAppInstanceCollection extends Array { + /** + * 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 + * Collection of Kudu process information elements. + * @extends Array + */ +export interface ProcessInfoCollection extends Array { + /** + * 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 + * Collection of Kudu thread information elements. + * @extends Array + */ +export interface ProcessModuleInfoCollection extends Array { + /** + * 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 + * Collection of Kudu thread information elements. + * @extends Array + */ +export interface ProcessThreadInfoCollection extends Array { + /** + * 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 + * Collection of metric definitions. + * @extends Array + */ +export interface ResourceMetricDefinitionCollection extends Array { + /** + * 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 + * Collection of metric responses. + * @extends Array + */ +export interface ResourceMetricCollection extends Array { + /** + * 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 + * Collection of performance monitor counters. + * @extends Array + */ +export interface PerfMonCounterCollection extends Array { + /** + * 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 + * Collection of public certificates + * @extends Array + */ +export interface PublicCertificateCollection extends Array { + /** + * 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 + * Collection of Kudu site extension information elements. + * @extends Array + */ +export interface SiteExtensionInfoCollection extends Array { + /** + * 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 + * Collection of slot differences. + * @extends Array + */ +export interface SlotDifferenceCollection extends Array { + /** + * 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 + * Collection of snapshots which can be used to revert an app to a previous time. + * @extends Array + */ +export interface SnapshotCollection extends Array { + /** + * 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 + * Collection of Kudu continuous web job information elements. + * @extends Array + */ +export interface TriggeredWebJobCollection extends Array { + /** + * 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 + * Collection of Kudu continuous web job information elements. + * @extends Array + */ +export interface TriggeredJobHistoryCollection extends Array { + /** + * 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 + * Collection of CSM usage quotas. + * @extends Array + */ +export interface CsmUsageQuotaCollection extends Array { + /** + * 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 + * Collection of Kudu web job information elements. + * @extends Array + */ +export interface WebJobCollection extends Array { + /** + * 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 + * Collection of source controls. + * @extends Array + */ +export interface SourceControlCollection extends Array { + /** + * 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 + * Collection of Billing Meters + * @extends Array + */ +export interface BillingMeterCollection extends Array { + /** + * 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 + * Collection of geographical regions. + * @extends Array + */ +export interface GeoRegionCollection extends Array { + /** + * 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 + * Collection of premier add-on offers. + * @extends Array + */ +export interface PremierAddOnOfferCollection extends Array { + /** + * 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 + * Collection of App Service plans. + * @extends Array + */ +export interface AppServicePlanCollection extends Array { + /** + * 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 + * Collection of resources. + * @extends Array + */ +export interface ResourceCollection extends Array { + /** + * 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 + * Collection of hostname bindings. + * @extends Array + */ +export interface HybridConnectionCollection extends Array { + /** + * 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 + * Collection of Application Stacks + * @extends Array + */ +export interface ApplicationStackCollection extends Array { + /** + * 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 + * Collection of Azure resource manager operation metadata. + * @extends Array + */ +export interface CsmOperationCollection extends Array { + /** + * 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 + * Collection of recommendations. + * @extends Array + */ +export interface RecommendationCollection extends Array { + /** + * 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 type KeyVaultSecretStatus = 'Initialized' | 'WaitingOnCertificateOrder' | 'Succeeded' | 'CertificateOrderFailed' | 'OperationNotPermittedOnKeyVault' | 'AzureServiceUnauthorizedToAccessKeyVault' | 'KeyVaultDoesNotExist' | 'KeyVaultSecretDoesNotExist' | 'UnknownError' | 'ExternalPrivateKey' | 'Unknown'; + +/** + * Defines values for RouteType. + * Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + * @readonly + * @enum {string} + */ +export type RouteType = 'DEFAULT' | 'INHERITED' | 'STATIC'; + +/** + * Defines values for ManagedServiceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + * 'None' + * @readonly + * @enum {string} + */ +export type ManagedServiceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; + +/** + * Defines values for IpFilterTag. + * Possible values include: 'Default', 'XffProxy' + * @readonly + * @enum {string} + */ +export type IpFilterTag = 'Default' | 'XffProxy'; + +/** + * Defines values for AutoHealActionType. + * Possible values include: 'Recycle', 'LogEvent', 'CustomAction' + * @readonly + * @enum {string} + */ +export type AutoHealActionType = 'Recycle' | 'LogEvent' | 'CustomAction'; + +/** + * Defines values for ConnectionStringType. + * Possible values include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom', 'NotificationHub', + * 'ServiceBus', 'EventHub', 'ApiHub', 'DocDb', 'RedisCache', 'PostgreSQL' + * @readonly + * @enum {string} + */ +export type ConnectionStringType = 'MySql' | 'SQLServer' | 'SQLAzure' | 'Custom' | 'NotificationHub' | 'ServiceBus' | 'EventHub' | 'ApiHub' | 'DocDb' | 'RedisCache' | 'PostgreSQL'; + +/** + * Defines values for AzureStorageType. + * Possible values include: 'AzureFiles', 'AzureBlob' + * @readonly + * @enum {string} + */ +export type AzureStorageType = 'AzureFiles' | 'AzureBlob'; + +/** + * Defines values for AzureStorageState. + * Possible values include: 'Ok', 'InvalidCredentials', 'InvalidShare' + * @readonly + * @enum {string} + */ +export type AzureStorageState = 'Ok' | 'InvalidCredentials' | 'InvalidShare'; + +/** + * Defines values for ScmType. + * Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', + * 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO' + * @readonly + * @enum {string} + */ +export type ScmType = 'None' | 'Dropbox' | 'Tfs' | 'LocalGit' | 'GitHub' | 'CodePlexGit' | 'CodePlexHg' | 'BitbucketGit' | 'BitbucketHg' | 'ExternalGit' | 'ExternalHg' | 'OneDrive' | 'VSO'; + +/** + * Defines values for ManagedPipelineMode. + * Possible values include: 'Integrated', 'Classic' + * @readonly + * @enum {string} + */ +export type ManagedPipelineMode = 'Integrated' | 'Classic'; + +/** + * Defines values for SiteLoadBalancing. + * Possible values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', + * 'WeightedTotalTraffic', 'RequestHash' + * @readonly + * @enum {string} + */ +export type SiteLoadBalancing = 'WeightedRoundRobin' | 'LeastRequests' | 'LeastResponseTime' | 'WeightedTotalTraffic' | 'RequestHash'; + +/** + * Defines values for SupportedTlsVersions. + * Possible values include: '1.0', '1.1', '1.2' + * @readonly + * @enum {string} + */ +export type SupportedTlsVersions = '1.0' | '1.1' | '1.2'; + +/** + * Defines values for FtpsState. + * Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled' + * @readonly + * @enum {string} + */ +export type FtpsState = 'AllAllowed' | 'FtpsOnly' | 'Disabled'; + +/** + * Defines values for SslState. + * Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @readonly + * @enum {string} + */ +export type SslState = 'Disabled' | 'SniEnabled' | 'IpBasedEnabled'; + +/** + * Defines values for HostType. + * Possible values include: 'Standard', 'Repository' + * @readonly + * @enum {string} + */ +export type HostType = 'Standard' | 'Repository'; + +/** + * Defines values for UsageState. + * Possible values include: 'Normal', 'Exceeded' + * @readonly + * @enum {string} + */ +export type UsageState = 'Normal' | 'Exceeded'; + +/** + * Defines values for SiteAvailabilityState. + * Possible values include: 'Normal', 'Limited', 'DisasterRecoveryMode' + * @readonly + * @enum {string} + */ +export type SiteAvailabilityState = 'Normal' | 'Limited' | 'DisasterRecoveryMode'; + +/** + * Defines values for RedundancyMode. + * Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' + * @readonly + * @enum {string} + */ +export type RedundancyMode = 'None' | 'Manual' | 'Failover' | 'ActiveActive' | 'GeoRedundant'; + +/** + * Defines values for StatusOptions. + * Possible values include: 'Ready', 'Pending', 'Creating' + * @readonly + * @enum {string} + */ +export type StatusOptions = 'Ready' | 'Pending' | 'Creating'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'InProgress' | 'Deleting'; + +/** + * Defines values for HostingEnvironmentStatus. + * Possible values include: 'Preparing', 'Ready', 'Scaling', 'Deleting' + * @readonly + * @enum {string} + */ +export type HostingEnvironmentStatus = 'Preparing' | 'Ready' | 'Scaling' | 'Deleting'; + +/** + * Defines values for InternalLoadBalancingMode. + * Possible values include: 'None', 'Web', 'Publishing' + * @readonly + * @enum {string} + */ +export type InternalLoadBalancingMode = 'None' | 'Web' | 'Publishing'; + +/** + * Defines values for ComputeModeOptions. + * Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * @readonly + * @enum {string} + */ +export type ComputeModeOptions = 'Shared' | 'Dedicated' | 'Dynamic'; + +/** + * Defines values for WorkerSizeOptions. + * Possible values include: 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default' + * @readonly + * @enum {string} + */ +export type WorkerSizeOptions = 'Small' | 'Medium' | 'Large' | 'D1' | 'D2' | 'D3' | 'Default'; + +/** + * Defines values for AccessControlEntryAction. + * Possible values include: 'Permit', 'Deny' + * @readonly + * @enum {string} + */ +export type AccessControlEntryAction = 'Permit' | 'Deny'; + +/** + * Defines values for OperationStatus. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created' + * @readonly + * @enum {string} + */ +export type OperationStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Created'; + +/** + * Defines values for LogLevel. + * Possible values include: 'Off', 'Verbose', 'Information', 'Warning', 'Error' + * @readonly + * @enum {string} + */ +export type LogLevel = 'Off' | 'Verbose' | 'Information' | 'Warning' | 'Error'; + +/** + * Defines values for BackupItemStatus. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created', 'Skipped', + * 'PartiallySucceeded', 'DeleteInProgress', 'DeleteFailed', 'Deleted' + * @readonly + * @enum {string} + */ +export type BackupItemStatus = 'InProgress' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Created' | 'Skipped' | 'PartiallySucceeded' | 'DeleteInProgress' | 'DeleteFailed' | 'Deleted'; + +/** + * Defines values for DatabaseType. + * Possible values include: 'SqlAzure', 'MySql', 'LocalMySql', 'PostgreSql' + * @readonly + * @enum {string} + */ +export type DatabaseType = 'SqlAzure' | 'MySql' | 'LocalMySql' | 'PostgreSql'; + +/** + * Defines values for FrequencyUnit. + * Possible values include: 'Day', 'Hour' + * @readonly + * @enum {string} + */ +export type FrequencyUnit = 'Day' | 'Hour'; + +/** + * Defines values for ContinuousWebJobStatus. + * Possible values include: 'Initializing', 'Starting', 'Running', 'PendingRestart', 'Stopped' + * @readonly + * @enum {string} + */ +export type ContinuousWebJobStatus = 'Initializing' | 'Starting' | 'Running' | 'PendingRestart' | 'Stopped'; + +/** + * Defines values for WebJobType. + * Possible values include: 'Continuous', 'Triggered' + * @readonly + * @enum {string} + */ +export type WebJobType = 'Continuous' | 'Triggered'; + +/** + * Defines values for PublishingProfileFormat. + * Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + * @readonly + * @enum {string} + */ +export type PublishingProfileFormat = 'FileZilla3' | 'WebDeploy' | 'Ftp'; + +/** + * Defines values for DnsVerificationTestResult. + * Possible values include: 'Passed', 'Failed', 'Skipped' + * @readonly + * @enum {string} + */ +export type DnsVerificationTestResult = 'Passed' | 'Failed' | 'Skipped'; + +/** + * Defines values for AzureResourceType. + * Possible values include: 'Website', 'TrafficManager' + * @readonly + * @enum {string} + */ +export type AzureResourceType = 'Website' | 'TrafficManager'; + +/** + * Defines values for CustomHostNameDnsRecordType. + * Possible values include: 'CName', 'A' + * @readonly + * @enum {string} + */ +export type CustomHostNameDnsRecordType = 'CName' | 'A'; + +/** + * Defines values for HostNameType. + * Possible values include: 'Verified', 'Managed' + * @readonly + * @enum {string} + */ +export type HostNameType = 'Verified' | 'Managed'; + +/** + * Defines values for MSDeployLogEntryType. + * Possible values include: 'Message', 'Warning', 'Error' + * @readonly + * @enum {string} + */ +export type MSDeployLogEntryType = 'Message' | 'Warning' | 'Error'; + +/** + * Defines values for MSDeployProvisioningState. + * Possible values include: 'accepted', 'running', 'succeeded', 'failed', 'canceled' + * @readonly + * @enum {string} + */ +export type MSDeployProvisioningState = 'accepted' | 'running' | 'succeeded' | 'failed' | 'canceled'; + +/** + * Defines values for MySqlMigrationType. + * Possible values include: 'LocalToRemote', 'RemoteToLocal' + * @readonly + * @enum {string} + */ +export type MySqlMigrationType = 'LocalToRemote' | 'RemoteToLocal'; + +/** + * Defines values for PublicCertificateLocation. + * Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + * @readonly + * @enum {string} + */ +export type PublicCertificateLocation = 'CurrentUserMy' | 'LocalMachineMy' | 'Unknown'; + +/** + * Defines values for BackupRestoreOperationType. + * Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS' + * @readonly + * @enum {string} + */ +export type BackupRestoreOperationType = 'Default' | 'Clone' | 'Relocation' | 'Snapshot' | 'CloudFS'; + +/** + * Defines values for UnauthenticatedClientAction. + * Possible values include: 'RedirectToLoginPage', 'AllowAnonymous' + * @readonly + * @enum {string} + */ +export type UnauthenticatedClientAction = 'RedirectToLoginPage' | 'AllowAnonymous'; + +/** + * Defines values for BuiltInAuthenticationProvider. + * Possible values include: 'AzureActiveDirectory', 'Facebook', 'Google', 'MicrosoftAccount', + * 'Twitter' + * @readonly + * @enum {string} + */ +export type BuiltInAuthenticationProvider = 'AzureActiveDirectory' | 'Facebook' | 'Google' | 'MicrosoftAccount' | 'Twitter'; + +/** + * Defines values for CloneAbilityResult. + * Possible values include: 'Cloneable', 'PartiallyCloneable', 'NotCloneable' + * @readonly + * @enum {string} + */ +export type CloneAbilityResult = 'Cloneable' | 'PartiallyCloneable' | 'NotCloneable'; + +/** + * Defines values for SiteExtensionType. + * Possible values include: 'Gallery', 'WebRoot' + * @readonly + * @enum {string} + */ +export type SiteExtensionType = 'Gallery' | 'WebRoot'; + +/** + * Defines values for TriggeredWebJobStatus. + * Possible values include: 'Success', 'Failed', 'Error' + * @readonly + * @enum {string} + */ +export type TriggeredWebJobStatus = 'Success' | 'Failed' | 'Error'; + +/** + * Defines values for AppServicePlanRestrictions. + * Possible values include: 'None', 'Free', 'Shared', 'Basic', 'Standard', 'Premium' + * @readonly + * @enum {string} + */ +export type AppServicePlanRestrictions = 'None' | 'Free' | 'Shared' | 'Basic' | 'Standard' | 'Premium'; + +/** + * Defines values for InAvailabilityReasonType. + * Possible values include: 'Invalid', 'AlreadyExists' + * @readonly + * @enum {string} + */ +export type InAvailabilityReasonType = 'Invalid' | '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' + * @readonly + * @enum {string} + */ +export type CheckNameResourceTypes = 'Site' | 'Slot' | 'HostingEnvironment' | 'PublishingUser' | 'Microsoft.Web/sites' | 'Microsoft.Web/sites/slots' | 'Microsoft.Web/hostingEnvironments' | 'Microsoft.Web/publishingUsers'; + +/** + * Defines values for ValidateResourceTypes. + * Possible values include: 'ServerFarm', 'Site' + * @readonly + * @enum {string} + */ +export type ValidateResourceTypes = 'ServerFarm' | 'Site'; + +/** + * Defines values for ResourceScopeType. + * Possible values include: 'ServerFarm', 'Subscription', 'WebSite' + * @readonly + * @enum {string} + */ +export type ResourceScopeType = 'ServerFarm' | 'Subscription' | 'WebSite'; + +/** + * Defines values for NotificationLevel. + * Possible values include: 'Critical', 'Warning', 'Information', 'NonUrgentSuggestion' + * @readonly + * @enum {string} + */ +export type NotificationLevel = 'Critical' | 'Warning' | 'Information' | 'NonUrgentSuggestion'; + +/** + * Defines values for Channels. + * Possible values include: 'Notification', 'Api', 'Email', 'Webhook', 'All' + * @readonly + * @enum {string} + */ +export type Channels = 'Notification' | 'Api' | 'Email' | 'Webhook' | 'All'; + +/** + * Defines values for SkuName. + * Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', + * 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' + * @readonly + * @enum {string} + */ +export type SkuName = 'Free' | 'Shared' | 'Basic' | 'Standard' | 'Premium' | 'Dynamic' | 'Isolated' | 'PremiumV2' | 'ElasticPremium' | 'ElasticIsolated'; + +/** + * Defines values for OsTypeSelected. + * Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' + * @readonly + * @enum {string} + */ +export type OsTypeSelected = 'Windows' | 'Linux' | 'WindowsFunctions' | 'LinuxFunctions'; + +/** + * Defines values for OsTypeSelected1. + * Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' + * @readonly + * @enum {string} + */ +export type OsTypeSelected1 = 'Windows' | 'Linux' | 'WindowsFunctions' | 'LinuxFunctions'; + +/** + * 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 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 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 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 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 = 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 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 = 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 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 = 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 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 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 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 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 = 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 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 = 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 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 = 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 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 listSnapshotsFromDRSecondarySlot operation. + */ +export type WebAppsListSnapshotsFromDRSecondarySlotResponse = 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 = 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 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 listSnapshotsFromDRSecondary operation. + */ +export type WebAppsListSnapshotsFromDRSecondaryResponse = 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 = 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 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 = 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 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 = 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 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 = 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 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 = 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 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 listSnapshotsFromDRSecondarySlotNext operation. + */ +export type WebAppsListSnapshotsFromDRSecondarySlotNextResponse = 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 listSnapshotsFromDRSecondaryNext operation. + */ +export type WebAppsListSnapshotsFromDRSecondaryNextResponse = 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 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 validateContainerSettings operation. + */ +export type ValidateContainerSettingsResponse = { + /** + * 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 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 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 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 listHistoryForHostingEnvironment operation. + */ +export type RecommendationsListHistoryForHostingEnvironmentResponse = 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 listRecommendedRulesForHostingEnvironment operation. + */ +export type RecommendationsListRecommendedRulesForHostingEnvironmentResponse = 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 getRuleDetailsByHostingEnvironment operation. + */ +export type RecommendationsGetRuleDetailsByHostingEnvironmentResponse = 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 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 listHistoryForHostingEnvironmentNext operation. + */ +export type RecommendationsListHistoryForHostingEnvironmentNextResponse = 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 listRecommendedRulesForHostingEnvironmentNext operation. + */ +export type RecommendationsListRecommendedRulesForHostingEnvironmentNextResponse = 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; + }; +}; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/mappers.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/mappers.ts new file mode 100644 index 000000000000..aa3ad7938afa --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/mappers.ts @@ -0,0 +1,10664 @@ +/* + * 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 "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +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 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 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 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 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 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: "String" + } + }, + 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" + } + }, + isSwift: { + serializedName: "properties.isSwift", + type: { + name: "Boolean" + } + } + } + } +}; + +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" + } + }, + geoRegionName: { + readOnly: true, + serializedName: "properties.geoRegionName", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + 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" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue" + } + } + } + } + } + } +}; + +export const GeoDistribution: msRest.CompositeMapper = { + serializedName: "GeoDistribution", + type: { + name: "Composite", + className: "GeoDistribution", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + numberOfWorkers: { + serializedName: "numberOfWorkers", + type: { + name: "Number" + } + } + } + } +}; + +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" + } + }, + sourceWebAppLocation: { + serializedName: "sourceWebAppLocation", + 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 IpSecurityRestriction: msRest.CompositeMapper = { + serializedName: "IpSecurityRestriction", + type: { + name: "Composite", + className: "IpSecurityRestriction", + modelProperties: { + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + }, + subnetMask: { + serializedName: "subnetMask", + type: { + name: "String" + } + }, + vnetSubnetResourceId: { + serializedName: "vnetSubnetResourceId", + type: { + name: "String" + } + }, + vnetTrafficTag: { + serializedName: "vnetTrafficTag", + type: { + name: "Number" + } + }, + subnetTrafficTag: { + serializedName: "subnetTrafficTag", + type: { + name: "Number" + } + }, + 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" + } + } + } + }, + supportCredentials: { + serializedName: "supportCredentials", + type: { + name: "Boolean" + } + } + } + } +}; + +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" + } + } + } + }, + scmIpSecurityRestrictions: { + serializedName: "scmIpSecurityRestrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpSecurityRestriction" + } + } + } + }, + scmIpSecurityRestrictionsUseMain: { + serializedName: "scmIpSecurityRestrictionsUseMain", + type: { + name: "Boolean" + } + }, + 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" + } + }, + clientCertExclusionPaths: { + serializedName: "properties.clientCertExclusionPaths", + type: { + name: "String" + } + }, + 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" + } + }, + redundancyMode: { + serializedName: "properties.redundancyMode", + type: { + name: "Enum", + allowedValues: [ + "None", + "Manual", + "Failover", + "ActiveActive", + "GeoRedundant" + ] + } + }, + inProgressOperationId: { + readOnly: true, + serializedName: "properties.inProgressOperationId", + type: { + name: "Uuid" + } + }, + geoDistributions: { + serializedName: "properties.geoDistributions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoDistribution" + } + } + } + }, + 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" + } + }, + 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 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 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 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 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 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 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 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 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 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 NameIdentifier: msRest.CompositeMapper = { + serializedName: "NameIdentifier", + type: { + name: "Composite", + className: "NameIdentifier", + modelProperties: { + name: { + serializedName: "name", + 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 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" + } + }, + useDRSecondary: { + serializedName: "properties.useDRSecondary", + type: { + name: "Boolean" + } + } + } + } +}; + +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" + } + }, + clientSecretCertificateThumbprint: { + serializedName: "properties.clientSecretCertificateThumbprint", + 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" + } + } + } + }, + scmIpSecurityRestrictions: { + serializedName: "properties.scmIpSecurityRestrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpSecurityRestriction" + } + } + } + }, + scmIpSecurityRestrictionsUseMain: { + serializedName: "properties.scmIpSecurityRestrictionsUseMain", + type: { + name: "Boolean" + } + }, + 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" + } + }, + clientCertExclusionPaths: { + serializedName: "properties.clientCertExclusionPaths", + type: { + name: "String" + } + }, + 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" + } + }, + redundancyMode: { + serializedName: "properties.redundancyMode", + type: { + name: "Enum", + allowedValues: [ + "None", + "Manual", + "Failover", + "ActiveActive", + "GeoRedundant" + ] + } + }, + inProgressOperationId: { + readOnly: true, + serializedName: "properties.inProgressOperationId", + type: { + name: "Uuid" + } + }, + geoDistributions: { + serializedName: "properties.geoDistributions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoDistribution" + } + } + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + } + } + } +}; + +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" + } + }, + useDRSecondary: { + serializedName: "properties.useDRSecondary", + 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 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 ValidateContainerSettingsRequest: msRest.CompositeMapper = { + serializedName: "ValidateContainerSettingsRequest", + type: { + name: "Composite", + className: "ValidateContainerSettingsRequest", + modelProperties: { + baseUrl: { + serializedName: "baseUrl", + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + }, + platform: { + serializedName: "platform", + type: { + name: "String" + } + } + } + } +}; + +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 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" + } + }, + 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 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" + } + }, + isRemoteDebuggingEnabled: { + serializedName: "isRemoteDebuggingEnabled", + 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" + } + } + } + }, + applicationInsights: { + serializedName: "applicationInsights", + type: { + name: "Boolean" + } + } + } + } +}; + +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 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 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 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 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 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 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 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 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 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 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" + } + } + } + } +}; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/parameters.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/parameters.ts new file mode 100644 index 000000000000..b3ce9881d828 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/parameters.ts @@ -0,0 +1,669 @@ +/* + * 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 "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + 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 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 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 entityName: msRest.OperationURLParameter = { + parameterPath: "entityName", + mapper: { + required: true, + serializedName: "entityName", + type: { + name: "String" + } + } +}; +export const environmentName: msRest.OperationQueryParameter = { + parameterPath: "environmentName", + mapper: { + required: true, + serializedName: "environmentName", + 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 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 hostingEnvironmentName: msRest.OperationURLParameter = { + parameterPath: "hostingEnvironmentName", + mapper: { + required: true, + serializedName: "hostingEnvironmentName", + 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 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 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 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 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 xenonWorkersEnabled: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "xenonWorkersEnabled" + ], + mapper: { + serializedName: "xenonWorkersEnabled", + type: { + name: "Boolean" + } + } +}; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/providerMappers.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/providerMappers.ts new file mode 100644 index 000000000000..df3c3c5e4191 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/providerMappers.ts @@ -0,0 +1,26 @@ +/* + * 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 { + ApplicationStack, + ApplicationStackCollection, + CsmOperationCollection, + CsmOperationDescription, + CsmOperationDescriptionProperties, + CsmOperationDisplay, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + Dimension, + LogSpecification, + MetricAvailability, + MetricSpecification, + ServiceSpecification, + StackMajorVersion, + StackMinorVersion +} from "../models/mappers"; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/recommendationsMappers.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/recommendationsMappers.ts new file mode 100644 index 000000000000..7c6ff21c6cec --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/recommendationsMappers.ts @@ -0,0 +1,138 @@ +/* + * 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 { + ApiDefinitionInfo, + ApplicationLogsConfig, + AppServicePlan, + AppServicePlanPatchResource, + AutoHealActions, + AutoHealCustomAction, + AutoHealRules, + AutoHealTriggers, + AzureBlobStorageApplicationLogsConfig, + AzureBlobStorageHttpLogsConfig, + AzureStorageInfoValue, + AzureStoragePropertyDictionaryResource, + AzureTableStorageApplicationLogsConfig, + BackupItem, + BackupRequest, + BackupSchedule, + BaseResource, + BillingMeter, + Capability, + Certificate, + CertificatePatchResource, + CloningInfo, + CloudError, + ConnectionStringDictionary, + ConnStringInfo, + ConnStringValueTypePair, + ContinuousWebJob, + CorsSettings, + CustomHostnameAnalysisResult, + DatabaseBackupSetting, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DeletedAppRestoreRequest, + DeletedSite, + Deployment, + EnabledConfig, + ErrorEntity, + Experiments, + FileSystemApplicationLogsConfig, + FileSystemHttpLogsConfig, + FunctionEnvelope, + FunctionSecrets, + GeoDistribution, + GeoRegion, + HandlerMapping, + HostingEnvironmentProfile, + HostNameBinding, + HostNameSslState, + HttpLogsConfig, + HybridConnection, + HybridConnectionKey, + HybridConnectionLimits, + Identifier, + IpSecurityRestriction, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + MigrateMySqlRequest, + MigrateMySqlStatus, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + NameValuePair, + NetworkFeatures, + PremierAddOn, + PremierAddOnOffer, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessSubnet, + PrivateAccessVirtualNetwork, + ProcessInfo, + ProcessModuleInfo, + ProcessThreadInfo, + ProxyOnlyResource, + PublicCertificate, + PushSettings, + RampUpRule, + Recommendation, + RecommendationCollection, + RecommendationRule, + RelayServiceConnectionEntity, + RequestsBasedTrigger, + Resource, + ResourceMetricAvailability, + ResourceMetricDefinition, + RestoreRequest, + Site, + SiteAuthSettings, + SiteConfig, + SiteConfigResource, + SiteConfigurationSnapshotInfo, + SiteExtensionInfo, + SiteInstance, + SiteLimits, + SiteLogsConfig, + SiteMachineKey, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SkuCapacity, + SkuDescription, + SlotConfigNamesResource, + SlotDifference, + SlotSwapStatus, + SlowRequestsBasedTrigger, + Snapshot, + SnapshotRecoverySource, + SnapshotRestoreRequest, + SourceControl, + StatusCodesBasedTrigger, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobHistory, + TriggeredJobRun, + TriggeredWebJob, + User, + VirtualApplication, + VirtualDirectory, + VnetGateway, + VnetInfo, + VnetParameters, + VnetRoute, + VnetValidationFailureDetails, + VnetValidationTestFailure, + WebJob +} from "../models/mappers"; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/webAppsMappers.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/webAppsMappers.ts new file mode 100644 index 000000000000..adb06669a3d3 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/models/webAppsMappers.ts @@ -0,0 +1,176 @@ +/* + * 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 { + ApiDefinitionInfo, + ApplicationLogsConfig, + AppServicePlan, + AppServicePlanPatchResource, + AutoHealActions, + AutoHealCustomAction, + AutoHealRules, + AutoHealTriggers, + AzureBlobStorageApplicationLogsConfig, + AzureBlobStorageHttpLogsConfig, + AzureStorageInfoValue, + AzureStoragePropertyDictionaryResource, + AzureTableStorageApplicationLogsConfig, + BackupItem, + BackupItemCollection, + BackupRequest, + BackupSchedule, + BaseResource, + BillingMeter, + Capability, + Certificate, + CertificatePatchResource, + CloningInfo, + CloudError, + ConnectionStringDictionary, + ConnStringInfo, + ConnStringValueTypePair, + ContinuousWebJob, + ContinuousWebJobCollection, + CorsSettings, + CsmPublishingProfileOptions, + CsmSlotEntity, + CsmUsageQuota, + CsmUsageQuotaCollection, + CustomHostnameAnalysisResult, + DatabaseBackupSetting, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DeletedAppRestoreRequest, + DeletedSite, + Deployment, + DeploymentCollection, + EnabledConfig, + ErrorEntity, + Experiments, + FileSystemApplicationLogsConfig, + FileSystemHttpLogsConfig, + FunctionEnvelope, + FunctionEnvelopeCollection, + FunctionSecrets, + GeoDistribution, + GeoRegion, + HandlerMapping, + HostingEnvironmentProfile, + HostNameBinding, + HostNameBindingCollection, + HostNameSslState, + HttpLogsConfig, + HybridConnection, + HybridConnectionKey, + HybridConnectionLimits, + Identifier, + IdentifierCollection, + IpSecurityRestriction, + LocalizableString, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + MigrateMySqlRequest, + MigrateMySqlStatus, + MSDeploy, + MSDeployLog, + MSDeployLogEntry, + MSDeployStatus, + NameValuePair, + NetworkFeatures, + NetworkTrace, + Operation, + PerfMonCounterCollection, + PerfMonResponse, + PerfMonSample, + PerfMonSet, + PremierAddOn, + PremierAddOnOffer, + PremierAddOnPatchResource, + PrivateAccess, + PrivateAccessSubnet, + PrivateAccessVirtualNetwork, + ProcessInfo, + ProcessInfoCollection, + ProcessModuleInfo, + ProcessModuleInfoCollection, + ProcessThreadInfo, + ProcessThreadInfoCollection, + ProxyOnlyResource, + PublicCertificate, + PublicCertificateCollection, + PushSettings, + RampUpRule, + Recommendation, + RecommendationRule, + RelayServiceConnectionEntity, + RequestsBasedTrigger, + Resource, + ResourceMetric, + ResourceMetricAvailability, + ResourceMetricCollection, + ResourceMetricDefinition, + ResourceMetricDefinitionCollection, + ResourceMetricName, + ResourceMetricProperty, + ResourceMetricValue, + RestoreRequest, + Site, + SiteAuthSettings, + SiteCloneability, + SiteCloneabilityCriterion, + SiteConfig, + SiteConfigResource, + SiteConfigResourceCollection, + SiteConfigurationSnapshotInfo, + SiteConfigurationSnapshotInfoCollection, + SiteExtensionInfo, + SiteExtensionInfoCollection, + SiteInstance, + SiteLimits, + SiteLogsConfig, + SiteMachineKey, + SitePatchResource, + SitePhpErrorLogFlag, + SiteSourceControl, + SkuCapacity, + SkuDescription, + SlotConfigNamesResource, + SlotDifference, + SlotDifferenceCollection, + SlotSwapStatus, + SlowRequestsBasedTrigger, + Snapshot, + SnapshotCollection, + SnapshotRecoverySource, + SnapshotRestoreRequest, + SourceControl, + StatusCodesBasedTrigger, + StorageMigrationOptions, + StorageMigrationResponse, + StringDictionary, + SwiftVirtualNetwork, + TriggeredJobHistory, + TriggeredJobHistoryCollection, + TriggeredJobRun, + TriggeredWebJob, + TriggeredWebJobCollection, + User, + VirtualApplication, + VirtualDirectory, + VnetGateway, + VnetInfo, + VnetParameters, + VnetRoute, + VnetValidationFailureDetails, + VnetValidationTestFailure, + WebAppCollection, + WebAppInstanceCollection, + WebJob, + WebJobCollection +} from "../models/mappers"; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/appServicePlans.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/appServicePlans.ts new file mode 100644 index 000000000000..f8f8499c5033 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/appServicePlans.ts @@ -0,0 +1,2332 @@ +/* + * 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 "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/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 subscription. + * @summary Get all App Service plans for a subscription. + * @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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listMetricDefintionsOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for an App Service plan. + * @summary Get metrics for 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 + */ + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listWebAppsOperationSpec, + callback) as Promise; + } + + /** + * Gets all selectable SKUs for a given App Service Plan + * @summary Gets all selectable SKUs 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 subscription. + * @summary Get all App Service plans 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listMetricDefintionsNextOperationSpec, + callback) as Promise; + } + + /** + * Get metrics for an App Service plan. + * @summary Get metrics for an App Service 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 + }, + 201: { + 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/certificates.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/certificates.ts new file mode 100644 index 000000000000..91bf1c0b54c5 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/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 "@azure/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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/index.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/index.ts new file mode 100644 index 000000000000..47516158b8d8 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/index.ts @@ -0,0 +1,15 @@ +/* + * 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 "./certificates"; +export * from "./webApps"; +export * from "./appServicePlans"; +export * from "./provider"; +export * from "./recommendations"; diff --git a/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/provider.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/provider.ts new file mode 100644 index 000000000000..9d215720c1b2 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/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 "@azure/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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/recommendations.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/recommendations.ts new file mode 100644 index 000000000000..80273155c223 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/recommendations.ts @@ -0,0 +1,1158 @@ +/* + * 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 "@azure/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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 hostingEnvironmentName Name of the hosting environment. + * @param [options] The optional parameters + * @returns Promise + */ + listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: Models.RecommendationsListHistoryForHostingEnvironmentOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the hosting environment. + * @param callback The callback + */ + listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the hosting environment. + * @param options The optional parameters + * @param callback The callback + */ + listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options: Models.RecommendationsListHistoryForHostingEnvironmentOptionalParams, callback: msRest.ServiceCallback): void; + listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: Models.RecommendationsListHistoryForHostingEnvironmentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostingEnvironmentName, + options + }, + listHistoryForHostingEnvironmentOperationSpec, + 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 hostingEnvironmentName Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: Models.RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the app. + * @param callback The callback + */ + listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options: Models.RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: Models.RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostingEnvironmentName, + options + }, + listRecommendedRulesForHostingEnvironmentOperationSpec, + 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 environmentName Name of the app. + * @param hostingEnvironmentName + * @param [options] The optional parameters + * @returns Promise + */ + disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param environmentName Name of the app. + * @param hostingEnvironmentName + * @param callback The callback + */ + disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param environmentName Name of the app. + * @param hostingEnvironmentName + * @param options The optional parameters + * @param callback The callback + */ + disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + environmentName, + hostingEnvironmentName, + options + }, + disableAllForHostingEnvironmentOperationSpec, + 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 environmentName Name of the app. + * @param hostingEnvironmentName + * @param [options] The optional parameters + * @returns Promise + */ + resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param environmentName Name of the app. + * @param hostingEnvironmentName + * @param callback The callback + */ + resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param environmentName Name of the app. + * @param hostingEnvironmentName + * @param options The optional parameters + * @param callback The callback + */ + resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + environmentName, + hostingEnvironmentName, + options + }, + resetAllFiltersForHostingEnvironmentOperationSpec, + 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 hostingEnvironmentName Name of the hosting environment. + * @param name Name of the recommendation. + * @param [options] The optional parameters + * @returns Promise + */ + getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, options?: Models.RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the hosting environment. + * @param name Name of the recommendation. + * @param callback The callback + */ + getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the hosting environment. + * @param name Name of the recommendation. + * @param options The optional parameters + * @param callback The callback + */ + getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, options: Models.RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams, callback: msRest.ServiceCallback): void; + getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, options?: Models.RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostingEnvironmentName, + name, + options + }, + getRuleDetailsByHostingEnvironmentOperationSpec, + 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 environmentName Site name + * @param name Rule name + * @param hostingEnvironmentName + * @param [options] The optional parameters + * @returns Promise + */ + disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param environmentName Site name + * @param name Rule name + * @param hostingEnvironmentName + * @param callback The callback + */ + disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param environmentName Site name + * @param name Rule name + * @param hostingEnvironmentName + * @param options The optional parameters + * @param callback The callback + */ + disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + environmentName, + name, + hostingEnvironmentName, + options + }, + disableRecommendationForHostingEnvironmentOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 + */ + listHistoryForHostingEnvironmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listHistoryForHostingEnvironmentNext(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 + */ + listHistoryForHostingEnvironmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHistoryForHostingEnvironmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listHistoryForHostingEnvironmentNextOperationSpec, + 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 + */ + listRecommendedRulesForHostingEnvironmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listRecommendedRulesForHostingEnvironmentNext(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 + */ + listRecommendedRulesForHostingEnvironmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRecommendedRulesForHostingEnvironmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listRecommendedRulesForHostingEnvironmentNextOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 listHistoryForHostingEnvironmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostingEnvironmentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expiredOnly, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const listRecommendedRulesForHostingEnvironmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostingEnvironmentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.featured, + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendationCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const disableAllForHostingEnvironmentOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostingEnvironmentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.environmentName, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const resetAllFiltersForHostingEnvironmentOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostingEnvironmentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.environmentName, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getRuleDetailsByHostingEnvironmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostingEnvironmentName, + 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 disableRecommendationForHostingEnvironmentOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.hostingEnvironmentName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.environmentName, + 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 listHistoryForHostingEnvironmentNextOperationSpec: 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 listRecommendedRulesForHostingEnvironmentNextOperationSpec: 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/webApps.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/webApps.ts new file mode 100644 index 000000000000..6a5187e8cca2 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/operations/webApps.ts @@ -0,0 +1,27013 @@ +/* + * 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 "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slotConfigNames, + options + }, + updateSlotConfigurationNamesOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getMigrateMySqlStatusOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionEnvelope, + options + }, + updateSwiftVirtualNetworkConnectionOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSitePushSettingsSlotOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + getMigrateMySqlStatusSlotOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + connectionEnvelope, + slot, + options + }, + updateSwiftVirtualNetworkConnectionSlotOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSnapshotsSlotOperationSpec, + callback) as Promise; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * @summary Returns all Snapshots to the user from DRSecondary endpoint. + * @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 + */ + listSnapshotsFromDRSecondarySlot(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 + */ + listSnapshotsFromDRSecondarySlot(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 + */ + listSnapshotsFromDRSecondarySlot(resourceGroupName: string, name: string, slot: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsFromDRSecondarySlot(resourceGroupName: string, name: string, slot: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + slot, + options + }, + listSnapshotsFromDRSecondarySlotOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSnapshotsOperationSpec, + callback) as Promise; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * @summary Returns all Snapshots to the user from DRSecondary endpoint. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshotsFromDRSecondary(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 + */ + listSnapshotsFromDRSecondary(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 + */ + listSnapshotsFromDRSecondary(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsFromDRSecondary(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listSnapshotsFromDRSecondaryOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSnapshotsSlotNextOperationSpec, + callback) as Promise; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * @summary Returns all Snapshots to the user from DRSecondary endpoint. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshotsFromDRSecondarySlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSnapshotsFromDRSecondarySlotNext(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 + */ + listSnapshotsFromDRSecondarySlotNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsFromDRSecondarySlotNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSnapshotsFromDRSecondarySlotNextOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSnapshotsNextOperationSpec, + callback) as Promise; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * @summary Returns all Snapshots to the user from DRSecondary endpoint. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSnapshotsFromDRSecondaryNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSnapshotsFromDRSecondaryNext(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 + */ + listSnapshotsFromDRSecondaryNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSnapshotsFromDRSecondaryNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSnapshotsFromDRSecondaryNextOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 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 getSwiftVirtualNetworkConnectionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/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}/networkConfig/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}/networkConfig/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}/networkConfig/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 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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 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 getSwiftVirtualNetworkConnectionSlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/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}/networkConfig/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}/networkConfig/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}/networkConfig/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 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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 listSnapshotsFromDRSecondarySlotOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshotsdr", + 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 listSnapshotsFromDRSecondaryOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshotsdr", + 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTrace" + } + } + } + } + }, + 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 listSnapshotsFromDRSecondarySlotNextOperationSpec: 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 listSnapshotsFromDRSecondaryNextOperationSpec: 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/webSiteManagementClient.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/webSiteManagementClient.ts new file mode 100644 index 000000000000..0d35a9177b82 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/webSiteManagementClient.ts @@ -0,0 +1,1263 @@ +/* + * 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 "@azure/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 + certificates: operations.Certificates; + webApps: operations.WebApps; + appServicePlans: operations.AppServicePlans; + provider: operations.Provider; + recommendations: operations.Recommendations; + + /** + * 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.certificates = new operations.Certificates(this); + this.webApps = new operations.WebApps(this); + this.appServicePlans = new operations.AppServicePlans(this); + this.provider = new operations.Provider(this); + this.recommendations = new operations.Recommendations(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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + resourceGroupName, + validateRequest, + options + }, + validateOperationSpec, + callback) as Promise; + } + + /** + * Validate if the container settings are correct. + * @summary Validate if the container settings are correct. + * @param validateContainerSettingsRequest + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + validateContainerSettings(validateContainerSettingsRequest: Models.ValidateContainerSettingsRequest, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param validateContainerSettingsRequest + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param callback The callback + */ + validateContainerSettings(validateContainerSettingsRequest: Models.ValidateContainerSettingsRequest, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param validateContainerSettingsRequest + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param options The optional parameters + * @param callback The callback + */ + validateContainerSettings(validateContainerSettingsRequest: Models.ValidateContainerSettingsRequest, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validateContainerSettings(validateContainerSettingsRequest: Models.ValidateContainerSettingsRequest, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + validateContainerSettingsRequest, + resourceGroupName, + options + }, + validateContainerSettingsOperationSpec, + 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 | msRest.ServiceCallback, 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 validateContainerSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validateContainerSettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "validateContainerSettingsRequest", + mapper: { + ...Mappers.ValidateContainerSettingsRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Object" + } + } + }, + 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/webSiteManagementClientContext.ts b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/webSiteManagementClientContext.ts new file mode 100644 index 000000000000..009c37bd2c6b --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/src/webSiteManagementClientContext.ts @@ -0,0 +1,63 @@ +/* + * 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 "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-appservice-profile-2019-03-01-hybrid"; +const packageVersion = "1.0.0"; + +export class WebSiteManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + apiVersion?: string; + + /** + * 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 = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + 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; + + 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/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/tsconfig.json b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/tsconfig.json new file mode 100644 index 000000000000..87bbf5b5fa49 --- /dev/null +++ b/sdk/appservice/arm-appservice-profile-2019-03-01-hybrid/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": ["./src/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/LICENSE.txt b/sdk/cognitiveservices/cognitiveservices-qnamaker/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/LICENSE.txt +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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 diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/README.md b/sdk/cognitiveservices/cognitiveservices-qnamaker/README.md index 00183856a5d4..9acb604fc652 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/README.md +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/README.md @@ -17,12 +17,6 @@ npm install @azure/cognitiveservices-qnamaker #### nodejs - Authentication, client creation and getKeys endpointKeys as an example written in TypeScript. -##### Install @azure/ms-rest-nodeauth - -```bash -npm install @azure/ms-rest-nodeauth -``` - ##### Sample code ```typescript @@ -30,13 +24,12 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import { QnAMakerClient, QnAMakerModels, QnAMakerMappers } from "@azure/cognitiveservices-qnamaker"; const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new QnAMakerClient(creds, subscriptionId); - client.endpointKeys.getKeys().then((result) => { - console.log("The result is:"); - console.log(result); - }); +const endpoint = "https://westus.api.cognitive.microsoft.com"; // OR some other endpoint. +const creds = new msRest.ApiKeyCredentials({ inHeader: { 'Ocp-Apim-Subscription-Key': subscriptionId }}); +const client = new QnAMakerClient(creds, endpoint); +client.endpointKeys.getKeys().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { console.error(err); }); @@ -44,16 +37,8 @@ msRestNodeAuth.interactiveLogin().then((creds) => { #### browser - Authentication, client creation and getKeys endpointKeys as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` - ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html ```html @@ -65,23 +50,15 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @@ -92,6 +69,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/cognitiveservices/cognitiveservices-qnamaker/README.png) diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/package.json b/sdk/cognitiveservices/cognitiveservices-qnamaker/package.json index 43dd3914153b..86831bce930f 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/package.json +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/package.json @@ -2,9 +2,9 @@ "name": "@azure/cognitiveservices-qnamaker", "author": "Microsoft Corporation", "description": "QnAMakerClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "2.0.0", "dependencies": { - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-js": "^1.8.4", "tslib": "^1.9.3" }, "keywords": [ @@ -43,6 +43,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +53,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/alterationsMappers.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/alterationsMappers.ts index a737ed6f2f79..bb61c2cf1a47 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/alterationsMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/alterationsMappers.ts @@ -1,19 +1,16 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - WordAlterationsDTO, AlterationsDTO, + ErrorModel, ErrorResponse, ErrorResponseError, - ErrorModel, - InnerErrorModel + InnerErrorModel, + WordAlterationsDTO } from "../models/mappers"; - diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/endpointKeysMappers.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/endpointKeysMappers.ts index 2dc26823cf5b..b236c184044f 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/endpointKeysMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/endpointKeysMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { EndpointKeysDTO, + ErrorModel, ErrorResponse, ErrorResponseError, - ErrorModel, InnerErrorModel } from "../models/mappers"; - diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/index.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/index.ts index 908c81db405a..540a6c146fca 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/index.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/index.ts @@ -1,606 +1,559 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "@azure/ms-rest-js"; /** - * @interface - * An interface representing CreateKbInputDTO. * Input to create KB. - * */ export interface CreateKbInputDTO { /** - * @member {QnADTO[]} [qnaList] List of QNA to be added to the index. Ids are - * generated by the service and should be omitted. + * List of QNA to be added to the index. Ids are generated by the service and should be omitted. */ qnaList?: QnADTO[]; /** - * @member {string[]} [urls] List of URLs to be added to knowledgebase. + * List of URLs to be added to knowledgebase. */ urls?: string[]; /** - * @member {FileDTO[]} [files] List of files to be added to knowledgebase. + * List of files to be added to knowledgebase. */ files?: FileDTO[]; } /** - * @interface - * An interface representing UpdateKbOperationDTOAdd. * An instance of CreateKbInputDTO for add operation - * - * @extends CreateKbInputDTO */ export interface UpdateKbOperationDTOAdd extends CreateKbInputDTO { } /** - * @interface - * An interface representing DeleteKbContentsDTO. * PATCH body schema of Delete Operation in UpdateKb - * */ export interface DeleteKbContentsDTO { /** - * @member {number[]} [ids] List of Qna Ids to be deleted + * List of Qna Ids to be deleted */ ids?: number[]; /** - * @member {string[]} [sources] List of sources to be deleted from - * knowledgebase. + * List of sources to be deleted from knowledgebase. */ sources?: string[]; } /** - * @interface - * An interface representing UpdateKbOperationDTODelete. * An instance of DeleteKbContentsDTO for delete Operation - * - * @extends DeleteKbContentsDTO */ export interface UpdateKbOperationDTODelete extends DeleteKbContentsDTO { } /** - * @interface - * An interface representing UpdateKbContentsDTO. * PATCH body schema for Update operation in Update Kb - * */ export interface UpdateKbContentsDTO { /** - * @member {string} [name] Friendly name for the knowledgebase. + * Friendly name for the knowledgebase. */ name?: string; /** - * @member {UpdateQnaDTO[]} [qnaList] List of Q-A (UpdateQnaDTO) to be added - * to the knowledgebase. + * List of Q-A (UpdateQnaDTO) to be added to the knowledgebase. */ qnaList?: UpdateQnaDTO[]; /** - * @member {string[]} [urls] List of existing URLs to be refreshed. The - * content will be extracted again and re-indexed. + * List of existing URLs to be refreshed. The content will be extracted again and re-indexed. */ urls?: string[]; } /** - * @interface - * An interface representing UpdateKbOperationDTOUpdate. * An instance of UpdateKbContentsDTO for Update Operation - * - * @extends UpdateKbContentsDTO */ export interface UpdateKbOperationDTOUpdate extends UpdateKbContentsDTO { } /** - * @interface - * An interface representing UpdateKbOperationDTO. * Contains list of QnAs to be updated - * */ export interface UpdateKbOperationDTO { /** - * @member {UpdateKbOperationDTOAdd} [add] An instance of CreateKbInputDTO - * for add operation + * An instance of CreateKbInputDTO for add operation */ add?: UpdateKbOperationDTOAdd; /** - * @member {UpdateKbOperationDTODelete} [deleteProperty] An instance of - * DeleteKbContentsDTO for delete Operation + * An instance of DeleteKbContentsDTO for delete Operation */ deleteProperty?: UpdateKbOperationDTODelete; /** - * @member {UpdateKbOperationDTOUpdate} [update] An instance of - * UpdateKbContentsDTO for Update Operation + * An instance of UpdateKbContentsDTO for Update Operation */ update?: UpdateKbOperationDTOUpdate; } /** - * @interface - * An interface representing UpdateQuestionsDTO. - * PATCH Body schema for Update Kb which contains list of questions to be added - * and deleted - * + * PATCH Body schema for Update Kb which contains list of questions to be added and deleted */ export interface UpdateQuestionsDTO { /** - * @member {string[]} [add] List of questions to be added + * List of questions to be added */ add?: string[]; /** - * @member {string[]} [deleteProperty] List of questions to be deleted. + * List of questions to be deleted. */ deleteProperty?: string[]; } /** - * @interface - * An interface representing UpdateQnaDTOQuestions. * List of questions associated with the answer. - * - * @extends UpdateQuestionsDTO */ export interface UpdateQnaDTOQuestions extends UpdateQuestionsDTO { } /** - * @interface - * An interface representing UpdateMetadataDTO. * PATCH Body schema to represent list of Metadata to be updated - * */ export interface UpdateMetadataDTO { /** - * @member {MetadataDTO[]} [deleteProperty] List of Metadata associated with - * answer to be deleted + * List of Metadata associated with answer to be deleted */ deleteProperty?: MetadataDTO[]; /** - * @member {MetadataDTO[]} [add] List of metadata associated with answer to - * be added + * List of metadata associated with answer to be added */ add?: MetadataDTO[]; } /** - * @interface - * An interface representing UpdateQnaDTOMetadata. * List of metadata associated with the answer to be updated - * - * @extends UpdateMetadataDTO */ export interface UpdateQnaDTOMetadata extends UpdateMetadataDTO { } /** - * @interface - * An interface representing UpdateQnaDTO. + * Update Body schema to represent context to be updated + */ +export interface UpdateContextDTO { + /** + * List of prompts associated with qna to be deleted + */ + promptsToDelete?: number[]; + /** + * List of prompts to be added to the qna. + */ + promptsToAdd?: PromptDTO[]; + /** + * To mark if a prompt is relevant only with a previous question or not. + * true - Do not include this QnA as search result for queries without context + * false - ignores context and includes this QnA in search result + */ + isContextOnly?: boolean; +} + +/** + * Context associated with Qna to be updated. + */ +export interface UpdateQnaDTOContext extends UpdateContextDTO { +} + +/** * PATCH Body schema for Update Qna List - * */ export interface UpdateQnaDTO { /** - * @member {number} [id] Unique id for the Q-A + * Unique id for the Q-A */ id?: number; /** - * @member {string} [answer] Answer text + * Answer text */ answer?: string; /** - * @member {string} [source] Source from which Q-A was indexed. eg. + * Source from which Q-A was indexed. eg. * https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/FAQs */ source?: string; /** - * @member {UpdateQnaDTOQuestions} [questions] List of questions associated - * with the answer. + * List of questions associated with the answer. */ questions?: UpdateQnaDTOQuestions; /** - * @member {UpdateQnaDTOMetadata} [metadata] List of metadata associated with - * the answer to be updated + * List of metadata associated with the answer to be updated */ metadata?: UpdateQnaDTOMetadata; + /** + * Context associated with Qna to be updated. + */ + context?: UpdateQnaDTOContext; } /** - * @interface - * An interface representing MetadataDTO. * Name - value pair of metadata. - * */ export interface MetadataDTO { /** - * @member {string} name Metadata name. + * Metadata name. */ name: string; /** - * @member {string} value Metadata value. + * Metadata value. */ value: string; } /** - * @interface - * An interface representing QnADTO. * Q-A object. - * */ export interface QnADTO { /** - * @member {number} [id] Unique id for the Q-A. + * Unique id for the Q-A. */ id?: number; /** - * @member {string} answer Answer text + * Answer text */ answer: string; /** - * @member {string} [source] Source from which Q-A was indexed. eg. + * Source from which Q-A was indexed. eg. * https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/FAQs */ source?: string; /** - * @member {string[]} questions List of questions associated with the answer. + * List of questions associated with the answer. */ questions: string[]; /** - * @member {MetadataDTO[]} [metadata] List of metadata associated with the - * answer. + * List of metadata associated with the answer. */ metadata?: MetadataDTO[]; + /** + * Context of a QnA + */ + context?: QnADTOContext; +} + +/** + * QnADTO - Either QnaId or QnADTO needs to be present in a PromptDTO object + */ +export interface PromptDTOQna extends QnADTO { +} + +/** + * Prompt for an answer. + */ +export interface PromptDTO { + /** + * Index of the prompt - used in ordering of the prompts + */ + displayOrder?: number; + /** + * Qna id corresponding to the prompt - if QnaId is present, QnADTO object is ignored. + */ + qnaId?: number; + /** + * QnADTO - Either QnaId or QnADTO needs to be present in a PromptDTO object + */ + qna?: PromptDTOQna; + /** + * Text displayed to represent a follow up question prompt + */ + displayText?: string; +} + +/** + * Context associated with Qna. + */ +export interface ContextDTO { + /** + * To mark if a prompt is relevant only with a previous question or not. + * true - Do not include this QnA as search result for queries without context + * false - ignores context and includes this QnA in search result + */ + isContextOnly?: boolean; + /** + * List of prompts associated with the answer. + */ + prompts?: PromptDTO[]; +} + +/** + * Context of a QnA + */ +export interface QnADTOContext extends ContextDTO { } /** - * @interface - * An interface representing FileDTO. * DTO to hold details of uploaded files. - * */ export interface FileDTO { /** - * @member {string} fileName File name. Supported file types are ".tsv", - * ".pdf", ".txt", ".docx", ".xlsx". + * File name. Supported file types are ".tsv", ".pdf", ".txt", ".docx", ".xlsx". */ fileName: string; /** - * @member {string} fileUri Public URI of the file. + * Public URI of the file. */ fileUri: string; } /** - * @interface - * An interface representing QnADocumentsDTO. * List of QnADTO - * */ export interface QnADocumentsDTO { /** - * @member {QnADTO[]} [qnaDocuments] List of answers. + * List of answers. */ qnaDocuments?: QnADTO[]; } /** - * @interface - * An interface representing CreateKbDTO. * Post body schema for CreateKb operation. - * */ export interface CreateKbDTO { /** - * @member {string} name Friendly name for the knowledgebase. + * Friendly name for the knowledgebase. */ name: string; /** - * @member {QnADTO[]} [qnaList] List of Q-A (QnADTO) to be added to the - * knowledgebase. Q-A Ids are assigned by the service and should be omitted. + * List of Q-A (QnADTO) to be added to the knowledgebase. Q-A Ids are assigned by the service and + * should be omitted. */ qnaList?: QnADTO[]; /** - * @member {string[]} [urls] List of URLs to be used for extracting Q-A. + * List of URLs to be used for extracting Q-A. */ urls?: string[]; /** - * @member {FileDTO[]} [files] List of files from which to Extract Q-A. + * List of files from which to Extract Q-A. */ files?: FileDTO[]; } /** - * @interface - * An interface representing ReplaceKbDTO. * Post body schema for Replace KB operation. - * */ export interface ReplaceKbDTO { /** - * @member {QnADTO[]} qnAList List of Q-A (QnADTO) to be added to the - * knowledgebase. Q-A Ids are assigned by the service and should be omitted. + * List of Q-A (QnADTO) to be added to the knowledgebase. Q-A Ids are assigned by the service and + * should be omitted. */ qnAList: QnADTO[]; } /** - * @interface - * An interface representing ErrorModel. * The error object. As per Microsoft One API guidelines - * https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. - * */ export interface ErrorModel { /** - * @member {ErrorCodeType} code One of a server-defined set of error codes. - * Possible values include: 'BadArgument', 'Forbidden', 'NotFound', - * 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError', - * 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded', - * 'OperationNotFound', 'ServiceError', 'ValidationFailure', - * 'ExtractionFailure' + * One of a server-defined set of error codes. Possible values include: 'BadArgument', + * 'Forbidden', 'NotFound', 'KbNotFound', 'Unauthorized', 'Unspecified', 'EndpointKeysError', + * 'QuotaExceeded', 'QnaRuntimeError', 'SKULimitExceeded', 'OperationNotFound', 'ServiceError', + * 'ValidationFailure', 'ExtractionFailure' */ code: ErrorCodeType; /** - * @member {string} [message] A human-readable representation of the error. + * A human-readable representation of the error. */ message?: string; /** - * @member {string} [target] The target of the error. + * The target of the error. */ target?: string; /** - * @member {ErrorModel[]} [details] An array of details about specific errors - * that led to this reported error. + * An array of details about specific errors that led to this reported error. */ details?: ErrorModel[]; /** - * @member {InnerErrorModel} [innerError] An object containing more specific - * information than the current object about the error. + * An object containing more specific information than the current object about the error. */ innerError?: InnerErrorModel; } /** - * @interface - * An interface representing ErrorResponseError. * The error object. - * - * @extends ErrorModel */ export interface ErrorResponseError extends ErrorModel { } /** - * @interface - * An interface representing ErrorResponse. * Error response. As per Microsoft One API guidelines - * https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. - * */ export interface ErrorResponse { /** - * @member {ErrorResponseError} [error] The error object. + * The error object. */ error?: ErrorResponseError; } /** - * @interface - * An interface representing InnerErrorModel. - * An object containing more specific information about the error. As per - * Microsoft One API guidelines - + * An object containing more specific information about the error. As per Microsoft One API + * guidelines - * https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. - * */ export interface InnerErrorModel { /** - * @member {string} [code] A more specific error code than was provided by - * the containing error. + * A more specific error code than was provided by the containing error. */ code?: string; /** - * @member {InnerErrorModel} [innerError] An object containing more specific - * information than the current object about the error. + * An object containing more specific information than the current object about the error. */ innerError?: InnerErrorModel; } /** - * @interface - * An interface representing Operation. * Record to track long running operation. - * */ export interface Operation { /** - * @member {OperationStateType} [operationState] Operation state. Possible - * values include: 'Failed', 'NotStarted', 'Running', 'Succeeded' + * Operation state. Possible values include: 'Failed', 'NotStarted', 'Running', 'Succeeded' */ operationState?: OperationStateType; /** - * @member {string} [createdTimestamp] Timestamp when the operation was - * created. + * Timestamp when the operation was created. */ createdTimestamp?: string; /** - * @member {string} [lastActionTimestamp] Timestamp when the current state - * was entered. + * Timestamp when the current state was entered. */ lastActionTimestamp?: string; /** - * @member {string} [resourceLocation] Relative URI to the target resource - * location for completed resources. + * Relative URI to the target resource location for completed resources. */ resourceLocation?: string; /** - * @member {string} [userId] User Id + * User Id */ userId?: string; /** - * @member {string} [operationId] Operation Id. + * Operation Id. */ operationId?: string; /** - * @member {ErrorResponse} [errorResponse] Error details in case of failures. + * Error details in case of failures. */ errorResponse?: ErrorResponse; } /** - * @interface - * An interface representing KnowledgebaseDTO. * Response schema for CreateKb operation. - * */ export interface KnowledgebaseDTO { /** - * @member {string} [id] Unique id that identifies a knowledgebase. + * Unique id that identifies a knowledgebase. */ id?: string; /** - * @member {string} [hostName] URL host name at which the knowledgebase is - * hosted. + * URL host name at which the knowledgebase is hosted. */ hostName?: string; /** - * @member {string} [lastAccessedTimestamp] Time stamp at which the - * knowledgebase was last accessed (UTC). + * Time stamp at which the knowledgebase was last accessed (UTC). */ lastAccessedTimestamp?: string; /** - * @member {string} [lastChangedTimestamp] Time stamp at which the - * knowledgebase was last modified (UTC). + * Time stamp at which the knowledgebase was last modified (UTC). */ lastChangedTimestamp?: string; /** - * @member {string} [lastPublishedTimestamp] Time stamp at which the - * knowledgebase was last published (UTC). + * Time stamp at which the knowledgebase was last published (UTC). */ lastPublishedTimestamp?: string; /** - * @member {string} [name] Friendly name of the knowledgebase. + * Friendly name of the knowledgebase. */ name?: string; /** - * @member {string} [userId] User who created / owns the knowledgebase. + * User who created / owns the knowledgebase. */ userId?: string; /** - * @member {string[]} [urls] URL sources from which Q-A were extracted and - * added to the knowledgebase. + * URL sources from which Q-A were extracted and added to the knowledgebase. */ urls?: string[]; /** - * @member {string[]} [sources] Custom sources from which Q-A were extracted - * or explicitly added to the knowledgebase. + * Custom sources from which Q-A were extracted or explicitly added to the knowledgebase. */ sources?: string[]; } /** - * @interface - * An interface representing KnowledgebasesDTO. * Collection of knowledgebases owned by a user. - * */ export interface KnowledgebasesDTO { /** - * @member {KnowledgebaseDTO[]} [knowledgebases] Collection of knowledgebase - * records. + * Collection of knowledgebase records. */ knowledgebases?: KnowledgebaseDTO[]; } /** - * @interface - * An interface representing AlterationsDTO. * Collection of words that are synonyms. - * */ export interface AlterationsDTO { /** - * @member {string[]} alterations Words that are synonymous with each other. + * Words that are synonymous with each other. */ alterations: string[]; } /** - * @interface - * An interface representing WordAlterationsDTO. * Collection of word alterations. - * */ export interface WordAlterationsDTO { /** - * @member {AlterationsDTO[]} wordAlterations Collection of word alterations. + * Collection of word alterations. */ wordAlterations: AlterationsDTO[]; } /** - * @interface - * An interface representing EndpointKeysDTO. * Schema for EndpointKeys generate/refresh operations. - * */ export interface EndpointKeysDTO { /** - * @member {string} [primaryEndpointKey] Primary Access Key. + * Primary Access Key. */ primaryEndpointKey?: string; /** - * @member {string} [secondaryEndpointKey] Secondary Access Key. + * Secondary Access Key. */ secondaryEndpointKey?: string; /** - * @member {string} [installedVersion] Current version of runtime. + * Current version of runtime. */ installedVersion?: string; /** - * @member {string} [lastStableVersion] Latest version of runtime. + * Latest version of runtime. */ lastStableVersion?: string; } /** - * @interface - * An interface representing OperationsGetDetailsHeaders. * Defines headers for GetDetails operation. - * */ export interface OperationsGetDetailsHeaders { /** - * @member {number} [retryAfter] Indicates how long the client should wait - * before sending a follow up request. The header will be present only if the - * operation is running or has not started yet. + * Indicates how long the client should wait before sending a follow up request. The header will + * be present only if the operation is running or has not started yet. */ retryAfter: number; } /** - * @interface - * An interface representing KnowledgebaseUpdateHeaders. * Defines headers for Update operation. - * */ export interface KnowledgebaseUpdateHeaders { /** - * @member {string} [location] Relative URI to the target location of the - * asynchronous operation. Client should poll this resource to get status of - * the operation. + * Relative URI to the target location of the asynchronous operation. Client should poll this + * resource to get status of the operation. */ location: string; } @@ -651,6 +604,7 @@ export type EndpointKeysGetKeysResponse = EndpointKeysDTO & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -670,6 +624,7 @@ export type EndpointKeysRefreshKeysResponse = EndpointKeysDTO & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -689,6 +644,7 @@ export type AlterationsGetResponse = WordAlterationsDTO & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -708,6 +664,7 @@ export type KnowledgebaseListAllResponse = KnowledgebasesDTO & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -727,6 +684,7 @@ export type KnowledgebaseGetDetailsResponse = KnowledgebaseDTO & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -746,10 +704,12 @@ export type KnowledgebaseUpdateResponse = Operation & KnowledgebaseUpdateHeaders * The parsed HTTP response headers. */ parsedHeaders: KnowledgebaseUpdateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -769,6 +729,7 @@ export type KnowledgebaseCreateResponse = Operation & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -788,6 +749,7 @@ export type KnowledgebaseDownloadResponse = QnADocumentsDTO & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -807,10 +769,12 @@ export type OperationsGetDetailsResponse = Operation & OperationsGetDetailsHeade * The parsed HTTP response headers. */ parsedHeaders: OperationsGetDetailsHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/knowledgebaseMappers.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/knowledgebaseMappers.ts index 8684e026ee8e..3efb527bf69a 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/knowledgebaseMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/knowledgebaseMappers.ts @@ -1,39 +1,42 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - KnowledgebasesDTO, - KnowledgebaseDTO, + ContextDTO, + CreateKbDTO, + CreateKbInputDTO, + DeleteKbContentsDTO, + ErrorModel, ErrorResponse, ErrorResponseError, - ErrorModel, + FileDTO, InnerErrorModel, - ReplaceKbDTO, - QnADTO, + KnowledgebaseDTO, + KnowledgebasesDTO, + KnowledgebaseUpdateHeaders, MetadataDTO, + Operation, + PromptDTO, + PromptDTOQna, + QnADocumentsDTO, + QnADTO, + QnADTOContext, + ReplaceKbDTO, + UpdateContextDTO, + UpdateKbContentsDTO, UpdateKbOperationDTO, UpdateKbOperationDTOAdd, - CreateKbInputDTO, - FileDTO, UpdateKbOperationDTODelete, - DeleteKbContentsDTO, UpdateKbOperationDTOUpdate, - UpdateKbContentsDTO, + UpdateMetadataDTO, UpdateQnaDTO, - UpdateQnaDTOQuestions, - UpdateQuestionsDTO, + UpdateQnaDTOContext, UpdateQnaDTOMetadata, - UpdateMetadataDTO, - Operation, - KnowledgebaseUpdateHeaders, - CreateKbDTO, - QnADocumentsDTO + UpdateQnaDTOQuestions, + UpdateQuestionsDTO } from "../models/mappers"; - diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/mappers.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/mappers.ts index 4423f8e0ed72..ac4a6e0de483 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/mappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as msRest from "@azure/ms-rest-js"; @@ -279,6 +277,56 @@ export const UpdateQnaDTOMetadata: msRest.CompositeMapper = { } }; +export const UpdateContextDTO: msRest.CompositeMapper = { + serializedName: "UpdateContextDTO", + type: { + name: "Composite", + className: "UpdateContextDTO", + modelProperties: { + promptsToDelete: { + serializedName: "promptsToDelete", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + promptsToAdd: { + serializedName: "promptsToAdd", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PromptDTO" + } + } + } + }, + isContextOnly: { + serializedName: "isContextOnly", + type: { + name: "Boolean" + } + } + } + } +}; + +export const UpdateQnaDTOContext: msRest.CompositeMapper = { + serializedName: "UpdateQnaDTO_context", + type: { + name: "Composite", + className: "UpdateQnaDTOContext", + modelProperties: { + ...UpdateContextDTO.type.modelProperties + } + } +}; + export const UpdateQnaDTO: msRest.CompositeMapper = { serializedName: "UpdateQnaDTO", type: { @@ -323,6 +371,13 @@ export const UpdateQnaDTO: msRest.CompositeMapper = { name: "Composite", className: "UpdateQnaDTOMetadata" } + }, + context: { + serializedName: "context", + type: { + name: "Composite", + className: "UpdateQnaDTOContext" + } } } } @@ -415,11 +470,109 @@ export const QnADTO: msRest.CompositeMapper = { } } } + }, + context: { + serializedName: "context", + type: { + name: "Composite", + className: "QnADTOContext" + } } } } }; +export const PromptDTOQna: msRest.CompositeMapper = { + serializedName: "PromptDTO_qna", + type: { + name: "Composite", + className: "PromptDTOQna", + modelProperties: { + ...QnADTO.type.modelProperties + } + } +}; + +export const PromptDTO: msRest.CompositeMapper = { + serializedName: "PromptDTO", + type: { + name: "Composite", + className: "PromptDTO", + modelProperties: { + displayOrder: { + serializedName: "displayOrder", + type: { + name: "Number" + } + }, + qnaId: { + serializedName: "qnaId", + type: { + name: "Number" + } + }, + qna: { + serializedName: "qna", + type: { + name: "Composite", + className: "PromptDTOQna" + } + }, + displayText: { + serializedName: "displayText", + constraints: { + MaxLength: 200 + }, + type: { + name: "String" + } + } + } + } +}; + +export const ContextDTO: msRest.CompositeMapper = { + serializedName: "ContextDTO", + type: { + name: "Composite", + className: "ContextDTO", + modelProperties: { + isContextOnly: { + serializedName: "isContextOnly", + type: { + name: "Boolean" + } + }, + prompts: { + serializedName: "prompts", + constraints: { + MaxItems: 20 + }, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PromptDTO" + } + } + } + } + } + } +}; + +export const QnADTOContext: msRest.CompositeMapper = { + serializedName: "QnADTO_context", + type: { + name: "Composite", + className: "QnADTOContext", + modelProperties: { + ...ContextDTO.type.modelProperties + } + } +}; + export const FileDTO: msRest.CompositeMapper = { serializedName: "FileDTO", type: { diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/operationsMappers.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/operationsMappers.ts index 5effbaebe953..7887207338c4 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/operationsMappers.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/models/operationsMappers.ts @@ -1,19 +1,16 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - Operation, + ErrorModel, ErrorResponse, ErrorResponseError, - ErrorModel, InnerErrorModel, + Operation, OperationsGetDetailsHeaders } from "../models/mappers"; - diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClient.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClient.ts index 0ed1d8460426..ee10e56a80ad 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClient.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClient.ts @@ -28,8 +28,8 @@ class QnAMakerClient extends QnAMakerClientContext { * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { - super(endpoint, credentials, options); + constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { + super(credentials, endpoint, options); this.endpointKeys = new operations.EndpointKeys(this); this.alterations = new operations.Alterations(this); this.knowledgebase = new operations.Knowledgebase(this); diff --git a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClientContext.ts b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClientContext.ts index 6461ae8fcdec..e76db2de129e 100644 --- a/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClientContext.ts +++ b/sdk/cognitiveservices/cognitiveservices-qnamaker/src/qnAMakerClientContext.ts @@ -11,7 +11,7 @@ import * as msRest from "@azure/ms-rest-js"; const packageName = "@azure/cognitiveservices-qnamaker"; -const packageVersion = "0.1.0"; +const packageVersion = "1.0.0"; export class QnAMakerClientContext extends msRest.ServiceClient { endpoint: string; @@ -24,28 +24,28 @@ export class QnAMakerClientContext extends msRest.ServiceClient { * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ - constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) { - if (endpoint === null || endpoint === undefined) { - throw new Error('\'endpoint\' cannot be null.'); + constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) { + if (endpoint == undefined) { + throw new Error("'endpoint' cannot be null."); } - if (credentials === null || credentials === undefined) { - throw new Error('\'credentials\' cannot be null.'); + if (credentials == undefined) { + throw new Error("'credentials' cannot be null."); } if (!options) { options = {}; } - if(!options.userAgent) { + + if (!options.userAgent) { const defaultUserAgent = msRest.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.baseUri = "{Endpoint}"; + this.baseUri = "{Endpoint}/qnamaker/v4.0"; this.requestContentType = "application/json; charset=utf-8"; this.endpoint = endpoint; this.credentials = credentials; - } }