azure_mgmt_network 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -26
  3. data/azure_mgmt_network.gemspec +2 -2
  4. data/lib/azure_mgmt_network.rb +33 -31
  5. data/lib/azure_mgmt_network/application_gateways.rb +345 -55
  6. data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +207 -31
  7. data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +205 -31
  8. data/lib/azure_mgmt_network/express_route_circuits.rb +633 -168
  9. data/lib/azure_mgmt_network/express_route_service_providers.rb +73 -11
  10. data/lib/azure_mgmt_network/load_balancers.rb +267 -41
  11. data/lib/azure_mgmt_network/local_network_gateways.rb +205 -31
  12. data/lib/azure_mgmt_network/models/address_space.rb +1 -1
  13. data/lib/azure_mgmt_network/models/application_gateway.rb +1 -1
  14. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -1
  15. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -1
  16. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +5 -5
  17. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -1
  18. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +1 -1
  19. data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  20. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +1 -1
  21. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +1 -1
  22. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -1
  23. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -1
  24. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -1
  25. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +1 -1
  26. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +1 -1
  27. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +1 -1
  28. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +1 -1
  29. data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  30. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +1 -1
  31. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +1 -1
  32. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +1 -1
  33. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +1 -1
  34. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +1 -1
  35. data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  36. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -1
  37. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +1 -1
  38. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  39. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +1 -1
  40. data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  41. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -1
  42. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -1
  43. data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  44. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +1 -1
  45. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +1 -1
  46. data/lib/azure_mgmt_network/models/authorization_list_result.rb +1 -1
  47. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +1 -1
  48. data/lib/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  49. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +1 -1
  50. data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -1
  51. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +1 -1
  52. data/lib/azure_mgmt_network/models/bgp_settings.rb +1 -1
  53. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
  54. data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -1
  55. data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +1 -1
  56. data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -1
  57. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -1
  58. data/lib/azure_mgmt_network/models/error.rb +1 -1
  59. data/lib/azure_mgmt_network/models/error_details.rb +1 -1
  60. data/lib/azure_mgmt_network/models/express_route_circuit.rb +1 -1
  61. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +20 -1
  62. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -1
  63. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +1 -1
  64. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +1 -1
  65. data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  66. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +1 -1
  67. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +1 -1
  68. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +1 -1
  69. data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  70. data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  71. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +10 -1
  72. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +36 -32
  73. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +97 -0
  74. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +1 -1
  75. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +1 -1
  76. data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  77. data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  78. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +31 -11
  79. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +1 -1
  80. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +1 -1
  81. data/lib/azure_mgmt_network/models/{express_route_circuits_stats_list_result.rb → express_route_circuits_routes_table_summary_list_result.rb} +11 -8
  82. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +1 -1
  83. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +1 -1
  84. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +1 -1
  85. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +1 -1
  86. data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +1 -1
  87. data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +1 -1
  88. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +1 -1
  89. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +1 -1
  90. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -1
  91. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +1 -1
  92. data/lib/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  93. data/lib/azure_mgmt_network/models/ipconfiguration.rb +1 -1
  94. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +1 -1
  95. data/lib/azure_mgmt_network/models/ipversion.rb +16 -0
  96. data/lib/azure_mgmt_network/models/load_balancer.rb +1 -1
  97. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +1 -1
  98. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +1 -1
  99. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -1
  100. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +1 -1
  101. data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
  102. data/lib/azure_mgmt_network/models/local_network_gateway.rb +1 -1
  103. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +1 -1
  104. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +1 -1
  105. data/lib/azure_mgmt_network/models/network_interface.rb +1 -1
  106. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +11 -4
  107. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +1 -1
  108. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +59 -14
  109. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +1 -1
  110. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +1 -1
  111. data/lib/azure_mgmt_network/models/network_operation_status.rb +1 -1
  112. data/lib/azure_mgmt_network/models/network_security_group.rb +1 -1
  113. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +1 -1
  114. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +1 -1
  115. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +1 -1
  116. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +1 -1
  117. data/lib/azure_mgmt_network/models/probe.rb +1 -1
  118. data/lib/azure_mgmt_network/models/probe_properties_format.rb +1 -1
  119. data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
  120. data/lib/azure_mgmt_network/models/processor_architecture.rb +1 -1
  121. data/lib/azure_mgmt_network/models/public_ipaddress.rb +1 -1
  122. data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
  123. data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +1 -1
  124. data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +15 -1
  125. data/lib/azure_mgmt_network/models/route.rb +1 -1
  126. data/lib/azure_mgmt_network/models/route_list_result.rb +1 -1
  127. data/lib/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  128. data/lib/azure_mgmt_network/models/route_properties_format.rb +1 -1
  129. data/lib/azure_mgmt_network/models/route_table.rb +1 -1
  130. data/lib/azure_mgmt_network/models/route_table_list_result.rb +1 -1
  131. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +1 -1
  132. data/lib/azure_mgmt_network/models/security_rule.rb +1 -1
  133. data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
  134. data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  135. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +1 -1
  136. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +1 -1
  137. data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  138. data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  139. data/lib/azure_mgmt_network/models/subnet.rb +1 -1
  140. data/lib/azure_mgmt_network/models/subnet_list_result.rb +1 -1
  141. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +1 -1
  142. data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
  143. data/lib/azure_mgmt_network/models/usage.rb +1 -1
  144. data/lib/azure_mgmt_network/models/usage_name.rb +1 -1
  145. data/lib/azure_mgmt_network/models/usages_list_result.rb +1 -1
  146. data/lib/azure_mgmt_network/models/virtual_network.rb +1 -1
  147. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +1 -1
  148. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +1 -1
  149. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +1 -1
  150. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +1 -1
  151. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  152. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  153. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +1 -1
  154. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +1 -1
  155. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +1 -1
  156. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +1 -1
  157. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +1 -1
  158. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
  159. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
  160. data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  161. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +1 -1
  162. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +1 -1
  163. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +1 -1
  164. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +1 -1
  165. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +1 -1
  166. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +1 -1
  167. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +1 -1
  168. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +1 -1
  169. data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
  170. data/lib/azure_mgmt_network/module_definition.rb +1 -1
  171. data/lib/azure_mgmt_network/network_interfaces.rb +471 -66
  172. data/lib/azure_mgmt_network/network_management_client.rb +40 -7
  173. data/lib/azure_mgmt_network/network_security_groups.rb +277 -41
  174. data/lib/azure_mgmt_network/public_ipaddresses.rb +269 -41
  175. data/lib/azure_mgmt_network/route_tables.rb +261 -41
  176. data/lib/azure_mgmt_network/routes.rb +201 -31
  177. data/lib/azure_mgmt_network/security_rules.rb +213 -31
  178. data/lib/azure_mgmt_network/subnets.rb +199 -31
  179. data/lib/azure_mgmt_network/usages.rb +71 -11
  180. data/lib/azure_mgmt_network/version.rb +2 -2
  181. data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +357 -52
  182. data/lib/azure_mgmt_network/virtual_network_gateways.rb +303 -45
  183. data/lib/azure_mgmt_network/virtual_networks.rb +261 -41
  184. metadata +34 -25
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,25 +12,26 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets AddressPrefix.
16
- attr_accessor :address_prefix
15
+ # @return [String] network.
16
+ attr_accessor :network
17
17
 
18
- # @return [RouteNextHopType] Gets NextHopType. Possible values include:
19
- # 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance',
20
- # 'None'
21
- attr_accessor :next_hop_type
18
+ # @return [String] nextHop
19
+ attr_accessor :next_hop
22
20
 
23
- # @return [String] Gets NextHopIP.
24
- attr_accessor :next_hop_ip
21
+ # @return [String] locPrf.
22
+ attr_accessor :loc_prf
25
23
 
26
- # @return [String] Gets AsPath.
27
- attr_accessor :as_path
24
+ # @return [Integer] weight.
25
+ attr_accessor :weight
26
+
27
+ # @return [String] path .
28
+ attr_accessor :path
28
29
 
29
30
  #
30
31
  # Validate the object. Throws ValidationError if validation fails.
31
32
  #
32
33
  def validate
33
- fail MsRest::ValidationError, 'property next_hop_type is nil' if @next_hop_type.nil?
34
+ # Nothing to validate
34
35
  end
35
36
 
36
37
  #
@@ -42,17 +43,20 @@ module Azure::ARM::Network
42
43
  object.validate
43
44
  output_object = {}
44
45
 
45
- serialized_property = object.next_hop_type
46
- output_object['nextHopType'] = serialized_property unless serialized_property.nil?
46
+ serialized_property = object.network
47
+ output_object['network'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.next_hop
50
+ output_object['nextHop'] = serialized_property unless serialized_property.nil?
47
51
 
48
- serialized_property = object.address_prefix
49
- output_object['addressPrefix'] = serialized_property unless serialized_property.nil?
52
+ serialized_property = object.loc_prf
53
+ output_object['locPrf'] = serialized_property unless serialized_property.nil?
50
54
 
51
- serialized_property = object.next_hop_ip
52
- output_object['nextHopIP'] = serialized_property unless serialized_property.nil?
55
+ serialized_property = object.weight
56
+ output_object['weight'] = serialized_property unless serialized_property.nil?
53
57
 
54
- serialized_property = object.as_path
55
- output_object['asPath'] = serialized_property unless serialized_property.nil?
58
+ serialized_property = object.path
59
+ output_object['path'] = serialized_property unless serialized_property.nil?
56
60
 
57
61
  output_object
58
62
  end
@@ -66,21 +70,21 @@ module Azure::ARM::Network
66
70
  return if object.nil?
67
71
  output_object = ExpressRouteCircuitRoutesTable.new
68
72
 
69
- deserialized_property = object['nextHopType']
70
- if (!deserialized_property.nil? && !deserialized_property.empty?)
71
- enum_is_valid = RouteNextHopType.constants.any? { |e| RouteNextHopType.const_get(e).to_s.downcase == deserialized_property.downcase }
72
- warn 'Enum RouteNextHopType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
73
- end
74
- output_object.next_hop_type = deserialized_property
73
+ deserialized_property = object['network']
74
+ output_object.network = deserialized_property
75
+
76
+ deserialized_property = object['nextHop']
77
+ output_object.next_hop = deserialized_property
75
78
 
76
- deserialized_property = object['addressPrefix']
77
- output_object.address_prefix = deserialized_property
79
+ deserialized_property = object['locPrf']
80
+ output_object.loc_prf = deserialized_property
78
81
 
79
- deserialized_property = object['nextHopIP']
80
- output_object.next_hop_ip = deserialized_property
82
+ deserialized_property = object['weight']
83
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
84
+ output_object.weight = deserialized_property
81
85
 
82
- deserialized_property = object['asPath']
83
- output_object.as_path = deserialized_property
86
+ deserialized_property = object['path']
87
+ output_object.path = deserialized_property
84
88
 
85
89
  output_object
86
90
  end
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # The routes table associated with the ExpressRouteCircuit
10
+ #
11
+ class ExpressRouteCircuitRoutesTableSummary
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Neighbor.
16
+ attr_accessor :neighbor
17
+
18
+ # @return [Integer] BGP version number spoken to the neighbor.
19
+ attr_accessor :v
20
+
21
+ # @return [Integer] Autonomous system number.
22
+ attr_accessor :as
23
+
24
+ # @return [String] The length of time that the BGP session has been in
25
+ # the Established state, or the current status if not in the
26
+ # Established state.
27
+ attr_accessor :up_down
28
+
29
+ # @return [String] Current state of the BGP session, and the number of
30
+ # prefixes that have been received from a neighbor or peer group.
31
+ attr_accessor :state_pfx_rcd
32
+
33
+ #
34
+ # Validate the object. Throws ValidationError if validation fails.
35
+ #
36
+ def validate
37
+ # Nothing to validate
38
+ end
39
+
40
+ #
41
+ # Serializes given Model object into Ruby Hash.
42
+ # @param object Model object to serialize.
43
+ # @return [Hash] Serialized object in form of Ruby Hash.
44
+ #
45
+ def self.serialize_object(object)
46
+ object.validate
47
+ output_object = {}
48
+
49
+ serialized_property = object.neighbor
50
+ output_object['neighbor'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.v
53
+ output_object['v'] = serialized_property unless serialized_property.nil?
54
+
55
+ serialized_property = object.as
56
+ output_object['as'] = serialized_property unless serialized_property.nil?
57
+
58
+ serialized_property = object.up_down
59
+ output_object['upDown'] = serialized_property unless serialized_property.nil?
60
+
61
+ serialized_property = object.state_pfx_rcd
62
+ output_object['statePfxRcd'] = serialized_property unless serialized_property.nil?
63
+
64
+ output_object
65
+ end
66
+
67
+ #
68
+ # Deserializes given Ruby Hash into Model object.
69
+ # @param object [Hash] Ruby Hash object to deserialize.
70
+ # @return [ExpressRouteCircuitRoutesTableSummary] Deserialized object.
71
+ #
72
+ def self.deserialize_object(object)
73
+ return if object.nil?
74
+ output_object = ExpressRouteCircuitRoutesTableSummary.new
75
+
76
+ deserialized_property = object['neighbor']
77
+ output_object.neighbor = deserialized_property
78
+
79
+ deserialized_property = object['v']
80
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
81
+ output_object.v = deserialized_property
82
+
83
+ deserialized_property = object['as']
84
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
85
+ output_object.as = deserialized_property
86
+
87
+ deserialized_property = object['upDown']
88
+ output_object.up_down = deserialized_property
89
+
90
+ deserialized_property = object['statePfxRcd']
91
+ output_object.state_pfx_rcd = deserialized_property
92
+
93
+ output_object
94
+ end
95
+ end
96
+ end
97
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -13,10 +13,16 @@ module Azure::ARM::Network
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [Integer] Gets BytesIn of the peering.
16
- attr_accessor :bytes_in
16
+ attr_accessor :primarybytes_in
17
17
 
18
18
  # @return [Integer] Gets BytesOut of the peering.
19
- attr_accessor :bytes_out
19
+ attr_accessor :primarybytes_out
20
+
21
+ # @return [Integer] Gets BytesIn of the peering.
22
+ attr_accessor :secondarybytes_in
23
+
24
+ # @return [Integer] Gets BytesOut of the peering.
25
+ attr_accessor :secondarybytes_out
20
26
 
21
27
  #
22
28
  # Validate the object. Throws ValidationError if validation fails.
@@ -34,11 +40,17 @@ module Azure::ARM::Network
34
40
  object.validate
35
41
  output_object = {}
36
42
 
37
- serialized_property = object.bytes_in
38
- output_object['bytesIn'] = serialized_property unless serialized_property.nil?
43
+ serialized_property = object.primarybytes_in
44
+ output_object['primarybytesIn'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.primarybytes_out
47
+ output_object['primarybytesOut'] = serialized_property unless serialized_property.nil?
39
48
 
40
- serialized_property = object.bytes_out
41
- output_object['bytesOut'] = serialized_property unless serialized_property.nil?
49
+ serialized_property = object.secondarybytes_in
50
+ output_object['secondarybytesIn'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.secondarybytes_out
53
+ output_object['secondarybytesOut'] = serialized_property unless serialized_property.nil?
42
54
 
43
55
  output_object
44
56
  end
@@ -52,13 +64,21 @@ module Azure::ARM::Network
52
64
  return if object.nil?
53
65
  output_object = ExpressRouteCircuitStats.new
54
66
 
55
- deserialized_property = object['bytesIn']
67
+ deserialized_property = object['primarybytesIn']
68
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
69
+ output_object.primarybytes_in = deserialized_property
70
+
71
+ deserialized_property = object['primarybytesOut']
72
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
73
+ output_object.primarybytes_out = deserialized_property
74
+
75
+ deserialized_property = object['secondarybytesIn']
56
76
  deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
57
- output_object.bytes_in = deserialized_property
77
+ output_object.secondarybytes_in = deserialized_property
58
78
 
59
- deserialized_property = object['bytesOut']
79
+ deserialized_property = object['secondarybytesOut']
60
80
  deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
61
- output_object.bytes_out = deserialized_property
81
+ output_object.secondarybytes_out = deserialized_property
62
82
 
63
83
  output_object
64
84
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,18 +1,20 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  module Models
8
8
  #
9
- # Response for ListStats from Express Route Circuits Api service call
9
+ # Response for ListRoutesTable associated with the Express Route Circuits
10
+ # Api
10
11
  #
11
- class ExpressRouteCircuitsStatsListResult
12
+ class ExpressRouteCircuitsRoutesTableSummaryListResult
12
13
 
13
14
  include MsRestAzure
14
15
 
15
- # @return [Array<ExpressRouteCircuitStats>] Gets List of Stats
16
+ # @return [Array<ExpressRouteCircuitRoutesTableSummary>] Gets List of
17
+ # RoutesTable
16
18
  attr_accessor :value
17
19
 
18
20
  # @return [String] Gets the URL to get the next set of results.
@@ -39,7 +41,7 @@ module Azure::ARM::Network
39
41
  serializedArray = []
40
42
  serialized_property.each do |element|
41
43
  unless element.nil?
42
- element = ExpressRouteCircuitStats.serialize_object(element)
44
+ element = ExpressRouteCircuitRoutesTableSummary.serialize_object(element)
43
45
  end
44
46
  serializedArray.push(element)
45
47
  end
@@ -56,18 +58,19 @@ module Azure::ARM::Network
56
58
  #
57
59
  # Deserializes given Ruby Hash into Model object.
58
60
  # @param object [Hash] Ruby Hash object to deserialize.
59
- # @return [ExpressRouteCircuitsStatsListResult] Deserialized object.
61
+ # @return [ExpressRouteCircuitsRoutesTableSummaryListResult]
62
+ # Deserialized object.
60
63
  #
61
64
  def self.deserialize_object(object)
62
65
  return if object.nil?
63
- output_object = ExpressRouteCircuitsStatsListResult.new
66
+ output_object = ExpressRouteCircuitsRoutesTableSummaryListResult.new
64
67
 
65
68
  deserialized_property = object['value']
66
69
  unless deserialized_property.nil?
67
70
  deserialized_array = []
68
71
  deserialized_property.each do |element1|
69
72
  unless element1.nil?
70
- element1 = ExpressRouteCircuitStats.deserialize_object(element1)
73
+ element1 = ExpressRouteCircuitRoutesTableSummary.deserialize_object(element1)
71
74
  end
72
75
  deserialized_array.push(element1)
73
76
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5