/// <summary> /// Initializes a new instance of the ValidateRequest class. /// </summary> /// <param name="name">Resource name to verify.</param> /// <param name="type">Resource type used for verification. Possible /// values include: 'ServerFarm', 'Site'</param> /// <param name="location">Expected location of the resource.</param> /// <param name="serverFarmId">ARM resource ID of an App Service plan /// that would host the app.</param> /// <param name="skuName">Name of the target SKU for the App Service /// plan.</param> /// <param name="needLinuxWorkers"><code>true</code> if App /// Service plan is for Linux workers; otherwise, /// <code>false</code>.</param> /// <param name="isSpot"><code>true</code> if App Service /// plan is for Spot instances; otherwise, /// <code>false</code>.</param> /// <param name="capacity">Target capacity of the App Service plan /// (number of VM's).</param> /// <param name="hostingEnvironment">Name of App Service Environment /// where app or App Service plan should be created.</param> public ValidateRequest(string name, ValidateResourceTypes type, string location, string serverFarmId = default(string), string skuName = default(string), bool?needLinuxWorkers = default(bool?), bool?isSpot = default(bool?), int?capacity = default(int?), string hostingEnvironment = default(string)) { Name = name; Type = type; Location = location; ServerFarmId = serverFarmId; SkuName = skuName; NeedLinuxWorkers = needLinuxWorkers; IsSpot = isSpot; Capacity = capacity; HostingEnvironment = hostingEnvironment; CustomInit(); }
/// <summary> /// Initializes a new instance of the ValidateRequest class. /// </summary> /// <param name="name">Resource name to verify.</param> /// <param name="type">Resource type used for verification. Possible /// values include: 'ServerFarm', 'Site'</param> /// <param name="location">Expected location of the resource.</param> /// <param name="serverFarmId">ARM resource ID of an App Service plan /// that would host the app.</param> /// <param name="skuName">Name of the target SKU for the App Service /// plan.</param> /// <param name="needLinuxWorkers"><code>true</code> if App /// Service plan is for Linux workers; otherwise, /// <code>false</code>.</param> /// <param name="isSpot"><code>true</code> if App Service /// plan is for Spot instances; otherwise, /// <code>false</code>.</param> /// <param name="capacity">Target capacity of the App Service plan /// (number of VMs).</param> /// <param name="hostingEnvironment">Name of App Service Environment /// where app or App Service plan should be created.</param> /// <param name="isXenon"><code>true</code> if App Service /// plan is running as a windows container</param> /// <param name="containerRegistryBaseUrl">Base URL of the container /// registry</param> /// <param name="containerRegistryUsername">Username for to access the /// container registry</param> /// <param name="containerRegistryPassword">Password for to access the /// container registry</param> /// <param name="containerImageRepository">Repository name (image /// name)</param> /// <param name="containerImageTag">Image tag</param> /// <param name="containerImagePlatform">Platform (windows or /// linux)</param> public ValidateRequest(string name, ValidateResourceTypes type, string location, string serverFarmId = default(string), string skuName = default(string), bool?needLinuxWorkers = default(bool?), bool?isSpot = default(bool?), int?capacity = default(int?), string hostingEnvironment = default(string), bool?isXenon = default(bool?), string containerRegistryBaseUrl = default(string), string containerRegistryUsername = default(string), string containerRegistryPassword = default(string), string containerImageRepository = default(string), string containerImageTag = default(string), string containerImagePlatform = default(string)) { Name = name; Type = type; Location = location; ServerFarmId = serverFarmId; SkuName = skuName; NeedLinuxWorkers = needLinuxWorkers; IsSpot = isSpot; Capacity = capacity; HostingEnvironment = hostingEnvironment; IsXenon = isXenon; ContainerRegistryBaseUrl = containerRegistryBaseUrl; ContainerRegistryUsername = containerRegistryUsername; ContainerRegistryPassword = containerRegistryPassword; ContainerImageRepository = containerImageRepository; ContainerImageTag = containerImageTag; ContainerImagePlatform = containerImagePlatform; CustomInit(); }