Sha256: 0516850edf40ff6a3766cb1875f06149b5ff88110db50f841bd6b1e2aca655e9

Contents?: true

Size: 865 Bytes

Versions: 14

Compression:

Stored size: 865 Bytes

Contents

module Fog
  module Compute
    class Google
      ##
      # Represents a Project resource
      #
      # @see https://developers.google.com/compute/docs/reference/latest/projects
      class Project < Fog::Model
        identity :name

        attribute :kind
        attribute :id
        attribute :common_instance_metadata, :aliases => "commonInstanceMetadata"
        attribute :creation_timestamp, :aliases => "creationTimestamp"
        attribute :description
        attribute :quotas
        attribute :self_link, :aliases => "selfLink"

        def set_metadata(metadata = {})
          requires :identity

          data = service.set_common_instance_metadata(identity, common_instance_metadata["fingerprint"], metadata)
          Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"])
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/models/project.rb
fog-google-0.5.5 lib/fog/compute/google/models/project.rb
fog-google-0.5.4 lib/fog/compute/google/models/project.rb
fog-google-0.5.3 lib/fog/compute/google/models/project.rb
fog-google-0.5.2 lib/fog/compute/google/models/project.rb
fog-google-0.5.1 lib/fog/compute/google/models/project.rb
fog-google-0.5.0 lib/fog/compute/google/models/project.rb
fog-google-0.4.2 lib/fog/compute/google/models/project.rb
fog-google-0.4.1 lib/fog/compute/google/models/project.rb
fog-google-0.4.0 lib/fog/compute/google/models/project.rb
fog-google-0.3.2 lib/fog/compute/google/models/project.rb
fog-google-0.3.1 lib/fog/compute/google/models/project.rb
fog-google-0.3.0 lib/fog/compute/google/models/project.rb
fog-google-0.2.0 lib/fog/compute/google/models/project.rb