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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/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.



76
77
78
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 76

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



68
69
70
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 68

def file_hash
  @file_hash
end

#locationString

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

Returns:

  • (String)


74
75
76
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 74

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



81
82
83
84
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 81

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