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
@@ -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
+ # Probe of application gateway
10
+ #
11
+ class ApplicationGatewayProbe < MsRestAzure::SubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ApplicationGatewayProbePropertiesFormat]
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 = ApplicationGatewayProbePropertiesFormat.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 [ApplicationGatewayProbe] Deserialized object.
64
+ #
65
+ def self.deserialize_object(object)
66
+ return if object.nil?
67
+ output_object = ApplicationGatewayProbe.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 = ApplicationGatewayProbePropertiesFormat.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
@@ -0,0 +1,118 @@
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
+ # Properties of probe of application gateway
10
+ #
11
+ class ApplicationGatewayProbePropertiesFormat
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ApplicationGatewayProtocol] Gets or sets the protocol.
16
+ # Possible values include: 'Http', 'Https'
17
+ attr_accessor :protocol
18
+
19
+ # @return [String] Gets or sets the host to send probe to
20
+ attr_accessor :host
21
+
22
+ # @return [String] Gets or sets the relative path of probe
23
+ attr_accessor :path
24
+
25
+ # @return [Integer] Gets or sets probing interval in seconds
26
+ attr_accessor :interval
27
+
28
+ # @return [Integer] Gets or sets probing timeout in seconds
29
+ attr_accessor :timeout
30
+
31
+ # @return [Integer] Gets or sets probing unhealthy threshold
32
+ attr_accessor :unhealthy_threshold
33
+
34
+ # @return [String] Gets or sets Provisioning state of the backend http
35
+ # settings resource Updating/Deleting/Failed
36
+ attr_accessor :provisioning_state
37
+
38
+ #
39
+ # Validate the object. Throws ValidationError if validation fails.
40
+ #
41
+ def validate
42
+ end
43
+
44
+ #
45
+ # Serializes given Model object into Ruby Hash.
46
+ # @param object Model object to serialize.
47
+ # @return [Hash] Serialized object in form of Ruby Hash.
48
+ #
49
+ def self.serialize_object(object)
50
+ object.validate
51
+ output_object = {}
52
+
53
+ serialized_property = object.protocol
54
+ output_object['protocol'] = serialized_property unless serialized_property.nil?
55
+
56
+ serialized_property = object.host
57
+ output_object['host'] = serialized_property unless serialized_property.nil?
58
+
59
+ serialized_property = object.path
60
+ output_object['path'] = serialized_property unless serialized_property.nil?
61
+
62
+ serialized_property = object.interval
63
+ output_object['interval'] = serialized_property unless serialized_property.nil?
64
+
65
+ serialized_property = object.timeout
66
+ output_object['timeout'] = serialized_property unless serialized_property.nil?
67
+
68
+ serialized_property = object.unhealthy_threshold
69
+ output_object['unhealthyThreshold'] = serialized_property unless serialized_property.nil?
70
+
71
+ serialized_property = object.provisioning_state
72
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
73
+
74
+ output_object
75
+ end
76
+
77
+ #
78
+ # Deserializes given Ruby Hash into Model object.
79
+ # @param object [Hash] Ruby Hash object to deserialize.
80
+ # @return [ApplicationGatewayProbePropertiesFormat] Deserialized object.
81
+ #
82
+ def self.deserialize_object(object)
83
+ return if object.nil?
84
+ output_object = ApplicationGatewayProbePropertiesFormat.new
85
+
86
+ deserialized_property = object['protocol']
87
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
88
+ enum_is_valid = ApplicationGatewayProtocol.constants.any? { |e| ApplicationGatewayProtocol.const_get(e).to_s.downcase == deserialized_property.downcase }
89
+ warn 'Enum ApplicationGatewayProtocol does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
90
+ end
91
+ output_object.protocol = deserialized_property
92
+
93
+ deserialized_property = object['host']
94
+ output_object.host = deserialized_property
95
+
96
+ deserialized_property = object['path']
97
+ output_object.path = deserialized_property
98
+
99
+ deserialized_property = object['interval']
100
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
101
+ output_object.interval = deserialized_property
102
+
103
+ deserialized_property = object['timeout']
104
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
105
+ output_object.timeout = deserialized_property
106
+
107
+ deserialized_property = object['unhealthyThreshold']
108
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
109
+ output_object.unhealthy_threshold = deserialized_property
110
+
111
+ deserialized_property = object['provisioningState']
112
+ output_object.provisioning_state = deserialized_property
113
+
114
+ output_object
115
+ end
116
+ end
117
+ end
118
+ 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
 
@@ -17,26 +17,30 @@ module Azure::ARM::Network
17
17
  attr_accessor :sku
18
18
 
19
19
  # @return [ApplicationGatewayOperationalState] Gets operational state of
20
- # application gateway resource. Possible values for this property
21
- # include: 'Stopped', 'Starting', 'Running', 'Stopping'.
20
+ # application gateway resource. Possible values include: 'Stopped',
21
+ # 'Starting', 'Running', 'Stopping'
22
22
  attr_accessor :operational_state
23
23
 
24
- # @return [Array<ApplicationGatewayIpConfiguration>] Gets or sets
24
+ # @return [Array<ApplicationGatewayIPConfiguration>] Gets or sets
25
25
  # subnets of application gateway resource
26
- attr_accessor :gateway_ip_configurations
26
+ attr_accessor :gateway_ipconfigurations
27
27
 
28
28
  # @return [Array<ApplicationGatewaySslCertificate>] Gets or sets ssl
29
29
  # certificates of application gateway resource
30
30
  attr_accessor :ssl_certificates
31
31
 
32
- # @return [Array<ApplicationGatewayFrontendIpConfiguration>] Gets or
32
+ # @return [Array<ApplicationGatewayFrontendIPConfiguration>] Gets or
33
33
  # sets frontend IP addresses of application gateway resource
34
- attr_accessor :frontend_ip_configurations
34
+ attr_accessor :frontend_ipconfigurations
35
35
 
36
36
  # @return [Array<ApplicationGatewayFrontendPort>] Gets or sets frontend
37
37
  # ports of application gateway resource
38
38
  attr_accessor :frontend_ports
39
39
 
40
+ # @return [Array<ApplicationGatewayProbe>] Gets or sets probes of
41
+ # application gateway resource
42
+ attr_accessor :probes
43
+
40
44
  # @return [Array<ApplicationGatewayBackendAddressPool>] Gets or sets
41
45
  # backend address pool of application gateway resource
42
46
  attr_accessor :backend_address_pools
@@ -49,10 +53,18 @@ module Azure::ARM::Network
49
53
  # listeners of application gateway resource
50
54
  attr_accessor :http_listeners
51
55
 
56
+ # @return [Array<ApplicationGatewayUrlPathMap>] Gets or sets URL path
57
+ # map of application gateway resource
58
+ attr_accessor :url_path_maps
59
+
52
60
  # @return [Array<ApplicationGatewayRequestRoutingRule>] Gets or sets
53
61
  # request routing rules of application gateway resource
54
62
  attr_accessor :request_routing_rules
55
63
 
64
+ # @return [String] Gets or sets resource guid property of the
65
+ # ApplicationGateway resource
66
+ attr_accessor :resource_guid
67
+
56
68
  # @return [String] Gets or sets Provisioning state of the
57
69
  # ApplicationGateway resource Updating/Deleting/Failed
58
70
  attr_accessor :provisioning_state
@@ -62,13 +74,15 @@ module Azure::ARM::Network
62
74
  #
63
75
  def validate
64
76
  @sku.validate unless @sku.nil?
65
- @gateway_ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @gateway_ip_configurations.nil?
77
+ @gateway_ipconfigurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @gateway_ipconfigurations.nil?
66
78
  @ssl_certificates.each{ |e| e.validate if e.respond_to?(:validate) } unless @ssl_certificates.nil?
67
- @frontend_ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @frontend_ip_configurations.nil?
79
+ @frontend_ipconfigurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @frontend_ipconfigurations.nil?
68
80
  @frontend_ports.each{ |e| e.validate if e.respond_to?(:validate) } unless @frontend_ports.nil?
81
+ @probes.each{ |e| e.validate if e.respond_to?(:validate) } unless @probes.nil?
69
82
  @backend_address_pools.each{ |e| e.validate if e.respond_to?(:validate) } unless @backend_address_pools.nil?
70
83
  @backend_http_settings_collection.each{ |e| e.validate if e.respond_to?(:validate) } unless @backend_http_settings_collection.nil?
71
84
  @http_listeners.each{ |e| e.validate if e.respond_to?(:validate) } unless @http_listeners.nil?
85
+ @url_path_maps.each{ |e| e.validate if e.respond_to?(:validate) } unless @url_path_maps.nil?
72
86
  @request_routing_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @request_routing_rules.nil?
73
87
  end
74
88
 
@@ -90,18 +104,18 @@ module Azure::ARM::Network
90
104
  serialized_property = object.operational_state
91
105
  output_object['operationalState'] = serialized_property unless serialized_property.nil?
92
106
 
93
- serialized_property = object.gateway_ip_configurations
107
+ serialized_property = object.gateway_ipconfigurations
94
108
  unless serialized_property.nil?
95
109
  serializedArray = []
96
110
  serialized_property.each do |element|
97
111
  unless element.nil?
98
- element = ApplicationGatewayIpConfiguration.serialize_object(element)
112
+ element = ApplicationGatewayIPConfiguration.serialize_object(element)
99
113
  end
100
114
  serializedArray.push(element)
101
115
  end
102
116
  serialized_property = serializedArray
103
117
  end
104
- output_object['gatewayIpConfigurations'] = serialized_property unless serialized_property.nil?
118
+ output_object['gatewayIPConfigurations'] = serialized_property unless serialized_property.nil?
105
119
 
106
120
  serialized_property = object.ssl_certificates
107
121
  unless serialized_property.nil?
@@ -116,18 +130,18 @@ module Azure::ARM::Network
116
130
  end
117
131
  output_object['sslCertificates'] = serialized_property unless serialized_property.nil?
118
132
 
119
- serialized_property = object.frontend_ip_configurations
133
+ serialized_property = object.frontend_ipconfigurations
120
134
  unless serialized_property.nil?
121
135
  serializedArray = []
122
136
  serialized_property.each do |element2|
123
137
  unless element2.nil?
124
- element2 = ApplicationGatewayFrontendIpConfiguration.serialize_object(element2)
138
+ element2 = ApplicationGatewayFrontendIPConfiguration.serialize_object(element2)
125
139
  end
126
140
  serializedArray.push(element2)
127
141
  end
128
142
  serialized_property = serializedArray
129
143
  end
130
- output_object['frontendIpConfigurations'] = serialized_property unless serialized_property.nil?
144
+ output_object['frontendIPConfigurations'] = serialized_property unless serialized_property.nil?
131
145
 
132
146
  serialized_property = object.frontend_ports
133
147
  unless serialized_property.nil?
@@ -142,58 +156,87 @@ module Azure::ARM::Network
142
156
  end
143
157
  output_object['frontendPorts'] = serialized_property unless serialized_property.nil?
144
158
 
145
- serialized_property = object.backend_address_pools
159
+ serialized_property = object.probes
146
160
  unless serialized_property.nil?
147
161
  serializedArray = []
148
162
  serialized_property.each do |element4|
149
163
  unless element4.nil?
150
- element4 = ApplicationGatewayBackendAddressPool.serialize_object(element4)
164
+ element4 = ApplicationGatewayProbe.serialize_object(element4)
151
165
  end
152
166
  serializedArray.push(element4)
153
167
  end
154
168
  serialized_property = serializedArray
155
169
  end
156
- output_object['backendAddressPools'] = serialized_property unless serialized_property.nil?
170
+ output_object['probes'] = serialized_property unless serialized_property.nil?
157
171
 
158
- serialized_property = object.backend_http_settings_collection
172
+ serialized_property = object.backend_address_pools
159
173
  unless serialized_property.nil?
160
174
  serializedArray = []
161
175
  serialized_property.each do |element5|
162
176
  unless element5.nil?
163
- element5 = ApplicationGatewayBackendHttpSettings.serialize_object(element5)
177
+ element5 = ApplicationGatewayBackendAddressPool.serialize_object(element5)
164
178
  end
165
179
  serializedArray.push(element5)
166
180
  end
167
181
  serialized_property = serializedArray
168
182
  end
169
- output_object['backendHttpSettingsCollection'] = serialized_property unless serialized_property.nil?
183
+ output_object['backendAddressPools'] = serialized_property unless serialized_property.nil?
170
184
 
171
- serialized_property = object.http_listeners
185
+ serialized_property = object.backend_http_settings_collection
172
186
  unless serialized_property.nil?
173
187
  serializedArray = []
174
188
  serialized_property.each do |element6|
175
189
  unless element6.nil?
176
- element6 = ApplicationGatewayHttpListener.serialize_object(element6)
190
+ element6 = ApplicationGatewayBackendHttpSettings.serialize_object(element6)
177
191
  end
178
192
  serializedArray.push(element6)
179
193
  end
180
194
  serialized_property = serializedArray
181
195
  end
182
- output_object['httpListeners'] = serialized_property unless serialized_property.nil?
196
+ output_object['backendHttpSettingsCollection'] = serialized_property unless serialized_property.nil?
183
197
 
184
- serialized_property = object.request_routing_rules
198
+ serialized_property = object.http_listeners
185
199
  unless serialized_property.nil?
186
200
  serializedArray = []
187
201
  serialized_property.each do |element7|
188
202
  unless element7.nil?
189
- element7 = ApplicationGatewayRequestRoutingRule.serialize_object(element7)
203
+ element7 = ApplicationGatewayHttpListener.serialize_object(element7)
190
204
  end
191
205
  serializedArray.push(element7)
192
206
  end
193
207
  serialized_property = serializedArray
194
208
  end
209
+ output_object['httpListeners'] = serialized_property unless serialized_property.nil?
210
+
211
+ serialized_property = object.url_path_maps
212
+ unless serialized_property.nil?
213
+ serializedArray = []
214
+ serialized_property.each do |element8|
215
+ unless element8.nil?
216
+ element8 = ApplicationGatewayUrlPathMap.serialize_object(element8)
217
+ end
218
+ serializedArray.push(element8)
219
+ end
220
+ serialized_property = serializedArray
221
+ end
222
+ output_object['urlPathMaps'] = serialized_property unless serialized_property.nil?
223
+
224
+ serialized_property = object.request_routing_rules
225
+ unless serialized_property.nil?
226
+ serializedArray = []
227
+ serialized_property.each do |element9|
228
+ unless element9.nil?
229
+ element9 = ApplicationGatewayRequestRoutingRule.serialize_object(element9)
230
+ end
231
+ serializedArray.push(element9)
232
+ end
233
+ serialized_property = serializedArray
234
+ end
195
235
  output_object['requestRoutingRules'] = serialized_property unless serialized_property.nil?
196
236
 
237
+ serialized_property = object.resource_guid
238
+ output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
239
+
197
240
  serialized_property = object.provisioning_state
198
241
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
199
242
 
@@ -218,119 +261,146 @@ module Azure::ARM::Network
218
261
  deserialized_property = object['operationalState']
219
262
  if (!deserialized_property.nil? && !deserialized_property.empty?)
220
263
  enum_is_valid = ApplicationGatewayOperationalState.constants.any? { |e| ApplicationGatewayOperationalState.const_get(e).to_s.downcase == deserialized_property.downcase }
221
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
264
+ warn 'Enum ApplicationGatewayOperationalState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
222
265
  end
223
266
  output_object.operational_state = deserialized_property
224
267
 
225
- deserialized_property = object['gatewayIpConfigurations']
268
+ deserialized_property = object['gatewayIPConfigurations']
226
269
  unless deserialized_property.nil?
227
- deserializedArray = [];
228
- deserialized_property.each do |element8|
229
- unless element8.nil?
230
- element8 = ApplicationGatewayIpConfiguration.deserialize_object(element8)
270
+ deserialized_array = []
271
+ deserialized_property.each do |element10|
272
+ unless element10.nil?
273
+ element10 = ApplicationGatewayIPConfiguration.deserialize_object(element10)
231
274
  end
232
- deserializedArray.push(element8);
275
+ deserialized_array.push(element10)
233
276
  end
234
- deserialized_property = deserializedArray;
277
+ deserialized_property = deserialized_array
235
278
  end
236
- output_object.gateway_ip_configurations = deserialized_property
279
+ output_object.gateway_ipconfigurations = deserialized_property
237
280
 
238
281
  deserialized_property = object['sslCertificates']
239
282
  unless deserialized_property.nil?
240
- deserializedArray = [];
241
- deserialized_property.each do |element9|
242
- unless element9.nil?
243
- element9 = ApplicationGatewaySslCertificate.deserialize_object(element9)
283
+ deserialized_array = []
284
+ deserialized_property.each do |element11|
285
+ unless element11.nil?
286
+ element11 = ApplicationGatewaySslCertificate.deserialize_object(element11)
244
287
  end
245
- deserializedArray.push(element9);
288
+ deserialized_array.push(element11)
246
289
  end
247
- deserialized_property = deserializedArray;
290
+ deserialized_property = deserialized_array
248
291
  end
249
292
  output_object.ssl_certificates = deserialized_property
250
293
 
251
- deserialized_property = object['frontendIpConfigurations']
294
+ deserialized_property = object['frontendIPConfigurations']
252
295
  unless deserialized_property.nil?
253
- deserializedArray = [];
254
- deserialized_property.each do |element10|
255
- unless element10.nil?
256
- element10 = ApplicationGatewayFrontendIpConfiguration.deserialize_object(element10)
296
+ deserialized_array = []
297
+ deserialized_property.each do |element12|
298
+ unless element12.nil?
299
+ element12 = ApplicationGatewayFrontendIPConfiguration.deserialize_object(element12)
257
300
  end
258
- deserializedArray.push(element10);
301
+ deserialized_array.push(element12)
259
302
  end
260
- deserialized_property = deserializedArray;
303
+ deserialized_property = deserialized_array
261
304
  end
262
- output_object.frontend_ip_configurations = deserialized_property
305
+ output_object.frontend_ipconfigurations = deserialized_property
263
306
 
264
307
  deserialized_property = object['frontendPorts']
265
308
  unless deserialized_property.nil?
266
- deserializedArray = [];
267
- deserialized_property.each do |element11|
268
- unless element11.nil?
269
- element11 = ApplicationGatewayFrontendPort.deserialize_object(element11)
309
+ deserialized_array = []
310
+ deserialized_property.each do |element13|
311
+ unless element13.nil?
312
+ element13 = ApplicationGatewayFrontendPort.deserialize_object(element13)
270
313
  end
271
- deserializedArray.push(element11);
314
+ deserialized_array.push(element13)
272
315
  end
273
- deserialized_property = deserializedArray;
316
+ deserialized_property = deserialized_array
274
317
  end
275
318
  output_object.frontend_ports = deserialized_property
276
319
 
320
+ deserialized_property = object['probes']
321
+ unless deserialized_property.nil?
322
+ deserialized_array = []
323
+ deserialized_property.each do |element14|
324
+ unless element14.nil?
325
+ element14 = ApplicationGatewayProbe.deserialize_object(element14)
326
+ end
327
+ deserialized_array.push(element14)
328
+ end
329
+ deserialized_property = deserialized_array
330
+ end
331
+ output_object.probes = deserialized_property
332
+
277
333
  deserialized_property = object['backendAddressPools']
278
334
  unless deserialized_property.nil?
279
- deserializedArray = [];
280
- deserialized_property.each do |element12|
281
- unless element12.nil?
282
- element12 = ApplicationGatewayBackendAddressPool.deserialize_object(element12)
335
+ deserialized_array = []
336
+ deserialized_property.each do |element15|
337
+ unless element15.nil?
338
+ element15 = ApplicationGatewayBackendAddressPool.deserialize_object(element15)
283
339
  end
284
- deserializedArray.push(element12);
340
+ deserialized_array.push(element15)
285
341
  end
286
- deserialized_property = deserializedArray;
342
+ deserialized_property = deserialized_array
287
343
  end
288
344
  output_object.backend_address_pools = deserialized_property
289
345
 
290
346
  deserialized_property = object['backendHttpSettingsCollection']
291
347
  unless deserialized_property.nil?
292
- deserializedArray = [];
293
- deserialized_property.each do |element13|
294
- unless element13.nil?
295
- element13 = ApplicationGatewayBackendHttpSettings.deserialize_object(element13)
348
+ deserialized_array = []
349
+ deserialized_property.each do |element16|
350
+ unless element16.nil?
351
+ element16 = ApplicationGatewayBackendHttpSettings.deserialize_object(element16)
296
352
  end
297
- deserializedArray.push(element13);
353
+ deserialized_array.push(element16)
298
354
  end
299
- deserialized_property = deserializedArray;
355
+ deserialized_property = deserialized_array
300
356
  end
301
357
  output_object.backend_http_settings_collection = deserialized_property
302
358
 
303
359
  deserialized_property = object['httpListeners']
304
360
  unless deserialized_property.nil?
305
- deserializedArray = [];
306
- deserialized_property.each do |element14|
307
- unless element14.nil?
308
- element14 = ApplicationGatewayHttpListener.deserialize_object(element14)
361
+ deserialized_array = []
362
+ deserialized_property.each do |element17|
363
+ unless element17.nil?
364
+ element17 = ApplicationGatewayHttpListener.deserialize_object(element17)
309
365
  end
310
- deserializedArray.push(element14);
366
+ deserialized_array.push(element17)
311
367
  end
312
- deserialized_property = deserializedArray;
368
+ deserialized_property = deserialized_array
313
369
  end
314
370
  output_object.http_listeners = deserialized_property
315
371
 
372
+ deserialized_property = object['urlPathMaps']
373
+ unless deserialized_property.nil?
374
+ deserialized_array = []
375
+ deserialized_property.each do |element18|
376
+ unless element18.nil?
377
+ element18 = ApplicationGatewayUrlPathMap.deserialize_object(element18)
378
+ end
379
+ deserialized_array.push(element18)
380
+ end
381
+ deserialized_property = deserialized_array
382
+ end
383
+ output_object.url_path_maps = deserialized_property
384
+
316
385
  deserialized_property = object['requestRoutingRules']
317
386
  unless deserialized_property.nil?
318
- deserializedArray = [];
319
- deserialized_property.each do |element15|
320
- unless element15.nil?
321
- element15 = ApplicationGatewayRequestRoutingRule.deserialize_object(element15)
387
+ deserialized_array = []
388
+ deserialized_property.each do |element19|
389
+ unless element19.nil?
390
+ element19 = ApplicationGatewayRequestRoutingRule.deserialize_object(element19)
322
391
  end
323
- deserializedArray.push(element15);
392
+ deserialized_array.push(element19)
324
393
  end
325
- deserialized_property = deserializedArray;
394
+ deserialized_property = deserialized_array
326
395
  end
327
396
  output_object.request_routing_rules = deserialized_property
328
397
 
398
+ deserialized_property = object['resourceGuid']
399
+ output_object.resource_guid = deserialized_property
400
+
329
401
  deserialized_property = object['provisioningState']
330
402
  output_object.provisioning_state = deserialized_property
331
403
 
332
- output_object.validate
333
-
334
404
  output_object
335
405
  end
336
406
  end