Class: Azure::ARM::Network::Models::ApplicationGatewayFrontendIPConfigurationPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::ApplicationGatewayFrontendIPConfigurationPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb
Overview
Properties of Frontend IP configuration of application gateway
Instance Attribute Summary collapse
-
#private_ipaddress ⇒ String
Interface IP Configuration.
-
#private_ipallocation_method ⇒ IPAllocationMethod
(Static/Dynamic).
-
#provisioning_state ⇒ String
resource Updating/Deleting/Failed.
-
#public_ipaddress ⇒ SubResource
resource.
-
#subnet ⇒ SubResource
Gets or sets the reference of the subnet resource.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ApplicationGatewayFrontendIPConfigurationPropertiesFormat
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
#private_ipaddress ⇒ String
Interface IP Configuration
17 18 19 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 17 def private_ipaddress @private_ipaddress end |
#private_ipallocation_method ⇒ IPAllocationMethod
(Static/Dynamic). Possible values include: ‘Static’, ‘Dynamic’
21 22 23 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 21 def private_ipallocation_method @private_ipallocation_method end |
#provisioning_state ⇒ String
resource Updating/Deleting/Failed
32 33 34 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 32 def provisioning_state @provisioning_state end |
#public_ipaddress ⇒ SubResource
resource
28 29 30 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 28 def public_ipaddress @public_ipaddress end |
#subnet ⇒ SubResource
Returns Gets or sets the reference of the subnet resource.
24 25 26 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 24 def subnet @subnet end |
Class Method Details
.deserialize_object(object) ⇒ ApplicationGatewayFrontendIPConfigurationPropertiesFormat
Deserializes given Ruby Hash into Model object. Deserialized object.
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 107 108 109 110 111 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 81 def self.deserialize_object(object) return if object.nil? output_object = ApplicationGatewayFrontendIPConfigurationPropertiesFormat.new 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 = MsRestAzure::SubResource.deserialize_object(deserialized_property) end output_object.subnet = deserialized_property deserialized_property = object['publicIPAddress'] unless deserialized_property.nil? deserialized_property = MsRestAzure::SubResource.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.
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 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 47 def self.serialize_object(object) object.validate output_object = {} 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 = MsRestAzure::SubResource.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 = MsRestAzure::SubResource.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.
37 38 39 40 |
# File 'lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb', line 37 def validate @subnet.validate unless @subnet.nil? @public_ipaddress.validate unless @public_ipaddress.nil? end |