class Azure::Web::Mgmt::V2020_09_01::Models::ValidateRequest

Resource validation request content.

Attributes

capacity[RW]

@return [Integer] Target capacity of the App Service plan (number of VMs).

container_image_platform[RW]

@return [String] Platform (windows or linux)

container_image_repository[RW]

@return [String] Repository name (image name)

container_image_tag[RW]

@return [String] Image tag

container_registry_base_url[RW]

@return [String] Base URL of the container registry

container_registry_password[RW]

@return [String] Password for to access the container registry

container_registry_username[RW]

@return [String] Username for to access the container registry

hosting_environment[RW]

@return [String] Name of App Service Environment where app or App Service plan should be created.

is_spot[RW]

@return [Boolean] true if App Service plan is for Spot instances; otherwise, false.

is_xenon[RW]

@return [Boolean] true if App Service plan is running as a windows container

location[RW]

@return [String] Expected location of the resource.

name[RW]

@return [String] Resource name to verify.

need_linux_workers[RW]

@return [Boolean] true if App Service plan is for Linux workers; otherwise, false.

server_farm_id[RW]

@return [String] ARM resource ID of an App Service plan that would host the app.

sku_name[RW]

@return [String] Name of the target SKU for the App Service plan.

type[RW]

@return [ValidateResourceTypes] Resource type used for verification. Possible values include: 'ServerFarm', 'Site'

Private Class Methods

mapper() click to toggle source

Mapper for ValidateRequest class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-09-01/generated/azure_mgmt_web/models/validate_request.rb, line 75
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ValidateRequest',
    type: {
      name: 'Composite',
      class_name: 'ValidateRequest',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        server_farm_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.serverFarmId',
          type: {
            name: 'String'
          }
        },
        sku_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.skuName',
          type: {
            name: 'String'
          }
        },
        need_linux_workers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.needLinuxWorkers',
          type: {
            name: 'Boolean'
          }
        },
        is_spot: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isSpot',
          type: {
            name: 'Boolean'
          }
        },
        capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.capacity',
          constraints: {
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        hosting_environment: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hostingEnvironment',
          type: {
            name: 'String'
          }
        },
        is_xenon: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isXenon',
          type: {
            name: 'Boolean'
          }
        },
        container_registry_base_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerRegistryBaseUrl',
          type: {
            name: 'String'
          }
        },
        container_registry_username: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerRegistryUsername',
          type: {
            name: 'String'
          }
        },
        container_registry_password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerRegistryPassword',
          type: {
            name: 'String'
          }
        },
        container_image_repository: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerImageRepository',
          type: {
            name: 'String'
          }
        },
        container_image_tag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerImageTag',
          type: {
            name: 'String'
          }
        },
        container_image_platform: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerImagePlatform',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end