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



282
283
284
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 282

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 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 273

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


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

def target_pools
  @target_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



287
288
289
290
# File 'generated/google/apis/replicapool_v1beta2/classes.rb', line 287

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