Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1ArtifactObjects

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

Overview

Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1ArtifactObjects

Returns a new instance of GoogleDevtoolsCloudbuildV1ArtifactObjects.



3377
3378
3379
# File 'lib/google/apis/run_v2/classes.rb', line 3377

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

Instance Attribute Details

#locationString

Cloud Storage bucket and optional object path, in the form "gs://bucket/path/ to/somewhere/". (see Bucket Name Requirements). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. Corresponds to the JSON property location

Returns:

  • (String)


3365
3366
3367
# File 'lib/google/apis/run_v2/classes.rb', line 3365

def location
  @location
end

#pathsArray<String>

Path globs used to match files in the build's workspace. Corresponds to the JSON property paths

Returns:

  • (Array<String>)


3370
3371
3372
# File 'lib/google/apis/run_v2/classes.rb', line 3370

def paths
  @paths
end

#timingGoogle::Apis::RunV2::GoogleDevtoolsCloudbuildV1TimeSpan

Start and end times for a build execution phase. Corresponds to the JSON property timing



3375
3376
3377
# File 'lib/google/apis/run_v2/classes.rb', line 3375

def timing
  @timing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3382
3383
3384
3385
3386
# File 'lib/google/apis/run_v2/classes.rb', line 3382

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @paths = args[:paths] if args.key?(:paths)
  @timing = args[:timing] if args.key?(:timing)
end