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
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,29 +8,31 @@ module Azure::ARM::Network
|
|
8
8
|
#
|
9
9
|
# PublicIpAddress properties
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class PublicIPAddressPropertiesFormat
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [
|
16
|
-
# (Static/Dynamic). Possible values
|
17
|
-
# 'Static', 'Dynamic'.
|
15
|
+
# @return [IPAllocationMethod] Gets or sets PublicIP allocation method
|
16
|
+
# (Static/Dynamic). Possible values include: 'Static', 'Dynamic'
|
18
17
|
attr_accessor :public_ipallocation_method
|
19
18
|
|
20
|
-
# @return [
|
21
|
-
# configurations using this public IP address
|
19
|
+
# @return [IPConfiguration]
|
22
20
|
attr_accessor :ip_configuration
|
23
21
|
|
24
|
-
# @return [
|
22
|
+
# @return [PublicIPAddressDnsSettings] Gets or sets FQDN of the DNS
|
25
23
|
# record associated with the public IP address
|
26
24
|
attr_accessor :dns_settings
|
27
25
|
|
28
|
-
# @return [String]
|
26
|
+
# @return [String]
|
29
27
|
attr_accessor :ip_address
|
30
28
|
|
31
29
|
# @return [Integer] Gets or sets the Idletimeout of the public IP address
|
32
30
|
attr_accessor :idle_timeout_in_minutes
|
33
31
|
|
32
|
+
# @return [String] Gets or sets resource guid property of the PublicIP
|
33
|
+
# resource
|
34
|
+
attr_accessor :resource_guid
|
35
|
+
|
34
36
|
# @return [String] Gets or sets Provisioning state of the PublicIP
|
35
37
|
# resource Updating/Deleting/Failed
|
36
38
|
attr_accessor :provisioning_state
|
@@ -57,13 +59,13 @@ module Azure::ARM::Network
|
|
57
59
|
|
58
60
|
serialized_property = object.ip_configuration
|
59
61
|
unless serialized_property.nil?
|
60
|
-
serialized_property =
|
62
|
+
serialized_property = IPConfiguration.serialize_object(serialized_property)
|
61
63
|
end
|
62
64
|
output_object['ipConfiguration'] = serialized_property unless serialized_property.nil?
|
63
65
|
|
64
66
|
serialized_property = object.dns_settings
|
65
67
|
unless serialized_property.nil?
|
66
|
-
serialized_property =
|
68
|
+
serialized_property = PublicIPAddressDnsSettings.serialize_object(serialized_property)
|
67
69
|
end
|
68
70
|
output_object['dnsSettings'] = serialized_property unless serialized_property.nil?
|
69
71
|
|
@@ -73,6 +75,9 @@ module Azure::ARM::Network
|
|
73
75
|
serialized_property = object.idle_timeout_in_minutes
|
74
76
|
output_object['idleTimeoutInMinutes'] = serialized_property unless serialized_property.nil?
|
75
77
|
|
78
|
+
serialized_property = object.resource_guid
|
79
|
+
output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
|
80
|
+
|
76
81
|
serialized_property = object.provisioning_state
|
77
82
|
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
78
83
|
|
@@ -82,28 +87,28 @@ module Azure::ARM::Network
|
|
82
87
|
#
|
83
88
|
# Deserializes given Ruby Hash into Model object.
|
84
89
|
# @param object [Hash] Ruby Hash object to deserialize.
|
85
|
-
# @return [
|
90
|
+
# @return [PublicIPAddressPropertiesFormat] Deserialized object.
|
86
91
|
#
|
87
92
|
def self.deserialize_object(object)
|
88
93
|
return if object.nil?
|
89
|
-
output_object =
|
94
|
+
output_object = PublicIPAddressPropertiesFormat.new
|
90
95
|
|
91
96
|
deserialized_property = object['publicIPAllocationMethod']
|
92
97
|
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
93
|
-
enum_is_valid =
|
94
|
-
|
98
|
+
enum_is_valid = IPAllocationMethod.constants.any? { |e| IPAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase }
|
99
|
+
warn 'Enum IPAllocationMethod does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
95
100
|
end
|
96
101
|
output_object.public_ipallocation_method = deserialized_property
|
97
102
|
|
98
103
|
deserialized_property = object['ipConfiguration']
|
99
104
|
unless deserialized_property.nil?
|
100
|
-
deserialized_property =
|
105
|
+
deserialized_property = IPConfiguration.deserialize_object(deserialized_property)
|
101
106
|
end
|
102
107
|
output_object.ip_configuration = deserialized_property
|
103
108
|
|
104
109
|
deserialized_property = object['dnsSettings']
|
105
110
|
unless deserialized_property.nil?
|
106
|
-
deserialized_property =
|
111
|
+
deserialized_property = PublicIPAddressDnsSettings.deserialize_object(deserialized_property)
|
107
112
|
end
|
108
113
|
output_object.dns_settings = deserialized_property
|
109
114
|
|
@@ -114,11 +119,12 @@ module Azure::ARM::Network
|
|
114
119
|
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
115
120
|
output_object.idle_timeout_in_minutes = deserialized_property
|
116
121
|
|
122
|
+
deserialized_property = object['resourceGuid']
|
123
|
+
output_object.resource_guid = deserialized_property
|
124
|
+
|
117
125
|
deserialized_property = object['provisioningState']
|
118
126
|
output_object.provisioning_state = deserialized_property
|
119
127
|
|
120
|
-
output_object.validate
|
121
|
-
|
122
128
|
output_object
|
123
129
|
end
|
124
130
|
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
|
+
# Route resource
|
10
|
+
#
|
11
|
+
class Route < MsRestAzure::SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RoutePropertiesFormat]
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
# @return [String] Gets name of the resource that is unique within a
|
19
|
+
# resource group. This name can be used to access the resource
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [String] A unique read-only string that changes whenever the
|
23
|
+
# resource is updated
|
24
|
+
attr_accessor :etag
|
25
|
+
|
26
|
+
#
|
27
|
+
# Validate the object. Throws ValidationError if validation fails.
|
28
|
+
#
|
29
|
+
def validate
|
30
|
+
@properties.validate unless @properties.nil?
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Serializes given Model object into Ruby Hash.
|
35
|
+
# @param object Model object to serialize.
|
36
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
37
|
+
#
|
38
|
+
def self.serialize_object(object)
|
39
|
+
object.validate
|
40
|
+
output_object = {}
|
41
|
+
|
42
|
+
serialized_property = object.id
|
43
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
44
|
+
|
45
|
+
serialized_property = object.properties
|
46
|
+
unless serialized_property.nil?
|
47
|
+
serialized_property = RoutePropertiesFormat.serialize_object(serialized_property)
|
48
|
+
end
|
49
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
serialized_property = object.name
|
52
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
53
|
+
|
54
|
+
serialized_property = object.etag
|
55
|
+
output_object['etag'] = 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 [Route] Deserialized object.
|
64
|
+
#
|
65
|
+
def self.deserialize_object(object)
|
66
|
+
return if object.nil?
|
67
|
+
output_object = Route.new
|
68
|
+
|
69
|
+
deserialized_property = object['id']
|
70
|
+
output_object.id = deserialized_property
|
71
|
+
|
72
|
+
deserialized_property = object['properties']
|
73
|
+
unless deserialized_property.nil?
|
74
|
+
deserialized_property = RoutePropertiesFormat.deserialize_object(deserialized_property)
|
75
|
+
end
|
76
|
+
output_object.properties = deserialized_property
|
77
|
+
|
78
|
+
deserialized_property = object['name']
|
79
|
+
output_object.name = deserialized_property
|
80
|
+
|
81
|
+
deserialized_property = object['etag']
|
82
|
+
output_object.etag = deserialized_property
|
83
|
+
|
84
|
+
output_object
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
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 ListRoute Api servive call
|
10
|
+
#
|
11
|
+
class RouteListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Route>] Gets List of Routes in a resource group
|
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 = Route.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 [RouteListResult] Deserialized object.
|
60
|
+
#
|
61
|
+
def self.deserialize_object(object)
|
62
|
+
return if object.nil?
|
63
|
+
output_object = RouteListResult.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 = Route.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,19 @@
|
|
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 RouteNextHopType
|
10
|
+
#
|
11
|
+
module RouteNextHopType
|
12
|
+
VirtualNetworkGateway = "VirtualNetworkGateway"
|
13
|
+
VnetLocal = "VnetLocal"
|
14
|
+
Internet = "Internet"
|
15
|
+
VirtualAppliance = "VirtualAppliance"
|
16
|
+
None = "None"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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
|
+
# Route resource
|
10
|
+
#
|
11
|
+
class RoutePropertiesFormat
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the destination CIDR to which the route
|
16
|
+
# applies.
|
17
|
+
attr_accessor :address_prefix
|
18
|
+
|
19
|
+
# @return [RouteNextHopType] Gets or sets the type of Azure hop the
|
20
|
+
# packet should be sent to. Possible values include:
|
21
|
+
# 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance',
|
22
|
+
# 'None'
|
23
|
+
attr_accessor :next_hop_type
|
24
|
+
|
25
|
+
# @return [String] Gets or sets the IP address packets should be
|
26
|
+
# forwarded to. Next hop values are only allowed in routes where the
|
27
|
+
# next hop type is VirtualAppliance.
|
28
|
+
attr_accessor :next_hop_ip_address
|
29
|
+
|
30
|
+
# @return [String] Gets or sets Provisioning state of the resource
|
31
|
+
# Updating/Deleting/Failed
|
32
|
+
attr_accessor :provisioning_state
|
33
|
+
|
34
|
+
#
|
35
|
+
# Validate the object. Throws ValidationError if validation fails.
|
36
|
+
#
|
37
|
+
def validate
|
38
|
+
fail MsRest::ValidationError, 'property next_hop_type is nil' if @next_hop_type.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Serializes given Model object into Ruby Hash.
|
43
|
+
# @param object Model object to serialize.
|
44
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
45
|
+
#
|
46
|
+
def self.serialize_object(object)
|
47
|
+
object.validate
|
48
|
+
output_object = {}
|
49
|
+
|
50
|
+
serialized_property = object.next_hop_type
|
51
|
+
output_object['nextHopType'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.address_prefix
|
54
|
+
output_object['addressPrefix'] = serialized_property unless serialized_property.nil?
|
55
|
+
|
56
|
+
serialized_property = object.next_hop_ip_address
|
57
|
+
output_object['nextHopIpAddress'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.provisioning_state
|
60
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
61
|
+
|
62
|
+
output_object
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# Deserializes given Ruby Hash into Model object.
|
67
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
68
|
+
# @return [RoutePropertiesFormat] Deserialized object.
|
69
|
+
#
|
70
|
+
def self.deserialize_object(object)
|
71
|
+
return if object.nil?
|
72
|
+
output_object = RoutePropertiesFormat.new
|
73
|
+
|
74
|
+
deserialized_property = object['nextHopType']
|
75
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
76
|
+
enum_is_valid = RouteNextHopType.constants.any? { |e| RouteNextHopType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
77
|
+
warn 'Enum RouteNextHopType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
78
|
+
end
|
79
|
+
output_object.next_hop_type = deserialized_property
|
80
|
+
|
81
|
+
deserialized_property = object['addressPrefix']
|
82
|
+
output_object.address_prefix = deserialized_property
|
83
|
+
|
84
|
+
deserialized_property = object['nextHopIpAddress']
|
85
|
+
output_object.next_hop_ip_address = deserialized_property
|
86
|
+
|
87
|
+
deserialized_property = object['provisioningState']
|
88
|
+
output_object.provisioning_state = deserialized_property
|
89
|
+
|
90
|
+
output_object
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,102 @@
|
|
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
|
+
# RouteTable resource
|
10
|
+
#
|
11
|
+
class RouteTable < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RouteTablePropertiesFormat]
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
# @return [String] Gets a unique read-only string that changes whenever
|
19
|
+
# the resource is updated
|
20
|
+
attr_accessor :etag
|
21
|
+
|
22
|
+
#
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
24
|
+
#
|
25
|
+
def validate
|
26
|
+
@properties.validate unless @properties.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.id
|
39
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
serialized_property = object.name
|
42
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
serialized_property = object.type
|
45
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.location
|
48
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.tags
|
51
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.properties
|
54
|
+
unless serialized_property.nil?
|
55
|
+
serialized_property = RouteTablePropertiesFormat.serialize_object(serialized_property)
|
56
|
+
end
|
57
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.etag
|
60
|
+
output_object['etag'] = serialized_property unless serialized_property.nil?
|
61
|
+
|
62
|
+
output_object
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# Deserializes given Ruby Hash into Model object.
|
67
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
68
|
+
# @return [RouteTable] Deserialized object.
|
69
|
+
#
|
70
|
+
def self.deserialize_object(object)
|
71
|
+
return if object.nil?
|
72
|
+
output_object = RouteTable.new
|
73
|
+
|
74
|
+
deserialized_property = object['id']
|
75
|
+
output_object.id = deserialized_property
|
76
|
+
|
77
|
+
deserialized_property = object['name']
|
78
|
+
output_object.name = deserialized_property
|
79
|
+
|
80
|
+
deserialized_property = object['type']
|
81
|
+
output_object.type = deserialized_property
|
82
|
+
|
83
|
+
deserialized_property = object['location']
|
84
|
+
output_object.location = deserialized_property
|
85
|
+
|
86
|
+
deserialized_property = object['tags']
|
87
|
+
output_object.tags = deserialized_property
|
88
|
+
|
89
|
+
deserialized_property = object['properties']
|
90
|
+
unless deserialized_property.nil?
|
91
|
+
deserialized_property = RouteTablePropertiesFormat.deserialize_object(deserialized_property)
|
92
|
+
end
|
93
|
+
output_object.properties = deserialized_property
|
94
|
+
|
95
|
+
deserialized_property = object['etag']
|
96
|
+
output_object.etag = deserialized_property
|
97
|
+
|
98
|
+
output_object
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|