Sha256: 45f1ea9f93b6eee60d6ab1da81d2730d6b6104e01c9e7f3b355bb51154f3d8b3
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
module Fog module Network class AzureRM # NetworkInterface model class for Network Service class NetworkInterface < Fog::Model identity :name attribute :location attribute :resource_group attribute :subnet_id attribute :ip_configuration_name attribute :private_ip_allocation_method attribute :properties def save requires :name requires :location requires :resource_group requires :subnet_id requires :ip_configuration_name requires :private_ip_allocation_method Fog::Logger.debug "Creating Network Interface Card: #{name}..." network_interface = service.create_network_interface(name, location, resource_group, subnet_id, ip_configuration_name, private_ip_allocation_method) Fog::Logger.debug "Network Interface #{name} created successfully." network_interface end def destroy service.delete_network_interface(resource_group, name) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.0 | lib/fog/azurerm/models/network/network_interface.rb |