Class: Azure::VirtualNetworkManagement::VirtualNetwork

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/virtual_network_management/virtual_network.rb

Overview

Represents a Virtual Network

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ VirtualNetwork

Returns a new instance of VirtualNetwork.

Yields:

  • (_self)

Yield Parameters:



20
21
22
23
24
25
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 20

def initialize
  yield self if block_given?
  @address_space = []
  @subnets = []
  @dns_servers = []
end

Instance Attribute Details

#address_spaceObject

Returns the value of attribute address_space.



30
31
32
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 30

def address_space
  @address_space
end

#affinity_groupObject

Returns the value of attribute affinity_group.



33
34
35
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 33

def affinity_group
  @affinity_group
end

#dns_serversObject

Returns the value of attribute dns_servers.



32
33
34
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 32

def dns_servers
  @dns_servers
end

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 29

def id
  @id
end

#locationObject

Returns the value of attribute location.



34
35
36
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 34

def location
  @location
end

#nameObject

Returns the value of attribute name.



27
28
29
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 27

def name
  @name
end

#stateObject

Returns the value of attribute state.



28
29
30
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 28

def state
  @state
end

#subnetsObject

Returns the value of attribute subnets.



31
32
33
# File 'lib/azure/virtual_network_management/virtual_network.rb', line 31

def subnets
  @subnets
end