Class: Azure::ARM::Network::Models::ExpressRouteCircuitPeeringListResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb

Overview

Response for ListPeering Api service callRetrieves all Peerings that belongs to an ExpressRouteCircuit

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

Returns Gets the URL to get the next set of results.

Returns:

  • (String)

    Gets the URL to get the next set of results.



21
22
23
# File 'lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb', line 21

def next_link
  @next_link
end

#valueArray<ExpressRouteCircuitPeering>

express route circuit

Returns:



18
19
20
# File 'lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb', line 18

def value
  @value
end

Class Method Details

.deserialize_object(object) ⇒ ExpressRouteCircuitPeeringListResult

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb', line 63

def self.deserialize_object(object)
  return if object.nil?
  output_object = ExpressRouteCircuitPeeringListResult.new

  deserialized_property = object['value']
  unless deserialized_property.nil?
    deserialized_array = []
    deserialized_property.each do |element1|
      unless element1.nil?
        element1 = ExpressRouteCircuitPeering.deserialize_object(element1)
      end
      deserialized_array.push(element1)
    end
    deserialized_property = deserialized_array
  end
  output_object.value = deserialized_property

  deserialized_property = object['nextLink']
  output_object.next_link = 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.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb', line 35

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.value
  unless serialized_property.nil?
    serializedArray = []
    serialized_property.each do |element|
      unless element.nil?
        element = ExpressRouteCircuitPeering.serialize_object(element)
      end
      serializedArray.push(element)
    end
    serialized_property = serializedArray
  end
  output_object['value'] = serialized_property unless serialized_property.nil?

  serialized_property = object.next_link
  output_object['nextLink'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



26
27
28
# File 'lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb', line 26

def validate
  @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
end