Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationFailedRequest
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationFailedRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommender_v1/classes.rb,
lib/google/apis/recommender_v1/representations.rb,
lib/google/apis/recommender_v1/representations.rb
Overview
Request for the MarkRecommendationFailed
Method.
Instance Attribute Summary collapse
-
#etag ⇒ String
Required.
-
#state_metadata ⇒ Hash<String,String>
State properties to include with this state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1MarkRecommendationFailedRequest
constructor
A new instance of GoogleCloudRecommenderV1MarkRecommendationFailedRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1MarkRecommendationFailedRequest
Returns a new instance of GoogleCloudRecommenderV1MarkRecommendationFailedRequest.
462 463 464 |
# File 'lib/google/apis/recommender_v1/classes.rb', line 462 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Required. Fingerprint of the Recommendation. Provides optimistic locking.
Corresponds to the JSON property etag
453 454 455 |
# File 'lib/google/apis/recommender_v1/classes.rb', line 453 def etag @etag end |
#state_metadata ⇒ Hash<String,String>
State properties to include with this state. Overwrites any existing
state_metadata
. Keys must match the regex /^a-z0-9
0,62$/
. Values must
match the regex /^[a-zA-Z0-9_./-]
0,255$/
.
Corresponds to the JSON property stateMetadata
460 461 462 |
# File 'lib/google/apis/recommender_v1/classes.rb', line 460 def @state_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
467 468 469 470 |
# File 'lib/google/apis/recommender_v1/classes.rb', line 467 def update!(**args) @etag = args[:etag] if args.key?(:etag) @state_metadata = args[:state_metadata] if args.key?(:state_metadata) end |