Class: Azure::ARM::Web::Models::DeploymentProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::DeploymentProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/deployment_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Active.
-
#author ⇒ String
Author.
-
#author_email ⇒ String
AuthorEmail.
-
#deployer ⇒ String
Deployer.
-
#details ⇒ String
Detail.
-
#end_time ⇒ DateTime
EndTime.
-
#id ⇒ String
Id.
-
#message ⇒ String
Message.
-
#start_time ⇒ DateTime
StartTime.
-
#status ⇒ Integer
Status.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ DeploymentProperties
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
#active ⇒ Boolean
Returns Active.
40 41 42 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 40 def active @active end |
#author ⇒ String
Returns Author.
25 26 27 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 25 def end |
#author_email ⇒ String
Returns AuthorEmail.
31 32 33 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 31 def end |
#deployer ⇒ String
Returns Deployer.
28 29 30 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 28 def deployer @deployer end |
#details ⇒ String
Returns Detail.
43 44 45 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 43 def details @details end |
#end_time ⇒ DateTime
Returns EndTime.
37 38 39 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 37 def end_time @end_time end |
#id ⇒ String
Returns Id.
16 17 18 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 16 def id @id end |
#message ⇒ String
Returns Message.
22 23 24 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 22 def end |
#start_time ⇒ DateTime
Returns StartTime.
34 35 36 |
# File 'lib/azure_mgmt_web/models/deployment_properties.rb', line 34 def start_time @start_time end |
#status ⇒ Integer
Returns 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.
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. = deserialized_property deserialized_property = object['author'] output_object. = deserialized_property deserialized_property = object['deployer'] output_object.deployer = deserialized_property deserialized_property = object['author_email'] output_object. = 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.
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. output_object['message'] = serialized_property unless serialized_property.nil? serialized_property = object. 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. 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
#validate ⇒ Object
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 |