class Google::Apis::CloudbuildV1::GitFileSource
GitFileSource
describes a file within a (possibly remote) code repository.
Attributes
The path of the file, with the repo root as the root of the path. Corresponds to the JSON property `path` @return [String]
See RepoType above. Corresponds to the JSON property `repoType` @return [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: 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` @return [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` @return [String]
Public Class Methods
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1225 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1230 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