Class: Azure::ARM::Web::Models::VnetRouteProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/vnet_route_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_addressString

address is specified in CIDR notation, this must be omitted.

Returns:

  • (String)

    The ending address for this route. If the start



26
27
28
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 26

def end_address
  @end_address
end

#nameString

server and does not need to be set by the client.

Returns:

  • (String)

    The name of this route. This is only returned by the



17
18
19
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 17

def name
  @name
end

#route_typeString

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.

Returns:

  • (String)

    The type of route this is:



39
40
41
# File 'lib/azure_mgmt_web/models/vnet_route_properties.rb', line 39

def route_type
  @route_type
end

#start_addressString

include a CIDR notation, in which case the end address must not be specified.

Returns:

  • (String)

    The starting address for this route. This may also



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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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

#validateObject

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