Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1GenericArtifactDependency

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

Represents a generic artifact as a build dependency.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1GenericArtifactDependency

Returns a new instance of GoogleDevtoolsCloudbuildV1GenericArtifactDependency.



5767
5768
5769
# File 'lib/google/apis/run_v2/classes.rb', line 5767

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

Instance Attribute Details

#dest_pathString

Required. Where the artifact files should be placed on the worker. Corresponds to the JSON property destPath

Returns:

  • (String)


5759
5760
5761
# File 'lib/google/apis/run_v2/classes.rb', line 5759

def dest_path
  @dest_path
end

#resourceString

Required. The location to download the artifact files from. Ex: projects/p1/ locations/us/repositories/r1/packages/p1/versions/v1 Corresponds to the JSON property resource

Returns:

  • (String)


5765
5766
5767
# File 'lib/google/apis/run_v2/classes.rb', line 5765

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5772
5773
5774
5775
# File 'lib/google/apis/run_v2/classes.rb', line 5772

def update!(**args)
  @dest_path = args[:dest_path] if args.key?(:dest_path)
  @resource = args[:resource] if args.key?(:resource)
end