Sha256: 38a5e9bf554c2751af7a0890f20022ccd6b4f9c638c577487d39a9252e73c114

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module Fog
  module Resources
    class AzureRM
      class ResourceGroup < Fog::Model
        identity :name
        attribute :id
        attribute :location

        def save
          requires :name
          requires :location
          service.create_resource_group(name, location)
        end

        def destroy
          service.delete_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/resources/resource_group.rb
fog-azure-rm-0.0.0 lib/fog/azurerm/models/resources/resource_group.rb