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,117 @@
|
|
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
|
+
# Outbound NAT pool of the loadbalancer
|
10
|
+
#
|
11
|
+
class OutboundNatRulePropertiesFormat
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Gets or sets the number of outbound ports to be used
|
16
|
+
# for SNAT
|
17
|
+
attr_accessor :allocated_outbound_ports
|
18
|
+
|
19
|
+
# @return [Array<SubResource>] Gets or sets Frontend IP addresses of the
|
20
|
+
# load balancer
|
21
|
+
attr_accessor :frontend_ipconfigurations
|
22
|
+
|
23
|
+
# @return [SubResource] Gets or sets a reference to a pool of DIPs.
|
24
|
+
# Outbound traffic is randomly load balanced across IPs in the backend
|
25
|
+
# IPs
|
26
|
+
attr_accessor :backend_address_pool
|
27
|
+
|
28
|
+
# @return [String] Gets or sets Provisioning state of the PublicIP
|
29
|
+
# resource Updating/Deleting/Failed
|
30
|
+
attr_accessor :provisioning_state
|
31
|
+
|
32
|
+
#
|
33
|
+
# Validate the object. Throws ValidationError if validation fails.
|
34
|
+
#
|
35
|
+
def validate
|
36
|
+
fail MsRest::ValidationError, 'property backend_address_pool is nil' if @backend_address_pool.nil?
|
37
|
+
@frontend_ipconfigurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @frontend_ipconfigurations.nil?
|
38
|
+
@backend_address_pool.validate unless @backend_address_pool.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.backend_address_pool
|
51
|
+
unless serialized_property.nil?
|
52
|
+
serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
|
53
|
+
end
|
54
|
+
output_object['backendAddressPool'] = serialized_property unless serialized_property.nil?
|
55
|
+
|
56
|
+
serialized_property = object.allocated_outbound_ports
|
57
|
+
output_object['allocatedOutboundPorts'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.frontend_ipconfigurations
|
60
|
+
unless serialized_property.nil?
|
61
|
+
serializedArray = []
|
62
|
+
serialized_property.each do |element|
|
63
|
+
unless element.nil?
|
64
|
+
element = MsRestAzure::SubResource.serialize_object(element)
|
65
|
+
end
|
66
|
+
serializedArray.push(element)
|
67
|
+
end
|
68
|
+
serialized_property = serializedArray
|
69
|
+
end
|
70
|
+
output_object['frontendIPConfigurations'] = serialized_property unless serialized_property.nil?
|
71
|
+
|
72
|
+
serialized_property = object.provisioning_state
|
73
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
74
|
+
|
75
|
+
output_object
|
76
|
+
end
|
77
|
+
|
78
|
+
#
|
79
|
+
# Deserializes given Ruby Hash into Model object.
|
80
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
81
|
+
# @return [OutboundNatRulePropertiesFormat] Deserialized object.
|
82
|
+
#
|
83
|
+
def self.deserialize_object(object)
|
84
|
+
return if object.nil?
|
85
|
+
output_object = OutboundNatRulePropertiesFormat.new
|
86
|
+
|
87
|
+
deserialized_property = object['backendAddressPool']
|
88
|
+
unless deserialized_property.nil?
|
89
|
+
deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
|
90
|
+
end
|
91
|
+
output_object.backend_address_pool = deserialized_property
|
92
|
+
|
93
|
+
deserialized_property = object['allocatedOutboundPorts']
|
94
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
95
|
+
output_object.allocated_outbound_ports = deserialized_property
|
96
|
+
|
97
|
+
deserialized_property = object['frontendIPConfigurations']
|
98
|
+
unless deserialized_property.nil?
|
99
|
+
deserialized_array = []
|
100
|
+
deserialized_property.each do |element1|
|
101
|
+
unless element1.nil?
|
102
|
+
element1 = MsRestAzure::SubResource.deserialize_object(element1)
|
103
|
+
end
|
104
|
+
deserialized_array.push(element1)
|
105
|
+
end
|
106
|
+
deserialized_property = deserialized_array
|
107
|
+
end
|
108
|
+
output_object.frontend_ipconfigurations = deserialized_property
|
109
|
+
|
110
|
+
deserialized_property = object['provisioningState']
|
111
|
+
output_object.provisioning_state = deserialized_property
|
112
|
+
|
113
|
+
output_object
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -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
|
|
@@ -81,8 +81,6 @@ module Azure::ARM::Network
|
|
81
81
|
deserialized_property = object['etag']
|
82
82
|
output_object.etag = deserialized_property
|
83
83
|
|
84
|
-
output_object.validate
|
85
|
-
|
86
84
|
output_object
|
87
85
|
end
|
88
86
|
end
|
@@ -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
|
|
@@ -20,8 +20,7 @@ module Azure::ARM::Network
|
|
20
20
|
# Possible values are http pr Tcp. If Tcp is specified, a received ACK
|
21
21
|
# is required for the probe to be successful. If http is specified,a
|
22
22
|
# 200 OK response from the specifies URI is required for the probe to
|
23
|
-
# be successful. Possible values
|
24
|
-
# 'Tcp'.
|
23
|
+
# be successful. Possible values include: 'Http', 'Tcp'
|
25
24
|
attr_accessor :protocol
|
26
25
|
|
27
26
|
# @return [Integer] Gets or sets Port for communicating the probe.
|
@@ -55,6 +54,8 @@ module Azure::ARM::Network
|
|
55
54
|
# Validate the object. Throws ValidationError if validation fails.
|
56
55
|
#
|
57
56
|
def validate
|
57
|
+
fail MsRest::ValidationError, 'property protocol is nil' if @protocol.nil?
|
58
|
+
fail MsRest::ValidationError, 'property port is nil' if @port.nil?
|
58
59
|
@load_balancing_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancing_rules.nil?
|
59
60
|
end
|
60
61
|
|
@@ -67,12 +68,18 @@ module Azure::ARM::Network
|
|
67
68
|
object.validate
|
68
69
|
output_object = {}
|
69
70
|
|
71
|
+
serialized_property = object.protocol
|
72
|
+
output_object['protocol'] = serialized_property unless serialized_property.nil?
|
73
|
+
|
74
|
+
serialized_property = object.port
|
75
|
+
output_object['port'] = serialized_property unless serialized_property.nil?
|
76
|
+
|
70
77
|
serialized_property = object.load_balancing_rules
|
71
78
|
unless serialized_property.nil?
|
72
79
|
serializedArray = []
|
73
80
|
serialized_property.each do |element|
|
74
81
|
unless element.nil?
|
75
|
-
element = SubResource.serialize_object(element)
|
82
|
+
element = MsRestAzure::SubResource.serialize_object(element)
|
76
83
|
end
|
77
84
|
serializedArray.push(element)
|
78
85
|
end
|
@@ -80,12 +87,6 @@ module Azure::ARM::Network
|
|
80
87
|
end
|
81
88
|
output_object['loadBalancingRules'] = serialized_property unless serialized_property.nil?
|
82
89
|
|
83
|
-
serialized_property = object.protocol
|
84
|
-
output_object['protocol'] = serialized_property unless serialized_property.nil?
|
85
|
-
|
86
|
-
serialized_property = object.port
|
87
|
-
output_object['port'] = serialized_property unless serialized_property.nil?
|
88
|
-
|
89
90
|
serialized_property = object.interval_in_seconds
|
90
91
|
output_object['intervalInSeconds'] = serialized_property unless serialized_property.nil?
|
91
92
|
|
@@ -110,23 +111,10 @@ module Azure::ARM::Network
|
|
110
111
|
return if object.nil?
|
111
112
|
output_object = ProbePropertiesFormat.new
|
112
113
|
|
113
|
-
deserialized_property = object['loadBalancingRules']
|
114
|
-
unless deserialized_property.nil?
|
115
|
-
deserializedArray = [];
|
116
|
-
deserialized_property.each do |element1|
|
117
|
-
unless element1.nil?
|
118
|
-
element1 = SubResource.deserialize_object(element1)
|
119
|
-
end
|
120
|
-
deserializedArray.push(element1);
|
121
|
-
end
|
122
|
-
deserialized_property = deserializedArray;
|
123
|
-
end
|
124
|
-
output_object.load_balancing_rules = deserialized_property
|
125
|
-
|
126
114
|
deserialized_property = object['protocol']
|
127
115
|
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
128
116
|
enum_is_valid = ProbeProtocol.constants.any? { |e| ProbeProtocol.const_get(e).to_s.downcase == deserialized_property.downcase }
|
129
|
-
|
117
|
+
warn 'Enum ProbeProtocol does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
130
118
|
end
|
131
119
|
output_object.protocol = deserialized_property
|
132
120
|
|
@@ -134,6 +122,19 @@ module Azure::ARM::Network
|
|
134
122
|
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
135
123
|
output_object.port = deserialized_property
|
136
124
|
|
125
|
+
deserialized_property = object['loadBalancingRules']
|
126
|
+
unless deserialized_property.nil?
|
127
|
+
deserialized_array = []
|
128
|
+
deserialized_property.each do |element1|
|
129
|
+
unless element1.nil?
|
130
|
+
element1 = MsRestAzure::SubResource.deserialize_object(element1)
|
131
|
+
end
|
132
|
+
deserialized_array.push(element1)
|
133
|
+
end
|
134
|
+
deserialized_property = deserialized_array
|
135
|
+
end
|
136
|
+
output_object.load_balancing_rules = deserialized_property
|
137
|
+
|
137
138
|
deserialized_property = object['intervalInSeconds']
|
138
139
|
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
139
140
|
output_object.interval_in_seconds = deserialized_property
|
@@ -148,8 +149,6 @@ module Azure::ARM::Network
|
|
148
149
|
deserialized_property = object['provisioningState']
|
149
150
|
output_object.provisioning_state = deserialized_property
|
150
151
|
|
151
|
-
output_object.validate
|
152
|
-
|
153
152
|
output_object
|
154
153
|
end
|
155
154
|
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 ProcessorArchitecture
|
10
|
+
#
|
11
|
+
module ProcessorArchitecture
|
12
|
+
Amd64 = "Amd64"
|
13
|
+
X86 = "X86"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -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,11 +8,11 @@ module Azure::ARM::Network
|
|
8
8
|
#
|
9
9
|
# PublicIPAddress resource
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class PublicIPAddress < MsRestAzure::Resource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [
|
15
|
+
# @return [PublicIPAddressPropertiesFormat]
|
16
16
|
attr_accessor :properties
|
17
17
|
|
18
18
|
# @return [String] Gets a unique read-only string that changes whenever
|
@@ -35,9 +35,6 @@ module Azure::ARM::Network
|
|
35
35
|
object.validate
|
36
36
|
output_object = {}
|
37
37
|
|
38
|
-
serialized_property = object.location
|
39
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
38
|
serialized_property = object.id
|
42
39
|
output_object['id'] = serialized_property unless serialized_property.nil?
|
43
40
|
|
@@ -47,12 +44,15 @@ module Azure::ARM::Network
|
|
47
44
|
serialized_property = object.type
|
48
45
|
output_object['type'] = serialized_property unless serialized_property.nil?
|
49
46
|
|
47
|
+
serialized_property = object.location
|
48
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
50
|
serialized_property = object.tags
|
51
51
|
output_object['tags'] = serialized_property unless serialized_property.nil?
|
52
52
|
|
53
53
|
serialized_property = object.properties
|
54
54
|
unless serialized_property.nil?
|
55
|
-
serialized_property =
|
55
|
+
serialized_property = PublicIPAddressPropertiesFormat.serialize_object(serialized_property)
|
56
56
|
end
|
57
57
|
output_object['properties'] = serialized_property unless serialized_property.nil?
|
58
58
|
|
@@ -65,14 +65,11 @@ module Azure::ARM::Network
|
|
65
65
|
#
|
66
66
|
# Deserializes given Ruby Hash into Model object.
|
67
67
|
# @param object [Hash] Ruby Hash object to deserialize.
|
68
|
-
# @return [
|
68
|
+
# @return [PublicIPAddress] Deserialized object.
|
69
69
|
#
|
70
70
|
def self.deserialize_object(object)
|
71
71
|
return if object.nil?
|
72
|
-
output_object =
|
73
|
-
|
74
|
-
deserialized_property = object['location']
|
75
|
-
output_object.location = deserialized_property
|
72
|
+
output_object = PublicIPAddress.new
|
76
73
|
|
77
74
|
deserialized_property = object['id']
|
78
75
|
output_object.id = deserialized_property
|
@@ -83,20 +80,21 @@ module Azure::ARM::Network
|
|
83
80
|
deserialized_property = object['type']
|
84
81
|
output_object.type = deserialized_property
|
85
82
|
|
83
|
+
deserialized_property = object['location']
|
84
|
+
output_object.location = deserialized_property
|
85
|
+
|
86
86
|
deserialized_property = object['tags']
|
87
87
|
output_object.tags = deserialized_property
|
88
88
|
|
89
89
|
deserialized_property = object['properties']
|
90
90
|
unless deserialized_property.nil?
|
91
|
-
deserialized_property =
|
91
|
+
deserialized_property = PublicIPAddressPropertiesFormat.deserialize_object(deserialized_property)
|
92
92
|
end
|
93
93
|
output_object.properties = deserialized_property
|
94
94
|
|
95
95
|
deserialized_property = object['etag']
|
96
96
|
output_object.etag = deserialized_property
|
97
97
|
|
98
|
-
output_object.validate
|
99
|
-
|
100
98
|
output_object
|
101
99
|
end
|
102
100
|
end
|
@@ -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,7 +8,7 @@ module Azure::ARM::Network
|
|
8
8
|
#
|
9
9
|
# Contains FQDN of the DNS record associated with the public IP address
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class PublicIPAddressDnsSettings
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
@@ -61,11 +61,11 @@ module Azure::ARM::Network
|
|
61
61
|
#
|
62
62
|
# Deserializes given Ruby Hash into Model object.
|
63
63
|
# @param object [Hash] Ruby Hash object to deserialize.
|
64
|
-
# @return [
|
64
|
+
# @return [PublicIPAddressDnsSettings] Deserialized object.
|
65
65
|
#
|
66
66
|
def self.deserialize_object(object)
|
67
67
|
return if object.nil?
|
68
|
-
output_object =
|
68
|
+
output_object = PublicIPAddressDnsSettings.new
|
69
69
|
|
70
70
|
deserialized_property = object['domainNameLabel']
|
71
71
|
output_object.domain_name_label = deserialized_property
|
@@ -76,8 +76,6 @@ module Azure::ARM::Network
|
|
76
76
|
deserialized_property = object['reverseFqdn']
|
77
77
|
output_object.reverse_fqdn = deserialized_property
|
78
78
|
|
79
|
-
output_object.validate
|
80
|
-
|
81
79
|
output_object
|
82
80
|
end
|
83
81
|
end
|
@@ -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,11 +8,11 @@ module Azure::ARM::Network
|
|
8
8
|
#
|
9
9
|
# Response for ListPublicIpAddresses Api service call
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class PublicIPAddressListResult
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<
|
15
|
+
# @return [Array<PublicIPAddress>] Gets List of publicIP addresses that
|
16
16
|
# exists in a resource group
|
17
17
|
attr_accessor :value
|
18
18
|
|
@@ -40,7 +40,7 @@ module Azure::ARM::Network
|
|
40
40
|
serializedArray = []
|
41
41
|
serialized_property.each do |element|
|
42
42
|
unless element.nil?
|
43
|
-
element =
|
43
|
+
element = PublicIPAddress.serialize_object(element)
|
44
44
|
end
|
45
45
|
serializedArray.push(element)
|
46
46
|
end
|
@@ -57,30 +57,28 @@ module Azure::ARM::Network
|
|
57
57
|
#
|
58
58
|
# Deserializes given Ruby Hash into Model object.
|
59
59
|
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
-
# @return [
|
60
|
+
# @return [PublicIPAddressListResult] Deserialized object.
|
61
61
|
#
|
62
62
|
def self.deserialize_object(object)
|
63
63
|
return if object.nil?
|
64
|
-
output_object =
|
64
|
+
output_object = PublicIPAddressListResult.new
|
65
65
|
|
66
66
|
deserialized_property = object['value']
|
67
67
|
unless deserialized_property.nil?
|
68
|
-
|
68
|
+
deserialized_array = []
|
69
69
|
deserialized_property.each do |element1|
|
70
70
|
unless element1.nil?
|
71
|
-
element1 =
|
71
|
+
element1 = PublicIPAddress.deserialize_object(element1)
|
72
72
|
end
|
73
|
-
|
73
|
+
deserialized_array.push(element1)
|
74
74
|
end
|
75
|
-
deserialized_property =
|
75
|
+
deserialized_property = deserialized_array
|
76
76
|
end
|
77
77
|
output_object.value = deserialized_property
|
78
78
|
|
79
79
|
deserialized_property = object['nextLink']
|
80
80
|
output_object.next_link = deserialized_property
|
81
81
|
|
82
|
-
output_object.validate
|
83
|
-
|
84
82
|
output_object
|
85
83
|
end
|
86
84
|
end
|