Class: Azure::ARM::Web::Models::DeploymentProperties

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

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#activeBoolean

Returns Active.

Returns:

  • (Boolean)

    Active



40
41
42
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 40

def active
  @active
end

#authorString

Returns Author.

Returns:

  • (String)

    Author



25
26
27
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 25

def author
  @author
end

#author_emailString

Returns AuthorEmail.

Returns:

  • (String)

    AuthorEmail



31
32
33
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 31

def author_email
  @author_email
end

#deployerString

Returns Deployer.

Returns:

  • (String)

    Deployer



28
29
30
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 28

def deployer
  @deployer
end

#detailsString

Returns Detail.

Returns:

  • (String)

    Detail



43
44
45
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 43

def details
  @details
end

#end_timeDateTime

Returns EndTime.

Returns:

  • (DateTime)

    EndTime



37
38
39
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 37

def end_time
  @end_time
end

#idString

Returns Id.

Returns:

  • (String)

    Id



16
17
18
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 16

def id
  @id
end

#messageString

Returns Message.

Returns:

  • (String)

    Message



22
23
24
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 22

def message
  @message
end

#start_timeDateTime

Returns StartTime.

Returns:

  • (DateTime)

    StartTime



34
35
36
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 34

def start_time
  @start_time
end

#statusInteger

Returns Status.

Returns:

  • (Integer)

    Status



19
20
21
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 19

def status
  @status
end

Class Method Details

.deserialize_object(object) ⇒ DeploymentProperties

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 101

def self.deserialize_object(object)
  return if object.nil?
  output_object = DeploymentProperties.new

  deserialized_property = object['id']
  output_object.id = deserialized_property

  deserialized_property = object['status']
  deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
  output_object.status = deserialized_property

  deserialized_property = object['message']
  output_object.message = deserialized_property

  deserialized_property = object['author']
  output_object.author = deserialized_property

  deserialized_property = object['deployer']
  output_object.deployer = deserialized_property

  deserialized_property = object['author_email']
  output_object.author_email = deserialized_property

  deserialized_property = object['start_time']
  deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
  output_object.start_time = deserialized_property

  deserialized_property = object['end_time']
  deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
  output_object.end_time = deserialized_property

  deserialized_property = object['active']
  output_object.active = deserialized_property

  deserialized_property = object['details']
  output_object.details = 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.



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 57

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.id
  output_object['id'] = serialized_property unless serialized_property.nil?

  serialized_property = object.status
  output_object['status'] = serialized_property unless serialized_property.nil?

  serialized_property = object.message
  output_object['message'] = serialized_property unless serialized_property.nil?

  serialized_property = object.author
  output_object['author'] = serialized_property unless serialized_property.nil?

  serialized_property = object.deployer
  output_object['deployer'] = serialized_property unless serialized_property.nil?

  serialized_property = object.author_email
  output_object['author_email'] = serialized_property unless serialized_property.nil?

  serialized_property = object.start_time
  serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
  output_object['start_time'] = serialized_property unless serialized_property.nil?

  serialized_property = object.end_time
  serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
  output_object['end_time'] = serialized_property unless serialized_property.nil?

  serialized_property = object.active
  output_object['active'] = serialized_property unless serialized_property.nil?

  serialized_property = object.details
  output_object['details'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



48
49
50
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 48

def validate
  # Nothing to validate
end