Class: Google::Apis::ReplicapoolV1beta2::SetTargetPoolsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetTargetPoolsRequest

Returns a new instance of SetTargetPoolsRequest.



280
281
282
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 280

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

Instance Attribute Details

#fingerprintString

The current fingerprint of the Instance Group Manager resource. If this does not match the server-side fingerprint of the resource, then the request will be rejected. Corresponds to the JSON property fingerprint

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 271

def fingerprint
  @fingerprint
end

#target_poolsArray<String>

A list of fully-qualified URLs to existing Target Pool resources. New instances in the Instance Group Manager will be added to the specified target pools; existing instances are not affected. Corresponds to the JSON property targetPools

Returns:

  • (Array<String>)


278
279
280
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 278

def target_pools
  @target_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



285
286
287
288
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 285

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