Class: Fog::Google::SQL::Users

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/google/models/sql/users.rb

Instance Method Summary collapse

Instance Method Details

#all(instance) ⇒ Array<Fog::Google::SQL::User>

Lists all Cloud SQL database users

Returns:


14
15
16
17
# File 'lib/fog/google/models/sql/users.rb', line 14

def all(instance)
  data = service.list_users(instance).to_h[:items] || []
  load(data)
end