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,87 @@
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 ListAuthorizations Api service callRetrieves all
10
+ # authorizations that belongs to an ExpressRouteCircuit
11
+ #
12
+ class AuthorizationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<ExpressRouteCircuitAuthorization>] Gets the
17
+ # authorizations in an ExpressRoute Circuit
18
+ attr_accessor :value
19
+
20
+ # @return [String] Gets the URL to get the next set of results.
21
+ attr_accessor :next_link
22
+
23
+ #
24
+ # Validate the object. Throws ValidationError if validation fails.
25
+ #
26
+ def validate
27
+ @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
28
+ end
29
+
30
+ #
31
+ # Serializes given Model object into Ruby Hash.
32
+ # @param object Model object to serialize.
33
+ # @return [Hash] Serialized object in form of Ruby Hash.
34
+ #
35
+ def self.serialize_object(object)
36
+ object.validate
37
+ output_object = {}
38
+
39
+ serialized_property = object.value
40
+ unless serialized_property.nil?
41
+ serializedArray = []
42
+ serialized_property.each do |element|
43
+ unless element.nil?
44
+ element = ExpressRouteCircuitAuthorization.serialize_object(element)
45
+ end
46
+ serializedArray.push(element)
47
+ end
48
+ serialized_property = serializedArray
49
+ end
50
+ output_object['value'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.next_link
53
+ output_object['nextLink'] = serialized_property unless serialized_property.nil?
54
+
55
+ output_object
56
+ end
57
+
58
+ #
59
+ # Deserializes given Ruby Hash into Model object.
60
+ # @param object [Hash] Ruby Hash object to deserialize.
61
+ # @return [AuthorizationListResult] Deserialized object.
62
+ #
63
+ def self.deserialize_object(object)
64
+ return if object.nil?
65
+ output_object = AuthorizationListResult.new
66
+
67
+ deserialized_property = object['value']
68
+ unless deserialized_property.nil?
69
+ deserialized_array = []
70
+ deserialized_property.each do |element1|
71
+ unless element1.nil?
72
+ element1 = ExpressRouteCircuitAuthorization.deserialize_object(element1)
73
+ end
74
+ deserialized_array.push(element1)
75
+ end
76
+ deserialized_property = deserialized_array
77
+ end
78
+ output_object.value = deserialized_property
79
+
80
+ deserialized_property = object['nextLink']
81
+ output_object.next_link = deserialized_property
82
+
83
+ output_object
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,79 @@
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
+ # Model object.
10
+ #
11
+ class AuthorizationPropertiesFormat
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the authorization key
16
+ attr_accessor :authorization_key
17
+
18
+ # @return [AuthorizationUseStatus] Gets or sets AuthorizationUseStatus.
19
+ # Possible values include: 'Available', 'InUse'
20
+ attr_accessor :authorization_use_status
21
+
22
+ # @return [String] Gets or sets Provisioning state of the PublicIP
23
+ # resource Updating/Deleting/Failed
24
+ attr_accessor :provisioning_state
25
+
26
+ #
27
+ # Validate the object. Throws ValidationError if validation fails.
28
+ #
29
+ def validate
30
+ end
31
+
32
+ #
33
+ # Serializes given Model object into Ruby Hash.
34
+ # @param object Model object to serialize.
35
+ # @return [Hash] Serialized object in form of Ruby Hash.
36
+ #
37
+ def self.serialize_object(object)
38
+ object.validate
39
+ output_object = {}
40
+
41
+ serialized_property = object.authorization_key
42
+ output_object['authorizationKey'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.authorization_use_status
45
+ output_object['authorizationUseStatus'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.provisioning_state
48
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
49
+
50
+ output_object
51
+ end
52
+
53
+ #
54
+ # Deserializes given Ruby Hash into Model object.
55
+ # @param object [Hash] Ruby Hash object to deserialize.
56
+ # @return [AuthorizationPropertiesFormat] Deserialized object.
57
+ #
58
+ def self.deserialize_object(object)
59
+ return if object.nil?
60
+ output_object = AuthorizationPropertiesFormat.new
61
+
62
+ deserialized_property = object['authorizationKey']
63
+ output_object.authorization_key = deserialized_property
64
+
65
+ deserialized_property = object['authorizationUseStatus']
66
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
67
+ enum_is_valid = AuthorizationUseStatus.constants.any? { |e| AuthorizationUseStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
68
+ warn 'Enum AuthorizationUseStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
69
+ end
70
+ output_object.authorization_use_status = deserialized_property
71
+
72
+ deserialized_property = object['provisioningState']
73
+ output_object.provisioning_state = deserialized_property
74
+
75
+ output_object
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Defines values for AuthorizationUseStatus
10
+ #
11
+ module AuthorizationUseStatus
12
+ Available = "Available"
13
+ InUse = "InUse"
14
+ end
15
+ end
16
+ 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
 
@@ -19,8 +19,8 @@ module Azure::ARM::Network
19
19
 
20
20
  include MsRestAzure
21
21
 
22
- # @return [OperationStatus] Status of the AzureAsuncOperation. Possible
23
- # values for this property include: 'InProgress', 'Succeeded', 'Failed'.
22
+ # @return [NetworkOperationStatus] Status of the AzureAsuncOperation.
23
+ # Possible values include: 'InProgress', 'Succeeded', 'Failed'
24
24
  attr_accessor :status
25
25
 
26
26
  # @return [Error]
@@ -65,8 +65,8 @@ module Azure::ARM::Network
65
65
 
66
66
  deserialized_property = object['status']
67
67
  if (!deserialized_property.nil? && !deserialized_property.empty?)
68
- enum_is_valid = OperationStatus.constants.any? { |e| OperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
69
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
68
+ enum_is_valid = NetworkOperationStatus.constants.any? { |e| NetworkOperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
69
+ warn 'Enum NetworkOperationStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
70
70
  end
71
71
  output_object.status = deserialized_property
72
72
 
@@ -76,8 +76,6 @@ module Azure::ARM::Network
76
76
  end
77
77
  output_object.error = deserialized_property
78
78
 
79
- output_object.validate
80
-
81
79
  output_object
82
80
  end
83
81
  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
 
@@ -12,14 +12,18 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<SubResource>] Gets collection of references to IPs
16
- # defined in NICs
15
+ # @return [Array<NetworkInterfaceIPConfiguration>] Gets collection of
16
+ # references to IPs defined in NICs
17
17
  attr_accessor :backend_ipconfigurations
18
18
 
19
19
  # @return [Array<SubResource>] Gets Load Balancing rules that use this
20
20
  # Backend Address Pool
21
21
  attr_accessor :load_balancing_rules
22
22
 
23
+ # @return [SubResource] Gets outbound rules that use this Backend
24
+ # Address Pool
25
+ attr_accessor :outbound_nat_rule
26
+
23
27
  # @return [String] Provisioning state of the PublicIP resource
24
28
  # Updating/Deleting/Failed
25
29
  attr_accessor :provisioning_state
@@ -30,6 +34,7 @@ module Azure::ARM::Network
30
34
  def validate
31
35
  @backend_ipconfigurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @backend_ipconfigurations.nil?
32
36
  @load_balancing_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancing_rules.nil?
37
+ @outbound_nat_rule.validate unless @outbound_nat_rule.nil?
33
38
  end
34
39
 
35
40
  #
@@ -46,7 +51,7 @@ module Azure::ARM::Network
46
51
  serializedArray = []
47
52
  serialized_property.each do |element|
48
53
  unless element.nil?
49
- element = SubResource.serialize_object(element)
54
+ element = NetworkInterfaceIPConfiguration.serialize_object(element)
50
55
  end
51
56
  serializedArray.push(element)
52
57
  end
@@ -59,7 +64,7 @@ module Azure::ARM::Network
59
64
  serializedArray = []
60
65
  serialized_property.each do |element1|
61
66
  unless element1.nil?
62
- element1 = SubResource.serialize_object(element1)
67
+ element1 = MsRestAzure::SubResource.serialize_object(element1)
63
68
  end
64
69
  serializedArray.push(element1)
65
70
  end
@@ -67,6 +72,12 @@ module Azure::ARM::Network
67
72
  end
68
73
  output_object['loadBalancingRules'] = serialized_property unless serialized_property.nil?
69
74
 
75
+ serialized_property = object.outbound_nat_rule
76
+ unless serialized_property.nil?
77
+ serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
78
+ end
79
+ output_object['outboundNatRule'] = serialized_property unless serialized_property.nil?
80
+
70
81
  serialized_property = object.provisioning_state
71
82
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?
72
83
 
@@ -84,35 +95,39 @@ module Azure::ARM::Network
84
95
 
85
96
  deserialized_property = object['backendIPConfigurations']
86
97
  unless deserialized_property.nil?
87
- deserializedArray = [];
98
+ deserialized_array = []
88
99
  deserialized_property.each do |element2|
89
100
  unless element2.nil?
90
- element2 = SubResource.deserialize_object(element2)
101
+ element2 = NetworkInterfaceIPConfiguration.deserialize_object(element2)
91
102
  end
92
- deserializedArray.push(element2);
103
+ deserialized_array.push(element2)
93
104
  end
94
- deserialized_property = deserializedArray;
105
+ deserialized_property = deserialized_array
95
106
  end
96
107
  output_object.backend_ipconfigurations = deserialized_property
97
108
 
98
109
  deserialized_property = object['loadBalancingRules']
99
110
  unless deserialized_property.nil?
100
- deserializedArray = [];
111
+ deserialized_array = []
101
112
  deserialized_property.each do |element3|
102
113
  unless element3.nil?
103
- element3 = SubResource.deserialize_object(element3)
114
+ element3 = MsRestAzure::SubResource.deserialize_object(element3)
104
115
  end
105
- deserializedArray.push(element3);
116
+ deserialized_array.push(element3)
106
117
  end
107
- deserialized_property = deserializedArray;
118
+ deserialized_property = deserialized_array
108
119
  end
109
120
  output_object.load_balancing_rules = deserialized_property
110
121
 
122
+ deserialized_property = object['outboundNatRule']
123
+ unless deserialized_property.nil?
124
+ deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
125
+ end
126
+ output_object.outbound_nat_rule = deserialized_property
127
+
111
128
  deserialized_property = object['provisioningState']
112
129
  output_object.provisioning_state = deserialized_property
113
130
 
114
- output_object.validate
115
-
116
131
  output_object
117
132
  end
118
133
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,14 +12,15 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [ConnectionResetSharedKeyPropertiesFormat]
16
- attr_accessor :properties
15
+ # @return [Integer] The virtual network connection reset shared key
16
+ # length
17
+ attr_accessor :key_length
17
18
 
18
19
  #
19
20
  # Validate the object. Throws ValidationError if validation fails.
20
21
  #
21
22
  def validate
22
- @properties.validate unless @properties.nil?
23
+ # Nothing to validate
23
24
  end
24
25
 
25
26
  #
@@ -31,11 +32,8 @@ module Azure::ARM::Network
31
32
  object.validate
32
33
  output_object = {}
33
34
 
34
- serialized_property = object.properties
35
- unless serialized_property.nil?
36
- serialized_property = ConnectionResetSharedKeyPropertiesFormat.serialize_object(serialized_property)
37
- end
38
- output_object['properties'] = serialized_property unless serialized_property.nil?
35
+ serialized_property = object.key_length
36
+ output_object['keyLength'] = serialized_property unless serialized_property.nil?
39
37
 
40
38
  output_object
41
39
  end
@@ -49,13 +47,9 @@ module Azure::ARM::Network
49
47
  return if object.nil?
50
48
  output_object = ConnectionResetSharedKey.new
51
49
 
52
- deserialized_property = object['properties']
53
- unless deserialized_property.nil?
54
- deserialized_property = ConnectionResetSharedKeyPropertiesFormat.deserialize_object(deserialized_property)
55
- end
56
- output_object.properties = deserialized_property
57
-
58
- output_object.validate
50
+ deserialized_property = object['keyLength']
51
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
52
+ output_object.key_length = deserialized_property
59
53
 
60
54
  output_object
61
55
  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
 
@@ -49,8 +49,6 @@ module Azure::ARM::Network
49
49
  deserialized_property = object['value']
50
50
  output_object.value = deserialized_property
51
51
 
52
- output_object.validate
53
-
54
52
  output_object
55
53
  end
56
54
  end
@@ -1,20 +1,19 @@
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
 
6
6
  module Azure::ARM::Network
7
7
  module Models
8
8
  #
9
- # VirtualNeworkGatewayConnectionResetSharedKey properties
9
+ # Response for CheckConnectionSharedKey Api servive call
10
10
  #
11
- class ConnectionResetSharedKeyPropertiesFormat
11
+ class ConnectionSharedKeyResult
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Integer] The virtual network connection reset shared key
16
- # length
17
- attr_accessor :key_length
15
+ # @return [String] The virtual network connection shared key value
16
+ attr_accessor :value
18
17
 
19
18
  #
20
19
  # Validate the object. Throws ValidationError if validation fails.
@@ -32,8 +31,8 @@ module Azure::ARM::Network
32
31
  object.validate
33
32
  output_object = {}
34
33
 
35
- serialized_property = object.key_length
36
- output_object['keyLength'] = serialized_property unless serialized_property.nil?
34
+ serialized_property = object.value
35
+ output_object['value'] = serialized_property unless serialized_property.nil?
37
36
 
38
37
  output_object
39
38
  end
@@ -41,17 +40,14 @@ module Azure::ARM::Network
41
40
  #
42
41
  # Deserializes given Ruby Hash into Model object.
43
42
  # @param object [Hash] Ruby Hash object to deserialize.
44
- # @return [ConnectionResetSharedKeyPropertiesFormat] Deserialized object.
43
+ # @return [ConnectionSharedKeyResult] Deserialized object.
45
44
  #
46
45
  def self.deserialize_object(object)
47
46
  return if object.nil?
48
- output_object = ConnectionResetSharedKeyPropertiesFormat.new
47
+ output_object = ConnectionSharedKeyResult.new
49
48
 
50
- deserialized_property = object['keyLength']
51
- deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
52
- output_object.key_length = deserialized_property
53
-
54
- output_object.validate
49
+ deserialized_property = object['value']
50
+ output_object.value = deserialized_property
55
51
 
56
52
  output_object
57
53
  end