Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkInsightAcceptedRequest
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkInsightAcceptedRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommender_v1/classes.rb,
generated/google/apis/recommender_v1/representations.rb,
generated/google/apis/recommender_v1/representations.rb
Overview
Request for the MarkInsightAccepted
method.
Instance Attribute Summary collapse
-
#etag ⇒ String
Required.
-
#state_metadata ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1MarkInsightAcceptedRequest
constructor
A new instance of GoogleCloudRecommenderV1MarkInsightAcceptedRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1MarkInsightAcceptedRequest
Returns a new instance of GoogleCloudRecommenderV1MarkInsightAcceptedRequest.
271 272 273 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 271 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Required. Fingerprint of the Insight. Provides optimistic locking.
Corresponds to the JSON property etag
263 264 265 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 263 def etag @etag end |
#state_metadata ⇒ Hash<String,String>
Optional. State properties user wish to include with this state. Full replace
of the current state_metadata.
Corresponds to the JSON property stateMetadata
269 270 271 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 269 def @state_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
276 277 278 279 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 276 def update!(**args) @etag = args[:etag] if args.key?(:etag) @state_metadata = args[:state_metadata] if args.key?(:state_metadata) end |