# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # App Service plan. # class AppServicePlan < MsRestAzure::Resource include MsRestAzure # @return [String] Name for the App Service plan. attr_accessor :app_service_plan_name # @return [String] Target worker tier assigned to the App Service plan. attr_accessor :worker_tier_name # @return [StatusOptions] App Service plan status. Possible values # include: 'Ready', 'Pending' attr_accessor :status # @return [String] App Service plan subscription. attr_accessor :subscription # @return [String] App Service plan administration site. attr_accessor :admin_site_name # @return [HostingEnvironmentProfile] Specification for the App Service # Environment to use for the App Service plan. attr_accessor :hosting_environment_profile # @return [Integer] Maximum number of instances that can be assigned to # this App Service plan. attr_accessor :maximum_number_of_workers # @return [String] Geographical location for the App Service plan. attr_accessor :geo_region # @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 . attr_accessor :per_site_scaling # @return [Integer] Number of apps assigned to this App Service plan. attr_accessor :number_of_sites # @return [String] Resource group of the App Service plan. attr_accessor :resource_group # @return [Boolean] Reserved. Default value: false . attr_accessor :reserved # @return [Integer] Scaling worker count. attr_accessor :target_worker_count # @return [Integer] Scaling worker size ID. attr_accessor :target_worker_size_id # @return [ProvisioningState] Provisioning state of the App Service # Environment. Possible values include: 'Succeeded', 'Failed', # 'Canceled', 'InProgress', 'Deleting' attr_accessor :provisioning_state # @return [SkuDescription] attr_accessor :sku # # Mapper for AppServicePlan class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'AppServicePlan', type: { name: 'Composite', class_name: 'AppServicePlan', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } }, kind: { required: false, serialized_name: 'kind', type: { name: 'String' } }, location: { required: true, serialized_name: 'location', type: { name: 'String' } }, type: { required: false, serialized_name: 'type', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, app_service_plan_name: { required: false, serialized_name: 'properties.name', type: { name: 'String' } }, worker_tier_name: { required: false, serialized_name: 'properties.workerTierName', type: { name: 'String' } }, status: { required: false, read_only: true, serialized_name: 'properties.status', type: { name: 'Enum', module: 'StatusOptions' } }, subscription: { required: false, read_only: true, serialized_name: 'properties.subscription', type: { name: 'String' } }, admin_site_name: { required: false, serialized_name: 'properties.adminSiteName', type: { name: 'String' } }, hosting_environment_profile: { required: false, serialized_name: 'properties.hostingEnvironmentProfile', type: { name: 'Composite', class_name: 'HostingEnvironmentProfile' } }, maximum_number_of_workers: { required: false, read_only: true, serialized_name: 'properties.maximumNumberOfWorkers', type: { name: 'Number' } }, geo_region: { required: false, read_only: true, serialized_name: 'properties.geoRegion', type: { name: 'String' } }, per_site_scaling: { required: false, serialized_name: 'properties.perSiteScaling', default_value: false, type: { name: 'Boolean' } }, number_of_sites: { required: false, read_only: true, serialized_name: 'properties.numberOfSites', type: { name: 'Number' } }, resource_group: { required: false, read_only: true, serialized_name: 'properties.resourceGroup', type: { name: 'String' } }, reserved: { required: false, serialized_name: 'properties.reserved', default_value: false, type: { name: 'Boolean' } }, target_worker_count: { required: false, serialized_name: 'properties.targetWorkerCount', type: { name: 'Number' } }, target_worker_size_id: { required: false, serialized_name: 'properties.targetWorkerSizeId', type: { name: 'Number' } }, provisioning_state: { required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'Enum', module: 'ProvisioningState' } }, sku: { required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'SkuDescription' } } } } } end end end end