Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddControlRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddControlRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
Request for AddControl method.
Instance Attribute Summary collapse
-
#control_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaAddControlRequest
constructor
A new instance of GoogleCloudRetailV2betaAddControlRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaAddControlRequest
Returns a new instance of GoogleCloudRetailV2betaAddControlRequest.
2461 2462 2463 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2461 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
2459 2460 2461 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2459 def control_id @control_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2466 2467 2468 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2466 def update!(**args) @control_id = args[:control_id] if args.key?(:control_id) end |