gamesconfiguration

package
v0.0.0-...-c37129a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2016 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package gamesconfiguration provides access to the Google Play Game Services Publishing API.

See https://developers.google.com/games/services

Usage example:

import "google.golang.org/api/gamesconfiguration/v1configuration"
...
gamesconfigurationService, err := gamesconfiguration.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage your Google Play Android Developer account
	AndroidpublisherScope = "https://www.googleapis.com/auth/androidpublisher"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AchievementConfiguration

type AchievementConfiguration struct {
	// AchievementType: The type of the achievement.
	// Possible values are:
	//
	// - "STANDARD" - Achievement is either locked or unlocked.
	// -
	// "INCREMENTAL" - Achievement is incremental.
	AchievementType string `json:"achievementType,omitempty"`

	// Draft: The draft data of the achievement.
	Draft *AchievementConfigurationDetail `json:"draft,omitempty"`

	// Id: The ID of the achievement.
	Id string `json:"id,omitempty"`

	// InitialState: The initial state of the achievement.
	// Possible values
	// are:
	// - "HIDDEN" - Achievement is hidden.
	// - "REVEALED" -
	// Achievement is revealed.
	// - "UNLOCKED" - Achievement is unlocked.
	InitialState string `json:"initialState,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#achievementConfiguration.
	Kind string `json:"kind,omitempty"`

	// Published: The read-only published data of the achievement.
	Published *AchievementConfigurationDetail `json:"published,omitempty"`

	// StepsToUnlock: Steps to unlock. Only applicable to incremental
	// achievements.
	StepsToUnlock int64 `json:"stepsToUnlock,omitempty"`

	// Token: The token for this resource.
	Token string `json:"token,omitempty"`
}

type AchievementConfigurationDetail

type AchievementConfigurationDetail struct {
	// Description: Localized strings for the achievement description.
	Description *LocalizedStringBundle `json:"description,omitempty"`

	// IconUrl: The icon url of this achievement. Writes to this field are
	// ignored.
	IconUrl string `json:"iconUrl,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#achievementConfigurationDetail.
	Kind string `json:"kind,omitempty"`

	// Name: Localized strings for the achievement name.
	Name *LocalizedStringBundle `json:"name,omitempty"`

	// PointValue: Point value for the achievement.
	PointValue int64 `json:"pointValue,omitempty"`

	// SortRank: The sort rank of this achievement. Writes to this field are
	// ignored.
	SortRank int64 `json:"sortRank,omitempty"`
}

type AchievementConfigurationListResponse

type AchievementConfigurationListResponse struct {
	// Items: The achievement configurations.
	Items []*AchievementConfiguration `json:"items,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string games#achievementConfigurationListResponse.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The pagination token for the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type AchievementConfigurationsDeleteCall

type AchievementConfigurationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AchievementConfigurationsDeleteCall) Do

func (*AchievementConfigurationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AchievementConfigurationsGetCall

type AchievementConfigurationsGetCall struct {
	// contains filtered or unexported fields
}

func (*AchievementConfigurationsGetCall) Do

func (*AchievementConfigurationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AchievementConfigurationsInsertCall

type AchievementConfigurationsInsertCall struct {
	// contains filtered or unexported fields
}

func (*AchievementConfigurationsInsertCall) Do

func (*AchievementConfigurationsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AchievementConfigurationsListCall

type AchievementConfigurationsListCall struct {
	// contains filtered or unexported fields
}

func (*AchievementConfigurationsListCall) Do

func (*AchievementConfigurationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AchievementConfigurationsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": The maximum number of resource configurations to return in the response, used for paging. For any response, the actual number of resources returned may be less than the specified maxResults.

func (*AchievementConfigurationsListCall) PageToken

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

type AchievementConfigurationsPatchCall

type AchievementConfigurationsPatchCall struct {
	// contains filtered or unexported fields
}

func (*AchievementConfigurationsPatchCall) Do

func (*AchievementConfigurationsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AchievementConfigurationsService

type AchievementConfigurationsService struct {
	// contains filtered or unexported fields
}

func NewAchievementConfigurationsService

func NewAchievementConfigurationsService(s *Service) *AchievementConfigurationsService

func (*AchievementConfigurationsService) Delete

Delete: Delete the achievement configuration with the given ID.

func (*AchievementConfigurationsService) Get

Get: Retrieves the metadata of the achievement configuration with the given ID.

func (*AchievementConfigurationsService) Insert

func (r *AchievementConfigurationsService) Insert(applicationId string, achievementconfiguration *AchievementConfiguration) *AchievementConfigurationsInsertCall

Insert: Insert a new achievement configuration in this application.

func (*AchievementConfigurationsService) List

List: Returns a list of the achievement configurations in this application.

func (*AchievementConfigurationsService) Patch

func (r *AchievementConfigurationsService) Patch(achievementId string, achievementconfiguration *AchievementConfiguration) *AchievementConfigurationsPatchCall

Patch: Update the metadata of the achievement configuration with the given ID. This method supports patch semantics.

func (*AchievementConfigurationsService) Update

func (r *AchievementConfigurationsService) Update(achievementId string, achievementconfiguration *AchievementConfiguration) *AchievementConfigurationsUpdateCall

Update: Update the metadata of the achievement configuration with the given ID.

type AchievementConfigurationsUpdateCall

type AchievementConfigurationsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AchievementConfigurationsUpdateCall) Do

func (*AchievementConfigurationsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type GamesNumberAffixConfiguration

type GamesNumberAffixConfiguration struct {
	// Few: 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).
	Few *LocalizedStringBundle `json:"few,omitempty"`

	// Many: When the language requires special treatment of "large" numbers
	// (as with numbers ending 11-99 in Maltese).
	Many *LocalizedStringBundle `json:"many,omitempty"`

	// One: 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).
	One *LocalizedStringBundle `json:"one,omitempty"`

	// Other: When the language does not require special treatment of the
	// given quantity (as with all numbers in Chinese, or 42 in English).
	Other *LocalizedStringBundle `json:"other,omitempty"`

	// Two: When the language requires special treatment of numbers like two
	// (as with 2 in Welsh, or 102 in Slovenian).
	Two *LocalizedStringBundle `json:"two,omitempty"`

	// Zero: When the language requires special treatment of the number 0
	// (as in Arabic).
	Zero *LocalizedStringBundle `json:"zero,omitempty"`
}

type GamesNumberFormatConfiguration

type GamesNumberFormatConfiguration struct {
	// CurrencyCode: The curreny code string. Only used for CURRENCY format
	// type.
	CurrencyCode string `json:"currencyCode,omitempty"`

	// NumDecimalPlaces: The number of decimal places for number. Only used
	// for NUMERIC format type.
	NumDecimalPlaces int64 `json:"numDecimalPlaces,omitempty"`

	// NumberFormatType: 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.
	NumberFormatType string `json:"numberFormatType,omitempty"`

	// Suffix: An optional suffix for the NUMERIC format type. These strings
	// follow the same  plural rules as all Android string resources.
	Suffix *GamesNumberAffixConfiguration `json:"suffix,omitempty"`
}

type ImageConfiguration

type ImageConfiguration struct {
	// ImageType: The image type for the image.
	ImageType string `json:"imageType,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#imageConfiguration.
	Kind string `json:"kind,omitempty"`

	// ResourceId: The resource ID of resource which the image belongs to.
	ResourceId string `json:"resourceId,omitempty"`

	// Url: The url for this image.
	Url string `json:"url,omitempty"`
}

type ImageConfigurationsService

type ImageConfigurationsService struct {
	// contains filtered or unexported fields
}

func NewImageConfigurationsService

func NewImageConfigurationsService(s *Service) *ImageConfigurationsService

func (*ImageConfigurationsService) Upload

func (r *ImageConfigurationsService) Upload(resourceId string, imageType string) *ImageConfigurationsUploadCall

Upload: Uploads an image for a resource with the given ID and image type.

type ImageConfigurationsUploadCall

type ImageConfigurationsUploadCall struct {
	// contains filtered or unexported fields
}

func (*ImageConfigurationsUploadCall) Do

func (*ImageConfigurationsUploadCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ImageConfigurationsUploadCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*ImageConfigurationsUploadCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*ImageConfigurationsUploadCall) ResumableMedia

ResumableMedia specifies the media to upload in chunks and can be cancelled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected.

type LeaderboardConfiguration

type LeaderboardConfiguration struct {
	// Draft: The draft data of the leaderboard.
	Draft *LeaderboardConfigurationDetail `json:"draft,omitempty"`

	// Id: The ID of the leaderboard.
	Id string `json:"id,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#leaderboardConfiguration.
	Kind string `json:"kind,omitempty"`

	// Published: The read-only published data of the leaderboard.
	Published *LeaderboardConfigurationDetail `json:"published,omitempty"`

	// ScoreMax: Maximum score that can be posted to this leaderboard.
	ScoreMax int64 `json:"scoreMax,omitempty,string"`

	// ScoreMin: Minimum score that can be posted to this leaderboard.
	ScoreMin int64 `json:"scoreMin,omitempty,string"`

	// ScoreOrder: 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.
	ScoreOrder string `json:"scoreOrder,omitempty"`

	// Token: The token for this resource.
	Token string `json:"token,omitempty"`
}

type LeaderboardConfigurationDetail

type LeaderboardConfigurationDetail struct {
	// IconUrl: The icon url of this leaderboard. Writes to this field are
	// ignored.
	IconUrl string `json:"iconUrl,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#leaderboardConfigurationDetail.
	Kind string `json:"kind,omitempty"`

	// Name: Localized strings for the leaderboard name.
	Name *LocalizedStringBundle `json:"name,omitempty"`

	// ScoreFormat: The score formatting for the leaderboard.
	ScoreFormat *GamesNumberFormatConfiguration `json:"scoreFormat,omitempty"`

	// SortRank: The sort rank of this leaderboard. Writes to this field are
	// ignored.
	SortRank int64 `json:"sortRank,omitempty"`
}

type LeaderboardConfigurationListResponse

type LeaderboardConfigurationListResponse struct {
	// Items: The leaderboard configurations.
	Items []*LeaderboardConfiguration `json:"items,omitempty"`

	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string games#leaderboardConfigurationListResponse.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The pagination token for the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type LeaderboardConfigurationsDeleteCall

type LeaderboardConfigurationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LeaderboardConfigurationsDeleteCall) Do

func (*LeaderboardConfigurationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LeaderboardConfigurationsGetCall

type LeaderboardConfigurationsGetCall struct {
	// contains filtered or unexported fields
}

func (*LeaderboardConfigurationsGetCall) Do

func (*LeaderboardConfigurationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LeaderboardConfigurationsInsertCall

type LeaderboardConfigurationsInsertCall struct {
	// contains filtered or unexported fields
}

func (*LeaderboardConfigurationsInsertCall) Do

func (*LeaderboardConfigurationsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LeaderboardConfigurationsListCall

type LeaderboardConfigurationsListCall struct {
	// contains filtered or unexported fields
}

func (*LeaderboardConfigurationsListCall) Do

func (*LeaderboardConfigurationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LeaderboardConfigurationsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": The maximum number of resource configurations to return in the response, used for paging. For any response, the actual number of resources returned may be less than the specified maxResults.

func (*LeaderboardConfigurationsListCall) PageToken

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

type LeaderboardConfigurationsPatchCall

type LeaderboardConfigurationsPatchCall struct {
	// contains filtered or unexported fields
}

func (*LeaderboardConfigurationsPatchCall) Do

func (*LeaderboardConfigurationsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LeaderboardConfigurationsService

type LeaderboardConfigurationsService struct {
	// contains filtered or unexported fields
}

func NewLeaderboardConfigurationsService

func NewLeaderboardConfigurationsService(s *Service) *LeaderboardConfigurationsService

func (*LeaderboardConfigurationsService) Delete

Delete: Delete the leaderboard configuration with the given ID.

func (*LeaderboardConfigurationsService) Get

Get: Retrieves the metadata of the leaderboard configuration with the given ID.

func (*LeaderboardConfigurationsService) Insert

func (r *LeaderboardConfigurationsService) Insert(applicationId string, leaderboardconfiguration *LeaderboardConfiguration) *LeaderboardConfigurationsInsertCall

Insert: Insert a new leaderboard configuration in this application.

func (*LeaderboardConfigurationsService) List

List: Returns a list of the leaderboard configurations in this application.

func (*LeaderboardConfigurationsService) Patch

func (r *LeaderboardConfigurationsService) Patch(leaderboardId string, leaderboardconfiguration *LeaderboardConfiguration) *LeaderboardConfigurationsPatchCall

Patch: Update the metadata of the leaderboard configuration with the given ID. This method supports patch semantics.

func (*LeaderboardConfigurationsService) Update

func (r *LeaderboardConfigurationsService) Update(leaderboardId string, leaderboardconfiguration *LeaderboardConfiguration) *LeaderboardConfigurationsUpdateCall

Update: Update the metadata of the leaderboard configuration with the given ID.

type LeaderboardConfigurationsUpdateCall

type LeaderboardConfigurationsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*LeaderboardConfigurationsUpdateCall) Do

func (*LeaderboardConfigurationsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LocalizedString

type LocalizedString struct {
	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#localizedString.
	Kind string `json:"kind,omitempty"`

	// Locale: The locale string.
	Locale string `json:"locale,omitempty"`

	// Value: The string value.
	Value string `json:"value,omitempty"`
}

type LocalizedStringBundle

type LocalizedStringBundle struct {
	// Kind: Uniquely identifies the type of this resource. Value is always
	// the fixed string gamesConfiguration#localizedStringBundle.
	Kind string `json:"kind,omitempty"`

	// Translations: The locale strings.
	Translations []*LocalizedString `json:"translations,omitempty"`
}

type Service

type Service struct {
	BasePath string // API endpoint base URL

	AchievementConfigurations *AchievementConfigurationsService

	ImageConfigurations *ImageConfigurationsService

	LeaderboardConfigurations *LeaderboardConfigurationsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL