Class: Azure::ARM::Web::Models::VirtualNetworkProfile
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::VirtualNetworkProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/virtual_network_profile.rb
Overview
Specification for using a virtual network
Instance Attribute Summary collapse
-
#id ⇒ String
Resource id of the virtual network.
-
#name ⇒ String
Name of the virtual network (read-only).
-
#subnet ⇒ String
Subnet within the virtual network.
-
#type ⇒ String
Resource type of the virtual network (read-only).
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VirtualNetworkProfile
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
Returns Resource id of the virtual network.
16 17 18 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 16 def id @id end |
#name ⇒ String
Returns Name of the virtual network (read-only).
19 20 21 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 19 def name @name end |
#subnet ⇒ String
Returns Subnet within the virtual network.
25 26 27 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 25 def subnet @subnet end |
#type ⇒ String
Returns Resource type of the virtual network (read-only).
22 23 24 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 22 def type @type end |
Class Method Details
.deserialize_object(object) ⇒ VirtualNetworkProfile
Deserializes given Ruby Hash into Model object.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 63 def self.deserialize_object(object) return if object.nil? output_object = VirtualNetworkProfile.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 deserialized_property = object['subnet'] output_object.subnet = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 39 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? serialized_property = object.subnet output_object['subnet'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
30 31 32 |
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 30 def validate # Nothing to validate end |