Sha256: 6602326f9f4c2e8ef300017b246a8dcdde904a9f53d93058c7367f1b130c48d1
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
module Fog module Network class AzureRM class VirtualNetwork < Fog::Model identity :name attribute :id attribute :location attribute :dns_list attribute :subnet_address_list attribute :network_address_list attribute :resource_group attribute :properties def save requires :name requires :location requires :resource_group Fog::Logger.debug "Creating Virtual Network: #{name}..." virtual_network = service.create_virtual_network(name, location, resource_group, dns_list, subnet_address_list, network_address_list) Fog::Logger.debug "Virtual Network #{name} created successfully." virtual_network end def destroy service.delete_virtual_network(resource_group, name) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/models/network/virtual_network.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/models/network/virtual_network.rb |