Class: Google::Apis::CloudbuildV1alpha1::UpdateWorkerPoolOperationMetadata

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

Overview

Metadata for the UpdateWorkerPool operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateWorkerPoolOperationMetadata

Returns a new instance of UpdateWorkerPoolOperationMetadata.



1818
1819
1820
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1818

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

Instance Attribute Details

#complete_timeString

Time the operation was completed. Corresponds to the JSON property completeTime

Returns:

  • (String)


1805
1806
1807
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1805

def complete_time
  @complete_time
end

#create_timeString

Time the operation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1810
1811
1812
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1810

def create_time
  @create_time
end

#worker_poolString

The resource name of the WorkerPool being updated. Format: projects/ project/locations/location/workerPools/worker_pool`. Corresponds to the JSON propertyworkerPool`

Returns:

  • (String)


1816
1817
1818
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1816

def worker_pool
  @worker_pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1823
1824
1825
1826
1827
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1823

def update!(**args)
  @complete_time = args[:complete_time] if args.key?(:complete_time)
  @create_time = args[:create_time] if args.key?(:create_time)
  @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
end