Class: Google::Apis::CloudbuildV1::ArtifactResult

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

An artifact that was uploaded during a build. This is a single record in the artifact manifest JSON file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ArtifactResult

Returns a new instance of ArtifactResult.



165
166
167
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 165

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

Instance Attribute Details

#file_hashArray<Google::Apis::CloudbuildV1::FileHashes>

The file hash of the artifact. Corresponds to the JSON property fileHash



157
158
159
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 157

def file_hash
  @file_hash
end

#locationString

The path of an artifact in a Cloud Storage bucket, with the generation number. For example, gs://mybucket/path/to/output.jar#generation. Corresponds to the JSON property location

Returns:

  • (String)


163
164
165
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 163

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



170
171
172
173
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 170

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