Class: Google::Apis::CloudbuildV1alpha1::ArtifactResult

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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ArtifactResult

Returns a new instance of ArtifactResult.



79
80
81
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 79

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

Instance Attribute Details

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

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



70
71
72
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 70

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)


77
78
79
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 77

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84
85
86
87
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 84

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