class Google::Apis::ContaineranalysisV1alpha1::RepoSource
RepoSource
describes the location of the source in a Google
Cloud Source
Repository.
Attributes
branch_name[RW]
Name of the branch to build. Corresponds to the JSON property `branchName` @return [String]
commit_sha[RW]
Explicit commit SHA to build. Corresponds to the JSON property `commitSha` @return [String]
project_id[RW]
ID of the project that owns the repo. Corresponds to the JSON property `projectId` @return [String]
repo_name[RW]
Name of the repo. Corresponds to the JSON property `repoName` @return [String]
tag_name[RW]
Name of the tag to build. Corresponds to the JSON property `tagName` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 3240 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 3245 def update!(**args) @branch_name = args[:branch_name] if args.key?(:branch_name) @commit_sha = args[:commit_sha] if args.key?(:commit_sha) @project_id = args[:project_id] if args.key?(:project_id) @repo_name = args[:repo_name] if args.key?(:repo_name) @tag_name = args[:tag_name] if args.key?(:tag_name) end