Class: Azure::ARM::Web::Models::NetworkFeaturesProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::NetworkFeaturesProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/network_features_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#hybrid_connections ⇒ Array<RelayServiceConnectionEntity>
Summary view.
-
#virtual_network_connection ⇒ VnetInfo
The Vnet Summary view.
-
#virtual_network_name ⇒ String
The Vnet Name.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ NetworkFeaturesProperties
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
#hybrid_connections ⇒ Array<RelayServiceConnectionEntity>
Summary view
23 24 25 |
# File 'lib/azure_mgmt_web/models/network_features_properties.rb', line 23 def hybrid_connections @hybrid_connections end |
#virtual_network_connection ⇒ VnetInfo
Returns The Vnet Summary view.
19 20 21 |
# File 'lib/azure_mgmt_web/models/network_features_properties.rb', line 19 def virtual_network_connection @virtual_network_connection end |
#virtual_network_name ⇒ String
Returns The Vnet Name.
16 17 18 |
# File 'lib/azure_mgmt_web/models/network_features_properties.rb', line 16 def virtual_network_name @virtual_network_name end |
Class Method Details
.deserialize_object(object) ⇒ NetworkFeaturesProperties
Deserializes given Ruby Hash into Model object.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/azure_mgmt_web/models/network_features_properties.rb', line 72 def self.deserialize_object(object) return if object.nil? output_object = NetworkFeaturesProperties.new deserialized_property = object['virtualNetworkName'] output_object.virtual_network_name = deserialized_property deserialized_property = object['virtualNetworkConnection'] unless deserialized_property.nil? deserialized_property = VnetInfo.deserialize_object(deserialized_property) end output_object.virtual_network_connection = deserialized_property deserialized_property = object['hybridConnections'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element1| unless element1.nil? element1 = RelayServiceConnectionEntity.deserialize_object(element1) end deserialized_array.push(element1) end deserialized_property = deserialized_array end output_object.hybrid_connections = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/azure_mgmt_web/models/network_features_properties.rb', line 38 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.virtual_network_name output_object['virtualNetworkName'] = serialized_property unless serialized_property.nil? serialized_property = object.virtual_network_connection unless serialized_property.nil? serialized_property = VnetInfo.serialize_object(serialized_property) end output_object['virtualNetworkConnection'] = serialized_property unless serialized_property.nil? serialized_property = object.hybrid_connections unless serialized_property.nil? serializedArray = [] serialized_property.each do |element| unless element.nil? element = RelayServiceConnectionEntity.serialize_object(element) end serializedArray.push(element) end serialized_property = serializedArray end output_object['hybridConnections'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
28 29 30 31 |
# File 'lib/azure_mgmt_web/models/network_features_properties.rb', line 28 def validate @virtual_network_connection.validate unless @virtual_network_connection.nil? @hybrid_connections.each{ |e| e.validate if e.respond_to?(:validate) } unless @hybrid_connections.nil? end |