Class: Google::Apis::CloudbuildV1alpha2::BuiltImage

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1alpha2/classes.rb,
generated/google/apis/cloudbuild_v1alpha2/representations.rb,
generated/google/apis/cloudbuild_v1alpha2/representations.rb

Overview

An image built by the pipeline.

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) ⇒ BuiltImage

Returns a new instance of BuiltImage.


589
590
591
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 589

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

Instance Attribute Details

#digestString

Docker Registry 2.0 digest. Corresponds to the JSON property digest

Returns:

  • (String)

576
577
578
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 576

def digest
  @digest
end

#nameString

Name used to push the container image to Google Container Registry, as presented to docker push. Corresponds to the JSON property name

Returns:

  • (String)

582
583
584
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 582

def name
  @name
end

#push_timingGoogle::Apis::CloudbuildV1alpha2::TimeSpan

Start and end times for a build execution phase. Corresponds to the JSON property pushTiming


587
588
589
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 587

def push_timing
  @push_timing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


594
595
596
597
598
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 594

def update!(**args)
  @digest = args[:digest] if args.key?(:digest)
  @name = args[:name] if args.key?(:name)
  @push_timing = args[:push_timing] if args.key?(:push_timing)
end