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.10.0 lib/fog/dns/google/models/projects.rb
fog-google-1.9.1 lib/fog/dns/google/models/projects.rb
fog-google-1.9.0 lib/fog/dns/google/models/projects.rb
fog-google-1.8.2 lib/fog/dns/google/models/projects.rb
fog-google-1.8.1 lib/fog/dns/google/models/projects.rb
fog-google-1.8.0 lib/fog/dns/google/models/projects.rb
fog-google-1.7.1 lib/fog/dns/google/models/projects.rb
fog-google-1.7.0 lib/fog/dns/google/models/projects.rb
fog-google-1.6.0 lib/fog/dns/google/models/projects.rb
fog-google-1.5.0 lib/fog/dns/google/models/projects.rb
fog-google-1.4.0 lib/fog/dns/google/models/projects.rb
fog-google-1.3.3 lib/fog/dns/google/models/projects.rb
fog-google-1.3.2 lib/fog/dns/google/models/projects.rb
fog-google-1.3.1 lib/fog/dns/google/models/projects.rb
fog-google-1.3.0 lib/fog/dns/google/models/projects.rb
fog-google-1.2.2 lib/fog/dns/google/models/projects.rb
fog-google-1.2.1 lib/fog/dns/google/models/projects.rb
fog-google-1.2.0 lib/fog/dns/google/models/projects.rb
fog-google-1.1.0 lib/fog/dns/google/models/projects.rb
fog-google-1.0.1 lib/fog/dns/google/models/projects.rb