Class: Google::Apis::CloudbuildV1::GenericArtifactDependency

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

Overview

Represents a generic artifact as a build dependency.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenericArtifactDependency

Returns a new instance of GenericArtifactDependency.



2253
2254
2255
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2253

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)


2245
2246
2247
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2245

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)


2251
2252
2253
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2251

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2258
2259
2260
2261
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2258

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