Class: Azure::ARM::Network::Models::BackendAddressPoolPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::BackendAddressPoolPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb
Overview
Properties of BackendAddressPool
Instance Attribute Summary collapse
-
#backend_ipconfigurations ⇒ Array<NetworkInterfaceIPConfiguration>
references to IPs defined in NICs.
-
#load_balancing_rules ⇒ Array<SubResource>
Backend Address Pool.
-
#outbound_nat_rule ⇒ SubResource
Address Pool.
-
#provisioning_state ⇒ String
Updating/Deleting/Failed.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ BackendAddressPoolPropertiesFormat
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#backend_ipconfigurations ⇒ Array<NetworkInterfaceIPConfiguration>
references to IPs defined in NICs
17 18 19 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 17 def backend_ipconfigurations @backend_ipconfigurations end |
#load_balancing_rules ⇒ Array<SubResource>
Backend Address Pool
21 22 23 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 21 def load_balancing_rules @load_balancing_rules end |
#outbound_nat_rule ⇒ SubResource
Address Pool
25 26 27 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 25 def outbound_nat_rule @outbound_nat_rule end |
#provisioning_state ⇒ String
Updating/Deleting/Failed
29 30 31 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 29 def provisioning_state @provisioning_state end |
Class Method Details
.deserialize_object(object) ⇒ BackendAddressPoolPropertiesFormat
Deserializes given Ruby Hash into Model object.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 92 def self.deserialize_object(object) return if object.nil? output_object = BackendAddressPoolPropertiesFormat.new deserialized_property = object['backendIPConfigurations'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element2| unless element2.nil? element2 = NetworkInterfaceIPConfiguration.deserialize_object(element2) end deserialized_array.push(element2) end deserialized_property = deserialized_array end output_object.backend_ipconfigurations = deserialized_property deserialized_property = object['loadBalancingRules'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element3| unless element3.nil? element3 = MsRestAzure::SubResource.deserialize_object(element3) end deserialized_array.push(element3) end deserialized_property = deserialized_array end output_object.load_balancing_rules = deserialized_property deserialized_property = object['outboundNatRule'] unless deserialized_property.nil? deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property) end output_object.outbound_nat_rule = deserialized_property deserialized_property = object['provisioningState'] output_object.provisioning_state = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 45 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.backend_ipconfigurations unless serialized_property.nil? serializedArray = [] serialized_property.each do |element| unless element.nil? element = NetworkInterfaceIPConfiguration.serialize_object(element) end serializedArray.push(element) end serialized_property = serializedArray end output_object['backendIPConfigurations'] = serialized_property unless serialized_property.nil? serialized_property = object.load_balancing_rules unless serialized_property.nil? serializedArray = [] serialized_property.each do |element1| unless element1.nil? element1 = MsRestAzure::SubResource.serialize_object(element1) end serializedArray.push(element1) end serialized_property = serializedArray end output_object['loadBalancingRules'] = serialized_property unless serialized_property.nil? serialized_property = object.outbound_nat_rule unless serialized_property.nil? serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property) end output_object['outboundNatRule'] = serialized_property unless serialized_property.nil? serialized_property = object.provisioning_state output_object['provisioningState'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
34 35 36 37 38 |
# File 'lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb', line 34 def validate @backend_ipconfigurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @backend_ipconfigurations.nil? @load_balancing_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancing_rules.nil? @outbound_nat_rule.validate unless @outbound_nat_rule.nil? end |