Class: Azure::ARM::Network::Models::ApplicationGatewayIpConfigurationPropertiesFormat

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb

Overview

Properties of IP configuration of application gateway

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#provisioning_stateString

gateway subnet resource Updating/Deleting/Failed

Returns:

  • (String)

    Gets or sets Provisioning state of the application



22
23
24
# File 'lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb', line 22

def provisioning_state
  @provisioning_state
end

#subnetSubResource

resource.A subnet from where appliation gateway gets its private address

Returns:

  • (SubResource)

    Gets or sets the reference of the subnet



18
19
20
# File 'lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb', line 18

def subnet
  @subnet
end

Class Method Details

.deserialize_object(object) ⇒ ApplicationGatewayIpConfigurationPropertiesFormat

Deserializes given Ruby Hash into Model object. Deserialized object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb', line 58

def self.deserialize_object(object)
  return if object.nil?
  output_object = ApplicationGatewayIpConfigurationPropertiesFormat.new

  deserialized_property = object['subnet']
  unless deserialized_property.nil?
    deserialized_property = SubResource.deserialize_object(deserialized_property)
  end
  output_object.subnet = 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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of Ruby Hash.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb', line 36

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.subnet
  unless serialized_property.nil?
    serialized_property = SubResource.serialize_object(serialized_property)
  end
  output_object['subnet'] = 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

#validateObject

Validate the object. Throws ValidationError if validation fails.



27
28
29
# File 'lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb', line 27

def validate
  @subnet.validate unless @subnet.nil?
end