Class: Google::Apis::LoggingV2::SourceReference
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::SourceReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/logging_v2/classes.rb,
generated/google/apis/logging_v2/representations.rb,
generated/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
-
#repository ⇒ String
Optional.
-
#revision_id ⇒ String
The canonical and persistent identifier of the deployed revision.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceReference
constructor
A new instance of SourceReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceReference
Returns a new instance of SourceReference
1622 1623 1624 |
# File 'generated/google/apis/logging_v2/classes.rb', line 1622 def initialize(**args) update!(**args) end |
Instance Attribute Details
#repository ⇒ String
Optional. A URI string identifying the repository. Example: "https://github.
com/GoogleCloudPlatform/kubernetes.git"
Corresponds to the JSON property repository
1614 1615 1616 |
# File 'generated/google/apis/logging_v2/classes.rb', line 1614 def repository @repository end |
#revision_id ⇒ String
The canonical and persistent identifier of the deployed revision. Example (git)
: "0035781c50ec7aa23385dc841529ce8a4b70db1b"
Corresponds to the JSON property revisionId
1620 1621 1622 |
# File 'generated/google/apis/logging_v2/classes.rb', line 1620 def revision_id @revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1627 1628 1629 1630 |
# File 'generated/google/apis/logging_v2/classes.rb', line 1627 def update!(**args) @repository = args[:repository] if args.key?(:repository) @revision_id = args[:revision_id] if args.key?(:revision_id) end |