Sha256: ef3840c25d5b41d505506b26ca5a7a8193de450c55a9f4880ef80d3eb47e6df1

Contents?: true

Size: 444 Bytes

Versions: 41

Compression:

Stored size: 444 Bytes

Contents

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

module Fog
  module Google
    class SQL
      class Tiers < Fog::Collection
        model Fog::Google::SQL::Tier

        ##
        # Lists all available service tiers
        #
        # @return [Array<Fog::Google::SQL::Tier>] List of tiers
        def all
          data = service.list_tiers.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/tiers.rb
fog-google-1.24.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.23.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.22.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.21.1 lib/fog/google/models/sql/tiers.rb
fog-google-1.21.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.20.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.19.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.18.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.17.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.16.1 lib/fog/google/models/sql/tiers.rb
fog-google-1.16.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.15.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.14.0 lib/fog/google/models/sql/tiers.rb
gitlab-fog-google-1.14.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.13.0 lib/fog/google/models/sql/tiers.rb
gitlab-fog-google-1.13.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.12.1 lib/fog/google/models/sql/tiers.rb
fog-google-1.12.0 lib/fog/google/models/sql/tiers.rb
fog-google-1.11.0 lib/fog/google/models/sql/tiers.rb