class Azure::Web::Mgmt::V2020_09_01::Models::AppServicePlanPatchResource

ARM resource for a app service plan.

Attributes

free_offer_expiration_time[RW]

@return [DateTime] The time when the server farm free offer expires.

geo_region[RW]

@return [String] Geographical location for the App Service plan.

hosting_environment_profile[RW]

@return [HostingEnvironmentProfile] Specification for the App Service Environment to use for the App Service plan.

hyper_v[RW]

@return [Boolean] If Hyper-V container app service plan true, false otherwise. Default value: false .

is_spot[RW]

@return [Boolean] If true, this App Service Plan owns spot instances.

is_xenon[RW]

@return [Boolean] Obsolete: If Hyper-V container app service plan true, false otherwise. Default value: false .

maximum_elastic_worker_count[RW]

@return [Integer] Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan

maximum_number_of_workers[RW]

@return [Integer] Maximum number of instances that can be assigned to this App Service plan.

number_of_sites[RW]

@return [Integer] Number of apps assigned to this App Service plan.

per_site_scaling[RW]

@return [Boolean] 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 .

provisioning_state[RW]

@return [ProvisioningState] Provisioning state of the App Service Environment. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress', 'Deleting'

reserved[RW]

@return [Boolean] This needs to set to true when creating a Linux App Service Plan, along with kind set to Linux. It should be false otherwise. Default value: false .

resource_group[RW]

@return [String] Resource group of the App Service plan.

spot_expiration_time[RW]

@return [DateTime] The time when the server farm expires. Valid only if it is a spot server farm.

status[RW]

@return [StatusOptions] App Service plan status. Possible values include: 'Ready', 'Pending', 'Creating'

subscription[RW]

@return [String] App Service plan subscription.

target_worker_count[RW]

@return [Integer] Scaling worker count.

target_worker_size_id[RW]

@return [Integer] Scaling worker size ID.

worker_tier_name[RW]

@return [String] Target worker tier assigned to the App Service plan.

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb, line 93
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AppServicePlanPatchResource',
    type: {
      name: 'Composite',
      class_name: 'AppServicePlanPatchResource',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        system_data: {
          client_side_validation: true,
          required: false,
          serialized_name: 'systemData',
          type: {
            name: 'Composite',
            class_name: 'SystemData'
          }
        },
        worker_tier_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.workerTierName',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.status',
          type: {
            name: 'Enum',
            module: 'StatusOptions'
          }
        },
        subscription: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.subscription',
          type: {
            name: 'String'
          }
        },
        hosting_environment_profile: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hostingEnvironmentProfile',
          type: {
            name: 'Composite',
            class_name: 'HostingEnvironmentProfile'
          }
        },
        maximum_number_of_workers: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.maximumNumberOfWorkers',
          type: {
            name: 'Number'
          }
        },
        geo_region: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.geoRegion',
          type: {
            name: 'String'
          }
        },
        per_site_scaling: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.perSiteScaling',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        maximum_elastic_worker_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.maximumElasticWorkerCount',
          type: {
            name: 'Number'
          }
        },
        number_of_sites: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.numberOfSites',
          type: {
            name: 'Number'
          }
        },
        is_spot: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isSpot',
          type: {
            name: 'Boolean'
          }
        },
        spot_expiration_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.spotExpirationTime',
          type: {
            name: 'DateTime'
          }
        },
        free_offer_expiration_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.freeOfferExpirationTime',
          type: {
            name: 'DateTime'
          }
        },
        resource_group: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceGroup',
          type: {
            name: 'String'
          }
        },
        reserved: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.reserved',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        is_xenon: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isXenon',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        hyper_v: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hyperV',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        target_worker_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetWorkerCount',
          type: {
            name: 'Number'
          }
        },
        target_worker_size_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetWorkerSizeId',
          type: {
            name: 'Number'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'Enum',
            module: 'ProvisioningState'
          }
        }
      }
    }
  }
end