Class: Google::Apis::CloudbuildV1alpha2::CreateWorkerPoolOperationMetadata

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

Overview

Metadata for the CreateWorkerPool operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateWorkerPoolOperationMetadata

Returns a new instance of CreateWorkerPoolOperationMetadata.



979
980
981
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 979

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

Instance Attribute Details

#complete_timeString

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

Returns:

  • (String)


966
967
968
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 966

def complete_time
  @complete_time
end

#create_timeString

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

Returns:

  • (String)


971
972
973
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 971

def create_time
  @create_time
end

#worker_poolString

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

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 977

def worker_pool
  @worker_pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



984
985
986
987
988
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 984

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