Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recommender_v1beta1/classes.rb,
lib/google/apis/recommender_v1beta1/representations.rb,
lib/google/apis/recommender_v1beta1/representations.rb

Overview

Request for the MarkInsightAccepted method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest

Returns a new instance of GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest.



539
540
541
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 539

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

Instance Attribute Details

#etagString

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

Returns:

  • (String)


531
532
533
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 531

def etag
  @etag
end

#state_metadataHash<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

Returns:

  • (Hash<String,String>)


537
538
539
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 537

def 
  @state_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



544
545
546
547
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 544

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