Class: Google::Apis::CloudbuildV1::ArtifactObjects
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::ArtifactObjects
- Defined in:
- generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb
Overview
Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.
Instance Attribute Summary collapse
-
#location ⇒ String
Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/".
-
#paths ⇒ Array<String>
Path globs used to match files in the build's workspace.
-
#timing ⇒ Google::Apis::CloudbuildV1::TimeSpan
Start and end times for a build execution phase.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ArtifactObjects
constructor
A new instance of ArtifactObjects.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ArtifactObjects
Returns a new instance of ArtifactObjects
50 51 52 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 50 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ String
Cloud Storage bucket and optional object path, in the form
"gs://bucket/path/to/somewhere/". (see Bucket Name
Requirements
).
Files in the workspace matching any path pattern will be uploaded to
Cloud Storage with this location as a prefix.
Corresponds to the JSON property location
38 39 40 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 38 def location @location end |
#paths ⇒ Array<String>
Path globs used to match files in the build's workspace.
Corresponds to the JSON property paths
43 44 45 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 43 def paths @paths end |
#timing ⇒ Google::Apis::CloudbuildV1::TimeSpan
Start and end times for a build execution phase.
Corresponds to the JSON property timing
48 49 50 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 48 def timing @timing end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
55 56 57 58 59 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 55 def update!(**args) @location = args[:location] if args.key?(:location) @paths = args[:paths] if args.key?(:paths) @timing = args[:timing] if args.key?(:timing) end |