Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- OAuth Scopes
- API Declaration
- Resources
- gamesConfiguration.achievementConfigurations.delete
- gamesConfiguration.achievementConfigurations.get
- gamesConfiguration.achievementConfigurations.insert
- gamesConfiguration.achievementConfigurations.list
- gamesConfiguration.achievementConfigurations.patch
- gamesConfiguration.achievementConfigurations.update
- gamesConfiguration.imageConfigurations.upload
- gamesConfiguration.leaderboardConfigurations.delete
- gamesConfiguration.leaderboardConfigurations.get
- gamesConfiguration.leaderboardConfigurations.insert
- gamesConfiguration.leaderboardConfigurations.list
- gamesConfiguration.leaderboardConfigurations.patch
- gamesConfiguration.leaderboardConfigurations.update
- Types
- ImageConfiguration
- LeaderboardConfigurationListResponse
- GamesNumberAffixConfiguration
- AchievementConfigurationListResponse
- LeaderboardConfiguration
- AchievementConfiguration
- LocalizedString
- GamesNumberFormatConfiguration
- ImageConfigurationsUploadImageType
- LeaderboardConfigurationDetail
- AchievementConfigurationDetail
- LocalizedStringBundle
The Publishing API for Google Play Game Services.
Synopsis
- gamesConfigurationService :: ServiceConfig
- androidPublisherScope :: Proxy '["https://www.googleapis.com/auth/androidpublisher"]
- type GamesConfigurationAPI = ImageConfigurationsUploadResource :<|> (LeaderboardConfigurationsInsertResource :<|> (LeaderboardConfigurationsListResource :<|> (LeaderboardConfigurationsPatchResource :<|> (LeaderboardConfigurationsGetResource :<|> (LeaderboardConfigurationsDeleteResource :<|> (LeaderboardConfigurationsUpdateResource :<|> (AchievementConfigurationsInsertResource :<|> (AchievementConfigurationsListResource :<|> (AchievementConfigurationsPatchResource :<|> (AchievementConfigurationsGetResource :<|> (AchievementConfigurationsDeleteResource :<|> AchievementConfigurationsUpdateResource)))))))))))
- module Network.Google.Resource.GamesConfiguration.AchievementConfigurations.Delete
- module Network.Google.Resource.GamesConfiguration.AchievementConfigurations.Get
- module Network.Google.Resource.GamesConfiguration.AchievementConfigurations.Insert
- module Network.Google.Resource.GamesConfiguration.AchievementConfigurations.List
- module Network.Google.Resource.GamesConfiguration.AchievementConfigurations.Patch
- module Network.Google.Resource.GamesConfiguration.AchievementConfigurations.Update
- module Network.Google.Resource.GamesConfiguration.ImageConfigurations.Upload
- module Network.Google.Resource.GamesConfiguration.LeaderboardConfigurations.Delete
- module Network.Google.Resource.GamesConfiguration.LeaderboardConfigurations.Get
- module Network.Google.Resource.GamesConfiguration.LeaderboardConfigurations.Insert
- module Network.Google.Resource.GamesConfiguration.LeaderboardConfigurations.List
- module Network.Google.Resource.GamesConfiguration.LeaderboardConfigurations.Patch
- module Network.Google.Resource.GamesConfiguration.LeaderboardConfigurations.Update
- data ImageConfiguration
- imageConfiguration :: ImageConfiguration
- icResourceId :: Lens' ImageConfiguration (Maybe Text)
- icKind :: Lens' ImageConfiguration Text
- icURL :: Lens' ImageConfiguration (Maybe Text)
- icImageType :: Lens' ImageConfiguration (Maybe Text)
- data LeaderboardConfigurationListResponse
- leaderboardConfigurationListResponse :: LeaderboardConfigurationListResponse
- lclrNextPageToken :: Lens' LeaderboardConfigurationListResponse (Maybe Text)
- lclrKind :: Lens' LeaderboardConfigurationListResponse Text
- lclrItems :: Lens' LeaderboardConfigurationListResponse [LeaderboardConfiguration]
- data GamesNumberAffixConfiguration
- gamesNumberAffixConfiguration :: GamesNumberAffixConfiguration
- gnacFew :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle)
- gnacOther :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle)
- gnacTwo :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle)
- gnacOne :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle)
- gnacZero :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle)
- gnacMany :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle)
- data AchievementConfigurationListResponse
- achievementConfigurationListResponse :: AchievementConfigurationListResponse
- aclrNextPageToken :: Lens' AchievementConfigurationListResponse (Maybe Text)
- aclrKind :: Lens' AchievementConfigurationListResponse Text
- aclrItems :: Lens' AchievementConfigurationListResponse [AchievementConfiguration]
- data LeaderboardConfiguration
- leaderboardConfiguration :: LeaderboardConfiguration
- lcScoreMax :: Lens' LeaderboardConfiguration (Maybe Int64)
- lcKind :: Lens' LeaderboardConfiguration Text
- lcPublished :: Lens' LeaderboardConfiguration (Maybe LeaderboardConfigurationDetail)
- lcToken :: Lens' LeaderboardConfiguration (Maybe Text)
- lcScoreMin :: Lens' LeaderboardConfiguration (Maybe Int64)
- lcDraft :: Lens' LeaderboardConfiguration (Maybe LeaderboardConfigurationDetail)
- lcId :: Lens' LeaderboardConfiguration (Maybe Text)
- lcScoreOrder :: Lens' LeaderboardConfiguration (Maybe Text)
- data AchievementConfiguration
- achievementConfiguration :: AchievementConfiguration
- acAchievementType :: Lens' AchievementConfiguration (Maybe Text)
- acStepsToUnlock :: Lens' AchievementConfiguration (Maybe Int32)
- acKind :: Lens' AchievementConfiguration Text
- acPublished :: Lens' AchievementConfiguration (Maybe AchievementConfigurationDetail)
- acToken :: Lens' AchievementConfiguration (Maybe Text)
- acInitialState :: Lens' AchievementConfiguration (Maybe Text)
- acDraft :: Lens' AchievementConfiguration (Maybe AchievementConfigurationDetail)
- acId :: Lens' AchievementConfiguration (Maybe Text)
- data LocalizedString
- localizedString :: LocalizedString
- lsKind :: Lens' LocalizedString Text
- lsLocale :: Lens' LocalizedString (Maybe Text)
- lsValue :: Lens' LocalizedString (Maybe Text)
- data GamesNumberFormatConfiguration
- gamesNumberFormatConfiguration :: GamesNumberFormatConfiguration
- gnfcSuffix :: Lens' GamesNumberFormatConfiguration (Maybe GamesNumberAffixConfiguration)
- gnfcCurrencyCode :: Lens' GamesNumberFormatConfiguration (Maybe Text)
- gnfcNumberFormatType :: Lens' GamesNumberFormatConfiguration (Maybe Text)
- gnfcNumDecimalPlaces :: Lens' GamesNumberFormatConfiguration (Maybe Int32)
- data ImageConfigurationsUploadImageType
- data LeaderboardConfigurationDetail
- leaderboardConfigurationDetail :: LeaderboardConfigurationDetail
- lcdKind :: Lens' LeaderboardConfigurationDetail Text
- lcdScoreFormat :: Lens' LeaderboardConfigurationDetail (Maybe GamesNumberFormatConfiguration)
- lcdSortRank :: Lens' LeaderboardConfigurationDetail (Maybe Int32)
- lcdName :: Lens' LeaderboardConfigurationDetail (Maybe LocalizedStringBundle)
- lcdIconURL :: Lens' LeaderboardConfigurationDetail (Maybe Text)
- data AchievementConfigurationDetail
- achievementConfigurationDetail :: AchievementConfigurationDetail
- acdKind :: Lens' AchievementConfigurationDetail Text
- acdSortRank :: Lens' AchievementConfigurationDetail (Maybe Int32)
- acdName :: Lens' AchievementConfigurationDetail (Maybe LocalizedStringBundle)
- acdPointValue :: Lens' AchievementConfigurationDetail (Maybe Int32)
- acdIconURL :: Lens' AchievementConfigurationDetail (Maybe Text)
- acdDescription :: Lens' AchievementConfigurationDetail (Maybe LocalizedStringBundle)
- data LocalizedStringBundle
- localizedStringBundle :: LocalizedStringBundle
- lsbKind :: Lens' LocalizedStringBundle Text
- lsbTranslations :: Lens' LocalizedStringBundle [LocalizedString]
Service Configuration
gamesConfigurationService :: ServiceConfig Source #
Default request referring to version v1configuration
of the Google Play Game Services Publishing API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
androidPublisherScope :: Proxy '["https://www.googleapis.com/auth/androidpublisher"] Source #
View and manage your Google Play Developer account
API Declaration
type GamesConfigurationAPI = ImageConfigurationsUploadResource :<|> (LeaderboardConfigurationsInsertResource :<|> (LeaderboardConfigurationsListResource :<|> (LeaderboardConfigurationsPatchResource :<|> (LeaderboardConfigurationsGetResource :<|> (LeaderboardConfigurationsDeleteResource :<|> (LeaderboardConfigurationsUpdateResource :<|> (AchievementConfigurationsInsertResource :<|> (AchievementConfigurationsListResource :<|> (AchievementConfigurationsPatchResource :<|> (AchievementConfigurationsGetResource :<|> (AchievementConfigurationsDeleteResource :<|> AchievementConfigurationsUpdateResource))))))))))) Source #
Represents the entirety of the methods and resources available for the Google Play Game Services Publishing API service.
Resources
gamesConfiguration.achievementConfigurations.delete
gamesConfiguration.achievementConfigurations.get
gamesConfiguration.achievementConfigurations.insert
gamesConfiguration.achievementConfigurations.list
gamesConfiguration.achievementConfigurations.patch
gamesConfiguration.achievementConfigurations.update
gamesConfiguration.imageConfigurations.upload
gamesConfiguration.leaderboardConfigurations.delete
gamesConfiguration.leaderboardConfigurations.get
gamesConfiguration.leaderboardConfigurations.insert
gamesConfiguration.leaderboardConfigurations.list
gamesConfiguration.leaderboardConfigurations.patch
gamesConfiguration.leaderboardConfigurations.update
Types
ImageConfiguration
data ImageConfiguration Source #
This is a JSON template for an image configuration resource.
See: imageConfiguration
smart constructor.
Instances
imageConfiguration :: ImageConfiguration Source #
Creates a value of ImageConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icResourceId :: Lens' ImageConfiguration (Maybe Text) Source #
The resource ID of resource which the image belongs to.
icKind :: Lens' ImageConfiguration Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#imageConfiguration.
icImageType :: Lens' ImageConfiguration (Maybe Text) Source #
The image type for the image.
LeaderboardConfigurationListResponse
data LeaderboardConfigurationListResponse Source #
This is a JSON template for a ListConfigurations response.
See: leaderboardConfigurationListResponse
smart constructor.
Instances
leaderboardConfigurationListResponse :: LeaderboardConfigurationListResponse Source #
Creates a value of LeaderboardConfigurationListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lclrNextPageToken :: Lens' LeaderboardConfigurationListResponse (Maybe Text) Source #
The pagination token for the next page of results.
lclrKind :: Lens' LeaderboardConfigurationListResponse Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardConfigurationListResponse.
lclrItems :: Lens' LeaderboardConfigurationListResponse [LeaderboardConfiguration] Source #
The leaderboard configurations.
GamesNumberAffixConfiguration
data GamesNumberAffixConfiguration Source #
This is a JSON template for a number affix resource.
See: gamesNumberAffixConfiguration
smart constructor.
Instances
gnacFew :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle) Source #
When the language requires special treatment of "small" numbers (as with 2, 3, and 4 in Czech; or numbers ending 2, 3, or 4 but not 12, 13, or 14 in Polish).
gnacOther :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle) Source #
When the language does not require special treatment of the given quantity (as with all numbers in Chinese, or 42 in English).
gnacTwo :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle) Source #
When the language requires special treatment of numbers like two (as with 2 in Welsh, or 102 in Slovenian).
gnacOne :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle) Source #
When the language requires special treatment of numbers like one (as with the number 1 in English and most other languages; in Russian, any number ending in 1 but not ending in 11 is in this class).
gnacZero :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle) Source #
When the language requires special treatment of the number 0 (as in Arabic).
gnacMany :: Lens' GamesNumberAffixConfiguration (Maybe LocalizedStringBundle) Source #
When the language requires special treatment of "large" numbers (as with numbers ending 11-99 in Maltese).
AchievementConfigurationListResponse
data AchievementConfigurationListResponse Source #
This is a JSON template for a ListConfigurations response.
See: achievementConfigurationListResponse
smart constructor.
Instances
achievementConfigurationListResponse :: AchievementConfigurationListResponse Source #
Creates a value of AchievementConfigurationListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aclrNextPageToken :: Lens' AchievementConfigurationListResponse (Maybe Text) Source #
The pagination token for the next page of results.
aclrKind :: Lens' AchievementConfigurationListResponse Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string games#achievementConfigurationListResponse.
aclrItems :: Lens' AchievementConfigurationListResponse [AchievementConfiguration] Source #
The achievement configurations.
LeaderboardConfiguration
data LeaderboardConfiguration Source #
This is a JSON template for an leaderboard configuration resource.
See: leaderboardConfiguration
smart constructor.
Instances
leaderboardConfiguration :: LeaderboardConfiguration Source #
Creates a value of LeaderboardConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcScoreMax :: Lens' LeaderboardConfiguration (Maybe Int64) Source #
Maximum score that can be posted to this leaderboard.
lcKind :: Lens' LeaderboardConfiguration Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#leaderboardConfiguration.
lcPublished :: Lens' LeaderboardConfiguration (Maybe LeaderboardConfigurationDetail) Source #
The read-only published data of the leaderboard.
lcScoreMin :: Lens' LeaderboardConfiguration (Maybe Int64) Source #
Minimum score that can be posted to this leaderboard.
lcDraft :: Lens' LeaderboardConfiguration (Maybe LeaderboardConfigurationDetail) Source #
The draft data of the leaderboard.
lcScoreOrder :: Lens' LeaderboardConfiguration (Maybe Text) Source #
The type of the leaderboard. Possible values are: - "LARGER_IS_BETTER" - Larger scores posted are ranked higher. - "SMALLER_IS_BETTER" - Smaller scores posted are ranked higher.
AchievementConfiguration
data AchievementConfiguration Source #
This is a JSON template for an achievement configuration resource.
See: achievementConfiguration
smart constructor.
Instances
achievementConfiguration :: AchievementConfiguration Source #
Creates a value of AchievementConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
acAchievementType :: Lens' AchievementConfiguration (Maybe Text) Source #
The type of the achievement. Possible values are: - "STANDARD" - Achievement is either locked or unlocked. - "INCREMENTAL" - Achievement is incremental.
acStepsToUnlock :: Lens' AchievementConfiguration (Maybe Int32) Source #
Steps to unlock. Only applicable to incremental achievements.
acKind :: Lens' AchievementConfiguration Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#achievementConfiguration.
acPublished :: Lens' AchievementConfiguration (Maybe AchievementConfigurationDetail) Source #
The read-only published data of the achievement.
acInitialState :: Lens' AchievementConfiguration (Maybe Text) Source #
The initial state of the achievement. Possible values are: - "HIDDEN" - Achievement is hidden. - "REVEALED" - Achievement is revealed. - "UNLOCKED" - Achievement is unlocked.
acDraft :: Lens' AchievementConfiguration (Maybe AchievementConfigurationDetail) Source #
The draft data of the achievement.
LocalizedString
data LocalizedString Source #
This is a JSON template for a localized string resource.
See: localizedString
smart constructor.
Instances
localizedString :: LocalizedString Source #
Creates a value of LocalizedString
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsKind :: Lens' LocalizedString Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#localizedString.
GamesNumberFormatConfiguration
data GamesNumberFormatConfiguration Source #
This is a JSON template for a number format resource.
See: gamesNumberFormatConfiguration
smart constructor.
Instances
gamesNumberFormatConfiguration :: GamesNumberFormatConfiguration Source #
Creates a value of GamesNumberFormatConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gnfcSuffix :: Lens' GamesNumberFormatConfiguration (Maybe GamesNumberAffixConfiguration) Source #
An optional suffix for the NUMERIC format type. These strings follow the same plural rules as all Android string resources.
gnfcCurrencyCode :: Lens' GamesNumberFormatConfiguration (Maybe Text) Source #
The curreny code string. Only used for CURRENCY format type.
gnfcNumberFormatType :: Lens' GamesNumberFormatConfiguration (Maybe Text) Source #
The formatting for the number. Possible values are: - "NUMERIC" - Numbers are formatted to have no digits or a fixed number of digits after the decimal point according to locale. An optional custom unit can be added. - "TIME_DURATION" - Numbers are formatted to hours, minutes and seconds. - "CURRENCY" - Numbers are formatted to currency according to locale.
gnfcNumDecimalPlaces :: Lens' GamesNumberFormatConfiguration (Maybe Int32) Source #
The number of decimal places for number. Only used for NUMERIC format type.
ImageConfigurationsUploadImageType
data ImageConfigurationsUploadImageType Source #
Selects which image in a resource for this method.
AchievementIcon |
|
LeaderboardIcon |
|
Instances
LeaderboardConfigurationDetail
data LeaderboardConfigurationDetail Source #
This is a JSON template for a leaderboard configuration detail.
See: leaderboardConfigurationDetail
smart constructor.
Instances
leaderboardConfigurationDetail :: LeaderboardConfigurationDetail Source #
Creates a value of LeaderboardConfigurationDetail
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcdKind :: Lens' LeaderboardConfigurationDetail Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#leaderboardConfigurationDetail.
lcdScoreFormat :: Lens' LeaderboardConfigurationDetail (Maybe GamesNumberFormatConfiguration) Source #
The score formatting for the leaderboard.
lcdSortRank :: Lens' LeaderboardConfigurationDetail (Maybe Int32) Source #
The sort rank of this leaderboard. Writes to this field are ignored.
lcdName :: Lens' LeaderboardConfigurationDetail (Maybe LocalizedStringBundle) Source #
Localized strings for the leaderboard name.
lcdIconURL :: Lens' LeaderboardConfigurationDetail (Maybe Text) Source #
The icon url of this leaderboard. Writes to this field are ignored.
AchievementConfigurationDetail
data AchievementConfigurationDetail Source #
This is a JSON template for an achievement configuration detail.
See: achievementConfigurationDetail
smart constructor.
Instances
achievementConfigurationDetail :: AchievementConfigurationDetail Source #
Creates a value of AchievementConfigurationDetail
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
acdKind :: Lens' AchievementConfigurationDetail Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#achievementConfigurationDetail.
acdSortRank :: Lens' AchievementConfigurationDetail (Maybe Int32) Source #
The sort rank of this achievement. Writes to this field are ignored.
acdName :: Lens' AchievementConfigurationDetail (Maybe LocalizedStringBundle) Source #
Localized strings for the achievement name.
acdPointValue :: Lens' AchievementConfigurationDetail (Maybe Int32) Source #
Point value for the achievement.
acdIconURL :: Lens' AchievementConfigurationDetail (Maybe Text) Source #
The icon url of this achievement. Writes to this field are ignored.
acdDescription :: Lens' AchievementConfigurationDetail (Maybe LocalizedStringBundle) Source #
Localized strings for the achievement description.
LocalizedStringBundle
data LocalizedStringBundle Source #
This is a JSON template for a localized string bundle resource.
See: localizedStringBundle
smart constructor.
Instances
localizedStringBundle :: LocalizedStringBundle Source #
Creates a value of LocalizedStringBundle
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsbKind :: Lens' LocalizedStringBundle Text Source #
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#localizedStringBundle.
lsbTranslations :: Lens' LocalizedStringBundle [LocalizedString] Source #
The locale strings.