class Google::Apis::GamesV1::UpdateAchievementRequest
This is a JSON template for a request to update an achievement.
Attributes
The achievement this update is being applied to. Corresponds to the JSON property `achievementId` @return [String]
This is a JSON template for the payload to request to increment an achievement. Corresponds to the JSON property `incrementPayload` @return [Google::Apis::GamesV1::GamesAchievementIncrement]
Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateRequest. Corresponds to the JSON property `kind` @return [String]
This is a JSON template for the payload to request to increment an achievement. Corresponds to the JSON property `setStepsAtLeastPayload` @return [Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast]
The type of update being applied. Possible values are:
-
“REVEAL” - Achievement is revealed.
-
“UNLOCK” - Achievement is unlocked.
-
“INCREMENT” - Achievement is incremented.
-
“SET_STEPS_AT_LEAST” - Achievement progress is set to at least the passed
value. Corresponds to the JSON property `updateType` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 374 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 379 def update!(**args) @achievement_id = args[:achievement_id] if args.key?(:achievement_id) @increment_payload = args[:increment_payload] if args.key?(:increment_payload) @kind = args[:kind] if args.key?(:kind) @set_steps_at_least_payload = args[:set_steps_at_least_payload] if args.key?(:set_steps_at_least_payload) @update_type = args[:update_type] if args.key?(:update_type) end