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,18 @@
|
|
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 ServiceProviderProvisioningState
|
10
|
+
#
|
11
|
+
module ServiceProviderProvisioningState
|
12
|
+
NotProvisioned = "NotProvisioned"
|
13
|
+
Provisioning = "Provisioning"
|
14
|
+
Provisioned = "Provisioned"
|
15
|
+
Deprovisioning = "Deprovisioning"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
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
|
|
@@ -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 = Subnet.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
|
|
@@ -15,12 +15,16 @@ module Azure::ARM::Network
|
|
15
15
|
# @return [String] Gets or sets Address prefix for the subnet.
|
16
16
|
attr_accessor :address_prefix
|
17
17
|
|
18
|
-
# @return [
|
18
|
+
# @return [NetworkSecurityGroup] Gets or sets the reference of the
|
19
19
|
# NetworkSecurityGroup resource
|
20
20
|
attr_accessor :network_security_group
|
21
21
|
|
22
|
-
# @return [
|
23
|
-
#
|
22
|
+
# @return [RouteTable] Gets or sets the reference of the RouteTable
|
23
|
+
# resource
|
24
|
+
attr_accessor :route_table
|
25
|
+
|
26
|
+
# @return [Array<IPConfiguration>] Gets array of references to the
|
27
|
+
# network interface IP configurations using subnet
|
24
28
|
attr_accessor :ip_configurations
|
25
29
|
|
26
30
|
# @return [String] Gets or sets Provisioning state of the PublicIP
|
@@ -32,6 +36,7 @@ module Azure::ARM::Network
|
|
32
36
|
#
|
33
37
|
def validate
|
34
38
|
@network_security_group.validate unless @network_security_group.nil?
|
39
|
+
@route_table.validate unless @route_table.nil?
|
35
40
|
@ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @ip_configurations.nil?
|
36
41
|
end
|
37
42
|
|
@@ -49,16 +54,22 @@ module Azure::ARM::Network
|
|
49
54
|
|
50
55
|
serialized_property = object.network_security_group
|
51
56
|
unless serialized_property.nil?
|
52
|
-
serialized_property =
|
57
|
+
serialized_property = NetworkSecurityGroup.serialize_object(serialized_property)
|
53
58
|
end
|
54
59
|
output_object['networkSecurityGroup'] = serialized_property unless serialized_property.nil?
|
55
60
|
|
61
|
+
serialized_property = object.route_table
|
62
|
+
unless serialized_property.nil?
|
63
|
+
serialized_property = RouteTable.serialize_object(serialized_property)
|
64
|
+
end
|
65
|
+
output_object['routeTable'] = serialized_property unless serialized_property.nil?
|
66
|
+
|
56
67
|
serialized_property = object.ip_configurations
|
57
68
|
unless serialized_property.nil?
|
58
69
|
serializedArray = []
|
59
70
|
serialized_property.each do |element|
|
60
71
|
unless element.nil?
|
61
|
-
element =
|
72
|
+
element = IPConfiguration.serialize_object(element)
|
62
73
|
end
|
63
74
|
serializedArray.push(element)
|
64
75
|
end
|
@@ -86,28 +97,32 @@ module Azure::ARM::Network
|
|
86
97
|
|
87
98
|
deserialized_property = object['networkSecurityGroup']
|
88
99
|
unless deserialized_property.nil?
|
89
|
-
deserialized_property =
|
100
|
+
deserialized_property = NetworkSecurityGroup.deserialize_object(deserialized_property)
|
90
101
|
end
|
91
102
|
output_object.network_security_group = deserialized_property
|
92
103
|
|
104
|
+
deserialized_property = object['routeTable']
|
105
|
+
unless deserialized_property.nil?
|
106
|
+
deserialized_property = RouteTable.deserialize_object(deserialized_property)
|
107
|
+
end
|
108
|
+
output_object.route_table = deserialized_property
|
109
|
+
|
93
110
|
deserialized_property = object['ipConfigurations']
|
94
111
|
unless deserialized_property.nil?
|
95
|
-
|
112
|
+
deserialized_array = []
|
96
113
|
deserialized_property.each do |element1|
|
97
114
|
unless element1.nil?
|
98
|
-
element1 =
|
115
|
+
element1 = IPConfiguration.deserialize_object(element1)
|
99
116
|
end
|
100
|
-
|
117
|
+
deserialized_array.push(element1)
|
101
118
|
end
|
102
|
-
deserialized_property =
|
119
|
+
deserialized_property = deserialized_array
|
103
120
|
end
|
104
121
|
output_object.ip_configurations = deserialized_property
|
105
122
|
|
106
123
|
deserialized_property = object['provisioningState']
|
107
124
|
output_object.provisioning_state = deserialized_property
|
108
125
|
|
109
|
-
output_object.validate
|
110
|
-
|
111
126
|
output_object
|
112
127
|
end
|
113
128
|
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
|
|
@@ -13,7 +13,7 @@ module Azure::ARM::Network
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [UsageUnit] Gets or sets an enum describing the unit of
|
16
|
-
# measurement. Possible values
|
16
|
+
# measurement. Possible values include: 'Count'
|
17
17
|
attr_accessor :unit
|
18
18
|
|
19
19
|
# @return [Integer] Gets or sets the current value of the usage.
|
@@ -29,6 +29,10 @@ module Azure::ARM::Network
|
|
29
29
|
# Validate the object. Throws ValidationError if validation fails.
|
30
30
|
#
|
31
31
|
def validate
|
32
|
+
fail MsRest::ValidationError, 'property unit is nil' if @unit.nil?
|
33
|
+
fail MsRest::ValidationError, 'property current_value is nil' if @current_value.nil?
|
34
|
+
fail MsRest::ValidationError, 'property limit is nil' if @limit.nil?
|
35
|
+
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
32
36
|
@name.validate unless @name.nil?
|
33
37
|
end
|
34
38
|
|
@@ -71,7 +75,7 @@ module Azure::ARM::Network
|
|
71
75
|
deserialized_property = object['unit']
|
72
76
|
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
73
77
|
enum_is_valid = UsageUnit.constants.any? { |e| UsageUnit.const_get(e).to_s.downcase == deserialized_property.downcase }
|
74
|
-
|
78
|
+
warn 'Enum UsageUnit does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
75
79
|
end
|
76
80
|
output_object.unit = deserialized_property
|
77
81
|
|
@@ -89,8 +93,6 @@ module Azure::ARM::Network
|
|
89
93
|
end
|
90
94
|
output_object.name = deserialized_property
|
91
95
|
|
92
|
-
output_object.validate
|
93
|
-
|
94
96
|
output_object
|
95
97
|
end
|
96
98
|
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
|
|
@@ -59,8 +59,6 @@ module Azure::ARM::Network
|
|
59
59
|
deserialized_property = object['localizedValue']
|
60
60
|
output_object.localized_value = deserialized_property
|
61
61
|
|
62
|
-
output_object.validate
|
63
|
-
|
64
62
|
output_object
|
65
63
|
end
|
66
64
|
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
|
|
@@ -58,19 +58,17 @@ module Azure::ARM::Network
|
|
58
58
|
|
59
59
|
deserialized_property = object['value']
|
60
60
|
unless deserialized_property.nil?
|
61
|
-
|
61
|
+
deserialized_array = []
|
62
62
|
deserialized_property.each do |element1|
|
63
63
|
unless element1.nil?
|
64
64
|
element1 = Usage.deserialize_object(element1)
|
65
65
|
end
|
66
|
-
|
66
|
+
deserialized_array.push(element1)
|
67
67
|
end
|
68
|
-
deserialized_property =
|
68
|
+
deserialized_property = deserialized_array
|
69
69
|
end
|
70
70
|
output_object.value = deserialized_property
|
71
71
|
|
72
|
-
output_object.validate
|
73
|
-
|
74
72
|
output_object
|
75
73
|
end
|
76
74
|
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
|
|
@@ -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,6 +44,9 @@ 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
|
|
@@ -71,9 +71,6 @@ module Azure::ARM::Network
|
|
71
71
|
return if object.nil?
|
72
72
|
output_object = VirtualNetwork.new
|
73
73
|
|
74
|
-
deserialized_property = object['location']
|
75
|
-
output_object.location = deserialized_property
|
76
|
-
|
77
74
|
deserialized_property = object['id']
|
78
75
|
output_object.id = deserialized_property
|
79
76
|
|
@@ -83,6 +80,9 @@ 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
|
|
@@ -95,8 +95,6 @@ module Azure::ARM::Network
|
|
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
|
|
@@ -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,6 +44,9 @@ 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
|
|
@@ -71,9 +71,6 @@ module Azure::ARM::Network
|
|
71
71
|
return if object.nil?
|
72
72
|
output_object = VirtualNetworkGateway.new
|
73
73
|
|
74
|
-
deserialized_property = object['location']
|
75
|
-
output_object.location = deserialized_property
|
76
|
-
|
77
74
|
deserialized_property = object['id']
|
78
75
|
output_object.id = deserialized_property
|
79
76
|
|
@@ -83,6 +80,9 @@ 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
|
|
@@ -95,8 +95,6 @@ module Azure::ARM::Network
|
|
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
|
|
@@ -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,6 +44,9 @@ 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
|
|
@@ -71,9 +71,6 @@ module Azure::ARM::Network
|
|
71
71
|
return if object.nil?
|
72
72
|
output_object = VirtualNetworkGatewayConnection.new
|
73
73
|
|
74
|
-
deserialized_property = object['location']
|
75
|
-
output_object.location = deserialized_property
|
76
|
-
|
77
74
|
deserialized_property = object['id']
|
78
75
|
output_object.id = deserialized_property
|
79
76
|
|
@@ -83,6 +80,9 @@ 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
|
|
@@ -95,8 +95,6 @@ module Azure::ARM::Network
|
|
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
|