Class: Azure::ARM::Network::Models::NetworkInterfaceIPConfigurationPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::NetworkInterfaceIPConfigurationPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb
Overview
Properties of IPConfiguration
Instance Attribute Summary collapse
-
#load_balancer_backend_address_pools ⇒ Array<BackendAddressPool>
LoadBalancerBackendAddressPool resource.
-
#load_balancer_inbound_nat_rules ⇒ Array<InboundNatRule>
LoadBalancerInboundNatRules.
- #private_ipaddress ⇒ String
-
#private_ipallocation_method ⇒ IPAllocationMethod
(Static/Dynamic).
- #provisioning_state ⇒ String
- #public_ipaddress ⇒ PublicIPAddress
- #subnet ⇒ Subnet
Class Method Summary collapse
-
.deserialize_object(object) ⇒ NetworkInterfaceIPConfigurationPropertiesFormat
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
#load_balancer_backend_address_pools ⇒ Array<BackendAddressPool>
LoadBalancerBackendAddressPool resource
17 18 19 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 17 def load_balancer_backend_address_pools @load_balancer_backend_address_pools end |
#load_balancer_inbound_nat_rules ⇒ Array<InboundNatRule>
LoadBalancerInboundNatRules
21 22 23 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 21 def load_balancer_inbound_nat_rules @load_balancer_inbound_nat_rules end |
#private_ipaddress ⇒ String
24 25 26 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 24 def private_ipaddress @private_ipaddress end |
#private_ipallocation_method ⇒ IPAllocationMethod
(Static/Dynamic). Possible values include: ‘Static’, ‘Dynamic’
28 29 30 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 28 def private_ipallocation_method @private_ipallocation_method end |
#provisioning_state ⇒ String
37 38 39 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 37 def provisioning_state @provisioning_state end |
#public_ipaddress ⇒ PublicIPAddress
34 35 36 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 34 def public_ipaddress @public_ipaddress end |
#subnet ⇒ Subnet
31 32 33 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 31 def subnet @subnet end |
Class Method Details
.deserialize_object(object) ⇒ NetworkInterfaceIPConfigurationPropertiesFormat
Deserializes given Ruby Hash into Model object. object.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 114 def self.deserialize_object(object) return if object.nil? output_object = NetworkInterfaceIPConfigurationPropertiesFormat.new deserialized_property = object['loadBalancerBackendAddressPools'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element2| unless element2.nil? element2 = BackendAddressPool.deserialize_object(element2) end deserialized_array.push(element2) end deserialized_property = deserialized_array end output_object.load_balancer_backend_address_pools = deserialized_property deserialized_property = object['loadBalancerInboundNatRules'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element3| unless element3.nil? element3 = InboundNatRule.deserialize_object(element3) end deserialized_array.push(element3) end deserialized_property = deserialized_array end output_object.load_balancer_inbound_nat_rules = deserialized_property deserialized_property = object['privateIPAddress'] output_object.private_ipaddress = deserialized_property deserialized_property = object['privateIPAllocationMethod'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = IPAllocationMethod.constants.any? { |e| IPAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase } warn 'Enum IPAllocationMethod does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid end output_object.private_ipallocation_method = deserialized_property deserialized_property = object['subnet'] unless deserialized_property.nil? deserialized_property = Subnet.deserialize_object(deserialized_property) end output_object.subnet = deserialized_property deserialized_property = object['publicIPAddress'] unless deserialized_property.nil? deserialized_property = PublicIPAddress.deserialize_object(deserialized_property) end output_object.public_ipaddress = 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.
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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 54 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.load_balancer_backend_address_pools unless serialized_property.nil? serializedArray = [] serialized_property.each do |element| unless element.nil? element = BackendAddressPool.serialize_object(element) end serializedArray.push(element) end serialized_property = serializedArray end output_object['loadBalancerBackendAddressPools'] = serialized_property unless serialized_property.nil? serialized_property = object.load_balancer_inbound_nat_rules unless serialized_property.nil? serializedArray = [] serialized_property.each do |element1| unless element1.nil? element1 = InboundNatRule.serialize_object(element1) end serializedArray.push(element1) end serialized_property = serializedArray end output_object['loadBalancerInboundNatRules'] = serialized_property unless serialized_property.nil? serialized_property = object.private_ipaddress output_object['privateIPAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.private_ipallocation_method output_object['privateIPAllocationMethod'] = serialized_property unless serialized_property.nil? serialized_property = object.subnet unless serialized_property.nil? serialized_property = Subnet.serialize_object(serialized_property) end output_object['subnet'] = serialized_property unless serialized_property.nil? serialized_property = object.public_ipaddress unless serialized_property.nil? serialized_property = PublicIPAddress.serialize_object(serialized_property) end output_object['publicIPAddress'] = 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.
42 43 44 45 46 47 |
# File 'lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb', line 42 def validate @load_balancer_backend_address_pools.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancer_backend_address_pools.nil? @load_balancer_inbound_nat_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancer_inbound_nat_rules.nil? @subnet.validate unless @subnet.nil? @public_ipaddress.validate unless @public_ipaddress.nil? end |