# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # Model object. # class SiteSourceControlProperties include MsRestAzure # @return [String] Repository or source control url attr_accessor :repo_url # @return [String] Name of branch to use for deployment attr_accessor :branch # @return [Boolean] Whether to manual or continuous integration attr_accessor :is_manual_integration # @return [Boolean] Whether to manual or continuous integration attr_accessor :deployment_rollback_enabled # @return [Boolean] Mercurial or Git repository type attr_accessor :is_mercurial # # Validate the object. Throws ValidationError if validation fails. # def validate # Nothing to validate end # # Serializes given Model object into Ruby Hash. # @param object Model object to serialize. # @return [Hash] Serialized object in form of Ruby Hash. # def self.serialize_object(object) object.validate output_object = {} serialized_property = object.repo_url output_object['repoUrl'] = serialized_property unless serialized_property.nil? serialized_property = object.branch output_object['branch'] = serialized_property unless serialized_property.nil? serialized_property = object.is_manual_integration output_object['isManualIntegration'] = serialized_property unless serialized_property.nil? serialized_property = object.deployment_rollback_enabled output_object['deploymentRollbackEnabled'] = serialized_property unless serialized_property.nil? serialized_property = object.is_mercurial output_object['isMercurial'] = serialized_property unless serialized_property.nil? output_object end # # Deserializes given Ruby Hash into Model object. # @param object [Hash] Ruby Hash object to deserialize. # @return [SiteSourceControlProperties] Deserialized object. # def self.deserialize_object(object) return if object.nil? output_object = SiteSourceControlProperties.new deserialized_property = object['repoUrl'] output_object.repo_url = deserialized_property deserialized_property = object['branch'] output_object.branch = deserialized_property deserialized_property = object['isManualIntegration'] output_object.is_manual_integration = deserialized_property deserialized_property = object['deploymentRollbackEnabled'] output_object.deployment_rollback_enabled = deserialized_property deserialized_property = object['isMercurial'] output_object.is_mercurial = deserialized_property output_object end end end end