Sha256: e62f79d2a7933f6a1b3fb524047289b4e3eb3ed5bc79e02d4300aafd2771d8b3

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # PublicIP model class for Network Service
      class PublicIp < Fog::Model
        identity :name
        attribute :type
        attribute :location
        attribute :resource_group

        def save
          requires :name
          requires :type
          requires :location
          requires :resource_group

          service.create_public_ip(resource_group, name, location, type)
        end

        def destroy
          service.delete_public_ip(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.1 lib/fog/azurerm/models/network/public_ip.rb