Class: Azure::ARM::Web::Models::AddressResponse
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::AddressResponse
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/address_response.rb
Overview
Describes main public ip address and any extra vips
Instance Attribute Summary collapse
-
#internal_ip_address ⇒ String
(App Service Environment) if it is in internal load-balancing mode.
-
#outbound_ip_addresses ⇒ Array<String>
IP addresses appearing on outbound connections.
-
#service_ip_address ⇒ String
Main public vip.
-
#vip_mappings ⇒ Array<VirtualIPMapping>
Additional vips.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ AddressResponse
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
#internal_ip_address ⇒ String
(App Service Environment) if it is in internal load-balancing mode
20 21 22 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 20 def internal_ip_address @internal_ip_address end |
#outbound_ip_addresses ⇒ Array<String>
Returns IP addresses appearing on outbound connections.
23 24 25 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 23 def outbound_ip_addresses @outbound_ip_addresses end |
#service_ip_address ⇒ String
Returns Main public vip.
16 17 18 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 16 def service_ip_address @service_ip_address end |
#vip_mappings ⇒ Array<VirtualIPMapping>
Returns Additional vips.
26 27 28 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 26 def vip_mappings @vip_mappings end |
Class Method Details
.deserialize_object(object) ⇒ AddressResponse
Deserializes given Ruby Hash into Model object.
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 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 75 def self.deserialize_object(object) return if object.nil? output_object = AddressResponse.new deserialized_property = object['serviceIpAddress'] output_object.service_ip_address = deserialized_property deserialized_property = object['internalIpAddress'] output_object.internal_ip_address = deserialized_property deserialized_property = object['outboundIpAddresses'] output_object.outbound_ip_addresses = deserialized_property deserialized_property = object['vipMappings'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element3| unless element3.nil? element3 = VirtualIPMapping.deserialize_object(element3) end deserialized_array.push(element3) end deserialized_property = deserialized_array end output_object.vip_mappings = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 41 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.service_ip_address output_object['serviceIpAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.internal_ip_address output_object['internalIpAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.outbound_ip_addresses output_object['outboundIpAddresses'] = serialized_property unless serialized_property.nil? serialized_property = object.vip_mappings unless serialized_property.nil? serializedArray = [] serialized_property.each do |element1| unless element1.nil? element1 = VirtualIPMapping.serialize_object(element1) end serializedArray.push(element1) end serialized_property = serializedArray end output_object['vipMappings'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
31 32 33 34 |
# File 'lib/azure_mgmt_web/models/address_response.rb', line 31 def validate @outbound_ip_addresses.each{ |e| e.validate if e.respond_to?(:validate) } unless @outbound_ip_addresses.nil? @vip_mappings.each{ |e| e.validate if e.respond_to?(:validate) } unless @vip_mappings.nil? end |