Class: Azure::ARM::Web::Models::HostingEnvironmentProfile
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::HostingEnvironmentProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/hosting_environment_profile.rb
Overview
Specification for a hostingEnvironment (App Service Environment) to use for this resource
Instance Attribute Summary collapse
-
#id ⇒ String
Environment).
-
#name ⇒ String
Environment) (read only).
-
#type ⇒ String
Environment) (read only).
Class Method Summary collapse
-
.deserialize_object(object) ⇒ HostingEnvironmentProfile
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
#id ⇒ String
Environment)
18 19 20 |
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 18 def id @id end |
#name ⇒ String
Environment) (read only)
22 23 24 |
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 22 def name @name end |
#type ⇒ String
Environment) (read only)
26 27 28 |
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 26 def type @type end |
Class Method Details
.deserialize_object(object) ⇒ HostingEnvironmentProfile
Deserializes given Ruby Hash into Model object.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 61 def self.deserialize_object(object) return if object.nil? output_object = HostingEnvironmentProfile.new deserialized_property = object['id'] output_object.id = deserialized_property deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['type'] output_object.type = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 40 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.name output_object['name'] = serialized_property unless serialized_property.nil? serialized_property = object.type output_object['type'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
31 32 33 |
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 31 def validate # Nothing to validate end |