Class: Google::Apis::CloudbuildV1::GitFileSource
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::GitFileSource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
GitFileSource describes a file within a (possibly remote) code repository.
Instance Attribute Summary collapse
-
#path ⇒ String
The path of the file, with the repo root as the root of the path.
-
#repo_type ⇒ String
See RepoType above.
-
#revision ⇒ String
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional).
-
#uri ⇒ String
The URI of the repo (optional).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitFileSource
constructor
A new instance of GitFileSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GitFileSource
Returns a new instance of GitFileSource.
1812 1813 1814 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1812 def initialize(**args) update!(**args) end |
Instance Attribute Details
#path ⇒ String
The path of the file, with the repo root as the root of the path.
Corresponds to the JSON property path
1789 1790 1791 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1789 def path @path end |
#repo_type ⇒ String
See RepoType above.
Corresponds to the JSON property repoType
1794 1795 1796 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1794 def repo_type @repo_type end |
#revision ⇒ String
The branch, tag, arbitrary ref, or SHA version of the repo to use when
resolving the filename (optional). This field respects the same syntax/
resolution as described here: https://git-scm.com/docs/gitrevisions If
unspecified, the revision from which the trigger invocation originated is
assumed to be the revision from which to read the specified path.
Corresponds to the JSON property revision
1803 1804 1805 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1803 def revision @revision end |
#uri ⇒ String
The URI of the repo (optional). If unspecified, the repo from which the
trigger invocation originated is assumed to be the repo from which to read the
specified path.
Corresponds to the JSON property uri
1810 1811 1812 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1810 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1817 1818 1819 1820 1821 1822 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1817 def update!(**args) @path = args[:path] if args.key?(:path) @repo_type = args[:repo_type] if args.key?(:repo_type) @revision = args[:revision] if args.key?(:revision) @uri = args[:uri] if args.key?(:uri) end |