Sha256: e73c4b88762f71dbe572510ad278a59309ad1fc03429f0dc974ce8b2e7a2fcd8

Contents?: true

Size: 588 Bytes

Versions: 41

Compression:

Stored size: 588 Bytes

Contents

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

        ##
        # Fetches the representation of an existing Project
        #
        # @param [String] identity Project identity
        # @return [Fog::DNS::Google::Project] Project resource
        def get(identity)
          if project = service.get_project(identity).to_h
            new(project)
          end
        rescue ::Google::Apis::ClientError => e
          raise e unless e.status_code == 404
          nil
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

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