Class: Azure::ARM::Network::Models::LocalNetworkGatewayPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::LocalNetworkGatewayPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb
Overview
LocalNetworkGateway properties
Instance Attribute Summary collapse
-
#bgp_settings ⇒ BgpSettings
Local network gateway’s BGP speaker settings.
-
#gateway_ip_address ⇒ String
IP address of local network gateway.
-
#local_network_address_space ⇒ AddressSpace
Local network site Address space.
-
#provisioning_state ⇒ String
LocalNetworkGateway resource Updating/Deleting/Failed.
-
#resource_guid ⇒ String
LocalNetworkGateway resource.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ LocalNetworkGatewayPropertiesFormat
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
#bgp_settings ⇒ BgpSettings
Returns Local network gateway’s BGP speaker settings.
22 23 24 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 22 def bgp_settings @bgp_settings end |
#gateway_ip_address ⇒ String
Returns IP address of local network gateway.
19 20 21 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 19 def gateway_ip_address @gateway_ip_address end |
#local_network_address_space ⇒ AddressSpace
Returns Local network site Address space.
16 17 18 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 16 def local_network_address_space @local_network_address_space end |
#provisioning_state ⇒ String
LocalNetworkGateway resource Updating/Deleting/Failed
30 31 32 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 30 def provisioning_state @provisioning_state end |
#resource_guid ⇒ String
LocalNetworkGateway resource
26 27 28 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 26 def resource_guid @resource_guid end |
Class Method Details
.deserialize_object(object) ⇒ LocalNetworkGatewayPropertiesFormat
Deserializes given Ruby Hash into Model object.
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 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 78 def self.deserialize_object(object) return if object.nil? output_object = LocalNetworkGatewayPropertiesFormat.new deserialized_property = object['localNetworkAddressSpace'] unless deserialized_property.nil? deserialized_property = AddressSpace.deserialize_object(deserialized_property) end output_object.local_network_address_space = deserialized_property deserialized_property = object['gatewayIpAddress'] output_object.gateway_ip_address = deserialized_property deserialized_property = object['bgpSettings'] unless deserialized_property.nil? deserialized_property = BgpSettings.deserialize_object(deserialized_property) end output_object.bgp_settings = deserialized_property deserialized_property = object['resourceGuid'] output_object.resource_guid = 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 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 45 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.local_network_address_space unless serialized_property.nil? serialized_property = AddressSpace.serialize_object(serialized_property) end output_object['localNetworkAddressSpace'] = serialized_property unless serialized_property.nil? serialized_property = object.gateway_ip_address output_object['gatewayIpAddress'] = serialized_property unless serialized_property.nil? serialized_property = object.bgp_settings unless serialized_property.nil? serialized_property = BgpSettings.serialize_object(serialized_property) end output_object['bgpSettings'] = serialized_property unless serialized_property.nil? serialized_property = object.resource_guid output_object['resourceGuid'] = 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.
35 36 37 38 |
# File 'lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb', line 35 def validate @local_network_address_space.validate unless @local_network_address_space.nil? @bgp_settings.validate unless @bgp_settings.nil? end |