Class: Google::Apis::CloudbuildV1alpha1::ArtifactResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha1::ArtifactResult
- 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
-
#file_hash ⇒ Array<Google::Apis::CloudbuildV1alpha1::FileHashes>
The file hash of the artifact.
-
#location ⇒ String
The path of an artifact in a Google Cloud Storage bucket, with the generation number.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ArtifactResult
constructor
A new instance of ArtifactResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ArtifactResult
Returns a new instance of ArtifactResult.
76 77 78 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 76 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_hash ⇒ Array<Google::Apis::CloudbuildV1alpha1::FileHashes>
The file hash of the artifact.
Corresponds to the JSON property fileHash
68 69 70 |
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 68 def file_hash @file_hash end |
#location ⇒ String
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
74 75 76 |
# File 'generated/google/apis/cloudbuild_v1alpha1/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_v1alpha1/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 |