Class: Azure::ARM::Network::Models::ApplicationGatewayUrlPathMap

Inherits:
MsRestAzure::SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_network/models/application_gateway_url_path_map.rb

Overview

UrlPathMap of application gateway

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#etagString

resource is updated

Returns:

  • (String)

    A unique read-only string that changes whenever the



24
25
26
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map.rb', line 24

def etag
  @etag
end

#nameString

resource group. This name can be used to access the resource

Returns:

  • (String)

    Gets name of the resource that is unique within a



20
21
22
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map.rb', line 20

def name
  @name
end

#propertiesApplicationGatewayUrlPathMapPropertiesFormat



16
17
18
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map.rb', line 16

def properties
  @properties
end

Class Method Details

.deserialize_object(object) ⇒ ApplicationGatewayUrlPathMap

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map.rb', line 65

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

  deserialized_property = object['id']
  output_object.id = deserialized_property

  deserialized_property = object['properties']
  unless deserialized_property.nil?
    deserialized_property = ApplicationGatewayUrlPathMapPropertiesFormat.deserialize_object(deserialized_property)
  end
  output_object.properties = deserialized_property

  deserialized_property = object['name']
  output_object.name = deserialized_property

  deserialized_property = object['etag']
  output_object.etag = deserialized_property

  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.



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map.rb', line 38

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

  serialized_property = object.id
  output_object['id'] = serialized_property unless serialized_property.nil?

  serialized_property = object.properties
  unless serialized_property.nil?
    serialized_property = ApplicationGatewayUrlPathMapPropertiesFormat.serialize_object(serialized_property)
  end
  output_object['properties'] = serialized_property unless serialized_property.nil?

  serialized_property = object.name
  output_object['name'] = serialized_property unless serialized_property.nil?

  serialized_property = object.etag
  output_object['etag'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



29
30
31
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map.rb', line 29

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