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,86 @@
|
|
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
|
+
# VirtualNetworkGatewaySku details
|
10
|
+
#
|
11
|
+
class VirtualNetworkGatewaySku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [VirtualNetworkGatewaySkuName] Gateway sku name
|
16
|
+
# -Basic/HighPerformance/Standard. Possible values include: 'Basic',
|
17
|
+
# 'HighPerformance', 'Standard'
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [VirtualNetworkGatewaySkuTier] Gateway sku tier
|
21
|
+
# -Basic/HighPerformance/Standard. Possible values include: 'Basic',
|
22
|
+
# 'HighPerformance', 'Standard'
|
23
|
+
attr_accessor :tier
|
24
|
+
|
25
|
+
# @return [Integer] The capacity
|
26
|
+
attr_accessor :capacity
|
27
|
+
|
28
|
+
#
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
30
|
+
#
|
31
|
+
def validate
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
# Serializes given Model object into Ruby Hash.
|
36
|
+
# @param object Model object to serialize.
|
37
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
38
|
+
#
|
39
|
+
def self.serialize_object(object)
|
40
|
+
object.validate
|
41
|
+
output_object = {}
|
42
|
+
|
43
|
+
serialized_property = object.name
|
44
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.tier
|
47
|
+
output_object['tier'] = serialized_property unless serialized_property.nil?
|
48
|
+
|
49
|
+
serialized_property = object.capacity
|
50
|
+
output_object['capacity'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
52
|
+
output_object
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Deserializes given Ruby Hash into Model object.
|
57
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
58
|
+
# @return [VirtualNetworkGatewaySku] Deserialized object.
|
59
|
+
#
|
60
|
+
def self.deserialize_object(object)
|
61
|
+
return if object.nil?
|
62
|
+
output_object = VirtualNetworkGatewaySku.new
|
63
|
+
|
64
|
+
deserialized_property = object['name']
|
65
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
66
|
+
enum_is_valid = VirtualNetworkGatewaySkuName.constants.any? { |e| VirtualNetworkGatewaySkuName.const_get(e).to_s.downcase == deserialized_property.downcase }
|
67
|
+
warn 'Enum VirtualNetworkGatewaySkuName does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
68
|
+
end
|
69
|
+
output_object.name = deserialized_property
|
70
|
+
|
71
|
+
deserialized_property = object['tier']
|
72
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
73
|
+
enum_is_valid = VirtualNetworkGatewaySkuTier.constants.any? { |e| VirtualNetworkGatewaySkuTier.const_get(e).to_s.downcase == deserialized_property.downcase }
|
74
|
+
warn 'Enum VirtualNetworkGatewaySkuTier does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
75
|
+
end
|
76
|
+
output_object.tier = deserialized_property
|
77
|
+
|
78
|
+
deserialized_property = object['capacity']
|
79
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
80
|
+
output_object.capacity = deserialized_property
|
81
|
+
|
82
|
+
output_object
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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 VirtualNetworkGatewaySkuName
|
10
|
+
#
|
11
|
+
module VirtualNetworkGatewaySkuName
|
12
|
+
Basic = "Basic"
|
13
|
+
HighPerformance = "HighPerformance"
|
14
|
+
Standard = "Standard"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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 VirtualNetworkGatewaySkuTier
|
10
|
+
#
|
11
|
+
module VirtualNetworkGatewaySkuTier
|
12
|
+
Basic = "Basic"
|
13
|
+
HighPerformance = "HighPerformance"
|
14
|
+
Standard = "Standard"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
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
|
|
@@ -10,6 +10,7 @@ module Azure::ARM::Network
|
|
10
10
|
#
|
11
11
|
module VirtualNetworkGatewayType
|
12
12
|
Vpn = "Vpn"
|
13
|
+
ExpressRoute = "ExpressRoute"
|
13
14
|
end
|
14
15
|
end
|
15
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
|
|
@@ -65,22 +65,20 @@ module Azure::ARM::Network
|
|
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
71
|
element1 = VirtualNetwork.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
|
@@ -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
|
|
@@ -24,6 +24,10 @@ module Azure::ARM::Network
|
|
24
24
|
# VirtualNetwork
|
25
25
|
attr_accessor :subnets
|
26
26
|
|
27
|
+
# @return [String] Gets or sets resource guid property of the
|
28
|
+
# VirtualNetwork resource
|
29
|
+
attr_accessor :resource_guid
|
30
|
+
|
27
31
|
# @return [String] Gets or sets Provisioning state of the PublicIP
|
28
32
|
# resource Updating/Deleting/Failed
|
29
33
|
attr_accessor :provisioning_state
|
@@ -71,6 +75,9 @@ module Azure::ARM::Network
|
|
71
75
|
end
|
72
76
|
output_object['subnets'] = serialized_property unless serialized_property.nil?
|
73
77
|
|
78
|
+
serialized_property = object.resource_guid
|
79
|
+
output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
|
80
|
+
|
74
81
|
serialized_property = object.provisioning_state
|
75
82
|
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
76
83
|
|
@@ -100,22 +107,23 @@ module Azure::ARM::Network
|
|
100
107
|
|
101
108
|
deserialized_property = object['subnets']
|
102
109
|
unless deserialized_property.nil?
|
103
|
-
|
110
|
+
deserialized_array = []
|
104
111
|
deserialized_property.each do |element1|
|
105
112
|
unless element1.nil?
|
106
113
|
element1 = Subnet.deserialize_object(element1)
|
107
114
|
end
|
108
|
-
|
115
|
+
deserialized_array.push(element1)
|
109
116
|
end
|
110
|
-
deserialized_property =
|
117
|
+
deserialized_property = deserialized_array
|
111
118
|
end
|
112
119
|
output_object.subnets = deserialized_property
|
113
120
|
|
121
|
+
deserialized_property = object['resourceGuid']
|
122
|
+
output_object.resource_guid = deserialized_property
|
123
|
+
|
114
124
|
deserialized_property = object['provisioningState']
|
115
125
|
output_object.provisioning_state = deserialized_property
|
116
126
|
|
117
|
-
output_object.validate
|
118
|
-
|
119
127
|
output_object
|
120
128
|
end
|
121
129
|
end
|
@@ -0,0 +1,125 @@
|
|
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
|
+
# VpnClientConfiguration for P2S client
|
10
|
+
#
|
11
|
+
class VpnClientConfiguration
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [AddressSpace] Gets or sets the reference of the Address space
|
16
|
+
# resource which represents Address space for P2S VpnClient.
|
17
|
+
attr_accessor :vpn_client_address_pool
|
18
|
+
|
19
|
+
# @return [Array<VpnClientRootCertificate>] VpnClientRootCertificate for
|
20
|
+
# Virtual network gateway.
|
21
|
+
attr_accessor :vpn_client_root_certificates
|
22
|
+
|
23
|
+
# @return [Array<VpnClientRevokedCertificate>]
|
24
|
+
# VpnClientRevokedCertificate for Virtual network gateway.
|
25
|
+
attr_accessor :vpn_client_revoked_certificates
|
26
|
+
|
27
|
+
#
|
28
|
+
# Validate the object. Throws ValidationError if validation fails.
|
29
|
+
#
|
30
|
+
def validate
|
31
|
+
@vpn_client_address_pool.validate unless @vpn_client_address_pool.nil?
|
32
|
+
@vpn_client_root_certificates.each{ |e| e.validate if e.respond_to?(:validate) } unless @vpn_client_root_certificates.nil?
|
33
|
+
@vpn_client_revoked_certificates.each{ |e| e.validate if e.respond_to?(:validate) } unless @vpn_client_revoked_certificates.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.vpn_client_address_pool
|
46
|
+
unless serialized_property.nil?
|
47
|
+
serialized_property = AddressSpace.serialize_object(serialized_property)
|
48
|
+
end
|
49
|
+
output_object['vpnClientAddressPool'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
serialized_property = object.vpn_client_root_certificates
|
52
|
+
unless serialized_property.nil?
|
53
|
+
serializedArray = []
|
54
|
+
serialized_property.each do |element|
|
55
|
+
unless element.nil?
|
56
|
+
element = VpnClientRootCertificate.serialize_object(element)
|
57
|
+
end
|
58
|
+
serializedArray.push(element)
|
59
|
+
end
|
60
|
+
serialized_property = serializedArray
|
61
|
+
end
|
62
|
+
output_object['vpnClientRootCertificates'] = serialized_property unless serialized_property.nil?
|
63
|
+
|
64
|
+
serialized_property = object.vpn_client_revoked_certificates
|
65
|
+
unless serialized_property.nil?
|
66
|
+
serializedArray = []
|
67
|
+
serialized_property.each do |element1|
|
68
|
+
unless element1.nil?
|
69
|
+
element1 = VpnClientRevokedCertificate.serialize_object(element1)
|
70
|
+
end
|
71
|
+
serializedArray.push(element1)
|
72
|
+
end
|
73
|
+
serialized_property = serializedArray
|
74
|
+
end
|
75
|
+
output_object['vpnClientRevokedCertificates'] = serialized_property unless serialized_property.nil?
|
76
|
+
|
77
|
+
output_object
|
78
|
+
end
|
79
|
+
|
80
|
+
#
|
81
|
+
# Deserializes given Ruby Hash into Model object.
|
82
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
83
|
+
# @return [VpnClientConfiguration] Deserialized object.
|
84
|
+
#
|
85
|
+
def self.deserialize_object(object)
|
86
|
+
return if object.nil?
|
87
|
+
output_object = VpnClientConfiguration.new
|
88
|
+
|
89
|
+
deserialized_property = object['vpnClientAddressPool']
|
90
|
+
unless deserialized_property.nil?
|
91
|
+
deserialized_property = AddressSpace.deserialize_object(deserialized_property)
|
92
|
+
end
|
93
|
+
output_object.vpn_client_address_pool = deserialized_property
|
94
|
+
|
95
|
+
deserialized_property = object['vpnClientRootCertificates']
|
96
|
+
unless deserialized_property.nil?
|
97
|
+
deserialized_array = []
|
98
|
+
deserialized_property.each do |element2|
|
99
|
+
unless element2.nil?
|
100
|
+
element2 = VpnClientRootCertificate.deserialize_object(element2)
|
101
|
+
end
|
102
|
+
deserialized_array.push(element2)
|
103
|
+
end
|
104
|
+
deserialized_property = deserialized_array
|
105
|
+
end
|
106
|
+
output_object.vpn_client_root_certificates = deserialized_property
|
107
|
+
|
108
|
+
deserialized_property = object['vpnClientRevokedCertificates']
|
109
|
+
unless deserialized_property.nil?
|
110
|
+
deserialized_array = []
|
111
|
+
deserialized_property.each do |element3|
|
112
|
+
unless element3.nil?
|
113
|
+
element3 = VpnClientRevokedCertificate.deserialize_object(element3)
|
114
|
+
end
|
115
|
+
deserialized_array.push(element3)
|
116
|
+
end
|
117
|
+
deserialized_property = deserialized_array
|
118
|
+
end
|
119
|
+
output_object.vpn_client_revoked_certificates = deserialized_property
|
120
|
+
|
121
|
+
output_object
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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
|
+
# VpnClientParameters
|
10
|
+
#
|
11
|
+
class VpnClientParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ProcessorArchitecture] VPN client Processor Architecture
|
16
|
+
# -Amd64/X86. Possible values include: 'Amd64', 'X86'
|
17
|
+
attr_accessor :processor_architecture
|
18
|
+
|
19
|
+
#
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
21
|
+
#
|
22
|
+
def validate
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Serializes given Model object into Ruby Hash.
|
27
|
+
# @param object Model object to serialize.
|
28
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
+
#
|
30
|
+
def self.serialize_object(object)
|
31
|
+
object.validate
|
32
|
+
output_object = {}
|
33
|
+
|
34
|
+
serialized_property = object.processor_architecture
|
35
|
+
output_object['ProcessorArchitecture'] = serialized_property unless serialized_property.nil?
|
36
|
+
|
37
|
+
output_object
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Deserializes given Ruby Hash into Model object.
|
42
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
+
# @return [VpnClientParameters] Deserialized object.
|
44
|
+
#
|
45
|
+
def self.deserialize_object(object)
|
46
|
+
return if object.nil?
|
47
|
+
output_object = VpnClientParameters.new
|
48
|
+
|
49
|
+
deserialized_property = object['ProcessorArchitecture']
|
50
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
51
|
+
enum_is_valid = ProcessorArchitecture.constants.any? { |e| ProcessorArchitecture.const_get(e).to_s.downcase == deserialized_property.downcase }
|
52
|
+
warn 'Enum ProcessorArchitecture does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
53
|
+
end
|
54
|
+
output_object.processor_architecture = deserialized_property
|
55
|
+
|
56
|
+
output_object
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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
|
+
# VPN client revoked certificate of virtual network gateway
|
10
|
+
#
|
11
|
+
class VpnClientRevokedCertificate < MsRestAzure::SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [VpnClientRevokedCertificatePropertiesFormat]
|
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 = VpnClientRevokedCertificatePropertiesFormat.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 [VpnClientRevokedCertificate] Deserialized object.
|
64
|
+
#
|
65
|
+
def self.deserialize_object(object)
|
66
|
+
return if object.nil?
|
67
|
+
output_object = VpnClientRevokedCertificate.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 = VpnClientRevokedCertificatePropertiesFormat.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
|