azure_mgmt_network 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/azure_mgmt_network.gemspec +4 -9
- data/lib/azure_mgmt_network.rb +100 -39
- data/lib/azure_mgmt_network/application_gateways.rb +175 -401
- data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +429 -0
- data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +427 -0
- data/lib/azure_mgmt_network/express_route_circuits.rb +911 -0
- data/lib/azure_mgmt_network/express_route_service_providers.rb +149 -0
- data/lib/azure_mgmt_network/load_balancers.rb +139 -314
- data/lib/azure_mgmt_network/local_network_gateways.rb +102 -228
- data/lib/azure_mgmt_network/models/address_space.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway.rb +7 -9
- data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +16 -18
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +32 -8
- data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
- data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration.rb → application_gateway_frontend_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration_properties_format.rb → application_gateway_frontend_ipconfiguration_properties_format.rb} +12 -15
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +34 -17
- data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration.rb → application_gateway_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration_properties_format.rb → application_gateway_ipconfiguration_properties_format.rb} +6 -8
- data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +88 -0
- data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +101 -0
- data/lib/azure_mgmt_network/models/application_gateway_probe.rb +88 -0
- data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +118 -0
- data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +151 -81
- data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +26 -11
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +2 -1
- data/lib/azure_mgmt_network/models/application_gateway_sku.rb +6 -8
- data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +88 -0
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +122 -0
- data/lib/azure_mgmt_network/models/authorization_list_result.rb +87 -0
- data/lib/azure_mgmt_network/models/authorization_properties_format.rb +79 -0
- data/lib/azure_mgmt_network/models/authorization_use_status.rb +16 -0
- data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +5 -7
- data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -3
- data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +30 -15
- data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +10 -16
- data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -3
- data/lib/azure_mgmt_network/models/{connection_reset_shared_key_properties_format.rb → connection_shared_key_result.rb} +11 -15
- data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -3
- data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -3
- data/lib/azure_mgmt_network/models/error.rb +4 -6
- data/lib/azure_mgmt_network/models/error_details.rb +1 -3
- data/lib/azure_mgmt_network/models/express_route_circuit.rb +118 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +65 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +88 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +86 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +88 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +92 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +87 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +194 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +179 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +89 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +76 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +83 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +67 -0
- data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +85 -0
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +88 -0
- data/lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb +85 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider.rb +92 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +67 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +86 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +97 -0
- data/lib/azure_mgmt_network/models/{frontend_ip_configuration.rb → frontend_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{frontend_ip_configuration_properties_format.rb → frontend_ipconfiguration_properties_format.rb} +133 -77
- data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +88 -0
- data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +134 -0
- data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +11 -12
- data/lib/azure_mgmt_network/models/{ip_allocation_method.rb → ipallocation_method.rb} +3 -3
- data/lib/azure_mgmt_network/models/ipconfiguration.rb +88 -0
- data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +113 -0
- data/lib/azure_mgmt_network/models/load_balancer.rb +7 -9
- data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +103 -35
- data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +30 -30
- data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway.rb +7 -9
- data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +11 -3
- data/lib/azure_mgmt_network/models/network_interface.rb +7 -9
- data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +1 -3
- data/lib/azure_mgmt_network/models/{network_interface_ip_configuration.rb → network_interface_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{network_interface_ip_configuration_properties_format.rb → network_interface_ipconfiguration_properties_format.rb} +70 -76
- data/lib/azure_mgmt_network/models/network_interface_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +32 -14
- data/lib/azure_mgmt_network/models/{operation_status.rb → network_operation_status.rb} +3 -3
- data/lib/azure_mgmt_network/models/network_security_group.rb +7 -9
- data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +30 -22
- data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +88 -0
- data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +117 -0
- data/lib/azure_mgmt_network/models/probe.rb +1 -3
- data/lib/azure_mgmt_network/models/probe_properties_format.rb +25 -26
- data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/processor_architecture.rb +16 -0
- data/lib/azure_mgmt_network/models/{public_ip_address.rb → public_ipaddress.rb} +13 -15
- data/lib/azure_mgmt_network/models/{public_ip_address_dns_settings.rb → public_ipaddress_dns_settings.rb} +4 -6
- data/lib/azure_mgmt_network/models/{public_ip_address_list_result.rb → public_ipaddress_list_result.rb} +10 -12
- data/lib/azure_mgmt_network/models/{public_ip_address_properties_format.rb → public_ipaddress_properties_format.rb} +25 -19
- data/lib/azure_mgmt_network/models/route.rb +88 -0
- data/lib/azure_mgmt_network/models/route_list_result.rb +85 -0
- data/lib/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
- data/lib/azure_mgmt_network/models/route_properties_format.rb +94 -0
- data/lib/azure_mgmt_network/models/route_table.rb +102 -0
- data/lib/azure_mgmt_network/models/route_table_list_result.rb +86 -0
- data/lib/azure_mgmt_network/models/route_table_properties_format.rb +116 -0
- data/lib/azure_mgmt_network/models/security_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +50 -48
- data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
- data/lib/azure_mgmt_network/models/subnet.rb +1 -3
- data/lib/azure_mgmt_network/models/subnet_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/subnet_properties_format.rb +28 -13
- data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/usage.rb +7 -5
- data/lib/azure_mgmt_network/models/usage_name.rb +1 -3
- data/lib/azure_mgmt_network/models/usage_unit.rb +1 -1
- data/lib/azure_mgmt_network/models/usages_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network.rb +7 -9
- data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +7 -9
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +7 -9
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +74 -6
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
- data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration.rb → virtual_network_gateway_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration_properties_format.rb → virtual_network_gateway_ipconfiguration_properties_format.rb} +14 -17
- data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +76 -13
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +86 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +17 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +17 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +2 -1
- data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +14 -6
- data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +125 -0
- data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +60 -0
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +88 -0
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +69 -0
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +88 -0
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +66 -0
- data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
- data/lib/azure_mgmt_network/module_definition.rb +5 -3
- data/lib/azure_mgmt_network/network_interfaces.rb +451 -304
- data/lib/azure_mgmt_network/{network_resource_provider_client.rb → network_management_client.rb} +61 -57
- data/lib/azure_mgmt_network/network_security_groups.rb +139 -314
- data/lib/azure_mgmt_network/public_ipaddresses.rb +536 -0
- data/lib/azure_mgmt_network/route_tables.rb +532 -0
- data/lib/azure_mgmt_network/routes.rb +423 -0
- data/lib/azure_mgmt_network/security_rules.rb +102 -232
- data/lib/azure_mgmt_network/subnets.rb +104 -233
- data/lib/azure_mgmt_network/usages.rb +79 -43
- data/lib/azure_mgmt_network/version.rb +5 -3
- data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +262 -467
- data/lib/azure_mgmt_network/virtual_network_gateways.rb +204 -280
- data/lib/azure_mgmt_network/virtual_networks.rb +139 -314
- metadata +92 -106
- data/.gitignore +0 -10
- data/.travis.yml +0 -3
- data/Gemfile +0 -15
- data/lib/azure_mgmt_network/public_ip_addresses.rb +0 -711
@@ -0,0 +1,89 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 ExpressRouteCircuitRoutesTable
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets AddressPrefix.
|
16
|
+
attr_accessor :address_prefix
|
17
|
+
|
18
|
+
# @return [RouteNextHopType] Gets NextHopType. Possible values include:
|
19
|
+
# 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance',
|
20
|
+
# 'None'
|
21
|
+
attr_accessor :next_hop_type
|
22
|
+
|
23
|
+
# @return [String] Gets NextHopIP.
|
24
|
+
attr_accessor :next_hop_ip
|
25
|
+
|
26
|
+
# @return [String] Gets AsPath.
|
27
|
+
attr_accessor :as_path
|
28
|
+
|
29
|
+
#
|
30
|
+
# Validate the object. Throws ValidationError if validation fails.
|
31
|
+
#
|
32
|
+
def validate
|
33
|
+
fail MsRest::ValidationError, 'property next_hop_type is nil' if @next_hop_type.nil?
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Serializes given Model object into Ruby Hash.
|
38
|
+
# @param object Model object to serialize.
|
39
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
40
|
+
#
|
41
|
+
def self.serialize_object(object)
|
42
|
+
object.validate
|
43
|
+
output_object = {}
|
44
|
+
|
45
|
+
serialized_property = object.next_hop_type
|
46
|
+
output_object['nextHopType'] = serialized_property unless serialized_property.nil?
|
47
|
+
|
48
|
+
serialized_property = object.address_prefix
|
49
|
+
output_object['addressPrefix'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
serialized_property = object.next_hop_ip
|
52
|
+
output_object['nextHopIP'] = serialized_property unless serialized_property.nil?
|
53
|
+
|
54
|
+
serialized_property = object.as_path
|
55
|
+
output_object['asPath'] = serialized_property unless serialized_property.nil?
|
56
|
+
|
57
|
+
output_object
|
58
|
+
end
|
59
|
+
|
60
|
+
#
|
61
|
+
# Deserializes given Ruby Hash into Model object.
|
62
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
63
|
+
# @return [ExpressRouteCircuitRoutesTable] Deserialized object.
|
64
|
+
#
|
65
|
+
def self.deserialize_object(object)
|
66
|
+
return if object.nil?
|
67
|
+
output_object = ExpressRouteCircuitRoutesTable.new
|
68
|
+
|
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
|
75
|
+
|
76
|
+
deserialized_property = object['addressPrefix']
|
77
|
+
output_object.address_prefix = deserialized_property
|
78
|
+
|
79
|
+
deserialized_property = object['nextHopIP']
|
80
|
+
output_object.next_hop_ip = deserialized_property
|
81
|
+
|
82
|
+
deserialized_property = object['asPath']
|
83
|
+
output_object.as_path = deserialized_property
|
84
|
+
|
85
|
+
output_object
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Contains ServiceProviderProperties in an ExpressRouteCircuit
|
10
|
+
#
|
11
|
+
class ExpressRouteCircuitServiceProviderProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets serviceProviderName.
|
16
|
+
attr_accessor :service_provider_name
|
17
|
+
|
18
|
+
# @return [String] Gets or sets peering location.
|
19
|
+
attr_accessor :peering_location
|
20
|
+
|
21
|
+
# @return [Integer] Gets or sets BandwidthInMbps.
|
22
|
+
attr_accessor :bandwidth_in_mbps
|
23
|
+
|
24
|
+
#
|
25
|
+
# Validate the object. Throws ValidationError if validation fails.
|
26
|
+
#
|
27
|
+
def validate
|
28
|
+
# Nothing to validate
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Serializes given Model object into Ruby Hash.
|
33
|
+
# @param object Model object to serialize.
|
34
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
+
#
|
36
|
+
def self.serialize_object(object)
|
37
|
+
object.validate
|
38
|
+
output_object = {}
|
39
|
+
|
40
|
+
serialized_property = object.service_provider_name
|
41
|
+
output_object['serviceProviderName'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
serialized_property = object.peering_location
|
44
|
+
output_object['peeringLocation'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.bandwidth_in_mbps
|
47
|
+
output_object['bandwidthInMbps'] = serialized_property unless serialized_property.nil?
|
48
|
+
|
49
|
+
output_object
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Deserializes given Ruby Hash into Model object.
|
54
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
+
# @return [ExpressRouteCircuitServiceProviderProperties] Deserialized
|
56
|
+
# object.
|
57
|
+
#
|
58
|
+
def self.deserialize_object(object)
|
59
|
+
return if object.nil?
|
60
|
+
output_object = ExpressRouteCircuitServiceProviderProperties.new
|
61
|
+
|
62
|
+
deserialized_property = object['serviceProviderName']
|
63
|
+
output_object.service_provider_name = deserialized_property
|
64
|
+
|
65
|
+
deserialized_property = object['peeringLocation']
|
66
|
+
output_object.peering_location = deserialized_property
|
67
|
+
|
68
|
+
deserialized_property = object['bandwidthInMbps']
|
69
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
70
|
+
output_object.bandwidth_in_mbps = deserialized_property
|
71
|
+
|
72
|
+
output_object
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Contains sku in an ExpressRouteCircuit
|
10
|
+
#
|
11
|
+
class ExpressRouteCircuitSku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets name of the sku.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [ExpressRouteCircuitSkuTier] Gets or sets tier of the sku.
|
19
|
+
# Possible values include: 'Standard', 'Premium'
|
20
|
+
attr_accessor :tier
|
21
|
+
|
22
|
+
# @return [ExpressRouteCircuitSkuFamily] Gets or sets family of the sku.
|
23
|
+
# Possible values include: 'UnlimitedData', 'MeteredData'
|
24
|
+
attr_accessor :family
|
25
|
+
|
26
|
+
#
|
27
|
+
# Validate the object. Throws ValidationError if validation fails.
|
28
|
+
#
|
29
|
+
def validate
|
30
|
+
end
|
31
|
+
|
32
|
+
#
|
33
|
+
# Serializes given Model object into Ruby Hash.
|
34
|
+
# @param object Model object to serialize.
|
35
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
36
|
+
#
|
37
|
+
def self.serialize_object(object)
|
38
|
+
object.validate
|
39
|
+
output_object = {}
|
40
|
+
|
41
|
+
serialized_property = object.name
|
42
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
serialized_property = object.tier
|
45
|
+
output_object['tier'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.family
|
48
|
+
output_object['family'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
output_object
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Deserializes given Ruby Hash into Model object.
|
55
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
56
|
+
# @return [ExpressRouteCircuitSku] Deserialized object.
|
57
|
+
#
|
58
|
+
def self.deserialize_object(object)
|
59
|
+
return if object.nil?
|
60
|
+
output_object = ExpressRouteCircuitSku.new
|
61
|
+
|
62
|
+
deserialized_property = object['name']
|
63
|
+
output_object.name = deserialized_property
|
64
|
+
|
65
|
+
deserialized_property = object['tier']
|
66
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
67
|
+
enum_is_valid = ExpressRouteCircuitSkuTier.constants.any? { |e| ExpressRouteCircuitSkuTier.const_get(e).to_s.downcase == deserialized_property.downcase }
|
68
|
+
warn 'Enum ExpressRouteCircuitSkuTier does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
69
|
+
end
|
70
|
+
output_object.tier = deserialized_property
|
71
|
+
|
72
|
+
deserialized_property = object['family']
|
73
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
74
|
+
enum_is_valid = ExpressRouteCircuitSkuFamily.constants.any? { |e| ExpressRouteCircuitSkuFamily.const_get(e).to_s.downcase == deserialized_property.downcase }
|
75
|
+
warn 'Enum ExpressRouteCircuitSkuFamily does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
76
|
+
end
|
77
|
+
output_object.family = deserialized_property
|
78
|
+
|
79
|
+
output_object
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Defines values for ExpressRouteCircuitSkuFamily
|
10
|
+
#
|
11
|
+
module ExpressRouteCircuitSkuFamily
|
12
|
+
UnlimitedData = "UnlimitedData"
|
13
|
+
MeteredData = "MeteredData"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Defines values for ExpressRouteCircuitSkuTier
|
10
|
+
#
|
11
|
+
module ExpressRouteCircuitSkuTier
|
12
|
+
Standard = "Standard"
|
13
|
+
Premium = "Premium"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Contains Stats associated with the peering
|
10
|
+
#
|
11
|
+
class ExpressRouteCircuitStats
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Gets BytesIn of the peering.
|
16
|
+
attr_accessor :bytes_in
|
17
|
+
|
18
|
+
# @return [Integer] Gets BytesOut of the peering.
|
19
|
+
attr_accessor :bytes_out
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
# Nothing to validate
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
30
|
+
# @param object Model object to serialize.
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
+
#
|
33
|
+
def self.serialize_object(object)
|
34
|
+
object.validate
|
35
|
+
output_object = {}
|
36
|
+
|
37
|
+
serialized_property = object.bytes_in
|
38
|
+
output_object['bytesIn'] = serialized_property unless serialized_property.nil?
|
39
|
+
|
40
|
+
serialized_property = object.bytes_out
|
41
|
+
output_object['bytesOut'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
output_object
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Deserializes given Ruby Hash into Model object.
|
48
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
49
|
+
# @return [ExpressRouteCircuitStats] Deserialized object.
|
50
|
+
#
|
51
|
+
def self.deserialize_object(object)
|
52
|
+
return if object.nil?
|
53
|
+
output_object = ExpressRouteCircuitStats.new
|
54
|
+
|
55
|
+
deserialized_property = object['bytesIn']
|
56
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
57
|
+
output_object.bytes_in = deserialized_property
|
58
|
+
|
59
|
+
deserialized_property = object['bytesOut']
|
60
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
61
|
+
output_object.bytes_out = deserialized_property
|
62
|
+
|
63
|
+
output_object
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Response for ListArpTable associated with the Express Route Circuits Api
|
10
|
+
#
|
11
|
+
class ExpressRouteCircuitsArpTableListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ExpressRouteCircuitArpTable>] Gets List of ArpTable
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Gets the URL to get the next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
30
|
+
# @param object Model object to serialize.
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
+
#
|
33
|
+
def self.serialize_object(object)
|
34
|
+
object.validate
|
35
|
+
output_object = {}
|
36
|
+
|
37
|
+
serialized_property = object.value
|
38
|
+
unless serialized_property.nil?
|
39
|
+
serializedArray = []
|
40
|
+
serialized_property.each do |element|
|
41
|
+
unless element.nil?
|
42
|
+
element = ExpressRouteCircuitArpTable.serialize_object(element)
|
43
|
+
end
|
44
|
+
serializedArray.push(element)
|
45
|
+
end
|
46
|
+
serialized_property = serializedArray
|
47
|
+
end
|
48
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.next_link
|
51
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
output_object
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Deserializes given Ruby Hash into Model object.
|
58
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
59
|
+
# @return [ExpressRouteCircuitsArpTableListResult] Deserialized object.
|
60
|
+
#
|
61
|
+
def self.deserialize_object(object)
|
62
|
+
return if object.nil?
|
63
|
+
output_object = ExpressRouteCircuitsArpTableListResult.new
|
64
|
+
|
65
|
+
deserialized_property = object['value']
|
66
|
+
unless deserialized_property.nil?
|
67
|
+
deserialized_array = []
|
68
|
+
deserialized_property.each do |element1|
|
69
|
+
unless element1.nil?
|
70
|
+
element1 = ExpressRouteCircuitArpTable.deserialize_object(element1)
|
71
|
+
end
|
72
|
+
deserialized_array.push(element1)
|
73
|
+
end
|
74
|
+
deserialized_property = deserialized_array
|
75
|
+
end
|
76
|
+
output_object.value = deserialized_property
|
77
|
+
|
78
|
+
deserialized_property = object['nextLink']
|
79
|
+
output_object.next_link = deserialized_property
|
80
|
+
|
81
|
+
output_object
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
|
+
# Response for ListRoutesTable associated with the Express Route Circuits
|
10
|
+
# Api
|
11
|
+
#
|
12
|
+
class ExpressRouteCircuitsRoutesTableListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<ExpressRouteCircuitRoutesTable>] Gets List of
|
17
|
+
# RoutesTable
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] Gets the URL to get the next set of results.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
#
|
24
|
+
# Validate the object. Throws ValidationError if validation fails.
|
25
|
+
#
|
26
|
+
def validate
|
27
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# Serializes given Model object into Ruby Hash.
|
32
|
+
# @param object Model object to serialize.
|
33
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
34
|
+
#
|
35
|
+
def self.serialize_object(object)
|
36
|
+
object.validate
|
37
|
+
output_object = {}
|
38
|
+
|
39
|
+
serialized_property = object.value
|
40
|
+
unless serialized_property.nil?
|
41
|
+
serializedArray = []
|
42
|
+
serialized_property.each do |element|
|
43
|
+
unless element.nil?
|
44
|
+
element = ExpressRouteCircuitRoutesTable.serialize_object(element)
|
45
|
+
end
|
46
|
+
serializedArray.push(element)
|
47
|
+
end
|
48
|
+
serialized_property = serializedArray
|
49
|
+
end
|
50
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
52
|
+
serialized_property = object.next_link
|
53
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
54
|
+
|
55
|
+
output_object
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Deserializes given Ruby Hash into Model object.
|
60
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
61
|
+
# @return [ExpressRouteCircuitsRoutesTableListResult] Deserialized
|
62
|
+
# object.
|
63
|
+
#
|
64
|
+
def self.deserialize_object(object)
|
65
|
+
return if object.nil?
|
66
|
+
output_object = ExpressRouteCircuitsRoutesTableListResult.new
|
67
|
+
|
68
|
+
deserialized_property = object['value']
|
69
|
+
unless deserialized_property.nil?
|
70
|
+
deserialized_array = []
|
71
|
+
deserialized_property.each do |element1|
|
72
|
+
unless element1.nil?
|
73
|
+
element1 = ExpressRouteCircuitRoutesTable.deserialize_object(element1)
|
74
|
+
end
|
75
|
+
deserialized_array.push(element1)
|
76
|
+
end
|
77
|
+
deserialized_property = deserialized_array
|
78
|
+
end
|
79
|
+
output_object.value = deserialized_property
|
80
|
+
|
81
|
+
deserialized_property = object['nextLink']
|
82
|
+
output_object.next_link = deserialized_property
|
83
|
+
|
84
|
+
output_object
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|