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
 
@@ -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
 
@@ -26,12 +26,12 @@ module Azure::ARM::Network
26
26
 
27
27
  # @return [TransportProtocol] Gets or sets the transport protocol for
28
28
  # the external endpoint. Possible values are Udp or Tcp. Possible
29
- # values for this property include: 'Udp', 'Tcp'.
29
+ # values include: 'Udp', 'Tcp'
30
30
  attr_accessor :protocol
31
31
 
32
32
  # @return [LoadDistribution] Gets or sets the load distribution policy
33
- # for this rule. Possible values for this property include: 'Default',
34
- # 'SourceIP', 'SourceIPProtocol'.
33
+ # for this rule. Possible values include: 'Default', 'SourceIP',
34
+ # 'SourceIPProtocol'
35
35
  attr_accessor :load_distribution
36
36
 
37
37
  # @return [Integer] Gets or sets the port for the external endpoint. You
@@ -71,6 +71,8 @@ module Azure::ARM::Network
71
71
  # Validate the object. Throws ValidationError if validation fails.
72
72
  #
73
73
  def validate
74
+ fail MsRest::ValidationError, 'property protocol is nil' if @protocol.nil?
75
+ fail MsRest::ValidationError, 'property frontend_port is nil' if @frontend_port.nil?
74
76
  @frontend_ipconfiguration.validate unless @frontend_ipconfiguration.nil?
75
77
  @backend_address_pool.validate unless @backend_address_pool.nil?
76
78
  @probe.validate unless @probe.nil?
@@ -85,33 +87,33 @@ module Azure::ARM::Network
85
87
  object.validate
86
88
  output_object = {}
87
89
 
90
+ serialized_property = object.protocol
91
+ output_object['protocol'] = serialized_property unless serialized_property.nil?
92
+
93
+ serialized_property = object.frontend_port
94
+ output_object['frontendPort'] = serialized_property unless serialized_property.nil?
95
+
88
96
  serialized_property = object.frontend_ipconfiguration
89
97
  unless serialized_property.nil?
90
- serialized_property = SubResource.serialize_object(serialized_property)
98
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
91
99
  end
92
100
  output_object['frontendIPConfiguration'] = serialized_property unless serialized_property.nil?
93
101
 
94
102
  serialized_property = object.backend_address_pool
95
103
  unless serialized_property.nil?
96
- serialized_property = SubResource.serialize_object(serialized_property)
104
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
97
105
  end
98
106
  output_object['backendAddressPool'] = serialized_property unless serialized_property.nil?
99
107
 
100
108
  serialized_property = object.probe
101
109
  unless serialized_property.nil?
102
- serialized_property = SubResource.serialize_object(serialized_property)
110
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
103
111
  end
104
112
  output_object['probe'] = serialized_property unless serialized_property.nil?
105
113
 
106
- serialized_property = object.protocol
107
- output_object['protocol'] = serialized_property unless serialized_property.nil?
108
-
109
114
  serialized_property = object.load_distribution
110
115
  output_object['loadDistribution'] = serialized_property unless serialized_property.nil?
111
116
 
112
- serialized_property = object.frontend_port
113
- output_object['frontendPort'] = serialized_property unless serialized_property.nil?
114
-
115
117
  serialized_property = object.backend_port
116
118
  output_object['backendPort'] = serialized_property unless serialized_property.nil?
117
119
 
@@ -136,42 +138,42 @@ module Azure::ARM::Network
136
138
  return if object.nil?
137
139
  output_object = LoadBalancingRulePropertiesFormat.new
138
140
 
141
+ deserialized_property = object['protocol']
142
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
143
+ enum_is_valid = TransportProtocol.constants.any? { |e| TransportProtocol.const_get(e).to_s.downcase == deserialized_property.downcase }
144
+ warn 'Enum TransportProtocol does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
145
+ end
146
+ output_object.protocol = deserialized_property
147
+
148
+ deserialized_property = object['frontendPort']
149
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
150
+ output_object.frontend_port = deserialized_property
151
+
139
152
  deserialized_property = object['frontendIPConfiguration']
140
153
  unless deserialized_property.nil?
141
- deserialized_property = SubResource.deserialize_object(deserialized_property)
154
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
142
155
  end
143
156
  output_object.frontend_ipconfiguration = deserialized_property
144
157
 
145
158
  deserialized_property = object['backendAddressPool']
146
159
  unless deserialized_property.nil?
147
- deserialized_property = SubResource.deserialize_object(deserialized_property)
160
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
148
161
  end
149
162
  output_object.backend_address_pool = deserialized_property
150
163
 
151
164
  deserialized_property = object['probe']
152
165
  unless deserialized_property.nil?
153
- deserialized_property = SubResource.deserialize_object(deserialized_property)
166
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
154
167
  end
155
168
  output_object.probe = deserialized_property
156
169
 
157
- deserialized_property = object['protocol']
158
- if (!deserialized_property.nil? && !deserialized_property.empty?)
159
- enum_is_valid = TransportProtocol.constants.any? { |e| TransportProtocol.const_get(e).to_s.downcase == deserialized_property.downcase }
160
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
161
- end
162
- output_object.protocol = deserialized_property
163
-
164
170
  deserialized_property = object['loadDistribution']
165
171
  if (!deserialized_property.nil? && !deserialized_property.empty?)
166
172
  enum_is_valid = LoadDistribution.constants.any? { |e| LoadDistribution.const_get(e).to_s.downcase == deserialized_property.downcase }
167
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
173
+ warn 'Enum LoadDistribution does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
168
174
  end
169
175
  output_object.load_distribution = deserialized_property
170
176
 
171
- deserialized_property = object['frontendPort']
172
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
173
- output_object.frontend_port = deserialized_property
174
-
175
177
  deserialized_property = object['backendPort']
176
178
  deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
177
179
  output_object.backend_port = deserialized_property
@@ -186,8 +188,6 @@ module Azure::ARM::Network
186
188
  deserialized_property = object['provisioningState']
187
189
  output_object.provisioning_state = deserialized_property
188
190
 
189
- output_object.validate
190
-
191
191
  output_object
192
192
  end
193
193
  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
 
@@ -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 = LocalNetworkGateway.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.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 = LocalNetworkGateway.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
 
@@ -18,6 +18,10 @@ module Azure::ARM::Network
18
18
  # @return [String] IP address of local network gateway.
19
19
  attr_accessor :gateway_ip_address
20
20
 
21
+ # @return [String] Gets or sets resource guid property of the
22
+ # LocalNetworkGateway resource
23
+ attr_accessor :resource_guid
24
+
21
25
  # @return [String] Gets or sets Provisioning state of the
22
26
  # LocalNetworkGateway resource Updating/Deleting/Failed
23
27
  attr_accessor :provisioning_state
@@ -47,6 +51,9 @@ module Azure::ARM::Network
47
51
  serialized_property = object.gateway_ip_address
48
52
  output_object['gatewayIpAddress'] = serialized_property unless serialized_property.nil?
49
53
 
54
+ serialized_property = object.resource_guid
55
+ output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
56
+
50
57
  serialized_property = object.provisioning_state
51
58
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
52
59
 
@@ -71,11 +78,12 @@ module Azure::ARM::Network
71
78
  deserialized_property = object['gatewayIpAddress']
72
79
  output_object.gateway_ip_address = deserialized_property
73
80
 
81
+ deserialized_property = object['resourceGuid']
82
+ output_object.resource_guid = deserialized_property
83
+
74
84
  deserialized_property = object['provisioningState']
75
85
  output_object.provisioning_state = deserialized_property
76
86
 
77
- output_object.validate
78
-
79
87
  output_object
80
88
  end
81
89
  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
 
@@ -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 = NetworkInterface.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.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
 
@@ -80,8 +80,6 @@ module Azure::ARM::Network
80
80
  deserialized_property = object['internalFqdn']
81
81
  output_object.internal_fqdn = 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
 
@@ -8,11 +8,11 @@ module Azure::ARM::Network
8
8
  #
9
9
  # IPConfiguration in a NetworkInterface
10
10
  #
11
- class NetworkInterfaceIpConfiguration < MsRestAzure::SubResource
11
+ class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [NetworkInterfaceIpConfigurationPropertiesFormat]
15
+ # @return [NetworkInterfaceIPConfigurationPropertiesFormat]
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 = NetworkInterfaceIpConfigurationPropertiesFormat.serialize_object(serialized_property)
47
+ serialized_property = NetworkInterfaceIPConfigurationPropertiesFormat.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 [NetworkInterfaceIpConfiguration] Deserialized object.
63
+ # @return [NetworkInterfaceIPConfiguration] Deserialized object.
64
64
  #
65
65
  def self.deserialize_object(object)
66
66
  return if object.nil?
67
- output_object = NetworkInterfaceIpConfiguration.new
67
+ output_object = NetworkInterfaceIPConfiguration.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 = NetworkInterfaceIpConfigurationPropertiesFormat.deserialize_object(deserialized_property)
74
+ deserialized_property = NetworkInterfaceIPConfigurationPropertiesFormat.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,46 +8,42 @@ module Azure::ARM::Network
8
8
  #
9
9
  # Properties of IPConfiguration
10
10
  #
11
- class NetworkInterfaceIpConfigurationPropertiesFormat
11
+ class NetworkInterfaceIPConfigurationPropertiesFormat
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 [Array<BackendAddressPool>] Gets or sets the reference of
16
+ # LoadBalancerBackendAddressPool resource
17
+ attr_accessor :load_balancer_backend_address_pools
18
+
19
+ # @return [Array<InboundNatRule>] Gets or sets list of references of
20
+ # LoadBalancerInboundNatRules
21
+ attr_accessor :load_balancer_inbound_nat_rules
22
+
23
+ # @return [String]
17
24
  attr_accessor :private_ipaddress
18
25
 
19
- # @return [IpAllocationMethod] Gets or sets PrivateIP allocation method
20
- # (Static/Dynamic). Possible values for this property include:
21
- # 'Static', 'Dynamic'.
26
+ # @return [IPAllocationMethod] Gets or sets PrivateIP allocation method
27
+ # (Static/Dynamic). Possible values include: 'Static', 'Dynamic'
22
28
  attr_accessor :private_ipallocation_method
23
29
 
24
- # @return [SubResource] Gets or sets the reference of the subnet resource
30
+ # @return [Subnet]
25
31
  attr_accessor :subnet
26
32
 
27
- # @return [SubResource] Gets or sets the reference of the PublicIP
28
- # resource
33
+ # @return [PublicIPAddress]
29
34
  attr_accessor :public_ipaddress
30
35
 
31
- # @return [Array<SubResource>] Gets or sets the reference of
32
- # LoadBalancerBackendAddressPool resource
33
- attr_accessor :load_balancer_backend_address_pools
34
-
35
- # @return [Array<SubResource>] Gets or sets list of references of
36
- # LoadBalancerInboundNatRules
37
- attr_accessor :load_balancer_inbound_nat_rules
38
-
39
- # @return [String] Gets or sets Provisioning state of the PublicIP
40
- # resource Updating/Deleting/Failed
36
+ # @return [String]
41
37
  attr_accessor :provisioning_state
42
38
 
43
39
  #
44
40
  # Validate the object. Throws ValidationError if validation fails.
45
41
  #
46
42
  def validate
47
- @subnet.validate unless @subnet.nil?
48
- @public_ipaddress.validate unless @public_ipaddress.nil?
49
43
  @load_balancer_backend_address_pools.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancer_backend_address_pools.nil?
50
44
  @load_balancer_inbound_nat_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancer_inbound_nat_rules.nil?
45
+ @subnet.validate unless @subnet.nil?
46
+ @public_ipaddress.validate unless @public_ipaddress.nil?
51
47
  end
52
48
 
53
49
  #
@@ -59,30 +55,12 @@ module Azure::ARM::Network
59
55
  object.validate
60
56
  output_object = {}
61
57
 
62
- serialized_property = object.private_ipaddress
63
- output_object['privateIPAddress'] = serialized_property unless serialized_property.nil?
64
-
65
- serialized_property = object.private_ipallocation_method
66
- output_object['privateIPAllocationMethod'] = serialized_property unless serialized_property.nil?
67
-
68
- serialized_property = object.subnet
69
- unless serialized_property.nil?
70
- serialized_property = SubResource.serialize_object(serialized_property)
71
- end
72
- output_object['subnet'] = serialized_property unless serialized_property.nil?
73
-
74
- serialized_property = object.public_ipaddress
75
- unless serialized_property.nil?
76
- serialized_property = SubResource.serialize_object(serialized_property)
77
- end
78
- output_object['publicIPAddress'] = serialized_property unless serialized_property.nil?
79
-
80
58
  serialized_property = object.load_balancer_backend_address_pools
81
59
  unless serialized_property.nil?
82
60
  serializedArray = []
83
61
  serialized_property.each do |element|
84
62
  unless element.nil?
85
- element = SubResource.serialize_object(element)
63
+ element = BackendAddressPool.serialize_object(element)
86
64
  end
87
65
  serializedArray.push(element)
88
66
  end
@@ -95,7 +73,7 @@ module Azure::ARM::Network
95
73
  serializedArray = []
96
74
  serialized_property.each do |element1|
97
75
  unless element1.nil?
98
- element1 = SubResource.serialize_object(element1)
76
+ element1 = InboundNatRule.serialize_object(element1)
99
77
  end
100
78
  serializedArray.push(element1)
101
79
  end
@@ -103,6 +81,24 @@ module Azure::ARM::Network
103
81
  end
104
82
  output_object['loadBalancerInboundNatRules'] = serialized_property unless serialized_property.nil?
105
83
 
84
+ serialized_property = object.private_ipaddress
85
+ output_object['privateIPAddress'] = serialized_property unless serialized_property.nil?
86
+
87
+ serialized_property = object.private_ipallocation_method
88
+ output_object['privateIPAllocationMethod'] = serialized_property unless serialized_property.nil?
89
+
90
+ serialized_property = object.subnet
91
+ unless serialized_property.nil?
92
+ serialized_property = Subnet.serialize_object(serialized_property)
93
+ end
94
+ output_object['subnet'] = serialized_property unless serialized_property.nil?
95
+
96
+ serialized_property = object.public_ipaddress
97
+ unless serialized_property.nil?
98
+ serialized_property = PublicIPAddress.serialize_object(serialized_property)
99
+ end
100
+ output_object['publicIPAddress'] = serialized_property unless serialized_property.nil?
101
+
106
102
  serialized_property = object.provisioning_state
107
103
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
108
104
 
@@ -112,66 +108,64 @@ module Azure::ARM::Network
112
108
  #
113
109
  # Deserializes given Ruby Hash into Model object.
114
110
  # @param object [Hash] Ruby Hash object to deserialize.
115
- # @return [NetworkInterfaceIpConfigurationPropertiesFormat] Deserialized
111
+ # @return [NetworkInterfaceIPConfigurationPropertiesFormat] Deserialized
116
112
  # object.
117
113
  #
118
114
  def self.deserialize_object(object)
119
115
  return if object.nil?
120
- output_object = NetworkInterfaceIpConfigurationPropertiesFormat.new
121
-
122
- deserialized_property = object['privateIPAddress']
123
- output_object.private_ipaddress = deserialized_property
124
-
125
- deserialized_property = object['privateIPAllocationMethod']
126
- if (!deserialized_property.nil? && !deserialized_property.empty?)
127
- enum_is_valid = IpAllocationMethod.constants.any? { |e| IpAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase }
128
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
129
- end
130
- output_object.private_ipallocation_method = deserialized_property
131
-
132
- deserialized_property = object['subnet']
133
- unless deserialized_property.nil?
134
- deserialized_property = SubResource.deserialize_object(deserialized_property)
135
- end
136
- output_object.subnet = deserialized_property
137
-
138
- deserialized_property = object['publicIPAddress']
139
- unless deserialized_property.nil?
140
- deserialized_property = SubResource.deserialize_object(deserialized_property)
141
- end
142
- output_object.public_ipaddress = deserialized_property
116
+ output_object = NetworkInterfaceIPConfigurationPropertiesFormat.new
143
117
 
144
118
  deserialized_property = object['loadBalancerBackendAddressPools']
145
119
  unless deserialized_property.nil?
146
- deserializedArray = [];
120
+ deserialized_array = []
147
121
  deserialized_property.each do |element2|
148
122
  unless element2.nil?
149
- element2 = SubResource.deserialize_object(element2)
123
+ element2 = BackendAddressPool.deserialize_object(element2)
150
124
  end
151
- deserializedArray.push(element2);
125
+ deserialized_array.push(element2)
152
126
  end
153
- deserialized_property = deserializedArray;
127
+ deserialized_property = deserialized_array
154
128
  end
155
129
  output_object.load_balancer_backend_address_pools = deserialized_property
156
130
 
157
131
  deserialized_property = object['loadBalancerInboundNatRules']
158
132
  unless deserialized_property.nil?
159
- deserializedArray = [];
133
+ deserialized_array = []
160
134
  deserialized_property.each do |element3|
161
135
  unless element3.nil?
162
- element3 = SubResource.deserialize_object(element3)
136
+ element3 = InboundNatRule.deserialize_object(element3)
163
137
  end
164
- deserializedArray.push(element3);
138
+ deserialized_array.push(element3)
165
139
  end
166
- deserialized_property = deserializedArray;
140
+ deserialized_property = deserialized_array
167
141
  end
168
142
  output_object.load_balancer_inbound_nat_rules = deserialized_property
169
143
 
144
+ deserialized_property = object['privateIPAddress']
145
+ output_object.private_ipaddress = deserialized_property
146
+
147
+ deserialized_property = object['privateIPAllocationMethod']
148
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
149
+ enum_is_valid = IPAllocationMethod.constants.any? { |e| IPAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase }
150
+ warn 'Enum IPAllocationMethod does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
151
+ end
152
+ output_object.private_ipallocation_method = deserialized_property
153
+
154
+ deserialized_property = object['subnet']
155
+ unless deserialized_property.nil?
156
+ deserialized_property = Subnet.deserialize_object(deserialized_property)
157
+ end
158
+ output_object.subnet = deserialized_property
159
+
160
+ deserialized_property = object['publicIPAddress']
161
+ unless deserialized_property.nil?
162
+ deserialized_property = PublicIPAddress.deserialize_object(deserialized_property)
163
+ end
164
+ output_object.public_ipaddress = deserialized_property
165
+
170
166
  deserialized_property = object['provisioningState']
171
167
  output_object.provisioning_state = deserialized_property
172
168
 
173
- output_object.validate
174
-
175
169
  output_object
176
170
  end
177
171
  end