Class: Google::Apis::CloudbuildV1::HybridPoolConfig

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

Overview

Configuration for a Hybrid Worker Pool Next ID: 6

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HybridPoolConfig

Returns a new instance of HybridPoolConfig.



2253
2254
2255
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2253

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

Instance Attribute Details

#default_worker_configGoogle::Apis::CloudbuildV1::HybridWorkerConfig

These settings can be applied to a user's build operations. Next ID: 4 Corresponds to the JSON property defaultWorkerConfig



2244
2245
2246
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2244

def default_worker_config
  @default_worker_config
end

#membershipString

Required. Immutable. The Anthos/GKE Hub membership of the cluster which will run the actual build operations. Example: projects/project/locations/ location/memberships/cluster_name Corresponds to the JSON property membership

Returns:

  • (String)


2251
2252
2253
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2251

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2258
2259
2260
2261
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2258

def update!(**args)
  @default_worker_config = args[:default_worker_config] if args.key?(:default_worker_config)
  @membership = args[:membership] if args.key?(:membership)
end