Class: Azure::ARM::Web::Models::NetworkFeatures
- Inherits:
-
MsRestAzure::Resource
- Object
- MsRestAzure::Resource
- Azure::ARM::Web::Models::NetworkFeatures
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/network_features.rb
Overview
This is an object used to store a full view of network features (presently VNET integration and Hybrid Connections) for a web app.
Instance Attribute Summary collapse
Class Method Summary collapse
-
.deserialize_object(object) ⇒ NetworkFeatures
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
#properties ⇒ NetworkFeaturesProperties
18 19 20 |
# File 'lib/azure_mgmt_web/models/network_features.rb', line 18 def properties @properties end |
Class Method Details
.deserialize_object(object) ⇒ NetworkFeatures
Deserializes given Ruby Hash into Model object.
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 95 96 97 |
# File 'lib/azure_mgmt_web/models/network_features.rb', line 68 def self.deserialize_object(object) return if object.nil? output_object = NetworkFeatures.new deserialized_property = object['location'] output_object.location = deserialized_property deserialized_property = object['id'] output_object.id = deserialized_property deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['kind'] output_object.kind = deserialized_property deserialized_property = object['type'] output_object.type = deserialized_property deserialized_property = object['tags'] output_object. = deserialized_property deserialized_property = object['properties'] unless deserialized_property.nil? deserialized_property = NetworkFeaturesProperties.deserialize_object(deserialized_property) end output_object.properties = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/azure_mgmt_web/models/network_features.rb', line 32 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.location output_object['location'] = serialized_property unless serialized_property.nil? 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.kind output_object['kind'] = serialized_property unless serialized_property.nil? serialized_property = object.type output_object['type'] = serialized_property unless serialized_property.nil? serialized_property = object. output_object['tags'] = serialized_property unless serialized_property.nil? serialized_property = object.properties unless serialized_property.nil? serialized_property = NetworkFeaturesProperties.serialize_object(serialized_property) end output_object['properties'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
23 24 25 |
# File 'lib/azure_mgmt_web/models/network_features.rb', line 23 def validate @properties.validate unless @properties.nil? end |