Class: Google::Apis::LoggingV2::SourceReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/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.



3821
3822
3823
# File 'lib/google/apis/logging_v2/classes.rb', line 3821

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)


3813
3814
3815
# File 'lib/google/apis/logging_v2/classes.rb', line 3813

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)


3819
3820
3821
# File 'lib/google/apis/logging_v2/classes.rb', line 3819

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3826
3827
3828
3829
# File 'lib/google/apis/logging_v2/classes.rb', line 3826

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