Class: Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Location of the source in any accessible Git repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource

Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource.



2326
2327
2328
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2326

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dirString

Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. Corresponds to the JSON property dir

Returns:

  • (String)


2307
2308
2309
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2307

def dir
  @dir
end

#revisionString

Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses git fetch to fetch the revision from the Git repository; therefore make sure that the string you provide for revision is parsable by the command. For information on string values accepted by git fetch, see https://git-scm.com/docs/gitrevisions# _specifying_revisions. For information on git fetch, see https://git-scm.com/ docs/git-fetch. Corresponds to the JSON property revision

Returns:

  • (String)


2318
2319
2320
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2318

def revision
  @revision
end

#urlString

Required. Location of the Git repo to build. This will be used as a git remote, see https://git-scm.com/docs/git-remote. Corresponds to the JSON property url

Returns:

  • (String)


2324
2325
2326
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2324

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2331
2332
2333
2334
2335
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2331

def update!(**args)
  @dir = args[:dir] if args.key?(:dir)
  @revision = args[:revision] if args.key?(:revision)
  @url = args[:url] if args.key?(:url)
end