Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddControlRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddControlRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Request for AddControl method.
Instance Attribute Summary collapse
-
#control_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAddControlRequest
constructor
A new instance of GoogleCloudRetailV2alphaAddControlRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAddControlRequest
Returns a new instance of GoogleCloudRetailV2alphaAddControlRequest.
1206 1207 1208 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1206 def initialize(**args) update!(**args) end |
Instance Attribute Details
#control_id ⇒ String
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
1204 1205 1206 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1204 def control_id @control_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1211 1212 1213 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1211 def update!(**args) @control_id = args[:control_id] if args.key?(:control_id) end |