Sha256: cf7eed054c3d3402f4f06495f65b4057b811f5ade0b2329f4c9e8de6613bc7db

Contents?: true

Size: 465 Bytes

Versions: 41

Compression:

Stored size: 465 Bytes

Contents

require "fog/core/collection"
require "fog/google/models/sql/user"

module Fog
  module Google
    class SQL
      class Users < Fog::Collection
        model Fog::Google::SQL::User

        ##
        # Lists all Cloud SQL database users
        #
        # @return [Array<Fog::Google::SQL::User>] List of users
        def all(instance)
          data = service.list_users(instance).to_h[:items] || []
          load(data)
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/google/models/sql/users.rb
fog-google-1.24.0 lib/fog/google/models/sql/users.rb
fog-google-1.23.0 lib/fog/google/models/sql/users.rb
fog-google-1.22.0 lib/fog/google/models/sql/users.rb
fog-google-1.21.1 lib/fog/google/models/sql/users.rb
fog-google-1.21.0 lib/fog/google/models/sql/users.rb
fog-google-1.20.0 lib/fog/google/models/sql/users.rb
fog-google-1.19.0 lib/fog/google/models/sql/users.rb
fog-google-1.18.0 lib/fog/google/models/sql/users.rb
fog-google-1.17.0 lib/fog/google/models/sql/users.rb
fog-google-1.16.1 lib/fog/google/models/sql/users.rb
fog-google-1.16.0 lib/fog/google/models/sql/users.rb
fog-google-1.15.0 lib/fog/google/models/sql/users.rb
fog-google-1.14.0 lib/fog/google/models/sql/users.rb
gitlab-fog-google-1.14.0 lib/fog/google/models/sql/users.rb
fog-google-1.13.0 lib/fog/google/models/sql/users.rb
gitlab-fog-google-1.13.0 lib/fog/google/models/sql/users.rb
fog-google-1.12.1 lib/fog/google/models/sql/users.rb
fog-google-1.12.0 lib/fog/google/models/sql/users.rb
fog-google-1.11.0 lib/fog/google/models/sql/users.rb