Class: Google::Apis::LoggingV1beta3::SourceReference

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

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceReference

Returns a new instance of SourceReference



1067
1068
1069
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 1067

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)


1059
1060
1061
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 1059

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)


1065
1066
1067
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 1065

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1072
1073
1074
1075
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 1072

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