ValidateRequest Class

Resource validation request content.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.web._serialization.Model
ValidateRequest

Constructor

ValidateRequest(*, name: str, type: str | _models.ValidateResourceTypes, location: str, server_farm_id: str | None = None, sku_name: str | None = None, need_linux_workers: bool | None = None, is_spot: bool | None = None, capacity: int | None = None, hosting_environment: str | None = None, is_xenon: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

Resource name to verify. Required.

type

Resource type used for verification. Required. Known values are: "ServerFarm" and "Site".

location
str

Expected location of the resource. Required.

server_farm_id
str

ARM resource ID of an App Service plan that would host the app.

sku_name
str

Name of the target SKU for the App Service plan.

need_linux_workers

<code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.

is_spot

<code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.

capacity
int

Target capacity of the App Service plan (number of VMs).

hosting_environment
str

Name of App Service Environment where app or App Service plan should be created.

is_xenon

<code>true</code> if App Service plan is running as a windows container.

Variables

Name Description
name
str

Resource name to verify. Required.

type

Resource type used for verification. Required. Known values are: "ServerFarm" and "Site".

location
str

Expected location of the resource. Required.

server_farm_id
str

ARM resource ID of an App Service plan that would host the app.

sku_name
str

Name of the target SKU for the App Service plan.

need_linux_workers

<code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.

is_spot

<code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.

capacity
int

Target capacity of the App Service plan (number of VMs).

hosting_environment
str

Name of App Service Environment where app or App Service plan should be created.

is_xenon

<code>true</code> if App Service plan is running as a windows container.