Class: Azure::ARM::Web::Models::VnetRouteProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::VnetRouteProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/vnet_route_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#end_address ⇒ String
address is specified in CIDR notation, this must be omitted.
-
#name ⇒ String
server and does not need to be set by the client.
-
#route_type ⇒ String
DEFAULT - By default, every web app has routes to the local address ranges specified by RFC1918 INHERITED - Routes inherited from the real Virtual Network routes STATIC - Static route set on the web app only.
-
#start_address ⇒ String
include a CIDR notation, in which case the end address must not be specified.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VnetRouteProperties
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
#end_address ⇒ String
address is specified in CIDR notation, this must be omitted.
26 27 28 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 26 def end_address @end_address end |
#name ⇒ String
server and does not need to be set by the client.
17 18 19 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 17 def name @name end |
#route_type ⇒ String
DEFAULT - By default, every web app has routes to the local address ranges specified by RFC1918 INHERITED - Routes inherited from the real Virtual Network routes STATIC - Static route set on the web app only
These values will be used for syncing a Web App’s routes with those from a Virtual Network. This operation will clear all DEFAULT and INHERITED routes and replace them with new INHERITED routes.
39 40 41 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 39 def route_type @route_type end |
#start_address ⇒ String
include a CIDR notation, in which case the end address must not be specified.
22 23 24 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 22 def start_address @start_address end |
Class Method Details
.deserialize_object(object) ⇒ VnetRouteProperties
Deserializes given Ruby Hash into Model object.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 77 def self.deserialize_object(object) return if object.nil? output_object = VnetRouteProperties.new deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['startAddress'] output_object.start_address = deserialized_property deserialized_property = object['endAddress'] output_object.end_address = deserialized_property deserialized_property = object['routeType'] output_object.route_type = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 53 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.name output_object['name'] = serialized_property unless serialized_property.nil? serialized_property = object.start_address output_object['startAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.end_address output_object['endAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.route_type output_object['routeType'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
44 45 46 |
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 44 def validate # Nothing to validate end |