lib/fog/azurerm/models/sql/sql_database.rb in fog-azure-rm-0.3.3 vs lib/fog/azurerm/models/sql/sql_database.rb in fog-azure-rm-0.3.4

- old
+ new

@@ -21,17 +21,16 @@ attribute :max_size_bytes, aliases: %w(maxSizeBytes) attribute :requested_service_objective_id, aliases: %w(requestedServiceObjectiveId) attribute :requested_service_objective_name, aliases: %w(requestedServiceObjectiveName) attribute :service_level_objective, aliases: %w(serviceLevelObjective) attribute :source_database_id, aliases: %w(sourceDatabaseId) + attribute :tags def self.parse(database) database_hash = get_hash_from_object(database) - database_hash['resource_group'] = get_resource_group_from_id(database.id) database_hash['server_name'] = get_resource_from_resource_id(database.id, 8) - database_hash end def save requires :resource_group, :server_name, :name, :location @@ -56,10 +55,11 @@ source_database_id: source_database_id, collation: collation, max_size_bytes: max_size_bytes, requested_service_objective_name: requested_service_objective_name, elastic_pool_name: elastic_pool_name, - requested_service_objective_id: requested_service_objective_id + requested_service_objective_id: requested_service_objective_id, + tags: tags } end end end end