Class: Azure::ARM::Web::Models::SiteSourceControlProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/site_source_control_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#branchString

Returns Name of branch to use for deployment.

Returns:

  • (String)

    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_enabledBoolean

Returns Whether to manual or continuous integration.

Returns:

  • (Boolean)

    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_integrationBoolean

Returns Whether to manual or continuous integration.

Returns:

  • (Boolean)

    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_mercurialBoolean

Returns Mercurial or Git repository type.

Returns:

  • (Boolean)

    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_urlString

Returns Repository or source control url.

Returns:

  • (String)

    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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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

#validateObject

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