Class: Azure::ARM::Web::Models::VirtualNetworkProfile

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/virtual_network_profile.rb

Overview

Specification for using a virtual network

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idString

Returns Resource id of the virtual network.

Returns:

  • (String)

    Resource id of the virtual network



16
17
18
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 16

def id
  @id
end

#nameString

Returns Name of the virtual network (read-only).

Returns:

  • (String)

    Name of the virtual network (read-only)



19
20
21
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 19

def name
  @name
end

#subnetString

Returns Subnet within the virtual network.

Returns:

  • (String)

    Subnet within the virtual network



25
26
27
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 25

def subnet
  @subnet
end

#typeString

Returns Resource type of the virtual network (read-only).

Returns:

  • (String)

    Resource type of the virtual network (read-only)



22
23
24
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 22

def type
  @type
end

Class Method Details

.deserialize_object(object) ⇒ VirtualNetworkProfile

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 63

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

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

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

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

  deserialized_property = object['subnet']
  output_object.subnet = 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.



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

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.name
  output_object['name'] = serialized_property unless serialized_property.nil?

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

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

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



30
31
32
# File 'lib/azure_mgmt_web/models/virtual_network_profile.rb', line 30

def validate
  # Nothing to validate
end