# 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::V2016_08_01 module Models # # Configuration of an App Service app. # class SiteConfig include MsRestAzure # @return [Integer] Number of workers. attr_accessor :number_of_workers # @return [Array] Default documents. attr_accessor :default_documents # @return [String] .NET Framework version. Default value: 'v4.6' . attr_accessor :net_framework_version # @return [String] Version of PHP. attr_accessor :php_version # @return [String] Version of Python. attr_accessor :python_version # @return [String] Version of Node.js. attr_accessor :node_version # @return [String] Linux App Framework and version attr_accessor :linux_fx_version # @return [Boolean] true if request tracing is enabled; # otherwise, false. attr_accessor :request_tracing_enabled # @return [DateTime] Request tracing expiration time. attr_accessor :request_tracing_expiration_time # @return [Boolean] true if remote debugging is enabled; # otherwise, false. attr_accessor :remote_debugging_enabled # @return [String] Remote debugging version. attr_accessor :remote_debugging_version # @return [Boolean] true if HTTP logging is enabled; # otherwise, false. attr_accessor :http_logging_enabled # @return [Integer] HTTP logs directory size limit. attr_accessor :logs_directory_size_limit # @return [Boolean] true if detailed error logging is # enabled; otherwise, false. attr_accessor :detailed_error_logging_enabled # @return [String] Publishing user name. attr_accessor :publishing_username # @return [Array] Application settings. attr_accessor :app_settings # @return [Array] Connection strings. attr_accessor :connection_strings # @return [SiteMachineKey] Site MachineKey. attr_accessor :machine_key # @return [Array] Handler mappings. attr_accessor :handler_mappings # @return [String] Document root. attr_accessor :document_root # @return [ScmType] SCM type. Possible values include: 'None', 'Dropbox', # 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', # 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', # 'VSO' attr_accessor :scm_type # @return [Boolean] true to use 32-bit worker process; # otherwise, false. attr_accessor :use32bit_worker_process # @return [Boolean] true if WebSocket is enabled; otherwise, # false. attr_accessor :web_sockets_enabled # @return [Boolean] true if Always On is enabled; otherwise, # false. attr_accessor :always_on # @return [String] Java version. attr_accessor :java_version # @return [String] Java container. attr_accessor :java_container # @return [String] Java container version. attr_accessor :java_container_version # @return [String] App command line to launch. attr_accessor :app_command_line # @return [ManagedPipelineMode] Managed pipeline mode. Possible values # include: 'Integrated', 'Classic' attr_accessor :managed_pipeline_mode # @return [Array] Virtual applications. attr_accessor :virtual_applications # @return [SiteLoadBalancing] Site load balancing. Possible values # include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', # 'WeightedTotalTraffic', 'RequestHash' attr_accessor :load_balancing # @return [Experiments] This is work around for polymophic types. attr_accessor :experiments # @return [SiteLimits] Site limits. attr_accessor :limits # @return [Boolean] true if Auto Heal is enabled; otherwise, # false. attr_accessor :auto_heal_enabled # @return [AutoHealRules] Auto Heal rules. attr_accessor :auto_heal_rules # @return [String] Tracing options. attr_accessor :tracing_options # @return [String] Virtual Network name. attr_accessor :vnet_name # @return [CorsSettings] Cross-Origin Resource Sharing (CORS) settings. attr_accessor :cors # @return [PushSettings] Push endpoint settings. attr_accessor :push # @return [ApiDefinitionInfo] Information about the formal API definition # for the app. attr_accessor :api_definition # @return [String] Auto-swap slot name. attr_accessor :auto_swap_slot_name # @return [Boolean] true to enable local MySQL; otherwise, # false. Default value: false . attr_accessor :local_my_sql_enabled # @return [Array] IP security restrictions. attr_accessor :ip_security_restrictions # @return [Boolean] Http20Enabled: configures a web site to allow clients # to connect over http2.0. Default value: true . attr_accessor :http20enabled # @return [SupportedTlsVersions] MinTlsVersion: configures the minimum # version of TLS required for SSL requests. Possible values include: # '1.0', '1.1', '1.2' attr_accessor :min_tls_version # # Mapper for SiteConfig class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SiteConfig', type: { name: 'Composite', class_name: 'SiteConfig', model_properties: { number_of_workers: { client_side_validation: true, required: false, serialized_name: 'numberOfWorkers', type: { name: 'Number' } }, default_documents: { client_side_validation: true, required: false, serialized_name: 'defaultDocuments', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, net_framework_version: { client_side_validation: true, required: false, serialized_name: 'netFrameworkVersion', default_value: 'v4.6', type: { name: 'String' } }, php_version: { client_side_validation: true, required: false, serialized_name: 'phpVersion', type: { name: 'String' } }, python_version: { client_side_validation: true, required: false, serialized_name: 'pythonVersion', type: { name: 'String' } }, node_version: { client_side_validation: true, required: false, serialized_name: 'nodeVersion', type: { name: 'String' } }, linux_fx_version: { client_side_validation: true, required: false, serialized_name: 'linuxFxVersion', type: { name: 'String' } }, request_tracing_enabled: { client_side_validation: true, required: false, serialized_name: 'requestTracingEnabled', type: { name: 'Boolean' } }, request_tracing_expiration_time: { client_side_validation: true, required: false, serialized_name: 'requestTracingExpirationTime', type: { name: 'DateTime' } }, remote_debugging_enabled: { client_side_validation: true, required: false, serialized_name: 'remoteDebuggingEnabled', type: { name: 'Boolean' } }, remote_debugging_version: { client_side_validation: true, required: false, serialized_name: 'remoteDebuggingVersion', type: { name: 'String' } }, http_logging_enabled: { client_side_validation: true, required: false, serialized_name: 'httpLoggingEnabled', type: { name: 'Boolean' } }, logs_directory_size_limit: { client_side_validation: true, required: false, serialized_name: 'logsDirectorySizeLimit', type: { name: 'Number' } }, detailed_error_logging_enabled: { client_side_validation: true, required: false, serialized_name: 'detailedErrorLoggingEnabled', type: { name: 'Boolean' } }, publishing_username: { client_side_validation: true, required: false, serialized_name: 'publishingUsername', type: { name: 'String' } }, app_settings: { client_side_validation: true, required: false, serialized_name: 'appSettings', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'NameValuePairElementType', type: { name: 'Composite', class_name: 'NameValuePair' } } } }, connection_strings: { client_side_validation: true, required: false, serialized_name: 'connectionStrings', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ConnStringInfoElementType', type: { name: 'Composite', class_name: 'ConnStringInfo' } } } }, machine_key: { client_side_validation: true, required: false, read_only: true, serialized_name: 'machineKey', type: { name: 'Composite', class_name: 'SiteMachineKey' } }, handler_mappings: { client_side_validation: true, required: false, serialized_name: 'handlerMappings', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HandlerMappingElementType', type: { name: 'Composite', class_name: 'HandlerMapping' } } } }, document_root: { client_side_validation: true, required: false, serialized_name: 'documentRoot', type: { name: 'String' } }, scm_type: { client_side_validation: true, required: false, serialized_name: 'scmType', type: { name: 'String' } }, use32bit_worker_process: { client_side_validation: true, required: false, serialized_name: 'use32BitWorkerProcess', type: { name: 'Boolean' } }, web_sockets_enabled: { client_side_validation: true, required: false, serialized_name: 'webSocketsEnabled', type: { name: 'Boolean' } }, always_on: { client_side_validation: true, required: false, serialized_name: 'alwaysOn', type: { name: 'Boolean' } }, java_version: { client_side_validation: true, required: false, serialized_name: 'javaVersion', type: { name: 'String' } }, java_container: { client_side_validation: true, required: false, serialized_name: 'javaContainer', type: { name: 'String' } }, java_container_version: { client_side_validation: true, required: false, serialized_name: 'javaContainerVersion', type: { name: 'String' } }, app_command_line: { client_side_validation: true, required: false, serialized_name: 'appCommandLine', type: { name: 'String' } }, managed_pipeline_mode: { client_side_validation: true, required: false, serialized_name: 'managedPipelineMode', type: { name: 'Enum', module: 'ManagedPipelineMode' } }, virtual_applications: { client_side_validation: true, required: false, serialized_name: 'virtualApplications', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'VirtualApplicationElementType', type: { name: 'Composite', class_name: 'VirtualApplication' } } } }, load_balancing: { client_side_validation: true, required: false, serialized_name: 'loadBalancing', type: { name: 'Enum', module: 'SiteLoadBalancing' } }, experiments: { client_side_validation: true, required: false, serialized_name: 'experiments', type: { name: 'Composite', class_name: 'Experiments' } }, limits: { client_side_validation: true, required: false, serialized_name: 'limits', type: { name: 'Composite', class_name: 'SiteLimits' } }, auto_heal_enabled: { client_side_validation: true, required: false, serialized_name: 'autoHealEnabled', type: { name: 'Boolean' } }, auto_heal_rules: { client_side_validation: true, required: false, serialized_name: 'autoHealRules', type: { name: 'Composite', class_name: 'AutoHealRules' } }, tracing_options: { client_side_validation: true, required: false, serialized_name: 'tracingOptions', type: { name: 'String' } }, vnet_name: { client_side_validation: true, required: false, serialized_name: 'vnetName', type: { name: 'String' } }, cors: { client_side_validation: true, required: false, serialized_name: 'cors', type: { name: 'Composite', class_name: 'CorsSettings' } }, push: { client_side_validation: true, required: false, serialized_name: 'push', type: { name: 'Composite', class_name: 'PushSettings' } }, api_definition: { client_side_validation: true, required: false, serialized_name: 'apiDefinition', type: { name: 'Composite', class_name: 'ApiDefinitionInfo' } }, auto_swap_slot_name: { client_side_validation: true, required: false, serialized_name: 'autoSwapSlotName', type: { name: 'String' } }, local_my_sql_enabled: { client_side_validation: true, required: false, serialized_name: 'localMySqlEnabled', default_value: false, type: { name: 'Boolean' } }, ip_security_restrictions: { client_side_validation: true, required: false, serialized_name: 'ipSecurityRestrictions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'IpSecurityRestrictionElementType', type: { name: 'Composite', class_name: 'IpSecurityRestriction' } } } }, http20enabled: { client_side_validation: true, required: false, serialized_name: 'http20Enabled', default_value: true, type: { name: 'Boolean' } }, min_tls_version: { client_side_validation: true, required: false, serialized_name: 'minTlsVersion', type: { name: 'String' } } } } } end end end end