Class: Azure::ARM::Network::Models::PublicIpAddressPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::PublicIpAddressPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb
Overview
PublicIpAddress properties
Instance Attribute Summary collapse
-
#dns_settings ⇒ PublicIpAddressDnsSettings
record associated with the public IP address.
-
#idle_timeout_in_minutes ⇒ Integer
Gets or sets the Idletimeout of the public IP address.
-
#ip_address ⇒ String
Gets the assigned public IP address.
-
#ip_configuration ⇒ SubResource
configurations using this public IP address.
-
#provisioning_state ⇒ String
resource Updating/Deleting/Failed.
-
#public_ipallocation_method ⇒ IpAllocationMethod
(Static/Dynamic).
Class Method Summary collapse
-
.deserialize_object(object) ⇒ PublicIpAddressPropertiesFormat
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
#dns_settings ⇒ PublicIpAddressDnsSettings
record associated with the public IP address
26 27 28 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 26 def dns_settings @dns_settings end |
#idle_timeout_in_minutes ⇒ Integer
Returns Gets or sets the Idletimeout of the public IP address.
32 33 34 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 32 def idle_timeout_in_minutes @idle_timeout_in_minutes end |
#ip_address ⇒ String
Returns Gets the assigned public IP address.
29 30 31 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 29 def ip_address @ip_address end |
#ip_configuration ⇒ SubResource
configurations using this public IP address
22 23 24 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 22 def ip_configuration @ip_configuration end |
#provisioning_state ⇒ String
resource Updating/Deleting/Failed
36 37 38 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 36 def provisioning_state @provisioning_state end |
#public_ipallocation_method ⇒ IpAllocationMethod
(Static/Dynamic). Possible values for this property include: ‘Static’, ‘Dynamic’.
18 19 20 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 18 def public_ipallocation_method @public_ipallocation_method end |
Class Method Details
.deserialize_object(object) ⇒ PublicIpAddressPropertiesFormat
Deserializes given Ruby Hash into Model object.
87 88 89 90 91 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 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 87 def self.deserialize_object(object) return if object.nil? output_object = PublicIpAddressPropertiesFormat.new deserialized_property = object['publicIPAllocationMethod'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = IpAllocationMethod.constants.any? { |e| IpAllocationMethod.const_get(e).to_s.downcase == deserialized_property.downcase } fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid end output_object.public_ipallocation_method = deserialized_property deserialized_property = object['ipConfiguration'] unless deserialized_property.nil? deserialized_property = SubResource.deserialize_object(deserialized_property) end output_object.ip_configuration = deserialized_property deserialized_property = object['dnsSettings'] unless deserialized_property.nil? deserialized_property = PublicIpAddressDnsSettings.deserialize_object(deserialized_property) end output_object.dns_settings = deserialized_property deserialized_property = object['ipAddress'] output_object.ip_address = deserialized_property deserialized_property = object['idleTimeoutInMinutes'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.idle_timeout_in_minutes = deserialized_property deserialized_property = object['provisioningState'] output_object.provisioning_state = deserialized_property output_object.validate output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
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 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 51 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.public_ipallocation_method output_object['publicIPAllocationMethod'] = serialized_property unless serialized_property.nil? serialized_property = object.ip_configuration unless serialized_property.nil? serialized_property = SubResource.serialize_object(serialized_property) end output_object['ipConfiguration'] = serialized_property unless serialized_property.nil? serialized_property = object.dns_settings unless serialized_property.nil? serialized_property = PublicIpAddressDnsSettings.serialize_object(serialized_property) end output_object['dnsSettings'] = serialized_property unless serialized_property.nil? serialized_property = object.ip_address output_object['ipAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.idle_timeout_in_minutes output_object['idleTimeoutInMinutes'] = 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.
41 42 43 44 |
# File 'lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb', line 41 def validate @ip_configuration.validate unless @ip_configuration.nil? @dns_settings.validate unless @dns_settings.nil? end |