Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR web/resource-manager] Add HyperV property for AppServicePlan and Site model and deprecating… #3372

Merged
merged 2 commits into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion lib/services/websiteManagement2/lib/models/appServicePlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ class AppServicePlan extends models['Resource'] {
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan <code>true</code>,
* <code>false</code> otherwise. Default value: false .
* @member {boolean} [isXenon] If Hyper-V container app service plan
* @member {boolean} [isXenon] Obsolete: If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise. Default value: false
* .
* @member {boolean} [hyperV] If Hyper-V container app service plan
* <code>true</code>, <code>false</code> otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
Expand Down Expand Up @@ -267,6 +270,14 @@ class AppServicePlan extends models['Resource'] {
name: 'Boolean'
}
},
hyperV: {
required: false,
serializedName: 'properties.hyperV',
defaultValue: false,
type: {
name: 'Boolean'
}
},
targetWorkerCount: {
required: false,
serializedName: 'properties.targetWorkerCount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan <code>true</code>,
* <code>false</code> otherwise. Default value: false .
* @member {boolean} [isXenon] If Hyper-V container app service plan
* @member {boolean} [isXenon] Obsolete: If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise. Default value: false
* .
* @member {boolean} [hyperV] If Hyper-V container app service plan
* <code>true</code>, <code>false</code> otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
Expand Down Expand Up @@ -226,6 +229,14 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
name: 'Boolean'
}
},
hyperV: {
required: false,
serializedName: 'properties.hyperV',
defaultValue: false,
type: {
name: 'Boolean'
}
},
targetWorkerCount: {
required: false,
serializedName: 'properties.targetWorkerCount',
Expand Down
8 changes: 8 additions & 0 deletions lib/services/websiteManagement2/lib/models/backupRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const models = require('./index');
class BackupRequest extends models['ProxyOnlyResource'] {
/**
* Create a BackupRequest.
* @member {string} [backupName] Name of the backup.
* @member {boolean} [enabled] True if the backup schedule is enabled (must
* be included in that case), false if the backup schedule should be
* disabled.
Expand Down Expand Up @@ -93,6 +94,13 @@ class BackupRequest extends models['ProxyOnlyResource'] {
name: 'String'
}
},
backupName: {
required: false,
serializedName: 'properties.backupName',
type: {
name: 'String'
}
},
enabled: {
required: false,
serializedName: 'properties.enabled',
Expand Down
22 changes: 18 additions & 4 deletions lib/services/websiteManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,9 @@ export interface HostNameSslState {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] <code>true</code> if reserved; otherwise,
* <code>false</code>. Default value: false .
* @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {boolean} [isXenon] Obsolete: Hyper-V sandbox. Default value: false
* .
* @member {boolean} [hyperV] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in UTC.
* Read-only.
* @member {object} [siteConfig] Configuration of the app.
Expand Down Expand Up @@ -1657,6 +1659,7 @@ export interface Site extends Resource {
serverFarmId?: string;
reserved?: boolean;
isXenon?: boolean;
hyperV?: boolean;
readonly lastModifiedTimeUtc?: Date;
siteConfig?: SiteConfig;
readonly trafficManagerHostNames?: string[];
Expand Down Expand Up @@ -1794,7 +1797,9 @@ export interface SkuDescription {
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan <code>true</code>,
* <code>false</code> otherwise. Default value: false .
* @member {boolean} [isXenon] If Hyper-V container app service plan
* @member {boolean} [isXenon] Obsolete: If Hyper-V container app service plan
* <code>true</code>, <code>false</code> otherwise. Default value: false .
* @member {boolean} [hyperV] If Hyper-V container app service plan
* <code>true</code>, <code>false</code> otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
Expand Down Expand Up @@ -1838,6 +1843,7 @@ export interface AppServicePlan extends Resource {
readonly resourceGroup?: string;
reserved?: boolean;
isXenon?: boolean;
hyperV?: boolean;
targetWorkerCount?: number;
targetWorkerSizeId?: number;
readonly provisioningState?: string;
Expand Down Expand Up @@ -4335,6 +4341,7 @@ export interface BackupSchedule {
* @constructor
* Description of a backup which will be performed.
*
* @member {string} [backupName] Name of the backup.
* @member {boolean} [enabled] True if the backup schedule is enabled (must be
* included in that case), false if the backup schedule should be disabled.
* @member {string} storageAccountUrl SAS URL to the container.
Expand All @@ -4359,6 +4366,7 @@ export interface BackupSchedule {
* @member {array} [databases] Databases included in the backup.
*/
export interface BackupRequest extends ProxyOnlyResource {
backupName?: string;
enabled?: boolean;
storageAccountUrl: string;
backupSchedule?: BackupSchedule;
Expand Down Expand Up @@ -5806,7 +5814,9 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] <code>true</code> if reserved; otherwise,
* <code>false</code>. Default value: false .
* @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {boolean} [isXenon] Obsolete: Hyper-V sandbox. Default value: false
* .
* @member {boolean} [hyperV] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in UTC.
* Read-only.
* @member {object} [siteConfig] Configuration of the app.
Expand Down Expand Up @@ -6057,6 +6067,7 @@ export interface SitePatchResource extends ProxyOnlyResource {
serverFarmId?: string;
reserved?: boolean;
isXenon?: boolean;
hyperV?: boolean;
readonly lastModifiedTimeUtc?: Date;
siteConfig?: SiteConfig;
readonly trafficManagerHostNames?: string[];
Expand Down Expand Up @@ -6886,7 +6897,9 @@ export interface WorkerPoolResource extends ProxyOnlyResource {
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan <code>true</code>,
* <code>false</code> otherwise. Default value: false .
* @member {boolean} [isXenon] If Hyper-V container app service plan
* @member {boolean} [isXenon] Obsolete: If Hyper-V container app service plan
* <code>true</code>, <code>false</code> otherwise. Default value: false .
* @member {boolean} [hyperV] If Hyper-V container app service plan
* <code>true</code>, <code>false</code> otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
Expand All @@ -6910,6 +6923,7 @@ export interface AppServicePlanPatchResource extends ProxyOnlyResource {
readonly resourceGroup?: string;
reserved?: boolean;
isXenon?: boolean;
hyperV?: boolean;
targetWorkerCount?: number;
targetWorkerSizeId?: number;
readonly provisioningState?: string;
Expand Down
12 changes: 11 additions & 1 deletion lib/services/websiteManagement2/lib/models/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class Site extends models['Resource'] {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] <code>true</code> if reserved; otherwise,
* <code>false</code>. Default value: false .
* @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {boolean} [isXenon] Obsolete: Hyper-V sandbox. Default value:
* false .
* @member {boolean} [hyperV] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in
* UTC. Read-only.
* @member {object} [siteConfig] Configuration of the app.
Expand Down Expand Up @@ -475,6 +477,14 @@ class Site extends models['Resource'] {
name: 'Boolean'
}
},
hyperV: {
required: false,
serializedName: 'properties.hyperV',
defaultValue: false,
type: {
name: 'Boolean'
}
},
lastModifiedTimeUtc: {
required: false,
readOnly: true,
Expand Down
12 changes: 11 additions & 1 deletion lib/services/websiteManagement2/lib/models/sitePatchResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] <code>true</code> if reserved; otherwise,
* <code>false</code>. Default value: false .
* @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {boolean} [isXenon] Obsolete: Hyper-V sandbox. Default value:
* false .
* @member {boolean} [hyperV] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in
* UTC. Read-only.
* @member {object} [siteConfig] Configuration of the app.
Expand Down Expand Up @@ -446,6 +448,14 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
name: 'Boolean'
}
},
hyperV: {
required: false,
serializedName: 'properties.hyperV',
defaultValue: false,
type: {
name: 'Boolean'
}
},
lastModifiedTimeUtc: {
required: false,
readOnly: true,
Expand Down
45 changes: 36 additions & 9 deletions lib/services/websiteManagement2/lib/operations/appServicePlans.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,10 @@ function _get(resourceGroupName, name, options, callback) {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -827,7 +830,10 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -5119,7 +5125,10 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -6764,7 +6773,10 @@ class AppServicePlans {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -6877,7 +6889,10 @@ class AppServicePlans {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -7103,7 +7118,10 @@ class AppServicePlans {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -7178,7 +7196,10 @@ class AppServicePlans {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -9651,7 +9672,10 @@ class AppServicePlans {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down Expand Up @@ -9764,7 +9788,10 @@ class AppServicePlans {
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
* @param {boolean} [appServicePlan.isXenon] Obsolete: If Hyper-V container app
* service plan <code>true</code>, <code>false</code> otherwise.
*
* @param {boolean} [appServicePlan.hyperV] If Hyper-V container app service
* plan <code>true</code>, <code>false</code> otherwise.
*
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
Expand Down
Loading