# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Web::Mgmt::V2015_04_01 module Models # # A web app, a mobile app backend, or an API app. # class Site < Resource include MsRestAzure # @return [String] Current state of the app. attr_accessor :state # @return [Array] Hostnames associated with the app. attr_accessor :host_names # @return [String] Name of the repository site. attr_accessor :repository_site_name # @return [UsageState] State indicating whether the app has exceeded its # quota usage. Read-only. Possible values include: 'Normal', 'Exceeded' attr_accessor :usage_state # @return [Boolean] true if the app is enabled; otherwise, # false. Setting this value to false disables the app (takes # the app offline). attr_accessor :enabled # @return [Array] Enabled hostnames for the app.Hostnames need to # be assigned (see HostNames) AND enabled. Otherwise, # the app is not served on those hostnames. attr_accessor :enabled_host_names # @return [SiteAvailabilityState] Management information availability # state for the app. Possible values include: 'Normal', 'Limited', # 'DisasterRecoveryMode' attr_accessor :availability_state # @return [Array] Hostname SSL states are used to # manage the SSL bindings for app's hostnames. attr_accessor :host_name_ssl_states # @return [String] Resource ID of the associated App Service plan, # formatted as: # "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". attr_accessor :server_farm_id # @return [Boolean] true if reserved; otherwise, # false. Default value: false . attr_accessor :reserved # @return [DateTime] Last time the app was modified, in UTC. Read-only. attr_accessor :last_modified_time_utc # @return [SiteConfig] Configuration of the app. attr_accessor :site_config # @return [Array] Azure Traffic Manager hostnames associated with # the app. Read-only. attr_accessor :traffic_manager_host_names # @return [Boolean] true to stop SCM (KUDU) site when the # app is stopped; otherwise, false. The default is # false. Default value: false . attr_accessor :scm_site_also_stopped # @return [String] Specifies which deployment slot this app will swap # into. Read-only. attr_accessor :target_swap_slot # @return [HostingEnvironmentProfile] App Service Environment to use for # the app. attr_accessor :hosting_environment_profile # @return [Boolean] true to enable client affinity; # false to stop sending session affinity cookies, which # route client requests in the same session to the same instance. Default # is true. attr_accessor :client_affinity_enabled # @return [Boolean] true to enable client certificate # authentication (TLS mutual authentication); otherwise, # false. Default is false. attr_accessor :client_cert_enabled # @return [Boolean] true to disable the public hostnames of # the app; otherwise, false. # If true, the app is only accessible via API management # process. attr_accessor :host_names_disabled # @return [String] List of IP addresses that the app uses for outbound # connections (e.g. database access). Includes VIPs from tenants that # site can be hosted with current settings. Read-only. attr_accessor :outbound_ip_addresses # @return [String] List of IP addresses that the app uses for outbound # connections (e.g. database access). Includes VIPs from all tenants. # Read-only. attr_accessor :possible_outbound_ip_addresses # @return [Integer] Size of the function container. attr_accessor :container_size # @return [Integer] Maximum allowed daily memory-time quota (applicable # on dynamic apps only). attr_accessor :daily_memory_time_quota # @return [DateTime] App suspended till in case memory-time quota is # exceeded. attr_accessor :suspended_till # @return [Integer] Maximum number of workers. # This only applies to Functions container. attr_accessor :max_number_of_workers # @return [CloningInfo] If specified during app creation, the app is # cloned from a source app. attr_accessor :cloning_info # @return [SnapshotRecoveryRequest] If specified during app creation, the # app is created from a previous snapshot. attr_accessor :snapshot_info # @return [String] Name of the resource group the app belongs to. # Read-only. attr_accessor :resource_group # @return [Boolean] true if the app is a default container; # otherwise, false. attr_accessor :is_default_container # @return [String] Default hostname of the app. Read-only. attr_accessor :default_host_name # @return [SlotSwapStatus] Status of the last deployment slot swap # operation. attr_accessor :slot_swap_status # @return [Boolean] HttpsOnly: configures a web site to accept only https # requests. Issues redirect for # http requests attr_accessor :https_only # @return [ManagedServiceIdentity] attr_accessor :identity # # Mapper for Site class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Site', type: { name: 'Composite', class_name: 'Site', 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' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', type: { name: 'String' } }, host_names: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hostNames', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, repository_site_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.repositorySiteName', type: { name: 'String' } }, usage_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.usageState', type: { name: 'Enum', module: 'UsageState' } }, enabled: { client_side_validation: true, required: false, serialized_name: 'properties.enabled', type: { name: 'Boolean' } }, enabled_host_names: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.enabledHostNames', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, availability_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.availabilityState', type: { name: 'Enum', module: 'SiteAvailabilityState' } }, host_name_ssl_states: { client_side_validation: true, required: false, serialized_name: 'properties.hostNameSslStates', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HostNameSslStateElementType', type: { name: 'Composite', class_name: 'HostNameSslState' } } } }, server_farm_id: { client_side_validation: true, required: false, serialized_name: 'properties.serverFarmId', type: { name: 'String' } }, reserved: { client_side_validation: true, required: false, serialized_name: 'properties.reserved', default_value: false, type: { name: 'Boolean' } }, last_modified_time_utc: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTimeUtc', type: { name: 'DateTime' } }, site_config: { client_side_validation: true, required: false, serialized_name: 'properties.siteConfig', type: { name: 'Composite', class_name: 'SiteConfig' } }, traffic_manager_host_names: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.trafficManagerHostNames', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, scm_site_also_stopped: { client_side_validation: true, required: false, serialized_name: 'properties.scmSiteAlsoStopped', default_value: false, type: { name: 'Boolean' } }, target_swap_slot: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.targetSwapSlot', type: { name: 'String' } }, hosting_environment_profile: { client_side_validation: true, required: false, serialized_name: 'properties.hostingEnvironmentProfile', type: { name: 'Composite', class_name: 'HostingEnvironmentProfile' } }, client_affinity_enabled: { client_side_validation: true, required: false, serialized_name: 'properties.clientAffinityEnabled', type: { name: 'Boolean' } }, client_cert_enabled: { client_side_validation: true, required: false, serialized_name: 'properties.clientCertEnabled', type: { name: 'Boolean' } }, host_names_disabled: { client_side_validation: true, required: false, serialized_name: 'properties.hostNamesDisabled', type: { name: 'Boolean' } }, outbound_ip_addresses: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.outboundIpAddresses', type: { name: 'String' } }, possible_outbound_ip_addresses: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.possibleOutboundIpAddresses', type: { name: 'String' } }, container_size: { client_side_validation: true, required: false, serialized_name: 'properties.containerSize', type: { name: 'Number' } }, daily_memory_time_quota: { client_side_validation: true, required: false, serialized_name: 'properties.dailyMemoryTimeQuota', type: { name: 'Number' } }, suspended_till: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.suspendedTill', type: { name: 'DateTime' } }, max_number_of_workers: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.maxNumberOfWorkers', type: { name: 'Number' } }, cloning_info: { client_side_validation: true, required: false, serialized_name: 'properties.cloningInfo', type: { name: 'Composite', class_name: 'CloningInfo' } }, snapshot_info: { client_side_validation: true, required: false, serialized_name: 'properties.snapshotInfo', type: { name: 'Composite', class_name: 'SnapshotRecoveryRequest' } }, resource_group: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceGroup', type: { name: 'String' } }, is_default_container: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.isDefaultContainer', type: { name: 'Boolean' } }, default_host_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.defaultHostName', type: { name: 'String' } }, slot_swap_status: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.slotSwapStatus', type: { name: 'Composite', class_name: 'SlotSwapStatus' } }, https_only: { client_side_validation: true, required: false, serialized_name: 'properties.httpsOnly', type: { name: 'Boolean' } }, identity: { client_side_validation: true, required: false, serialized_name: 'identity', type: { name: 'Composite', class_name: 'ManagedServiceIdentity' } } } } } end end end end