lib/fog/azurerm/models/resources/resource_group.rb in fog-azure-rm-0.1.1 vs lib/fog/azurerm/models/resources/resource_group.rb in fog-azure-rm-0.1.2
- old
+ new
@@ -1,32 +1,32 @@
-module Fog
- module Resources
- class AzureRM
- # This class is giving implementation of create/save and
- # delete/destroy for resource group.
- class ResourceGroup < Fog::Model
- identity :name
- attribute :id
- attribute :location
-
- def self.parse(resource_group)
- hash = {}
- hash['id'] = resource_group.id
- hash['name'] = resource_group.name
- hash['location'] = resource_group.location
- hash
- end
-
- def save
- requires :name
- requires :location
- resource_group = service.create_resource_group(name, location)
- merge_attributes(Fog::Resources::AzureRM::ResourceGroup.parse(resource_group))
- end
-
- def destroy
- service.delete_resource_group(name)
- end
- end
- end
- end
-end
+module Fog
+ module Resources
+ class AzureRM
+ # This class is giving implementation of create/save and
+ # delete/destroy for resource group.
+ class ResourceGroup < Fog::Model
+ identity :name
+ attribute :id
+ attribute :location
+
+ def self.parse(resource_group)
+ hash = {}
+ hash['id'] = resource_group.id
+ hash['name'] = resource_group.name
+ hash['location'] = resource_group.location
+ hash
+ end
+
+ def save
+ requires :name
+ requires :location
+ resource_group = service.create_resource_group(name, location)
+ merge_attributes(Fog::Resources::AzureRM::ResourceGroup.parse(resource_group))
+ end
+
+ def destroy
+ service.delete_resource_group(name)
+ end
+ end
+ end
+ end
+end