class Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration

This is a JSON template for an achievement configuration resource.

Attributes

achievement_type[RW]

The type of the achievement. Possible values are:

  • “STANDARD” - Achievement is either locked or unlocked.

  • “INCREMENTAL” - Achievement is incremental.

Corresponds to the JSON property `achievementType` @return [String]

draft[RW]

This is a JSON template for an achievement configuration detail. Corresponds to the JSON property `draft` @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail]

id[RW]

The ID of the achievement. Corresponds to the JSON property `id` @return [String]

initial_state[RW]

The initial state of the achievement. Possible values are:

  • “HIDDEN” - Achievement is hidden.

  • “REVEALED” - Achievement is revealed.

  • “UNLOCKED” - Achievement is unlocked.

Corresponds to the JSON property `initialState` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#achievementConfiguration. Corresponds to the JSON property `kind` @return [String]

published[RW]

This is a JSON template for an achievement configuration detail. Corresponds to the JSON property `published` @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail]

steps_to_unlock[RW]

Steps to unlock. Only applicable to incremental achievements. Corresponds to the JSON property `stepsToUnlock` @return [Fixnum]

token[RW]

The token for this resource. Corresponds to the JSON property `token` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 77
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 82
def update!(**args)
  @achievement_type = args[:achievement_type] if args.key?(:achievement_type)
  @draft = args[:draft] if args.key?(:draft)
  @id = args[:id] if args.key?(:id)
  @initial_state = args[:initial_state] if args.key?(:initial_state)
  @kind = args[:kind] if args.key?(:kind)
  @published = args[:published] if args.key?(:published)
  @steps_to_unlock = args[:steps_to_unlock] if args.key?(:steps_to_unlock)
  @token = args[:token] if args.key?(:token)
end