Class: Google::Apis::RetailV2::GoogleCloudRetailV2AddControlRequest

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

Overview

Request for AddControl method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2AddControlRequest

Returns a new instance of GoogleCloudRetailV2AddControlRequest.



312
313
314
# File 'lib/google/apis/retail_v2/classes.rb', line 312

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

Instance Attribute Details

#control_idString

Required. The id of the control to apply. Assumed to be in the same catalog as the serving config - if id is not found a NOT_FOUND error is returned. Corresponds to the JSON property controlId

Returns:

  • (String)


310
311
312
# File 'lib/google/apis/retail_v2/classes.rb', line 310

def control_id
  @control_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



317
318
319
# File 'lib/google/apis/retail_v2/classes.rb', line 317

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