Class: Google::Apis::ClouderrorreportingV1beta1::SourceReference

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/clouderrorreporting_v1beta1/classes.rb,
lib/google/apis/clouderrorreporting_v1beta1/representations.rb,
lib/google/apis/clouderrorreporting_v1beta1/representations.rb

Overview

A reference to a particular snapshot of the source tree used to build and deploy an application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceReference

Returns a new instance of SourceReference.



557
558
559
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 557

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#repositoryString

Optional. A URI string identifying the repository. Example: "https://github. com/GoogleCloudPlatform/kubernetes.git" Corresponds to the JSON property repository

Returns:

  • (String)


549
550
551
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 549

def repository
  @repository
end

#revision_idString

The canonical and persistent identifier of the deployed revision. Example (git) : "0035781c50ec7aa23385dc841529ce8a4b70db1b" Corresponds to the JSON property revisionId

Returns:

  • (String)


555
556
557
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 555

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



562
563
564
565
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 562

def update!(**args)
  @repository = args[:repository] if args.key?(:repository)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end