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.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_network.gemspec +4 -9
  3. data/lib/azure_mgmt_network.rb +100 -39
  4. data/lib/azure_mgmt_network/application_gateways.rb +175 -401
  5. data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +429 -0
  6. data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +427 -0
  7. data/lib/azure_mgmt_network/express_route_circuits.rb +911 -0
  8. data/lib/azure_mgmt_network/express_route_service_providers.rb +149 -0
  9. data/lib/azure_mgmt_network/load_balancers.rb +139 -314
  10. data/lib/azure_mgmt_network/local_network_gateways.rb +102 -228
  11. data/lib/azure_mgmt_network/models/address_space.rb +1 -3
  12. data/lib/azure_mgmt_network/models/application_gateway.rb +7 -9
  13. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -3
  14. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -3
  15. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +16 -18
  16. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -3
  17. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +32 -8
  18. data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  19. data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration.rb → application_gateway_frontend_ipconfiguration.rb} +7 -9
  20. data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration_properties_format.rb → application_gateway_frontend_ipconfiguration_properties_format.rb} +12 -15
  21. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -3
  22. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -3
  23. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -3
  24. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +34 -17
  25. data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration.rb → application_gateway_ipconfiguration.rb} +7 -9
  26. data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration_properties_format.rb → application_gateway_ipconfiguration_properties_format.rb} +6 -8
  27. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +4 -6
  28. data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  29. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +88 -0
  30. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +101 -0
  31. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +88 -0
  32. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +118 -0
  33. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +151 -81
  34. data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  35. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -3
  36. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +26 -11
  37. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +2 -1
  38. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +6 -8
  39. data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  40. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -3
  41. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -3
  42. data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  43. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +88 -0
  44. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +122 -0
  45. data/lib/azure_mgmt_network/models/authorization_list_result.rb +87 -0
  46. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +79 -0
  47. data/lib/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  48. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +5 -7
  49. data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -3
  50. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +30 -15
  51. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +10 -16
  52. data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -3
  53. data/lib/azure_mgmt_network/models/{connection_reset_shared_key_properties_format.rb → connection_shared_key_result.rb} +11 -15
  54. data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -3
  55. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -3
  56. data/lib/azure_mgmt_network/models/error.rb +4 -6
  57. data/lib/azure_mgmt_network/models/error_details.rb +1 -3
  58. data/lib/azure_mgmt_network/models/express_route_circuit.rb +118 -0
  59. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +65 -0
  60. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +88 -0
  61. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +86 -0
  62. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +88 -0
  63. data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  64. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +92 -0
  65. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +87 -0
  66. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +194 -0
  67. data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  68. data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
  69. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +179 -0
  70. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +89 -0
  71. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +76 -0
  72. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +83 -0
  73. data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  74. data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
  75. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +67 -0
  76. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +85 -0
  77. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +88 -0
  78. data/lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb +85 -0
  79. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +92 -0
  80. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +67 -0
  81. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +86 -0
  82. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +97 -0
  83. data/lib/azure_mgmt_network/models/{frontend_ip_configuration.rb → frontend_ipconfiguration.rb} +7 -9
  84. data/lib/azure_mgmt_network/models/{frontend_ip_configuration_properties_format.rb → frontend_ipconfiguration_properties_format.rb} +133 -77
  85. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +88 -0
  86. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +134 -0
  87. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -3
  88. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +11 -12
  89. data/lib/azure_mgmt_network/models/{ip_allocation_method.rb → ipallocation_method.rb} +3 -3
  90. data/lib/azure_mgmt_network/models/ipconfiguration.rb +88 -0
  91. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +113 -0
  92. data/lib/azure_mgmt_network/models/load_balancer.rb +7 -9
  93. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +4 -6
  94. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +103 -35
  95. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -3
  96. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +30 -30
  97. data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
  98. data/lib/azure_mgmt_network/models/local_network_gateway.rb +7 -9
  99. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +4 -6
  100. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +11 -3
  101. data/lib/azure_mgmt_network/models/network_interface.rb +7 -9
  102. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +1 -3
  103. data/lib/azure_mgmt_network/models/{network_interface_ip_configuration.rb → network_interface_ipconfiguration.rb} +7 -9
  104. data/lib/azure_mgmt_network/models/{network_interface_ip_configuration_properties_format.rb → network_interface_ipconfiguration_properties_format.rb} +70 -76
  105. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +4 -6
  106. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +32 -14
  107. data/lib/azure_mgmt_network/models/{operation_status.rb → network_operation_status.rb} +3 -3
  108. data/lib/azure_mgmt_network/models/network_security_group.rb +7 -9
  109. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +4 -6
  110. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +30 -22
  111. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +88 -0
  112. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +117 -0
  113. data/lib/azure_mgmt_network/models/probe.rb +1 -3
  114. data/lib/azure_mgmt_network/models/probe_properties_format.rb +25 -26
  115. data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
  116. data/lib/azure_mgmt_network/models/processor_architecture.rb +16 -0
  117. data/lib/azure_mgmt_network/models/{public_ip_address.rb → public_ipaddress.rb} +13 -15
  118. data/lib/azure_mgmt_network/models/{public_ip_address_dns_settings.rb → public_ipaddress_dns_settings.rb} +4 -6
  119. data/lib/azure_mgmt_network/models/{public_ip_address_list_result.rb → public_ipaddress_list_result.rb} +10 -12
  120. data/lib/azure_mgmt_network/models/{public_ip_address_properties_format.rb → public_ipaddress_properties_format.rb} +25 -19
  121. data/lib/azure_mgmt_network/models/route.rb +88 -0
  122. data/lib/azure_mgmt_network/models/route_list_result.rb +85 -0
  123. data/lib/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  124. data/lib/azure_mgmt_network/models/route_properties_format.rb +94 -0
  125. data/lib/azure_mgmt_network/models/route_table.rb +102 -0
  126. data/lib/azure_mgmt_network/models/route_table_list_result.rb +86 -0
  127. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +116 -0
  128. data/lib/azure_mgmt_network/models/security_rule.rb +1 -3
  129. data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
  130. data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  131. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +4 -6
  132. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +50 -48
  133. data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  134. data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  135. data/lib/azure_mgmt_network/models/subnet.rb +1 -3
  136. data/lib/azure_mgmt_network/models/subnet_list_result.rb +4 -6
  137. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +28 -13
  138. data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
  139. data/lib/azure_mgmt_network/models/usage.rb +7 -5
  140. data/lib/azure_mgmt_network/models/usage_name.rb +1 -3
  141. data/lib/azure_mgmt_network/models/usage_unit.rb +1 -1
  142. data/lib/azure_mgmt_network/models/usages_list_result.rb +4 -6
  143. data/lib/azure_mgmt_network/models/virtual_network.rb +7 -9
  144. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +7 -9
  145. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +7 -9
  146. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +4 -6
  147. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +74 -6
  148. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  149. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  150. data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration.rb → virtual_network_gateway_ipconfiguration.rb} +7 -9
  151. data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration_properties_format.rb → virtual_network_gateway_ipconfiguration_properties_format.rb} +14 -17
  152. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +4 -6
  153. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +76 -13
  154. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +86 -0
  155. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +17 -0
  156. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +17 -0
  157. data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +2 -1
  158. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +4 -6
  159. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +14 -6
  160. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +125 -0
  161. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +60 -0
  162. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +88 -0
  163. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +69 -0
  164. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +88 -0
  165. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +66 -0
  166. data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
  167. data/lib/azure_mgmt_network/module_definition.rb +5 -3
  168. data/lib/azure_mgmt_network/network_interfaces.rb +451 -304
  169. data/lib/azure_mgmt_network/{network_resource_provider_client.rb → network_management_client.rb} +61 -57
  170. data/lib/azure_mgmt_network/network_security_groups.rb +139 -314
  171. data/lib/azure_mgmt_network/public_ipaddresses.rb +536 -0
  172. data/lib/azure_mgmt_network/route_tables.rb +532 -0
  173. data/lib/azure_mgmt_network/routes.rb +423 -0
  174. data/lib/azure_mgmt_network/security_rules.rb +102 -232
  175. data/lib/azure_mgmt_network/subnets.rb +104 -233
  176. data/lib/azure_mgmt_network/usages.rb +79 -43
  177. data/lib/azure_mgmt_network/version.rb +5 -3
  178. data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +262 -467
  179. data/lib/azure_mgmt_network/virtual_network_gateways.rb +204 -280
  180. data/lib/azure_mgmt_network/virtual_networks.rb +139 -314
  181. metadata +92 -106
  182. data/.gitignore +0 -10
  183. data/.travis.yml +0 -3
  184. data/Gemfile +0 -15
  185. 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.11.0.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
 
@@ -66,22 +66,20 @@ module Azure::ARM::Network
66
66
 
67
67
  deserialized_property = object['value']
68
68
  unless deserialized_property.nil?
69
- deserializedArray = [];
69
+ deserialized_array = []
70
70
  deserialized_property.each do |element1|
71
71
  unless element1.nil?
72
72
  element1 = VirtualNetworkGatewayConnection.deserialize_object(element1)
73
73
  end
74
- deserializedArray.push(element1);
74
+ deserialized_array.push(element1)
75
75
  end
76
- deserialized_property = deserializedArray;
76
+ deserialized_property = deserialized_array
77
77
  end
78
78
  output_object.value = deserialized_property
79
79
 
80
80
  deserialized_property = object['nextLink']
81
81
  output_object.next_link = deserialized_property
82
82
 
83
- output_object.validate
84
-
85
83
  output_object
86
84
  end
87
85
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.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
 
@@ -12,6 +12,9 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ # @return [String] The authorizationKey.
16
+ attr_accessor :authorization_key
17
+
15
18
  # @return [VirtualNetworkGateway]
16
19
  attr_accessor :virtual_network_gateway1
17
20
 
@@ -22,8 +25,8 @@ module Azure::ARM::Network
22
25
  attr_accessor :local_network_gateway2
23
26
 
24
27
  # @return [VirtualNetworkGatewayConnectionType] Gateway connection type
25
- # -Ipsec/Dedicated/VpnClient/Vnet2Vnet. Possible values for this
26
- # property include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'.
28
+ # -Ipsec/Dedicated/VpnClient/Vnet2Vnet. Possible values include:
29
+ # 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'
27
30
  attr_accessor :connection_type
28
31
 
29
32
  # @return [Integer] The Routing weight.
@@ -32,6 +35,24 @@ module Azure::ARM::Network
32
35
  # @return [String] The Ipsec share key.
33
36
  attr_accessor :shared_key
34
37
 
38
+ # @return [VirtualNetworkGatewayConnectionStatus] Virtual network
39
+ # Gateway connection status. Possible values include: 'Unknown',
40
+ # 'Connecting', 'Connected', 'NotConnected'
41
+ attr_accessor :connection_status
42
+
43
+ # @return [Integer] The Egress Bytes Transferred in this connection
44
+ attr_accessor :egress_bytes_transferred
45
+
46
+ # @return [Integer] The Ingress Bytes Transferred in this connection
47
+ attr_accessor :ingress_bytes_transferred
48
+
49
+ # @return [SubResource] The reference to peerings resource.
50
+ attr_accessor :peer
51
+
52
+ # @return [String] Gets or sets resource guid property of the
53
+ # VirtualNetworkGatewayConnection resource
54
+ attr_accessor :resource_guid
55
+
35
56
  # @return [String] Gets or sets Provisioning state of the
36
57
  # VirtualNetworkGatewayConnection resource Updating/Deleting/Failed
37
58
  attr_accessor :provisioning_state
@@ -43,6 +64,7 @@ module Azure::ARM::Network
43
64
  @virtual_network_gateway1.validate unless @virtual_network_gateway1.nil?
44
65
  @virtual_network_gateway2.validate unless @virtual_network_gateway2.nil?
45
66
  @local_network_gateway2.validate unless @local_network_gateway2.nil?
67
+ @peer.validate unless @peer.nil?
46
68
  end
47
69
 
48
70
  #
@@ -54,6 +76,9 @@ module Azure::ARM::Network
54
76
  object.validate
55
77
  output_object = {}
56
78
 
79
+ serialized_property = object.authorization_key
80
+ output_object['authorizationKey'] = serialized_property unless serialized_property.nil?
81
+
57
82
  serialized_property = object.virtual_network_gateway1
58
83
  unless serialized_property.nil?
59
84
  serialized_property = VirtualNetworkGateway.serialize_object(serialized_property)
@@ -81,6 +106,24 @@ module Azure::ARM::Network
81
106
  serialized_property = object.shared_key
82
107
  output_object['sharedKey'] = serialized_property unless serialized_property.nil?
83
108
 
109
+ serialized_property = object.connection_status
110
+ output_object['connectionStatus'] = serialized_property unless serialized_property.nil?
111
+
112
+ serialized_property = object.egress_bytes_transferred
113
+ output_object['egressBytesTransferred'] = serialized_property unless serialized_property.nil?
114
+
115
+ serialized_property = object.ingress_bytes_transferred
116
+ output_object['ingressBytesTransferred'] = serialized_property unless serialized_property.nil?
117
+
118
+ serialized_property = object.peer
119
+ unless serialized_property.nil?
120
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
121
+ end
122
+ output_object['peer'] = serialized_property unless serialized_property.nil?
123
+
124
+ serialized_property = object.resource_guid
125
+ output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
126
+
84
127
  serialized_property = object.provisioning_state
85
128
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
86
129
 
@@ -97,6 +140,9 @@ module Azure::ARM::Network
97
140
  return if object.nil?
98
141
  output_object = VirtualNetworkGatewayConnectionPropertiesFormat.new
99
142
 
143
+ deserialized_property = object['authorizationKey']
144
+ output_object.authorization_key = deserialized_property
145
+
100
146
  deserialized_property = object['virtualNetworkGateway1']
101
147
  unless deserialized_property.nil?
102
148
  deserialized_property = VirtualNetworkGateway.deserialize_object(deserialized_property)
@@ -118,7 +164,7 @@ module Azure::ARM::Network
118
164
  deserialized_property = object['connectionType']
119
165
  if (!deserialized_property.nil? && !deserialized_property.empty?)
120
166
  enum_is_valid = VirtualNetworkGatewayConnectionType.constants.any? { |e| VirtualNetworkGatewayConnectionType.const_get(e).to_s.downcase == deserialized_property.downcase }
121
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
167
+ warn 'Enum VirtualNetworkGatewayConnectionType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
122
168
  end
123
169
  output_object.connection_type = deserialized_property
124
170
 
@@ -129,11 +175,33 @@ module Azure::ARM::Network
129
175
  deserialized_property = object['sharedKey']
130
176
  output_object.shared_key = deserialized_property
131
177
 
178
+ deserialized_property = object['connectionStatus']
179
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
180
+ enum_is_valid = VirtualNetworkGatewayConnectionStatus.constants.any? { |e| VirtualNetworkGatewayConnectionStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
181
+ warn 'Enum VirtualNetworkGatewayConnectionStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
182
+ end
183
+ output_object.connection_status = deserialized_property
184
+
185
+ deserialized_property = object['egressBytesTransferred']
186
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
187
+ output_object.egress_bytes_transferred = deserialized_property
188
+
189
+ deserialized_property = object['ingressBytesTransferred']
190
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
191
+ output_object.ingress_bytes_transferred = deserialized_property
192
+
193
+ deserialized_property = object['peer']
194
+ unless deserialized_property.nil?
195
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
196
+ end
197
+ output_object.peer = deserialized_property
198
+
199
+ deserialized_property = object['resourceGuid']
200
+ output_object.resource_guid = deserialized_property
201
+
132
202
  deserialized_property = object['provisioningState']
133
203
  output_object.provisioning_state = deserialized_property
134
204
 
135
- output_object.validate
136
-
137
205
  output_object
138
206
  end
139
207
  end
@@ -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 VirtualNetworkGatewayConnectionStatus
10
+ #
11
+ module VirtualNetworkGatewayConnectionStatus
12
+ Unknown = "Unknown"
13
+ Connecting = "Connecting"
14
+ Connected = "Connected"
15
+ NotConnected = "NotConnected"
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.11.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,11 +8,11 @@ module Azure::ARM::Network
8
8
  #
9
9
  # IpConfiguration for Virtual network gateway
10
10
  #
11
- class VirtualNetworkGatewayIpConfiguration < MsRestAzure::SubResource
11
+ class VirtualNetworkGatewayIPConfiguration < MsRestAzure::SubResource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [VirtualNetworkGatewayIpConfigurationPropertiesFormat]
15
+ # @return [VirtualNetworkGatewayIPConfigurationPropertiesFormat]
16
16
  attr_accessor :properties
17
17
 
18
18
  # @return [String] Gets name of the resource that is unique within a
@@ -44,7 +44,7 @@ module Azure::ARM::Network
44
44
 
45
45
  serialized_property = object.properties
46
46
  unless serialized_property.nil?
47
- serialized_property = VirtualNetworkGatewayIpConfigurationPropertiesFormat.serialize_object(serialized_property)
47
+ serialized_property = VirtualNetworkGatewayIPConfigurationPropertiesFormat.serialize_object(serialized_property)
48
48
  end
49
49
  output_object['properties'] = serialized_property unless serialized_property.nil?
50
50
 
@@ -60,18 +60,18 @@ module Azure::ARM::Network
60
60
  #
61
61
  # Deserializes given Ruby Hash into Model object.
62
62
  # @param object [Hash] Ruby Hash object to deserialize.
63
- # @return [VirtualNetworkGatewayIpConfiguration] Deserialized object.
63
+ # @return [VirtualNetworkGatewayIPConfiguration] Deserialized object.
64
64
  #
65
65
  def self.deserialize_object(object)
66
66
  return if object.nil?
67
- output_object = VirtualNetworkGatewayIpConfiguration.new
67
+ output_object = VirtualNetworkGatewayIPConfiguration.new
68
68
 
69
69
  deserialized_property = object['id']
70
70
  output_object.id = deserialized_property
71
71
 
72
72
  deserialized_property = object['properties']
73
73
  unless deserialized_property.nil?
74
- deserialized_property = VirtualNetworkGatewayIpConfigurationPropertiesFormat.deserialize_object(deserialized_property)
74
+ deserialized_property = VirtualNetworkGatewayIPConfigurationPropertiesFormat.deserialize_object(deserialized_property)
75
75
  end
76
76
  output_object.properties = deserialized_property
77
77
 
@@ -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.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,17 +8,16 @@ module Azure::ARM::Network
8
8
  #
9
9
  # Properties of VirtualNetworkGatewayIPConfiguration
10
10
  #
11
- class VirtualNetworkGatewayIpConfigurationPropertiesFormat
11
+ class VirtualNetworkGatewayIPConfigurationPropertiesFormat
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the privateIPAddress of the Network
16
- # Interface IP Configuration
15
+ # @return [String] Gets or sets the privateIPAddress of the IP
16
+ # Configuration
17
17
  attr_accessor :private_ipaddress
18
18
 
19
- # @return [IpAllocationMethod] Gets or sets PrivateIP allocation method
20
- # (Static/Dynamic). Possible values for this property include:
21
- # 'Static', 'Dynamic'.
19
+ # @return [IPAllocationMethod] Gets or sets PrivateIP allocation method
20
+ # (Static/Dynamic). Possible values include: 'Static', 'Dynamic'
22
21
  attr_accessor :private_ipallocation_method
23
22
 
24
23
  # @return [SubResource] Gets or sets the reference of the subnet resource
@@ -57,13 +56,13 @@ module Azure::ARM::Network
57
56
 
58
57
  serialized_property = object.subnet
59
58
  unless serialized_property.nil?
60
- serialized_property = SubResource.serialize_object(serialized_property)
59
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
61
60
  end
62
61
  output_object['subnet'] = serialized_property unless serialized_property.nil?
63
62
 
64
63
  serialized_property = object.public_ipaddress
65
64
  unless serialized_property.nil?
66
- serialized_property = SubResource.serialize_object(serialized_property)
65
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
67
66
  end
68
67
  output_object['publicIPAddress'] = serialized_property unless serialized_property.nil?
69
68
 
@@ -76,40 +75,38 @@ module Azure::ARM::Network
76
75
  #
77
76
  # Deserializes given Ruby Hash into Model object.
78
77
  # @param object [Hash] Ruby Hash object to deserialize.
79
- # @return [VirtualNetworkGatewayIpConfigurationPropertiesFormat]
78
+ # @return [VirtualNetworkGatewayIPConfigurationPropertiesFormat]
80
79
  # Deserialized object.
81
80
  #
82
81
  def self.deserialize_object(object)
83
82
  return if object.nil?
84
- output_object = VirtualNetworkGatewayIpConfigurationPropertiesFormat.new
83
+ output_object = VirtualNetworkGatewayIPConfigurationPropertiesFormat.new
85
84
 
86
85
  deserialized_property = object['privateIPAddress']
87
86
  output_object.private_ipaddress = deserialized_property
88
87
 
89
88
  deserialized_property = object['privateIPAllocationMethod']
90
89
  if (!deserialized_property.nil? && !deserialized_property.empty?)
91
- enum_is_valid = IpAllocationMethod.constants.any? { |e| IpAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase }
92
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
90
+ enum_is_valid = IPAllocationMethod.constants.any? { |e| IPAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase }
91
+ warn 'Enum IPAllocationMethod does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
93
92
  end
94
93
  output_object.private_ipallocation_method = deserialized_property
95
94
 
96
95
  deserialized_property = object['subnet']
97
96
  unless deserialized_property.nil?
98
- deserialized_property = SubResource.deserialize_object(deserialized_property)
97
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
99
98
  end
100
99
  output_object.subnet = deserialized_property
101
100
 
102
101
  deserialized_property = object['publicIPAddress']
103
102
  unless deserialized_property.nil?
104
- deserialized_property = SubResource.deserialize_object(deserialized_property)
103
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
105
104
  end
106
105
  output_object.public_ipaddress = deserialized_property
107
106
 
108
107
  deserialized_property = object['provisioningState']
109
108
  output_object.provisioning_state = deserialized_property
110
109
 
111
- output_object.validate
112
-
113
110
  output_object
114
111
  end
115
112
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.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
- deserializedArray = [];
68
+ deserialized_array = []
69
69
  deserialized_property.each do |element1|
70
70
  unless element1.nil?
71
71
  element1 = VirtualNetworkGateway.deserialize_object(element1)
72
72
  end
73
- deserializedArray.push(element1);
73
+ deserialized_array.push(element1)
74
74
  end
75
- deserialized_property = deserializedArray;
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.11.0.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
 
@@ -12,21 +12,41 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<VirtualNetworkGatewayIpConfiguration>] IpConfigurations
15
+ # @return [Array<VirtualNetworkGatewayIPConfiguration>] IpConfigurations
16
16
  # for Virtual network gateway.
17
17
  attr_accessor :ip_configurations
18
18
 
19
19
  # @return [VirtualNetworkGatewayType] The type of this virtual network
20
- # gateway. Possible values for this property include: 'Vpn'.
20
+ # gateway. Possible values include: 'Vpn', 'ExpressRoute'
21
21
  attr_accessor :gateway_type
22
22
 
23
23
  # @return [VpnType] The type of this virtual network gateway. Possible
24
- # values for this property include: 'PolicyBased', 'RouteBased'.
24
+ # values include: 'PolicyBased', 'RouteBased'
25
25
  attr_accessor :vpn_type
26
26
 
27
27
  # @return [Boolean] EnableBgp Flag
28
28
  attr_accessor :enable_bgp
29
29
 
30
+ # @return [SubResource] Gets or sets the reference of the
31
+ # LocalNetworkGateway resource which represents Local network site
32
+ # having default routes. Assign Null value in case of removing existing
33
+ # default site setting.
34
+ attr_accessor :gateway_default_site
35
+
36
+ # @return [VirtualNetworkGatewaySku] Gets or sets the reference of the
37
+ # VirtualNetworkGatewaySku resource which represents the sku selected
38
+ # for Virtual network gateway.
39
+ attr_accessor :sku
40
+
41
+ # @return [VpnClientConfiguration] Gets or sets the reference of the
42
+ # VpnClientConfiguration resource which represents the P2S VpnClient
43
+ # configurations.
44
+ attr_accessor :vpn_client_configuration
45
+
46
+ # @return [String] Gets or sets resource guid property of the
47
+ # VirtualNetworkGateway resource
48
+ attr_accessor :resource_guid
49
+
30
50
  # @return [String] Gets or sets Provisioning state of the
31
51
  # VirtualNetworkGateway resource Updating/Deleting/Failed
32
52
  attr_accessor :provisioning_state
@@ -36,6 +56,9 @@ module Azure::ARM::Network
36
56
  #
37
57
  def validate
38
58
  @ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @ip_configurations.nil?
59
+ @gateway_default_site.validate unless @gateway_default_site.nil?
60
+ @sku.validate unless @sku.nil?
61
+ @vpn_client_configuration.validate unless @vpn_client_configuration.nil?
39
62
  end
40
63
 
41
64
  #
@@ -52,7 +75,7 @@ module Azure::ARM::Network
52
75
  serializedArray = []
53
76
  serialized_property.each do |element|
54
77
  unless element.nil?
55
- element = VirtualNetworkGatewayIpConfiguration.serialize_object(element)
78
+ element = VirtualNetworkGatewayIPConfiguration.serialize_object(element)
56
79
  end
57
80
  serializedArray.push(element)
58
81
  end
@@ -69,6 +92,27 @@ module Azure::ARM::Network
69
92
  serialized_property = object.enable_bgp
70
93
  output_object['enableBgp'] = serialized_property unless serialized_property.nil?
71
94
 
95
+ serialized_property = object.gateway_default_site
96
+ unless serialized_property.nil?
97
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
98
+ end
99
+ output_object['gatewayDefaultSite'] = serialized_property unless serialized_property.nil?
100
+
101
+ serialized_property = object.sku
102
+ unless serialized_property.nil?
103
+ serialized_property = VirtualNetworkGatewaySku.serialize_object(serialized_property)
104
+ end
105
+ output_object['sku'] = serialized_property unless serialized_property.nil?
106
+
107
+ serialized_property = object.vpn_client_configuration
108
+ unless serialized_property.nil?
109
+ serialized_property = VpnClientConfiguration.serialize_object(serialized_property)
110
+ end
111
+ output_object['vpnClientConfiguration'] = serialized_property unless serialized_property.nil?
112
+
113
+ serialized_property = object.resource_guid
114
+ output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
115
+
72
116
  serialized_property = object.provisioning_state
73
117
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
74
118
 
@@ -86,39 +130,58 @@ module Azure::ARM::Network
86
130
 
87
131
  deserialized_property = object['ipConfigurations']
88
132
  unless deserialized_property.nil?
89
- deserializedArray = [];
133
+ deserialized_array = []
90
134
  deserialized_property.each do |element1|
91
135
  unless element1.nil?
92
- element1 = VirtualNetworkGatewayIpConfiguration.deserialize_object(element1)
136
+ element1 = VirtualNetworkGatewayIPConfiguration.deserialize_object(element1)
93
137
  end
94
- deserializedArray.push(element1);
138
+ deserialized_array.push(element1)
95
139
  end
96
- deserialized_property = deserializedArray;
140
+ deserialized_property = deserialized_array
97
141
  end
98
142
  output_object.ip_configurations = deserialized_property
99
143
 
100
144
  deserialized_property = object['gatewayType']
101
145
  if (!deserialized_property.nil? && !deserialized_property.empty?)
102
146
  enum_is_valid = VirtualNetworkGatewayType.constants.any? { |e| VirtualNetworkGatewayType.const_get(e).to_s.downcase == deserialized_property.downcase }
103
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
147
+ warn 'Enum VirtualNetworkGatewayType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
104
148
  end
105
149
  output_object.gateway_type = deserialized_property
106
150
 
107
151
  deserialized_property = object['vpnType']
108
152
  if (!deserialized_property.nil? && !deserialized_property.empty?)
109
153
  enum_is_valid = VpnType.constants.any? { |e| VpnType.const_get(e).to_s.downcase == deserialized_property.downcase }
110
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
154
+ warn 'Enum VpnType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
111
155
  end
112
156
  output_object.vpn_type = deserialized_property
113
157
 
114
158
  deserialized_property = object['enableBgp']
115
159
  output_object.enable_bgp = deserialized_property
116
160
 
161
+ deserialized_property = object['gatewayDefaultSite']
162
+ unless deserialized_property.nil?
163
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
164
+ end
165
+ output_object.gateway_default_site = deserialized_property
166
+
167
+ deserialized_property = object['sku']
168
+ unless deserialized_property.nil?
169
+ deserialized_property = VirtualNetworkGatewaySku.deserialize_object(deserialized_property)
170
+ end
171
+ output_object.sku = deserialized_property
172
+
173
+ deserialized_property = object['vpnClientConfiguration']
174
+ unless deserialized_property.nil?
175
+ deserialized_property = VpnClientConfiguration.deserialize_object(deserialized_property)
176
+ end
177
+ output_object.vpn_client_configuration = deserialized_property
178
+
179
+ deserialized_property = object['resourceGuid']
180
+ output_object.resource_guid = deserialized_property
181
+
117
182
  deserialized_property = object['provisioningState']
118
183
  output_object.provisioning_state = deserialized_property
119
184
 
120
- output_object.validate
121
-
122
185
  output_object
123
186
  end
124
187
  end