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,86 @@
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
+ # Response for ListRouteTable Api servive call
10
+ #
11
+ class RouteTableListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<RouteTable>] Gets List of RouteTables in a resource
16
+ # group
17
+ attr_accessor :value
18
+
19
+ # @return [String] Gets the URL to get the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ #
23
+ # Validate the object. Throws ValidationError if validation fails.
24
+ #
25
+ def validate
26
+ @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
27
+ end
28
+
29
+ #
30
+ # Serializes given Model object into Ruby Hash.
31
+ # @param object Model object to serialize.
32
+ # @return [Hash] Serialized object in form of Ruby Hash.
33
+ #
34
+ def self.serialize_object(object)
35
+ object.validate
36
+ output_object = {}
37
+
38
+ serialized_property = object.value
39
+ unless serialized_property.nil?
40
+ serializedArray = []
41
+ serialized_property.each do |element|
42
+ unless element.nil?
43
+ element = RouteTable.serialize_object(element)
44
+ end
45
+ serializedArray.push(element)
46
+ end
47
+ serialized_property = serializedArray
48
+ end
49
+ output_object['value'] = serialized_property unless serialized_property.nil?
50
+
51
+ serialized_property = object.next_link
52
+ output_object['nextLink'] = serialized_property unless serialized_property.nil?
53
+
54
+ output_object
55
+ end
56
+
57
+ #
58
+ # Deserializes given Ruby Hash into Model object.
59
+ # @param object [Hash] Ruby Hash object to deserialize.
60
+ # @return [RouteTableListResult] Deserialized object.
61
+ #
62
+ def self.deserialize_object(object)
63
+ return if object.nil?
64
+ output_object = RouteTableListResult.new
65
+
66
+ deserialized_property = object['value']
67
+ unless deserialized_property.nil?
68
+ deserialized_array = []
69
+ deserialized_property.each do |element1|
70
+ unless element1.nil?
71
+ element1 = RouteTable.deserialize_object(element1)
72
+ end
73
+ deserialized_array.push(element1)
74
+ end
75
+ deserialized_property = deserialized_array
76
+ end
77
+ output_object.value = deserialized_property
78
+
79
+ deserialized_property = object['nextLink']
80
+ output_object.next_link = deserialized_property
81
+
82
+ output_object
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,116 @@
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
+ # Route Table resource
10
+ #
11
+ class RouteTablePropertiesFormat
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Route>] Gets or sets Routes in a Route Table
16
+ attr_accessor :routes
17
+
18
+ # @return [Array<Subnet>] Gets collection of references to subnets
19
+ attr_accessor :subnets
20
+
21
+ # @return [String] Gets or sets Provisioning state of the resource
22
+ # Updating/Deleting/Failed
23
+ attr_accessor :provisioning_state
24
+
25
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ @routes.each{ |e| e.validate if e.respond_to?(:validate) } unless @routes.nil?
30
+ @subnets.each{ |e| e.validate if e.respond_to?(:validate) } unless @subnets.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.routes
43
+ unless serialized_property.nil?
44
+ serializedArray = []
45
+ serialized_property.each do |element|
46
+ unless element.nil?
47
+ element = Route.serialize_object(element)
48
+ end
49
+ serializedArray.push(element)
50
+ end
51
+ serialized_property = serializedArray
52
+ end
53
+ output_object['routes'] = serialized_property unless serialized_property.nil?
54
+
55
+ serialized_property = object.subnets
56
+ unless serialized_property.nil?
57
+ serializedArray = []
58
+ serialized_property.each do |element1|
59
+ unless element1.nil?
60
+ element1 = Subnet.serialize_object(element1)
61
+ end
62
+ serializedArray.push(element1)
63
+ end
64
+ serialized_property = serializedArray
65
+ end
66
+ output_object['subnets'] = serialized_property unless serialized_property.nil?
67
+
68
+ serialized_property = object.provisioning_state
69
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
70
+
71
+ output_object
72
+ end
73
+
74
+ #
75
+ # Deserializes given Ruby Hash into Model object.
76
+ # @param object [Hash] Ruby Hash object to deserialize.
77
+ # @return [RouteTablePropertiesFormat] Deserialized object.
78
+ #
79
+ def self.deserialize_object(object)
80
+ return if object.nil?
81
+ output_object = RouteTablePropertiesFormat.new
82
+
83
+ deserialized_property = object['routes']
84
+ unless deserialized_property.nil?
85
+ deserialized_array = []
86
+ deserialized_property.each do |element2|
87
+ unless element2.nil?
88
+ element2 = Route.deserialize_object(element2)
89
+ end
90
+ deserialized_array.push(element2)
91
+ end
92
+ deserialized_property = deserialized_array
93
+ end
94
+ output_object.routes = deserialized_property
95
+
96
+ deserialized_property = object['subnets']
97
+ unless deserialized_property.nil?
98
+ deserialized_array = []
99
+ deserialized_property.each do |element3|
100
+ unless element3.nil?
101
+ element3 = Subnet.deserialize_object(element3)
102
+ end
103
+ deserialized_array.push(element3)
104
+ end
105
+ deserialized_property = deserialized_array
106
+ end
107
+ output_object.subnets = deserialized_property
108
+
109
+ deserialized_property = object['provisioningState']
110
+ output_object.provisioning_state = deserialized_property
111
+
112
+ output_object
113
+ end
114
+ end
115
+ end
116
+ 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
 
@@ -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
 
@@ -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
 
@@ -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 = SecurityRule.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
 
@@ -17,36 +17,35 @@ module Azure::ARM::Network
17
17
  attr_accessor :description
18
18
 
19
19
  # @return [SecurityRuleProtocol] Gets or sets Network protocol this rule
20
- # applies to. Can be Tcp, Udp or All(*). Possible values for this
21
- # property include: 'Tcp', 'Udp', '*'.
20
+ # applies to. Can be Tcp, Udp or All(*). Possible values include:
21
+ # 'Tcp', 'Udp', '*'
22
22
  attr_accessor :protocol
23
23
 
24
24
  # @return [String] Gets or sets Source Port or Range. Integer or range
25
- # between 0 and 65535. Asterix “*” can also be used to match all
26
- # ports.
25
+ # between 0 and 65535. Asterix '*' can also be used to match all ports.
27
26
  attr_accessor :source_port_range
28
27
 
29
28
  # @return [String] Gets or sets Destination Port or Range. Integer or
30
- # range between 0 and 65535. Asterix “*” can also be used to match
31
- # all ports.
29
+ # range between 0 and 65535. Asterix '*' can also be used to match all
30
+ # ports.
32
31
  attr_accessor :destination_port_range
33
32
 
34
33
  # @return [String] Gets or sets source address prefix. CIDR or source IP
35
- # range. Asterix “*” can also be used to match all source IPs.
36
- # Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’
37
- # and ‘Internet’ can also be used. If this is an ingress rule,
38
- # specifies where network traffic originates from.
34
+ # range. Asterix '*' can also be used to match all source IPs. Default
35
+ # tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can
36
+ # also be used. If this is an ingress rule, specifies where network
37
+ # traffic originates from.
39
38
  attr_accessor :source_address_prefix
40
39
 
41
40
  # @return [String] Gets or sets destination address prefix. CIDR or
42
- # source IP range. Asterix “*” can also be used to match all source
43
- # IPs. Default tags such as ‘VirtualNetwork’,
44
- # ‘AzureLoadBalancer’ and ‘Internet’ can also be used.
41
+ # source IP range. Asterix '*' can also be used to match all source
42
+ # IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and
43
+ # 'Internet' can also be used.
45
44
  attr_accessor :destination_address_prefix
46
45
 
47
46
  # @return [SecurityRuleAccess] Gets or sets network traffic is allowed
48
- # or denied. Possible values are “Allow” and “Deny”. Possible
49
- # values for this property include: 'Allow', 'Deny'.
47
+ # or denied. Possible values are 'Allow' and 'Deny'. Possible values
48
+ # include: 'Allow', 'Deny'
50
49
  attr_accessor :access
51
50
 
52
51
  # @return [Integer] Gets or sets the priority of the rule. The value can
@@ -57,8 +56,8 @@ module Azure::ARM::Network
57
56
 
58
57
  # @return [SecurityRuleDirection] Gets or sets the direction of the
59
58
  # rule.InBound or Outbound. The direction specifies if rule will be
60
- # evaluated on incoming or outcoming traffic. Possible values for this
61
- # property include: 'Inbound', 'Outbound'.
59
+ # evaluated on incoming or outcoming traffic. Possible values include:
60
+ # 'Inbound', 'Outbound'
62
61
  attr_accessor :direction
63
62
 
64
63
  # @return [String] Gets or sets Provisioning state of the PublicIP
@@ -69,6 +68,11 @@ module Azure::ARM::Network
69
68
  # Validate the object. Throws ValidationError if validation fails.
70
69
  #
71
70
  def validate
71
+ fail MsRest::ValidationError, 'property protocol is nil' if @protocol.nil?
72
+ fail MsRest::ValidationError, 'property source_address_prefix is nil' if @source_address_prefix.nil?
73
+ fail MsRest::ValidationError, 'property destination_address_prefix is nil' if @destination_address_prefix.nil?
74
+ fail MsRest::ValidationError, 'property access is nil' if @access.nil?
75
+ fail MsRest::ValidationError, 'property direction is nil' if @direction.nil?
72
76
  end
73
77
 
74
78
  #
@@ -80,18 +84,9 @@ module Azure::ARM::Network
80
84
  object.validate
81
85
  output_object = {}
82
86
 
83
- serialized_property = object.description
84
- output_object['description'] = serialized_property unless serialized_property.nil?
85
-
86
87
  serialized_property = object.protocol
87
88
  output_object['protocol'] = serialized_property unless serialized_property.nil?
88
89
 
89
- serialized_property = object.source_port_range
90
- output_object['sourcePortRange'] = serialized_property unless serialized_property.nil?
91
-
92
- serialized_property = object.destination_port_range
93
- output_object['destinationPortRange'] = serialized_property unless serialized_property.nil?
94
-
95
90
  serialized_property = object.source_address_prefix
96
91
  output_object['sourceAddressPrefix'] = serialized_property unless serialized_property.nil?
97
92
 
@@ -101,12 +96,21 @@ module Azure::ARM::Network
101
96
  serialized_property = object.access
102
97
  output_object['access'] = serialized_property unless serialized_property.nil?
103
98
 
104
- serialized_property = object.priority
105
- output_object['priority'] = serialized_property unless serialized_property.nil?
106
-
107
99
  serialized_property = object.direction
108
100
  output_object['direction'] = serialized_property unless serialized_property.nil?
109
101
 
102
+ serialized_property = object.description
103
+ output_object['description'] = serialized_property unless serialized_property.nil?
104
+
105
+ serialized_property = object.source_port_range
106
+ output_object['sourcePortRange'] = serialized_property unless serialized_property.nil?
107
+
108
+ serialized_property = object.destination_port_range
109
+ output_object['destinationPortRange'] = serialized_property unless serialized_property.nil?
110
+
111
+ serialized_property = object.priority
112
+ output_object['priority'] = serialized_property unless serialized_property.nil?
113
+
110
114
  serialized_property = object.provisioning_state
111
115
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
112
116
 
@@ -122,22 +126,13 @@ module Azure::ARM::Network
122
126
  return if object.nil?
123
127
  output_object = SecurityRulePropertiesFormat.new
124
128
 
125
- deserialized_property = object['description']
126
- output_object.description = deserialized_property
127
-
128
129
  deserialized_property = object['protocol']
129
130
  if (!deserialized_property.nil? && !deserialized_property.empty?)
130
131
  enum_is_valid = SecurityRuleProtocol.constants.any? { |e| SecurityRuleProtocol.const_get(e).to_s.downcase == deserialized_property.downcase }
131
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
132
+ warn 'Enum SecurityRuleProtocol does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
132
133
  end
133
134
  output_object.protocol = deserialized_property
134
135
 
135
- deserialized_property = object['sourcePortRange']
136
- output_object.source_port_range = deserialized_property
137
-
138
- deserialized_property = object['destinationPortRange']
139
- output_object.destination_port_range = deserialized_property
140
-
141
136
  deserialized_property = object['sourceAddressPrefix']
142
137
  output_object.source_address_prefix = deserialized_property
143
138
 
@@ -147,26 +142,33 @@ module Azure::ARM::Network
147
142
  deserialized_property = object['access']
148
143
  if (!deserialized_property.nil? && !deserialized_property.empty?)
149
144
  enum_is_valid = SecurityRuleAccess.constants.any? { |e| SecurityRuleAccess.const_get(e).to_s.downcase == deserialized_property.downcase }
150
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
145
+ warn 'Enum SecurityRuleAccess does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
151
146
  end
152
147
  output_object.access = deserialized_property
153
148
 
154
- deserialized_property = object['priority']
155
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
156
- output_object.priority = deserialized_property
157
-
158
149
  deserialized_property = object['direction']
159
150
  if (!deserialized_property.nil? && !deserialized_property.empty?)
160
151
  enum_is_valid = SecurityRuleDirection.constants.any? { |e| SecurityRuleDirection.const_get(e).to_s.downcase == deserialized_property.downcase }
161
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
152
+ warn 'Enum SecurityRuleDirection does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
162
153
  end
163
154
  output_object.direction = deserialized_property
164
155
 
156
+ deserialized_property = object['description']
157
+ output_object.description = deserialized_property
158
+
159
+ deserialized_property = object['sourcePortRange']
160
+ output_object.source_port_range = deserialized_property
161
+
162
+ deserialized_property = object['destinationPortRange']
163
+ output_object.destination_port_range = deserialized_property
164
+
165
+ deserialized_property = object['priority']
166
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
167
+ output_object.priority = deserialized_property
168
+
165
169
  deserialized_property = object['provisioningState']
166
170
  output_object.provisioning_state = deserialized_property
167
171
 
168
- output_object.validate
169
-
170
172
  output_object
171
173
  end
172
174
  end