Sha256: 15d57d5cafb4e6ce91c96b940f28f7e4a178b20816e6472e67944129b282b78a

Contents?: true

Size: 428 Bytes

Versions: 26

Compression:

Stored size: 428 Bytes

Contents

module Fog
  module Compute
    class Google
      class Projects < Fog::Collection
        model Fog::Compute::Google::Project

        def get(identity)
          if identity
            project = service.get_project(identity).to_h
            return new(project)
          end
        rescue ::Google::Apis::ClientError => e
          raise e unless e.status_code == 404
          nil
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

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