lib/fog/azurerm/models/sql/sql_server.rb in fog-azure-rm-0.3.3 vs lib/fog/azurerm/models/sql/sql_server.rb in fog-azure-rm-0.3.4
- old
+ new
@@ -11,15 +11,15 @@
attribute :version
attribute :state
attribute :administrator_login
attribute :administrator_login_password
attribute :fully_qualified_domain_name, aliases: %w(fullyQualifiedDomainName)
+ attribute :tags
def self.parse(server)
sql_server_hash = get_hash_from_object(server)
sql_server_hash['resource_group'] = get_resource_group_from_id(server.id)
-
sql_server_hash
end
def save
requires :name, :resource_group, :location, :version, :administrator_login, :administrator_login_password
@@ -38,10 +38,11 @@
resource_group: resource_group,
name: name,
version: version,
location: location,
administrator_login: administrator_login,
- administrator_login_password: administrator_login_password
+ administrator_login_password: administrator_login_password,
+ tags: tags
}
end
end
end
end