azure_mgmt_network 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/azure_mgmt_network.gemspec +4 -9
- data/lib/azure_mgmt_network.rb +100 -39
- data/lib/azure_mgmt_network/application_gateways.rb +175 -401
- data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +429 -0
- data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +427 -0
- data/lib/azure_mgmt_network/express_route_circuits.rb +911 -0
- data/lib/azure_mgmt_network/express_route_service_providers.rb +149 -0
- data/lib/azure_mgmt_network/load_balancers.rb +139 -314
- data/lib/azure_mgmt_network/local_network_gateways.rb +102 -228
- data/lib/azure_mgmt_network/models/address_space.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway.rb +7 -9
- data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +16 -18
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +32 -8
- data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
- data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration.rb → application_gateway_frontend_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration_properties_format.rb → application_gateway_frontend_ipconfiguration_properties_format.rb} +12 -15
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +34 -17
- data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration.rb → application_gateway_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration_properties_format.rb → application_gateway_ipconfiguration_properties_format.rb} +6 -8
- data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +88 -0
- data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +101 -0
- data/lib/azure_mgmt_network/models/application_gateway_probe.rb +88 -0
- data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +118 -0
- data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +151 -81
- data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +26 -11
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +2 -1
- data/lib/azure_mgmt_network/models/application_gateway_sku.rb +6 -8
- data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -3
- data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +88 -0
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +122 -0
- data/lib/azure_mgmt_network/models/authorization_list_result.rb +87 -0
- data/lib/azure_mgmt_network/models/authorization_properties_format.rb +79 -0
- data/lib/azure_mgmt_network/models/authorization_use_status.rb +16 -0
- data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +5 -7
- data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -3
- data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +30 -15
- data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +10 -16
- data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -3
- data/lib/azure_mgmt_network/models/{connection_reset_shared_key_properties_format.rb → connection_shared_key_result.rb} +11 -15
- data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -3
- data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -3
- data/lib/azure_mgmt_network/models/error.rb +4 -6
- data/lib/azure_mgmt_network/models/error_details.rb +1 -3
- data/lib/azure_mgmt_network/models/express_route_circuit.rb +118 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +65 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +88 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +86 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +88 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +92 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +87 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +194 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +179 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +89 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +76 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +83 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +67 -0
- data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +85 -0
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +88 -0
- data/lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb +85 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider.rb +92 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +67 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +86 -0
- data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +97 -0
- data/lib/azure_mgmt_network/models/{frontend_ip_configuration.rb → frontend_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{frontend_ip_configuration_properties_format.rb → frontend_ipconfiguration_properties_format.rb} +133 -77
- data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +88 -0
- data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +134 -0
- data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +11 -12
- data/lib/azure_mgmt_network/models/{ip_allocation_method.rb → ipallocation_method.rb} +3 -3
- data/lib/azure_mgmt_network/models/ipconfiguration.rb +88 -0
- data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +113 -0
- data/lib/azure_mgmt_network/models/load_balancer.rb +7 -9
- data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +103 -35
- data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +30 -30
- data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway.rb +7 -9
- data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +11 -3
- data/lib/azure_mgmt_network/models/network_interface.rb +7 -9
- data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +1 -3
- data/lib/azure_mgmt_network/models/{network_interface_ip_configuration.rb → network_interface_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{network_interface_ip_configuration_properties_format.rb → network_interface_ipconfiguration_properties_format.rb} +70 -76
- data/lib/azure_mgmt_network/models/network_interface_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +32 -14
- data/lib/azure_mgmt_network/models/{operation_status.rb → network_operation_status.rb} +3 -3
- data/lib/azure_mgmt_network/models/network_security_group.rb +7 -9
- data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +30 -22
- data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +88 -0
- data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +117 -0
- data/lib/azure_mgmt_network/models/probe.rb +1 -3
- data/lib/azure_mgmt_network/models/probe_properties_format.rb +25 -26
- data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/processor_architecture.rb +16 -0
- data/lib/azure_mgmt_network/models/{public_ip_address.rb → public_ipaddress.rb} +13 -15
- data/lib/azure_mgmt_network/models/{public_ip_address_dns_settings.rb → public_ipaddress_dns_settings.rb} +4 -6
- data/lib/azure_mgmt_network/models/{public_ip_address_list_result.rb → public_ipaddress_list_result.rb} +10 -12
- data/lib/azure_mgmt_network/models/{public_ip_address_properties_format.rb → public_ipaddress_properties_format.rb} +25 -19
- data/lib/azure_mgmt_network/models/route.rb +88 -0
- data/lib/azure_mgmt_network/models/route_list_result.rb +85 -0
- data/lib/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
- data/lib/azure_mgmt_network/models/route_properties_format.rb +94 -0
- data/lib/azure_mgmt_network/models/route_table.rb +102 -0
- data/lib/azure_mgmt_network/models/route_table_list_result.rb +86 -0
- data/lib/azure_mgmt_network/models/route_table_properties_format.rb +116 -0
- data/lib/azure_mgmt_network/models/security_rule.rb +1 -3
- data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +50 -48
- data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
- data/lib/azure_mgmt_network/models/subnet.rb +1 -3
- data/lib/azure_mgmt_network/models/subnet_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/subnet_properties_format.rb +28 -13
- data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/usage.rb +7 -5
- data/lib/azure_mgmt_network/models/usage_name.rb +1 -3
- data/lib/azure_mgmt_network/models/usage_unit.rb +1 -1
- data/lib/azure_mgmt_network/models/usages_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network.rb +7 -9
- data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +7 -9
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +7 -9
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +74 -6
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
- data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration.rb → virtual_network_gateway_ipconfiguration.rb} +7 -9
- data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration_properties_format.rb → virtual_network_gateway_ipconfiguration_properties_format.rb} +14 -17
- data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +76 -13
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +86 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +17 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +17 -0
- data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +2 -1
- data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +4 -6
- data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +14 -6
- data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +125 -0
- data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +60 -0
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +88 -0
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +69 -0
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +88 -0
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +66 -0
- data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
- data/lib/azure_mgmt_network/module_definition.rb +5 -3
- data/lib/azure_mgmt_network/network_interfaces.rb +451 -304
- data/lib/azure_mgmt_network/{network_resource_provider_client.rb → network_management_client.rb} +61 -57
- data/lib/azure_mgmt_network/network_security_groups.rb +139 -314
- data/lib/azure_mgmt_network/public_ipaddresses.rb +536 -0
- data/lib/azure_mgmt_network/route_tables.rb +532 -0
- data/lib/azure_mgmt_network/routes.rb +423 -0
- data/lib/azure_mgmt_network/security_rules.rb +102 -232
- data/lib/azure_mgmt_network/subnets.rb +104 -233
- data/lib/azure_mgmt_network/usages.rb +79 -43
- data/lib/azure_mgmt_network/version.rb +5 -3
- data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +262 -467
- data/lib/azure_mgmt_network/virtual_network_gateways.rb +204 -280
- data/lib/azure_mgmt_network/virtual_networks.rb +139 -314
- metadata +92 -106
- data/.gitignore +0 -10
- data/.travis.yml +0 -3
- data/Gemfile +0 -15
- data/lib/azure_mgmt_network/public_ip_addresses.rb +0 -711
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -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 = NetworkInterface.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,11 +15,11 @@ module Azure::ARM::Network
|
|
15
15
|
# @return [SubResource] Gets or sets the reference of a VirtualMachine
|
16
16
|
attr_accessor :virtual_machine
|
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 [Array<
|
22
|
+
# @return [Array<NetworkInterfaceIPConfiguration>] Gets or sets list of
|
23
23
|
# IPConfigurations of the NetworkInterface
|
24
24
|
attr_accessor :ip_configurations
|
25
25
|
|
@@ -34,6 +34,14 @@ module Azure::ARM::Network
|
|
34
34
|
# machine
|
35
35
|
attr_accessor :primary
|
36
36
|
|
37
|
+
# @return [Boolean] Gets or sets whether IPForwarding is enabled on the
|
38
|
+
# NIC
|
39
|
+
attr_accessor :enable_ipforwarding
|
40
|
+
|
41
|
+
# @return [String] Gets or sets resource guid property of the network
|
42
|
+
# interface resource
|
43
|
+
attr_accessor :resource_guid
|
44
|
+
|
37
45
|
# @return [String] Gets or sets Provisioning state of the PublicIP
|
38
46
|
# resource Updating/Deleting/Failed
|
39
47
|
attr_accessor :provisioning_state
|
@@ -59,13 +67,13 @@ module Azure::ARM::Network
|
|
59
67
|
|
60
68
|
serialized_property = object.virtual_machine
|
61
69
|
unless serialized_property.nil?
|
62
|
-
serialized_property = SubResource.serialize_object(serialized_property)
|
70
|
+
serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
|
63
71
|
end
|
64
72
|
output_object['virtualMachine'] = serialized_property unless serialized_property.nil?
|
65
73
|
|
66
74
|
serialized_property = object.network_security_group
|
67
75
|
unless serialized_property.nil?
|
68
|
-
serialized_property =
|
76
|
+
serialized_property = NetworkSecurityGroup.serialize_object(serialized_property)
|
69
77
|
end
|
70
78
|
output_object['networkSecurityGroup'] = serialized_property unless serialized_property.nil?
|
71
79
|
|
@@ -74,7 +82,7 @@ module Azure::ARM::Network
|
|
74
82
|
serializedArray = []
|
75
83
|
serialized_property.each do |element|
|
76
84
|
unless element.nil?
|
77
|
-
element =
|
85
|
+
element = NetworkInterfaceIPConfiguration.serialize_object(element)
|
78
86
|
end
|
79
87
|
serializedArray.push(element)
|
80
88
|
end
|
@@ -94,6 +102,12 @@ module Azure::ARM::Network
|
|
94
102
|
serialized_property = object.primary
|
95
103
|
output_object['primary'] = serialized_property unless serialized_property.nil?
|
96
104
|
|
105
|
+
serialized_property = object.enable_ipforwarding
|
106
|
+
output_object['enableIPForwarding'] = serialized_property unless serialized_property.nil?
|
107
|
+
|
108
|
+
serialized_property = object.resource_guid
|
109
|
+
output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
|
110
|
+
|
97
111
|
serialized_property = object.provisioning_state
|
98
112
|
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
99
113
|
|
@@ -111,26 +125,26 @@ module Azure::ARM::Network
|
|
111
125
|
|
112
126
|
deserialized_property = object['virtualMachine']
|
113
127
|
unless deserialized_property.nil?
|
114
|
-
deserialized_property = SubResource.deserialize_object(deserialized_property)
|
128
|
+
deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
|
115
129
|
end
|
116
130
|
output_object.virtual_machine = deserialized_property
|
117
131
|
|
118
132
|
deserialized_property = object['networkSecurityGroup']
|
119
133
|
unless deserialized_property.nil?
|
120
|
-
deserialized_property =
|
134
|
+
deserialized_property = NetworkSecurityGroup.deserialize_object(deserialized_property)
|
121
135
|
end
|
122
136
|
output_object.network_security_group = deserialized_property
|
123
137
|
|
124
138
|
deserialized_property = object['ipConfigurations']
|
125
139
|
unless deserialized_property.nil?
|
126
|
-
|
140
|
+
deserialized_array = []
|
127
141
|
deserialized_property.each do |element1|
|
128
142
|
unless element1.nil?
|
129
|
-
element1 =
|
143
|
+
element1 = NetworkInterfaceIPConfiguration.deserialize_object(element1)
|
130
144
|
end
|
131
|
-
|
145
|
+
deserialized_array.push(element1)
|
132
146
|
end
|
133
|
-
deserialized_property =
|
147
|
+
deserialized_property = deserialized_array
|
134
148
|
end
|
135
149
|
output_object.ip_configurations = deserialized_property
|
136
150
|
|
@@ -146,11 +160,15 @@ module Azure::ARM::Network
|
|
146
160
|
deserialized_property = object['primary']
|
147
161
|
output_object.primary = deserialized_property
|
148
162
|
|
163
|
+
deserialized_property = object['enableIPForwarding']
|
164
|
+
output_object.enable_ipforwarding = deserialized_property
|
165
|
+
|
166
|
+
deserialized_property = object['resourceGuid']
|
167
|
+
output_object.resource_guid = deserialized_property
|
168
|
+
|
149
169
|
deserialized_property = object['provisioningState']
|
150
170
|
output_object.provisioning_state = deserialized_property
|
151
171
|
|
152
|
-
output_object.validate
|
153
|
-
|
154
172
|
output_object
|
155
173
|
end
|
156
174
|
end
|
@@ -1,14 +1,14 @@
|
|
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
|
|
6
6
|
module Azure::ARM::Network
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Defines values for
|
9
|
+
# Defines values for NetworkOperationStatus
|
10
10
|
#
|
11
|
-
module
|
11
|
+
module NetworkOperationStatus
|
12
12
|
InProgress = "InProgress"
|
13
13
|
Succeeded = "Succeeded"
|
14
14
|
Failed = "Failed"
|
@@ -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 = NetworkSecurityGroup.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
|
|
@@ -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 = NetworkSecurityGroup.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
|
|
@@ -20,13 +20,17 @@ module Azure::ARM::Network
|
|
20
20
|
# network security group
|
21
21
|
attr_accessor :default_security_rules
|
22
22
|
|
23
|
-
# @return [Array<
|
24
|
-
# Interfaces
|
23
|
+
# @return [Array<NetworkInterface>] Gets collection of references to
|
24
|
+
# Network Interfaces
|
25
25
|
attr_accessor :network_interfaces
|
26
26
|
|
27
|
-
# @return [Array<
|
27
|
+
# @return [Array<Subnet>] Gets collection of references to subnets
|
28
28
|
attr_accessor :subnets
|
29
29
|
|
30
|
+
# @return [String] Gets or sets resource guid property of the network
|
31
|
+
# security group resource
|
32
|
+
attr_accessor :resource_guid
|
33
|
+
|
30
34
|
# @return [String] Gets or sets Provisioning state of the PublicIP
|
31
35
|
# resource Updating/Deleting/Failed
|
32
36
|
attr_accessor :provisioning_state
|
@@ -81,7 +85,7 @@ module Azure::ARM::Network
|
|
81
85
|
serializedArray = []
|
82
86
|
serialized_property.each do |element2|
|
83
87
|
unless element2.nil?
|
84
|
-
element2 =
|
88
|
+
element2 = NetworkInterface.serialize_object(element2)
|
85
89
|
end
|
86
90
|
serializedArray.push(element2)
|
87
91
|
end
|
@@ -94,7 +98,7 @@ module Azure::ARM::Network
|
|
94
98
|
serializedArray = []
|
95
99
|
serialized_property.each do |element3|
|
96
100
|
unless element3.nil?
|
97
|
-
element3 =
|
101
|
+
element3 = Subnet.serialize_object(element3)
|
98
102
|
end
|
99
103
|
serializedArray.push(element3)
|
100
104
|
end
|
@@ -102,6 +106,9 @@ module Azure::ARM::Network
|
|
102
106
|
end
|
103
107
|
output_object['subnets'] = serialized_property unless serialized_property.nil?
|
104
108
|
|
109
|
+
serialized_property = object.resource_guid
|
110
|
+
output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
|
111
|
+
|
105
112
|
serialized_property = object.provisioning_state
|
106
113
|
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
107
114
|
|
@@ -119,61 +126,62 @@ module Azure::ARM::Network
|
|
119
126
|
|
120
127
|
deserialized_property = object['securityRules']
|
121
128
|
unless deserialized_property.nil?
|
122
|
-
|
129
|
+
deserialized_array = []
|
123
130
|
deserialized_property.each do |element4|
|
124
131
|
unless element4.nil?
|
125
132
|
element4 = SecurityRule.deserialize_object(element4)
|
126
133
|
end
|
127
|
-
|
134
|
+
deserialized_array.push(element4)
|
128
135
|
end
|
129
|
-
deserialized_property =
|
136
|
+
deserialized_property = deserialized_array
|
130
137
|
end
|
131
138
|
output_object.security_rules = deserialized_property
|
132
139
|
|
133
140
|
deserialized_property = object['defaultSecurityRules']
|
134
141
|
unless deserialized_property.nil?
|
135
|
-
|
142
|
+
deserialized_array = []
|
136
143
|
deserialized_property.each do |element5|
|
137
144
|
unless element5.nil?
|
138
145
|
element5 = SecurityRule.deserialize_object(element5)
|
139
146
|
end
|
140
|
-
|
147
|
+
deserialized_array.push(element5)
|
141
148
|
end
|
142
|
-
deserialized_property =
|
149
|
+
deserialized_property = deserialized_array
|
143
150
|
end
|
144
151
|
output_object.default_security_rules = deserialized_property
|
145
152
|
|
146
153
|
deserialized_property = object['networkInterfaces']
|
147
154
|
unless deserialized_property.nil?
|
148
|
-
|
155
|
+
deserialized_array = []
|
149
156
|
deserialized_property.each do |element6|
|
150
157
|
unless element6.nil?
|
151
|
-
element6 =
|
158
|
+
element6 = NetworkInterface.deserialize_object(element6)
|
152
159
|
end
|
153
|
-
|
160
|
+
deserialized_array.push(element6)
|
154
161
|
end
|
155
|
-
deserialized_property =
|
162
|
+
deserialized_property = deserialized_array
|
156
163
|
end
|
157
164
|
output_object.network_interfaces = deserialized_property
|
158
165
|
|
159
166
|
deserialized_property = object['subnets']
|
160
167
|
unless deserialized_property.nil?
|
161
|
-
|
168
|
+
deserialized_array = []
|
162
169
|
deserialized_property.each do |element7|
|
163
170
|
unless element7.nil?
|
164
|
-
element7 =
|
171
|
+
element7 = Subnet.deserialize_object(element7)
|
165
172
|
end
|
166
|
-
|
173
|
+
deserialized_array.push(element7)
|
167
174
|
end
|
168
|
-
deserialized_property =
|
175
|
+
deserialized_property = deserialized_array
|
169
176
|
end
|
170
177
|
output_object.subnets = deserialized_property
|
171
178
|
|
179
|
+
deserialized_property = object['resourceGuid']
|
180
|
+
output_object.resource_guid = deserialized_property
|
181
|
+
|
172
182
|
deserialized_property = object['provisioningState']
|
173
183
|
output_object.provisioning_state = deserialized_property
|
174
184
|
|
175
|
-
output_object.validate
|
176
|
-
|
177
185
|
output_object
|
178
186
|
end
|
179
187
|
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
|
+
# Outbound NAT pool of the loadbalancer
|
10
|
+
#
|
11
|
+
class OutboundNatRule < MsRestAzure::SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [OutboundNatRulePropertiesFormat]
|
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 = OutboundNatRulePropertiesFormat.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 [OutboundNatRule] Deserialized object.
|
64
|
+
#
|
65
|
+
def self.deserialize_object(object)
|
66
|
+
return if object.nil?
|
67
|
+
output_object = OutboundNatRule.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 = OutboundNatRulePropertiesFormat.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
|