Class: Azure::ARM::Web::Models::SiteSourceControlProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::SiteSourceControlProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/site_source_control_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#branch ⇒ String
Name of branch to use for deployment.
-
#deployment_rollback_enabled ⇒ Boolean
Whether to manual or continuous integration.
-
#is_manual_integration ⇒ Boolean
Whether to manual or continuous integration.
-
#is_mercurial ⇒ Boolean
Mercurial or Git repository type.
-
#repo_url ⇒ String
Repository or source control url.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ SiteSourceControlProperties
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#branch ⇒ String
Returns Name of branch to use for deployment.
19 20 21 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 19 def branch @branch end |
#deployment_rollback_enabled ⇒ Boolean
Returns Whether to manual or continuous integration.
25 26 27 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 25 def deployment_rollback_enabled @deployment_rollback_enabled end |
#is_manual_integration ⇒ Boolean
Returns Whether to manual or continuous integration.
22 23 24 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 22 def is_manual_integration @is_manual_integration end |
#is_mercurial ⇒ Boolean
Returns Mercurial or Git repository type.
28 29 30 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 28 def is_mercurial @is_mercurial end |
#repo_url ⇒ String
Returns Repository or source control url.
16 17 18 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 16 def repo_url @repo_url end |
Class Method Details
.deserialize_object(object) ⇒ SiteSourceControlProperties
Deserializes given Ruby Hash into Model object.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 69 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 |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 42 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 |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
33 34 35 |
# File 'lib/azure_mgmt_web/models/site_source_control_properties.rb', line 33 def validate # Nothing to validate end |