Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationClaimedRequest

Inherits:
Object
  • Object
show all
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
more...

Overview

Request for the MarkRecommendationClaimed Method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1MarkRecommendationClaimedRequest

Returns a new instance of GoogleCloudRecommenderV1MarkRecommendationClaimedRequest.

[View source]

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

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

Instance Attribute Details

#etagString

Required. Fingerprint of the Recommendation. Provides optimistic locking. Corresponds to the JSON property etag

Returns:

  • (String)

301
302
303
# File 'lib/google/apis/recommender_v1/classes.rb', line 301

def etag
  @etag
end

#state_metadataHash<String,String>

State properties to include with this state. Overwrites any existing state_metadata. Keys must match the regex /^a-z0-90,62$/. Values must match the regex /^[a-zA-Z0-9_./-]0,255$/. Corresponds to the JSON property stateMetadata

Returns:

  • (Hash<String,String>)

308
309
310
# File 'lib/google/apis/recommender_v1/classes.rb', line 308

def 
  @state_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

315
316
317
318
# File 'lib/google/apis/recommender_v1/classes.rb', line 315

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