Documentation ¶
Overview ¶
Package gamesmanagement provides access to the Google Play Game Services Management API.
See https://developers.google.com/games/services
Usage example:
import "github.com/zippoxer/google-api-go-client/gamesmanagement/v1management" ... gamesmanagementService, err := gamesmanagement.New(oauthHttpClient)
Index ¶
- Constants
- type AchievementResetAllResponse
- type AchievementResetMultipleForAllRequest
- type AchievementResetResponse
- type AchievementsResetAllCall
- func (c *AchievementsResetAllCall) Context(ctx context.Context) *AchievementsResetAllCall
- func (c *AchievementsResetAllCall) Do() (*AchievementResetAllResponse, error)
- func (c *AchievementsResetAllCall) Fields(s ...googleapi.Field) *AchievementsResetAllCall
- func (c *AchievementsResetAllCall) QuotaUser(quotaUser string) *AchievementsResetAllCall
- func (c *AchievementsResetAllCall) UserIP(userIP string) *AchievementsResetAllCall
- type AchievementsResetAllForAllPlayersCall
- func (c *AchievementsResetAllForAllPlayersCall) Context(ctx context.Context) *AchievementsResetAllForAllPlayersCall
- func (c *AchievementsResetAllForAllPlayersCall) Do() error
- func (c *AchievementsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetAllForAllPlayersCall
- func (c *AchievementsResetAllForAllPlayersCall) QuotaUser(quotaUser string) *AchievementsResetAllForAllPlayersCall
- func (c *AchievementsResetAllForAllPlayersCall) UserIP(userIP string) *AchievementsResetAllForAllPlayersCall
- type AchievementsResetCall
- func (c *AchievementsResetCall) Context(ctx context.Context) *AchievementsResetCall
- func (c *AchievementsResetCall) Do() (*AchievementResetResponse, error)
- func (c *AchievementsResetCall) Fields(s ...googleapi.Field) *AchievementsResetCall
- func (c *AchievementsResetCall) QuotaUser(quotaUser string) *AchievementsResetCall
- func (c *AchievementsResetCall) UserIP(userIP string) *AchievementsResetCall
- type AchievementsResetForAllPlayersCall
- func (c *AchievementsResetForAllPlayersCall) Context(ctx context.Context) *AchievementsResetForAllPlayersCall
- func (c *AchievementsResetForAllPlayersCall) Do() error
- func (c *AchievementsResetForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetForAllPlayersCall
- func (c *AchievementsResetForAllPlayersCall) QuotaUser(quotaUser string) *AchievementsResetForAllPlayersCall
- func (c *AchievementsResetForAllPlayersCall) UserIP(userIP string) *AchievementsResetForAllPlayersCall
- type AchievementsResetMultipleForAllPlayersCall
- func (c *AchievementsResetMultipleForAllPlayersCall) Context(ctx context.Context) *AchievementsResetMultipleForAllPlayersCall
- func (c *AchievementsResetMultipleForAllPlayersCall) Do() error
- func (c *AchievementsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetMultipleForAllPlayersCall
- func (c *AchievementsResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *AchievementsResetMultipleForAllPlayersCall
- func (c *AchievementsResetMultipleForAllPlayersCall) UserIP(userIP string) *AchievementsResetMultipleForAllPlayersCall
- type AchievementsService
- func (r *AchievementsService) Reset(achievementId string) *AchievementsResetCall
- func (r *AchievementsService) ResetAll() *AchievementsResetAllCall
- func (r *AchievementsService) ResetAllForAllPlayers() *AchievementsResetAllForAllPlayersCall
- func (r *AchievementsService) ResetForAllPlayers(achievementId string) *AchievementsResetForAllPlayersCall
- func (r *AchievementsService) ResetMultipleForAllPlayers(achievementresetmultipleforallrequest *AchievementResetMultipleForAllRequest) *AchievementsResetMultipleForAllPlayersCall
- type ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) Context(ctx context.Context) *ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) Do() (*HiddenPlayerList, error)
- func (c *ApplicationsListHiddenCall) Fields(s ...googleapi.Field) *ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) IfNoneMatch(entityTag string) *ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) MaxResults(maxResults int64) *ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) PageToken(pageToken string) *ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) QuotaUser(quotaUser string) *ApplicationsListHiddenCall
- func (c *ApplicationsListHiddenCall) UserIP(userIP string) *ApplicationsListHiddenCall
- type ApplicationsService
- type EventsResetAllCall
- func (c *EventsResetAllCall) Context(ctx context.Context) *EventsResetAllCall
- func (c *EventsResetAllCall) Do() error
- func (c *EventsResetAllCall) Fields(s ...googleapi.Field) *EventsResetAllCall
- func (c *EventsResetAllCall) QuotaUser(quotaUser string) *EventsResetAllCall
- func (c *EventsResetAllCall) UserIP(userIP string) *EventsResetAllCall
- type EventsResetAllForAllPlayersCall
- func (c *EventsResetAllForAllPlayersCall) Context(ctx context.Context) *EventsResetAllForAllPlayersCall
- func (c *EventsResetAllForAllPlayersCall) Do() error
- func (c *EventsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetAllForAllPlayersCall
- func (c *EventsResetAllForAllPlayersCall) QuotaUser(quotaUser string) *EventsResetAllForAllPlayersCall
- func (c *EventsResetAllForAllPlayersCall) UserIP(userIP string) *EventsResetAllForAllPlayersCall
- type EventsResetCall
- func (c *EventsResetCall) Context(ctx context.Context) *EventsResetCall
- func (c *EventsResetCall) Do() error
- func (c *EventsResetCall) Fields(s ...googleapi.Field) *EventsResetCall
- func (c *EventsResetCall) QuotaUser(quotaUser string) *EventsResetCall
- func (c *EventsResetCall) UserIP(userIP string) *EventsResetCall
- type EventsResetForAllPlayersCall
- func (c *EventsResetForAllPlayersCall) Context(ctx context.Context) *EventsResetForAllPlayersCall
- func (c *EventsResetForAllPlayersCall) Do() error
- func (c *EventsResetForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetForAllPlayersCall
- func (c *EventsResetForAllPlayersCall) QuotaUser(quotaUser string) *EventsResetForAllPlayersCall
- func (c *EventsResetForAllPlayersCall) UserIP(userIP string) *EventsResetForAllPlayersCall
- type EventsResetMultipleForAllPlayersCall
- func (c *EventsResetMultipleForAllPlayersCall) Context(ctx context.Context) *EventsResetMultipleForAllPlayersCall
- func (c *EventsResetMultipleForAllPlayersCall) Do() error
- func (c *EventsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetMultipleForAllPlayersCall
- func (c *EventsResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *EventsResetMultipleForAllPlayersCall
- func (c *EventsResetMultipleForAllPlayersCall) UserIP(userIP string) *EventsResetMultipleForAllPlayersCall
- type EventsResetMultipleForAllRequest
- type EventsService
- func (r *EventsService) Reset(eventId string) *EventsResetCall
- func (r *EventsService) ResetAll() *EventsResetAllCall
- func (r *EventsService) ResetAllForAllPlayers() *EventsResetAllForAllPlayersCall
- func (r *EventsService) ResetForAllPlayers(eventId string) *EventsResetForAllPlayersCall
- func (r *EventsService) ResetMultipleForAllPlayers(eventsresetmultipleforallrequest *EventsResetMultipleForAllRequest) *EventsResetMultipleForAllPlayersCall
- type GamesPlayedResource
- type GamesPlayerExperienceInfoResource
- type GamesPlayerLevelResource
- type HiddenPlayer
- type HiddenPlayerList
- type Player
- type PlayerName
- type PlayerScoreResetAllResponse
- type PlayerScoreResetResponse
- type PlayersHideCall
- func (c *PlayersHideCall) Context(ctx context.Context) *PlayersHideCall
- func (c *PlayersHideCall) Do() error
- func (c *PlayersHideCall) Fields(s ...googleapi.Field) *PlayersHideCall
- func (c *PlayersHideCall) QuotaUser(quotaUser string) *PlayersHideCall
- func (c *PlayersHideCall) UserIP(userIP string) *PlayersHideCall
- type PlayersService
- type PlayersUnhideCall
- func (c *PlayersUnhideCall) Context(ctx context.Context) *PlayersUnhideCall
- func (c *PlayersUnhideCall) Do() error
- func (c *PlayersUnhideCall) Fields(s ...googleapi.Field) *PlayersUnhideCall
- func (c *PlayersUnhideCall) QuotaUser(quotaUser string) *PlayersUnhideCall
- func (c *PlayersUnhideCall) UserIP(userIP string) *PlayersUnhideCall
- type QuestsResetAllCall
- func (c *QuestsResetAllCall) Context(ctx context.Context) *QuestsResetAllCall
- func (c *QuestsResetAllCall) Do() error
- func (c *QuestsResetAllCall) Fields(s ...googleapi.Field) *QuestsResetAllCall
- func (c *QuestsResetAllCall) QuotaUser(quotaUser string) *QuestsResetAllCall
- func (c *QuestsResetAllCall) UserIP(userIP string) *QuestsResetAllCall
- type QuestsResetAllForAllPlayersCall
- func (c *QuestsResetAllForAllPlayersCall) Context(ctx context.Context) *QuestsResetAllForAllPlayersCall
- func (c *QuestsResetAllForAllPlayersCall) Do() error
- func (c *QuestsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *QuestsResetAllForAllPlayersCall
- func (c *QuestsResetAllForAllPlayersCall) QuotaUser(quotaUser string) *QuestsResetAllForAllPlayersCall
- func (c *QuestsResetAllForAllPlayersCall) UserIP(userIP string) *QuestsResetAllForAllPlayersCall
- type QuestsResetCall
- func (c *QuestsResetCall) Context(ctx context.Context) *QuestsResetCall
- func (c *QuestsResetCall) Do() error
- func (c *QuestsResetCall) Fields(s ...googleapi.Field) *QuestsResetCall
- func (c *QuestsResetCall) QuotaUser(quotaUser string) *QuestsResetCall
- func (c *QuestsResetCall) UserIP(userIP string) *QuestsResetCall
- type QuestsResetForAllPlayersCall
- func (c *QuestsResetForAllPlayersCall) Context(ctx context.Context) *QuestsResetForAllPlayersCall
- func (c *QuestsResetForAllPlayersCall) Do() error
- func (c *QuestsResetForAllPlayersCall) Fields(s ...googleapi.Field) *QuestsResetForAllPlayersCall
- func (c *QuestsResetForAllPlayersCall) QuotaUser(quotaUser string) *QuestsResetForAllPlayersCall
- func (c *QuestsResetForAllPlayersCall) UserIP(userIP string) *QuestsResetForAllPlayersCall
- type QuestsResetMultipleForAllPlayersCall
- func (c *QuestsResetMultipleForAllPlayersCall) Context(ctx context.Context) *QuestsResetMultipleForAllPlayersCall
- func (c *QuestsResetMultipleForAllPlayersCall) Do() error
- func (c *QuestsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *QuestsResetMultipleForAllPlayersCall
- func (c *QuestsResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *QuestsResetMultipleForAllPlayersCall
- func (c *QuestsResetMultipleForAllPlayersCall) UserIP(userIP string) *QuestsResetMultipleForAllPlayersCall
- type QuestsResetMultipleForAllRequest
- type QuestsService
- func (r *QuestsService) Reset(questId string) *QuestsResetCall
- func (r *QuestsService) ResetAll() *QuestsResetAllCall
- func (r *QuestsService) ResetAllForAllPlayers() *QuestsResetAllForAllPlayersCall
- func (r *QuestsService) ResetForAllPlayers(questId string) *QuestsResetForAllPlayersCall
- func (r *QuestsService) ResetMultipleForAllPlayers(questsresetmultipleforallrequest *QuestsResetMultipleForAllRequest) *QuestsResetMultipleForAllPlayersCall
- type RoomsResetCall
- func (c *RoomsResetCall) Context(ctx context.Context) *RoomsResetCall
- func (c *RoomsResetCall) Do() error
- func (c *RoomsResetCall) Fields(s ...googleapi.Field) *RoomsResetCall
- func (c *RoomsResetCall) QuotaUser(quotaUser string) *RoomsResetCall
- func (c *RoomsResetCall) UserIP(userIP string) *RoomsResetCall
- type RoomsResetForAllPlayersCall
- func (c *RoomsResetForAllPlayersCall) Context(ctx context.Context) *RoomsResetForAllPlayersCall
- func (c *RoomsResetForAllPlayersCall) Do() error
- func (c *RoomsResetForAllPlayersCall) Fields(s ...googleapi.Field) *RoomsResetForAllPlayersCall
- func (c *RoomsResetForAllPlayersCall) QuotaUser(quotaUser string) *RoomsResetForAllPlayersCall
- func (c *RoomsResetForAllPlayersCall) UserIP(userIP string) *RoomsResetForAllPlayersCall
- type RoomsService
- type ScoresResetAllCall
- func (c *ScoresResetAllCall) Context(ctx context.Context) *ScoresResetAllCall
- func (c *ScoresResetAllCall) Do() (*PlayerScoreResetAllResponse, error)
- func (c *ScoresResetAllCall) Fields(s ...googleapi.Field) *ScoresResetAllCall
- func (c *ScoresResetAllCall) QuotaUser(quotaUser string) *ScoresResetAllCall
- func (c *ScoresResetAllCall) UserIP(userIP string) *ScoresResetAllCall
- type ScoresResetAllForAllPlayersCall
- func (c *ScoresResetAllForAllPlayersCall) Context(ctx context.Context) *ScoresResetAllForAllPlayersCall
- func (c *ScoresResetAllForAllPlayersCall) Do() error
- func (c *ScoresResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetAllForAllPlayersCall
- func (c *ScoresResetAllForAllPlayersCall) QuotaUser(quotaUser string) *ScoresResetAllForAllPlayersCall
- func (c *ScoresResetAllForAllPlayersCall) UserIP(userIP string) *ScoresResetAllForAllPlayersCall
- type ScoresResetCall
- func (c *ScoresResetCall) Context(ctx context.Context) *ScoresResetCall
- func (c *ScoresResetCall) Do() (*PlayerScoreResetResponse, error)
- func (c *ScoresResetCall) Fields(s ...googleapi.Field) *ScoresResetCall
- func (c *ScoresResetCall) QuotaUser(quotaUser string) *ScoresResetCall
- func (c *ScoresResetCall) UserIP(userIP string) *ScoresResetCall
- type ScoresResetForAllPlayersCall
- func (c *ScoresResetForAllPlayersCall) Context(ctx context.Context) *ScoresResetForAllPlayersCall
- func (c *ScoresResetForAllPlayersCall) Do() error
- func (c *ScoresResetForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetForAllPlayersCall
- func (c *ScoresResetForAllPlayersCall) QuotaUser(quotaUser string) *ScoresResetForAllPlayersCall
- func (c *ScoresResetForAllPlayersCall) UserIP(userIP string) *ScoresResetForAllPlayersCall
- type ScoresResetMultipleForAllPlayersCall
- func (c *ScoresResetMultipleForAllPlayersCall) Context(ctx context.Context) *ScoresResetMultipleForAllPlayersCall
- func (c *ScoresResetMultipleForAllPlayersCall) Do() error
- func (c *ScoresResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetMultipleForAllPlayersCall
- func (c *ScoresResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *ScoresResetMultipleForAllPlayersCall
- func (c *ScoresResetMultipleForAllPlayersCall) UserIP(userIP string) *ScoresResetMultipleForAllPlayersCall
- type ScoresResetMultipleForAllRequest
- type ScoresService
- func (r *ScoresService) Reset(leaderboardId string) *ScoresResetCall
- func (r *ScoresService) ResetAll() *ScoresResetAllCall
- func (r *ScoresService) ResetAllForAllPlayers() *ScoresResetAllForAllPlayersCall
- func (r *ScoresService) ResetForAllPlayers(leaderboardId string) *ScoresResetForAllPlayersCall
- func (r *ScoresService) ResetMultipleForAllPlayers(scoresresetmultipleforallrequest *ScoresResetMultipleForAllRequest) *ScoresResetMultipleForAllPlayersCall
- type Service
- type TurnBasedMatchesResetCall
- func (c *TurnBasedMatchesResetCall) Context(ctx context.Context) *TurnBasedMatchesResetCall
- func (c *TurnBasedMatchesResetCall) Do() error
- func (c *TurnBasedMatchesResetCall) Fields(s ...googleapi.Field) *TurnBasedMatchesResetCall
- func (c *TurnBasedMatchesResetCall) QuotaUser(quotaUser string) *TurnBasedMatchesResetCall
- func (c *TurnBasedMatchesResetCall) UserIP(userIP string) *TurnBasedMatchesResetCall
- type TurnBasedMatchesResetForAllPlayersCall
- func (c *TurnBasedMatchesResetForAllPlayersCall) Context(ctx context.Context) *TurnBasedMatchesResetForAllPlayersCall
- func (c *TurnBasedMatchesResetForAllPlayersCall) Do() error
- func (c *TurnBasedMatchesResetForAllPlayersCall) Fields(s ...googleapi.Field) *TurnBasedMatchesResetForAllPlayersCall
- func (c *TurnBasedMatchesResetForAllPlayersCall) QuotaUser(quotaUser string) *TurnBasedMatchesResetForAllPlayersCall
- func (c *TurnBasedMatchesResetForAllPlayersCall) UserIP(userIP string) *TurnBasedMatchesResetForAllPlayersCall
- type TurnBasedMatchesService
Constants ¶
const ( // Share your Google+ profile information and view and manage your game // activity GamesScope = "https://www.googleapis.com/auth/games" // Know your basic profile info and list of people in your circles. PlusLoginScope = "https://www.googleapis.com/auth/plus.login" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AchievementResetAllResponse ¶
type AchievementResetAllResponse struct { // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#achievementResetAllResponse. Kind string `json:"kind,omitempty"` // Results: The achievement reset results. Results []*AchievementResetResponse `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
AchievementResetAllResponse: This is a JSON template for achievement reset all response.
func (*AchievementResetAllResponse) MarshalJSON ¶
func (s *AchievementResetAllResponse) MarshalJSON() ([]byte, error)
type AchievementResetMultipleForAllRequest ¶
type AchievementResetMultipleForAllRequest struct { // AchievementIds: The IDs of achievements to reset. AchievementIds []string `json:"achievement_ids,omitempty"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string // gamesManagement#achievementResetMultipleForAllRequest. Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "AchievementIds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
AchievementResetMultipleForAllRequest: This is a JSON template for multiple achievements reset all request.
func (*AchievementResetMultipleForAllRequest) MarshalJSON ¶
func (s *AchievementResetMultipleForAllRequest) MarshalJSON() ([]byte, error)
type AchievementResetResponse ¶
type AchievementResetResponse struct { // CurrentState: The current state of the achievement. This is the same // as the initial state of the achievement. // Possible values are: // - "HIDDEN"- Achievement is hidden. // - "REVEALED" - Achievement is revealed. // - "UNLOCKED" - Achievement is unlocked. CurrentState string `json:"currentState,omitempty"` // DefinitionId: The ID of an achievement for which player state has // been updated. DefinitionId string `json:"definitionId,omitempty"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#achievementResetResponse. Kind string `json:"kind,omitempty"` // UpdateOccurred: Flag to indicate if the requested update actually // occurred. UpdateOccurred bool `json:"updateOccurred,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CurrentState") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
AchievementResetResponse: This is a JSON template for an achievement reset response.
func (*AchievementResetResponse) MarshalJSON ¶
func (s *AchievementResetResponse) MarshalJSON() ([]byte, error)
type AchievementsResetAllCall ¶
type AchievementsResetAllCall struct {
// contains filtered or unexported fields
}
func (*AchievementsResetAllCall) Context ¶
func (c *AchievementsResetAllCall) Context(ctx context.Context) *AchievementsResetAllCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AchievementsResetAllCall) Do ¶
func (c *AchievementsResetAllCall) Do() (*AchievementResetAllResponse, error)
Do executes the "gamesManagement.achievements.resetAll" call. Exactly one of *AchievementResetAllResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementResetAllResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AchievementsResetAllCall) Fields ¶
func (c *AchievementsResetAllCall) Fields(s ...googleapi.Field) *AchievementsResetAllCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AchievementsResetAllCall) QuotaUser ¶
func (c *AchievementsResetAllCall) QuotaUser(quotaUser string) *AchievementsResetAllCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AchievementsResetAllCall) UserIP ¶
func (c *AchievementsResetAllCall) UserIP(userIP string) *AchievementsResetAllCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AchievementsResetAllForAllPlayersCall ¶
type AchievementsResetAllForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*AchievementsResetAllForAllPlayersCall) Context ¶
func (c *AchievementsResetAllForAllPlayersCall) Context(ctx context.Context) *AchievementsResetAllForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AchievementsResetAllForAllPlayersCall) Do ¶
func (c *AchievementsResetAllForAllPlayersCall) Do() error
Do executes the "gamesManagement.achievements.resetAllForAllPlayers" call.
func (*AchievementsResetAllForAllPlayersCall) Fields ¶
func (c *AchievementsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetAllForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AchievementsResetAllForAllPlayersCall) QuotaUser ¶
func (c *AchievementsResetAllForAllPlayersCall) QuotaUser(quotaUser string) *AchievementsResetAllForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AchievementsResetAllForAllPlayersCall) UserIP ¶
func (c *AchievementsResetAllForAllPlayersCall) UserIP(userIP string) *AchievementsResetAllForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AchievementsResetCall ¶
type AchievementsResetCall struct {
// contains filtered or unexported fields
}
func (*AchievementsResetCall) Context ¶
func (c *AchievementsResetCall) Context(ctx context.Context) *AchievementsResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AchievementsResetCall) Do ¶
func (c *AchievementsResetCall) Do() (*AchievementResetResponse, error)
Do executes the "gamesManagement.achievements.reset" call. Exactly one of *AchievementResetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementResetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AchievementsResetCall) Fields ¶
func (c *AchievementsResetCall) Fields(s ...googleapi.Field) *AchievementsResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AchievementsResetCall) QuotaUser ¶
func (c *AchievementsResetCall) QuotaUser(quotaUser string) *AchievementsResetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AchievementsResetCall) UserIP ¶
func (c *AchievementsResetCall) UserIP(userIP string) *AchievementsResetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AchievementsResetForAllPlayersCall ¶
type AchievementsResetForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*AchievementsResetForAllPlayersCall) Context ¶
func (c *AchievementsResetForAllPlayersCall) Context(ctx context.Context) *AchievementsResetForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AchievementsResetForAllPlayersCall) Do ¶
func (c *AchievementsResetForAllPlayersCall) Do() error
Do executes the "gamesManagement.achievements.resetForAllPlayers" call.
func (*AchievementsResetForAllPlayersCall) Fields ¶
func (c *AchievementsResetForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AchievementsResetForAllPlayersCall) QuotaUser ¶
func (c *AchievementsResetForAllPlayersCall) QuotaUser(quotaUser string) *AchievementsResetForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AchievementsResetForAllPlayersCall) UserIP ¶
func (c *AchievementsResetForAllPlayersCall) UserIP(userIP string) *AchievementsResetForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AchievementsResetMultipleForAllPlayersCall ¶
type AchievementsResetMultipleForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*AchievementsResetMultipleForAllPlayersCall) Context ¶
func (c *AchievementsResetMultipleForAllPlayersCall) Context(ctx context.Context) *AchievementsResetMultipleForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AchievementsResetMultipleForAllPlayersCall) Do ¶
func (c *AchievementsResetMultipleForAllPlayersCall) Do() error
Do executes the "gamesManagement.achievements.resetMultipleForAllPlayers" call.
func (*AchievementsResetMultipleForAllPlayersCall) Fields ¶
func (c *AchievementsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetMultipleForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AchievementsResetMultipleForAllPlayersCall) QuotaUser ¶
func (c *AchievementsResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *AchievementsResetMultipleForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AchievementsResetMultipleForAllPlayersCall) UserIP ¶
func (c *AchievementsResetMultipleForAllPlayersCall) UserIP(userIP string) *AchievementsResetMultipleForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AchievementsService ¶
type AchievementsService struct {
// contains filtered or unexported fields
}
func NewAchievementsService ¶
func NewAchievementsService(s *Service) *AchievementsService
func (*AchievementsService) Reset ¶
func (r *AchievementsService) Reset(achievementId string) *AchievementsResetCall
Reset: Resets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
func (*AchievementsService) ResetAll ¶
func (r *AchievementsService) ResetAll() *AchievementsResetAllCall
ResetAll: Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
func (*AchievementsService) ResetAllForAllPlayers ¶
func (r *AchievementsService) ResetAllForAllPlayers() *AchievementsResetAllForAllPlayersCall
ResetAllForAllPlayers: Resets all draft achievements for all players. This method is only available to user accounts for your developer console.
func (*AchievementsService) ResetForAllPlayers ¶
func (r *AchievementsService) ResetForAllPlayers(achievementId string) *AchievementsResetForAllPlayersCall
ResetForAllPlayers: Resets the achievement with the given ID for all players. This method is only available to user accounts for your developer console. Only draft achievements can be reset.
func (*AchievementsService) ResetMultipleForAllPlayers ¶
func (r *AchievementsService) ResetMultipleForAllPlayers(achievementresetmultipleforallrequest *AchievementResetMultipleForAllRequest) *AchievementsResetMultipleForAllPlayersCall
ResetMultipleForAllPlayers: Resets achievements with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft achievements may be reset.
type ApplicationsListHiddenCall ¶
type ApplicationsListHiddenCall struct {
// contains filtered or unexported fields
}
func (*ApplicationsListHiddenCall) Context ¶
func (c *ApplicationsListHiddenCall) Context(ctx context.Context) *ApplicationsListHiddenCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ApplicationsListHiddenCall) Do ¶
func (c *ApplicationsListHiddenCall) Do() (*HiddenPlayerList, error)
Do executes the "gamesManagement.applications.listHidden" call. Exactly one of *HiddenPlayerList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HiddenPlayerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ApplicationsListHiddenCall) Fields ¶
func (c *ApplicationsListHiddenCall) Fields(s ...googleapi.Field) *ApplicationsListHiddenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ApplicationsListHiddenCall) IfNoneMatch ¶
func (c *ApplicationsListHiddenCall) IfNoneMatch(entityTag string) *ApplicationsListHiddenCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ApplicationsListHiddenCall) MaxResults ¶
func (c *ApplicationsListHiddenCall) MaxResults(maxResults int64) *ApplicationsListHiddenCall
MaxResults sets the optional parameter "maxResults": The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.
func (*ApplicationsListHiddenCall) PageToken ¶
func (c *ApplicationsListHiddenCall) PageToken(pageToken string) *ApplicationsListHiddenCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*ApplicationsListHiddenCall) QuotaUser ¶
func (c *ApplicationsListHiddenCall) QuotaUser(quotaUser string) *ApplicationsListHiddenCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ApplicationsListHiddenCall) UserIP ¶
func (c *ApplicationsListHiddenCall) UserIP(userIP string) *ApplicationsListHiddenCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ApplicationsService ¶
type ApplicationsService struct {
// contains filtered or unexported fields
}
func NewApplicationsService ¶
func NewApplicationsService(s *Service) *ApplicationsService
func (*ApplicationsService) ListHidden ¶
func (r *ApplicationsService) ListHidden(applicationId string) *ApplicationsListHiddenCall
ListHidden: Get the list of players hidden from the given application. This method is only available to user accounts for your developer console.
type EventsResetAllCall ¶
type EventsResetAllCall struct {
// contains filtered or unexported fields
}
func (*EventsResetAllCall) Context ¶
func (c *EventsResetAllCall) Context(ctx context.Context) *EventsResetAllCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventsResetAllCall) Do ¶
func (c *EventsResetAllCall) Do() error
Do executes the "gamesManagement.events.resetAll" call.
func (*EventsResetAllCall) Fields ¶
func (c *EventsResetAllCall) Fields(s ...googleapi.Field) *EventsResetAllCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventsResetAllCall) QuotaUser ¶
func (c *EventsResetAllCall) QuotaUser(quotaUser string) *EventsResetAllCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*EventsResetAllCall) UserIP ¶
func (c *EventsResetAllCall) UserIP(userIP string) *EventsResetAllCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type EventsResetAllForAllPlayersCall ¶
type EventsResetAllForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*EventsResetAllForAllPlayersCall) Context ¶
func (c *EventsResetAllForAllPlayersCall) Context(ctx context.Context) *EventsResetAllForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventsResetAllForAllPlayersCall) Do ¶
func (c *EventsResetAllForAllPlayersCall) Do() error
Do executes the "gamesManagement.events.resetAllForAllPlayers" call.
func (*EventsResetAllForAllPlayersCall) Fields ¶
func (c *EventsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetAllForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventsResetAllForAllPlayersCall) QuotaUser ¶
func (c *EventsResetAllForAllPlayersCall) QuotaUser(quotaUser string) *EventsResetAllForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*EventsResetAllForAllPlayersCall) UserIP ¶
func (c *EventsResetAllForAllPlayersCall) UserIP(userIP string) *EventsResetAllForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type EventsResetCall ¶
type EventsResetCall struct {
// contains filtered or unexported fields
}
func (*EventsResetCall) Context ¶
func (c *EventsResetCall) Context(ctx context.Context) *EventsResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventsResetCall) Do ¶
func (c *EventsResetCall) Do() error
Do executes the "gamesManagement.events.reset" call.
func (*EventsResetCall) Fields ¶
func (c *EventsResetCall) Fields(s ...googleapi.Field) *EventsResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventsResetCall) QuotaUser ¶
func (c *EventsResetCall) QuotaUser(quotaUser string) *EventsResetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*EventsResetCall) UserIP ¶
func (c *EventsResetCall) UserIP(userIP string) *EventsResetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type EventsResetForAllPlayersCall ¶
type EventsResetForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*EventsResetForAllPlayersCall) Context ¶
func (c *EventsResetForAllPlayersCall) Context(ctx context.Context) *EventsResetForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventsResetForAllPlayersCall) Do ¶
func (c *EventsResetForAllPlayersCall) Do() error
Do executes the "gamesManagement.events.resetForAllPlayers" call.
func (*EventsResetForAllPlayersCall) Fields ¶
func (c *EventsResetForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventsResetForAllPlayersCall) QuotaUser ¶
func (c *EventsResetForAllPlayersCall) QuotaUser(quotaUser string) *EventsResetForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*EventsResetForAllPlayersCall) UserIP ¶
func (c *EventsResetForAllPlayersCall) UserIP(userIP string) *EventsResetForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type EventsResetMultipleForAllPlayersCall ¶
type EventsResetMultipleForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*EventsResetMultipleForAllPlayersCall) Context ¶
func (c *EventsResetMultipleForAllPlayersCall) Context(ctx context.Context) *EventsResetMultipleForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EventsResetMultipleForAllPlayersCall) Do ¶
func (c *EventsResetMultipleForAllPlayersCall) Do() error
Do executes the "gamesManagement.events.resetMultipleForAllPlayers" call.
func (*EventsResetMultipleForAllPlayersCall) Fields ¶
func (c *EventsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetMultipleForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EventsResetMultipleForAllPlayersCall) QuotaUser ¶
func (c *EventsResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *EventsResetMultipleForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*EventsResetMultipleForAllPlayersCall) UserIP ¶
func (c *EventsResetMultipleForAllPlayersCall) UserIP(userIP string) *EventsResetMultipleForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type EventsResetMultipleForAllRequest ¶
type EventsResetMultipleForAllRequest struct { // EventIds: The IDs of events to reset. EventIds []string `json:"event_ids,omitempty"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#eventsResetMultipleForAllRequest. Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "EventIds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
EventsResetMultipleForAllRequest: This is a JSON template for multiple events reset all request.
func (*EventsResetMultipleForAllRequest) MarshalJSON ¶
func (s *EventsResetMultipleForAllRequest) MarshalJSON() ([]byte, error)
type EventsService ¶
type EventsService struct {
// contains filtered or unexported fields
}
func NewEventsService ¶
func NewEventsService(s *Service) *EventsService
func (*EventsService) Reset ¶
func (r *EventsService) Reset(eventId string) *EventsResetCall
Reset: Resets all player progress on the event with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. All quests for this player that use the event will also be reset.
func (*EventsService) ResetAll ¶
func (r *EventsService) ResetAll() *EventsResetAllCall
ResetAll: Resets all player progress on all events for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. All quests for this player will also be reset.
func (*EventsService) ResetAllForAllPlayers ¶
func (r *EventsService) ResetAllForAllPlayers() *EventsResetAllForAllPlayersCall
ResetAllForAllPlayers: Resets all draft events for all players. This method is only available to user accounts for your developer console. All quests that use any of these events will also be reset.
func (*EventsService) ResetForAllPlayers ¶
func (r *EventsService) ResetForAllPlayers(eventId string) *EventsResetForAllPlayersCall
ResetForAllPlayers: Resets the event with the given ID for all players. This method is only available to user accounts for your developer console. Only draft events can be reset. All quests that use the event will also be reset.
func (*EventsService) ResetMultipleForAllPlayers ¶
func (r *EventsService) ResetMultipleForAllPlayers(eventsresetmultipleforallrequest *EventsResetMultipleForAllRequest) *EventsResetMultipleForAllPlayersCall
ResetMultipleForAllPlayers: Resets events with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft events may be reset. All quests that use any of the events will also be reset.
type GamesPlayedResource ¶
type GamesPlayedResource struct { // AutoMatched: True if the player was auto-matched with the currently // authenticated user. AutoMatched bool `json:"autoMatched,omitempty"` // TimeMillis: The last time the player played the game in milliseconds // since the epoch in UTC. TimeMillis int64 `json:"timeMillis,omitempty,string"` // ForceSendFields is a list of field names (e.g. "AutoMatched") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
GamesPlayedResource: This is a JSON template for metadata about a player playing a game with the currently authenticated user.
func (*GamesPlayedResource) MarshalJSON ¶
func (s *GamesPlayedResource) MarshalJSON() ([]byte, error)
type GamesPlayerExperienceInfoResource ¶
type GamesPlayerExperienceInfoResource struct { // CurrentExperiencePoints: The current number of experience points for // the player. CurrentExperiencePoints int64 `json:"currentExperiencePoints,omitempty,string"` // CurrentLevel: The current level of the player. CurrentLevel *GamesPlayerLevelResource `json:"currentLevel,omitempty"` // LastLevelUpTimestampMillis: The timestamp when the player was leveled // up, in millis since Unix epoch UTC. LastLevelUpTimestampMillis int64 `json:"lastLevelUpTimestampMillis,omitempty,string"` // NextLevel: The next level of the player. If the current level is the // maximum level, this should be same as the current level. NextLevel *GamesPlayerLevelResource `json:"nextLevel,omitempty"` // ForceSendFields is a list of field names (e.g. // "CurrentExperiencePoints") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` }
GamesPlayerExperienceInfoResource: This is a JSON template for 1P/3P metadata about the player's experience.
func (*GamesPlayerExperienceInfoResource) MarshalJSON ¶
func (s *GamesPlayerExperienceInfoResource) MarshalJSON() ([]byte, error)
type GamesPlayerLevelResource ¶
type GamesPlayerLevelResource struct { // Level: The level for the user. Level int64 `json:"level,omitempty"` // MaxExperiencePoints: The maximum experience points for this level. MaxExperiencePoints int64 `json:"maxExperiencePoints,omitempty,string"` // MinExperiencePoints: The minimum experience points for this level. MinExperiencePoints int64 `json:"minExperiencePoints,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Level") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
GamesPlayerLevelResource: This is a JSON template for 1P/3P metadata about a user's level.
func (*GamesPlayerLevelResource) MarshalJSON ¶
func (s *GamesPlayerLevelResource) MarshalJSON() ([]byte, error)
type HiddenPlayer ¶
type HiddenPlayer struct { // HiddenTimeMillis: The time this player was hidden. HiddenTimeMillis int64 `json:"hiddenTimeMillis,omitempty,string"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#hiddenPlayer. Kind string `json:"kind,omitempty"` // Player: The player information. Player *Player `json:"player,omitempty"` // ForceSendFields is a list of field names (e.g. "HiddenTimeMillis") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
HiddenPlayer: This is a JSON template for the HiddenPlayer resource.
func (*HiddenPlayer) MarshalJSON ¶
func (s *HiddenPlayer) MarshalJSON() ([]byte, error)
type HiddenPlayerList ¶
type HiddenPlayerList struct { // Items: The players. Items []*HiddenPlayer `json:"items,omitempty"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#hiddenPlayerList. Kind string `json:"kind,omitempty"` // NextPageToken: The pagination token for the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
HiddenPlayerList: This is a JSON template for a list of hidden players.
func (*HiddenPlayerList) MarshalJSON ¶
func (s *HiddenPlayerList) MarshalJSON() ([]byte, error)
type Player ¶
type Player struct { // AvatarImageUrl: The base URL for the image that represents the // player. AvatarImageUrl string `json:"avatarImageUrl,omitempty"` // BannerUrlLandscape: The url to the landscape mode player banner // image. BannerUrlLandscape string `json:"bannerUrlLandscape,omitempty"` // BannerUrlPortrait: The url to the portrait mode player banner image. BannerUrlPortrait string `json:"bannerUrlPortrait,omitempty"` // DisplayName: The name to display for the player. DisplayName string `json:"displayName,omitempty"` // ExperienceInfo: An object to represent Play Game experience // information for the player. ExperienceInfo *GamesPlayerExperienceInfoResource `json:"experienceInfo,omitempty"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#player. Kind string `json:"kind,omitempty"` // LastPlayedWith: Details about the last time this player played a // multiplayer game with the currently authenticated player. Populated // for PLAYED_WITH player collection members. LastPlayedWith *GamesPlayedResource `json:"lastPlayedWith,omitempty"` // Name: An object representation of the individual components of the // player's name. For some players, these fields may not be present. Name *PlayerName `json:"name,omitempty"` // PlayerId: The ID of the player. PlayerId string `json:"playerId,omitempty"` // Title: The player's title rewarded for their game activities. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "AvatarImageUrl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Player: This is a JSON template for a Player resource.
func (*Player) MarshalJSON ¶
type PlayerName ¶
type PlayerName struct { // FamilyName: The family name of this player. In some places, this is // known as the last name. FamilyName string `json:"familyName,omitempty"` // GivenName: The given name of this player. In some places, this is // known as the first name. GivenName string `json:"givenName,omitempty"` // ForceSendFields is a list of field names (e.g. "FamilyName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PlayerName: An object representation of the individual components of the player's name. For some players, these fields may not be present.
func (*PlayerName) MarshalJSON ¶
func (s *PlayerName) MarshalJSON() ([]byte, error)
type PlayerScoreResetAllResponse ¶
type PlayerScoreResetAllResponse struct { // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#playerScoreResetResponse. Kind string `json:"kind,omitempty"` // Results: The leaderboard reset results. Results []*PlayerScoreResetResponse `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PlayerScoreResetAllResponse: This is a JSON template for a list of leaderboard reset resources.
func (*PlayerScoreResetAllResponse) MarshalJSON ¶
func (s *PlayerScoreResetAllResponse) MarshalJSON() ([]byte, error)
type PlayerScoreResetResponse ¶
type PlayerScoreResetResponse struct { // DefinitionId: The ID of an leaderboard for which player state has // been updated. DefinitionId string `json:"definitionId,omitempty"` // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#playerScoreResetResponse. Kind string `json:"kind,omitempty"` // ResetScoreTimeSpans: The time spans of the updated score. // Possible values are: // - "ALL_TIME" - The score is an all-time score. // - "WEEKLY" - The score is a weekly score. // - "DAILY" - The score is a daily score. ResetScoreTimeSpans []string `json:"resetScoreTimeSpans,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DefinitionId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PlayerScoreResetResponse: This is a JSON template for a list of reset leaderboard entry resources.
func (*PlayerScoreResetResponse) MarshalJSON ¶
func (s *PlayerScoreResetResponse) MarshalJSON() ([]byte, error)
type PlayersHideCall ¶
type PlayersHideCall struct {
// contains filtered or unexported fields
}
func (*PlayersHideCall) Context ¶
func (c *PlayersHideCall) Context(ctx context.Context) *PlayersHideCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlayersHideCall) Do ¶
func (c *PlayersHideCall) Do() error
Do executes the "gamesManagement.players.hide" call.
func (*PlayersHideCall) Fields ¶
func (c *PlayersHideCall) Fields(s ...googleapi.Field) *PlayersHideCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlayersHideCall) QuotaUser ¶
func (c *PlayersHideCall) QuotaUser(quotaUser string) *PlayersHideCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PlayersHideCall) UserIP ¶
func (c *PlayersHideCall) UserIP(userIP string) *PlayersHideCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PlayersService ¶
type PlayersService struct {
// contains filtered or unexported fields
}
func NewPlayersService ¶
func NewPlayersService(s *Service) *PlayersService
func (*PlayersService) Hide ¶
func (r *PlayersService) Hide(applicationId string, playerId string) *PlayersHideCall
Hide: Hide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
func (*PlayersService) Unhide ¶
func (r *PlayersService) Unhide(applicationId string, playerId string) *PlayersUnhideCall
Unhide: Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
type PlayersUnhideCall ¶
type PlayersUnhideCall struct {
// contains filtered or unexported fields
}
func (*PlayersUnhideCall) Context ¶
func (c *PlayersUnhideCall) Context(ctx context.Context) *PlayersUnhideCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlayersUnhideCall) Do ¶
func (c *PlayersUnhideCall) Do() error
Do executes the "gamesManagement.players.unhide" call.
func (*PlayersUnhideCall) Fields ¶
func (c *PlayersUnhideCall) Fields(s ...googleapi.Field) *PlayersUnhideCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlayersUnhideCall) QuotaUser ¶
func (c *PlayersUnhideCall) QuotaUser(quotaUser string) *PlayersUnhideCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PlayersUnhideCall) UserIP ¶
func (c *PlayersUnhideCall) UserIP(userIP string) *PlayersUnhideCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type QuestsResetAllCall ¶
type QuestsResetAllCall struct {
// contains filtered or unexported fields
}
func (*QuestsResetAllCall) Context ¶
func (c *QuestsResetAllCall) Context(ctx context.Context) *QuestsResetAllCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*QuestsResetAllCall) Do ¶
func (c *QuestsResetAllCall) Do() error
Do executes the "gamesManagement.quests.resetAll" call.
func (*QuestsResetAllCall) Fields ¶
func (c *QuestsResetAllCall) Fields(s ...googleapi.Field) *QuestsResetAllCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*QuestsResetAllCall) QuotaUser ¶
func (c *QuestsResetAllCall) QuotaUser(quotaUser string) *QuestsResetAllCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*QuestsResetAllCall) UserIP ¶
func (c *QuestsResetAllCall) UserIP(userIP string) *QuestsResetAllCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type QuestsResetAllForAllPlayersCall ¶
type QuestsResetAllForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*QuestsResetAllForAllPlayersCall) Context ¶
func (c *QuestsResetAllForAllPlayersCall) Context(ctx context.Context) *QuestsResetAllForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*QuestsResetAllForAllPlayersCall) Do ¶
func (c *QuestsResetAllForAllPlayersCall) Do() error
Do executes the "gamesManagement.quests.resetAllForAllPlayers" call.
func (*QuestsResetAllForAllPlayersCall) Fields ¶
func (c *QuestsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *QuestsResetAllForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*QuestsResetAllForAllPlayersCall) QuotaUser ¶
func (c *QuestsResetAllForAllPlayersCall) QuotaUser(quotaUser string) *QuestsResetAllForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*QuestsResetAllForAllPlayersCall) UserIP ¶
func (c *QuestsResetAllForAllPlayersCall) UserIP(userIP string) *QuestsResetAllForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type QuestsResetCall ¶
type QuestsResetCall struct {
// contains filtered or unexported fields
}
func (*QuestsResetCall) Context ¶
func (c *QuestsResetCall) Context(ctx context.Context) *QuestsResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*QuestsResetCall) Do ¶
func (c *QuestsResetCall) Do() error
Do executes the "gamesManagement.quests.reset" call.
func (*QuestsResetCall) Fields ¶
func (c *QuestsResetCall) Fields(s ...googleapi.Field) *QuestsResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*QuestsResetCall) QuotaUser ¶
func (c *QuestsResetCall) QuotaUser(quotaUser string) *QuestsResetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*QuestsResetCall) UserIP ¶
func (c *QuestsResetCall) UserIP(userIP string) *QuestsResetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type QuestsResetForAllPlayersCall ¶
type QuestsResetForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*QuestsResetForAllPlayersCall) Context ¶
func (c *QuestsResetForAllPlayersCall) Context(ctx context.Context) *QuestsResetForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*QuestsResetForAllPlayersCall) Do ¶
func (c *QuestsResetForAllPlayersCall) Do() error
Do executes the "gamesManagement.quests.resetForAllPlayers" call.
func (*QuestsResetForAllPlayersCall) Fields ¶
func (c *QuestsResetForAllPlayersCall) Fields(s ...googleapi.Field) *QuestsResetForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*QuestsResetForAllPlayersCall) QuotaUser ¶
func (c *QuestsResetForAllPlayersCall) QuotaUser(quotaUser string) *QuestsResetForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*QuestsResetForAllPlayersCall) UserIP ¶
func (c *QuestsResetForAllPlayersCall) UserIP(userIP string) *QuestsResetForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type QuestsResetMultipleForAllPlayersCall ¶
type QuestsResetMultipleForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*QuestsResetMultipleForAllPlayersCall) Context ¶
func (c *QuestsResetMultipleForAllPlayersCall) Context(ctx context.Context) *QuestsResetMultipleForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*QuestsResetMultipleForAllPlayersCall) Do ¶
func (c *QuestsResetMultipleForAllPlayersCall) Do() error
Do executes the "gamesManagement.quests.resetMultipleForAllPlayers" call.
func (*QuestsResetMultipleForAllPlayersCall) Fields ¶
func (c *QuestsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *QuestsResetMultipleForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*QuestsResetMultipleForAllPlayersCall) QuotaUser ¶
func (c *QuestsResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *QuestsResetMultipleForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*QuestsResetMultipleForAllPlayersCall) UserIP ¶
func (c *QuestsResetMultipleForAllPlayersCall) UserIP(userIP string) *QuestsResetMultipleForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type QuestsResetMultipleForAllRequest ¶
type QuestsResetMultipleForAllRequest struct { // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#questsResetMultipleForAllRequest. Kind string `json:"kind,omitempty"` // QuestIds: The IDs of quests to reset. QuestIds []string `json:"quest_ids,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
QuestsResetMultipleForAllRequest: This is a JSON template for multiple quests reset all request.
func (*QuestsResetMultipleForAllRequest) MarshalJSON ¶
func (s *QuestsResetMultipleForAllRequest) MarshalJSON() ([]byte, error)
type QuestsService ¶
type QuestsService struct {
// contains filtered or unexported fields
}
func NewQuestsService ¶
func NewQuestsService(s *Service) *QuestsService
func (*QuestsService) Reset ¶
func (r *QuestsService) Reset(questId string) *QuestsResetCall
Reset: Resets all player progress on the quest with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
func (*QuestsService) ResetAll ¶
func (r *QuestsService) ResetAll() *QuestsResetAllCall
ResetAll: Resets all player progress on all quests for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
func (*QuestsService) ResetAllForAllPlayers ¶
func (r *QuestsService) ResetAllForAllPlayers() *QuestsResetAllForAllPlayersCall
ResetAllForAllPlayers: Resets all draft quests for all players. This method is only available to user accounts for your developer console.
func (*QuestsService) ResetForAllPlayers ¶
func (r *QuestsService) ResetForAllPlayers(questId string) *QuestsResetForAllPlayersCall
ResetForAllPlayers: Resets all player progress on the quest with the given ID for all players. This method is only available to user accounts for your developer console. Only draft quests can be reset.
func (*QuestsService) ResetMultipleForAllPlayers ¶
func (r *QuestsService) ResetMultipleForAllPlayers(questsresetmultipleforallrequest *QuestsResetMultipleForAllRequest) *QuestsResetMultipleForAllPlayersCall
ResetMultipleForAllPlayers: Resets quests with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft quests may be reset.
type RoomsResetCall ¶
type RoomsResetCall struct {
// contains filtered or unexported fields
}
func (*RoomsResetCall) Context ¶
func (c *RoomsResetCall) Context(ctx context.Context) *RoomsResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoomsResetCall) Do ¶
func (c *RoomsResetCall) Do() error
Do executes the "gamesManagement.rooms.reset" call.
func (*RoomsResetCall) Fields ¶
func (c *RoomsResetCall) Fields(s ...googleapi.Field) *RoomsResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RoomsResetCall) QuotaUser ¶
func (c *RoomsResetCall) QuotaUser(quotaUser string) *RoomsResetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*RoomsResetCall) UserIP ¶
func (c *RoomsResetCall) UserIP(userIP string) *RoomsResetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type RoomsResetForAllPlayersCall ¶
type RoomsResetForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*RoomsResetForAllPlayersCall) Context ¶
func (c *RoomsResetForAllPlayersCall) Context(ctx context.Context) *RoomsResetForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*RoomsResetForAllPlayersCall) Do ¶
func (c *RoomsResetForAllPlayersCall) Do() error
Do executes the "gamesManagement.rooms.resetForAllPlayers" call.
func (*RoomsResetForAllPlayersCall) Fields ¶
func (c *RoomsResetForAllPlayersCall) Fields(s ...googleapi.Field) *RoomsResetForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RoomsResetForAllPlayersCall) QuotaUser ¶
func (c *RoomsResetForAllPlayersCall) QuotaUser(quotaUser string) *RoomsResetForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*RoomsResetForAllPlayersCall) UserIP ¶
func (c *RoomsResetForAllPlayersCall) UserIP(userIP string) *RoomsResetForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type RoomsService ¶
type RoomsService struct {
// contains filtered or unexported fields
}
func NewRoomsService ¶
func NewRoomsService(s *Service) *RoomsService
func (*RoomsService) Reset ¶
func (r *RoomsService) Reset() *RoomsResetCall
Reset: Reset all rooms for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
func (*RoomsService) ResetForAllPlayers ¶
func (r *RoomsService) ResetForAllPlayers() *RoomsResetForAllPlayersCall
ResetForAllPlayers: Deletes rooms where the only room participants are from whitelisted tester accounts for your application. This method is only available to user accounts for your developer console.
type ScoresResetAllCall ¶
type ScoresResetAllCall struct {
// contains filtered or unexported fields
}
func (*ScoresResetAllCall) Context ¶
func (c *ScoresResetAllCall) Context(ctx context.Context) *ScoresResetAllCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ScoresResetAllCall) Do ¶
func (c *ScoresResetAllCall) Do() (*PlayerScoreResetAllResponse, error)
Do executes the "gamesManagement.scores.resetAll" call. Exactly one of *PlayerScoreResetAllResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PlayerScoreResetAllResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ScoresResetAllCall) Fields ¶
func (c *ScoresResetAllCall) Fields(s ...googleapi.Field) *ScoresResetAllCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ScoresResetAllCall) QuotaUser ¶
func (c *ScoresResetAllCall) QuotaUser(quotaUser string) *ScoresResetAllCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ScoresResetAllCall) UserIP ¶
func (c *ScoresResetAllCall) UserIP(userIP string) *ScoresResetAllCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ScoresResetAllForAllPlayersCall ¶
type ScoresResetAllForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*ScoresResetAllForAllPlayersCall) Context ¶
func (c *ScoresResetAllForAllPlayersCall) Context(ctx context.Context) *ScoresResetAllForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ScoresResetAllForAllPlayersCall) Do ¶
func (c *ScoresResetAllForAllPlayersCall) Do() error
Do executes the "gamesManagement.scores.resetAllForAllPlayers" call.
func (*ScoresResetAllForAllPlayersCall) Fields ¶
func (c *ScoresResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetAllForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ScoresResetAllForAllPlayersCall) QuotaUser ¶
func (c *ScoresResetAllForAllPlayersCall) QuotaUser(quotaUser string) *ScoresResetAllForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ScoresResetAllForAllPlayersCall) UserIP ¶
func (c *ScoresResetAllForAllPlayersCall) UserIP(userIP string) *ScoresResetAllForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ScoresResetCall ¶
type ScoresResetCall struct {
// contains filtered or unexported fields
}
func (*ScoresResetCall) Context ¶
func (c *ScoresResetCall) Context(ctx context.Context) *ScoresResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ScoresResetCall) Do ¶
func (c *ScoresResetCall) Do() (*PlayerScoreResetResponse, error)
Do executes the "gamesManagement.scores.reset" call. Exactly one of *PlayerScoreResetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PlayerScoreResetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ScoresResetCall) Fields ¶
func (c *ScoresResetCall) Fields(s ...googleapi.Field) *ScoresResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ScoresResetCall) QuotaUser ¶
func (c *ScoresResetCall) QuotaUser(quotaUser string) *ScoresResetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ScoresResetCall) UserIP ¶
func (c *ScoresResetCall) UserIP(userIP string) *ScoresResetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ScoresResetForAllPlayersCall ¶
type ScoresResetForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*ScoresResetForAllPlayersCall) Context ¶
func (c *ScoresResetForAllPlayersCall) Context(ctx context.Context) *ScoresResetForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ScoresResetForAllPlayersCall) Do ¶
func (c *ScoresResetForAllPlayersCall) Do() error
Do executes the "gamesManagement.scores.resetForAllPlayers" call.
func (*ScoresResetForAllPlayersCall) Fields ¶
func (c *ScoresResetForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ScoresResetForAllPlayersCall) QuotaUser ¶
func (c *ScoresResetForAllPlayersCall) QuotaUser(quotaUser string) *ScoresResetForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ScoresResetForAllPlayersCall) UserIP ¶
func (c *ScoresResetForAllPlayersCall) UserIP(userIP string) *ScoresResetForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ScoresResetMultipleForAllPlayersCall ¶
type ScoresResetMultipleForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*ScoresResetMultipleForAllPlayersCall) Context ¶
func (c *ScoresResetMultipleForAllPlayersCall) Context(ctx context.Context) *ScoresResetMultipleForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ScoresResetMultipleForAllPlayersCall) Do ¶
func (c *ScoresResetMultipleForAllPlayersCall) Do() error
Do executes the "gamesManagement.scores.resetMultipleForAllPlayers" call.
func (*ScoresResetMultipleForAllPlayersCall) Fields ¶
func (c *ScoresResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetMultipleForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ScoresResetMultipleForAllPlayersCall) QuotaUser ¶
func (c *ScoresResetMultipleForAllPlayersCall) QuotaUser(quotaUser string) *ScoresResetMultipleForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*ScoresResetMultipleForAllPlayersCall) UserIP ¶
func (c *ScoresResetMultipleForAllPlayersCall) UserIP(userIP string) *ScoresResetMultipleForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type ScoresResetMultipleForAllRequest ¶
type ScoresResetMultipleForAllRequest struct { // Kind: Uniquely identifies the type of this resource. Value is always // the fixed string gamesManagement#scoresResetMultipleForAllRequest. Kind string `json:"kind,omitempty"` // LeaderboardIds: The IDs of leaderboards to reset. LeaderboardIds []string `json:"leaderboard_ids,omitempty"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
ScoresResetMultipleForAllRequest: This is a JSON template for multiple scores reset all request.
func (*ScoresResetMultipleForAllRequest) MarshalJSON ¶
func (s *ScoresResetMultipleForAllRequest) MarshalJSON() ([]byte, error)
type ScoresService ¶
type ScoresService struct {
// contains filtered or unexported fields
}
func NewScoresService ¶
func NewScoresService(s *Service) *ScoresService
func (*ScoresService) Reset ¶
func (r *ScoresService) Reset(leaderboardId string) *ScoresResetCall
Reset: Resets scores for the leaderboard with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
func (*ScoresService) ResetAll ¶
func (r *ScoresService) ResetAll() *ScoresResetAllCall
ResetAll: Resets all scores for all leaderboards for the currently authenticated players. This method is only accessible to whitelisted tester accounts for your application.
func (*ScoresService) ResetAllForAllPlayers ¶
func (r *ScoresService) ResetAllForAllPlayers() *ScoresResetAllForAllPlayersCall
ResetAllForAllPlayers: Resets scores for all draft leaderboards for all players. This method is only available to user accounts for your developer console.
func (*ScoresService) ResetForAllPlayers ¶
func (r *ScoresService) ResetForAllPlayers(leaderboardId string) *ScoresResetForAllPlayersCall
ResetForAllPlayers: Resets scores for the leaderboard with the given ID for all players. This method is only available to user accounts for your developer console. Only draft leaderboards can be reset.
func (*ScoresService) ResetMultipleForAllPlayers ¶
func (r *ScoresService) ResetMultipleForAllPlayers(scoresresetmultipleforallrequest *ScoresResetMultipleForAllRequest) *ScoresResetMultipleForAllPlayersCall
ResetMultipleForAllPlayers: Resets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Achievements *AchievementsService Applications *ApplicationsService Events *EventsService Players *PlayersService Quests *QuestsService Rooms *RoomsService Scores *ScoresService TurnBasedMatches *TurnBasedMatchesService // contains filtered or unexported fields }
type TurnBasedMatchesResetCall ¶
type TurnBasedMatchesResetCall struct {
// contains filtered or unexported fields
}
func (*TurnBasedMatchesResetCall) Context ¶
func (c *TurnBasedMatchesResetCall) Context(ctx context.Context) *TurnBasedMatchesResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TurnBasedMatchesResetCall) Do ¶
func (c *TurnBasedMatchesResetCall) Do() error
Do executes the "gamesManagement.turnBasedMatches.reset" call.
func (*TurnBasedMatchesResetCall) Fields ¶
func (c *TurnBasedMatchesResetCall) Fields(s ...googleapi.Field) *TurnBasedMatchesResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TurnBasedMatchesResetCall) QuotaUser ¶
func (c *TurnBasedMatchesResetCall) QuotaUser(quotaUser string) *TurnBasedMatchesResetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*TurnBasedMatchesResetCall) UserIP ¶
func (c *TurnBasedMatchesResetCall) UserIP(userIP string) *TurnBasedMatchesResetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type TurnBasedMatchesResetForAllPlayersCall ¶
type TurnBasedMatchesResetForAllPlayersCall struct {
// contains filtered or unexported fields
}
func (*TurnBasedMatchesResetForAllPlayersCall) Context ¶
func (c *TurnBasedMatchesResetForAllPlayersCall) Context(ctx context.Context) *TurnBasedMatchesResetForAllPlayersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*TurnBasedMatchesResetForAllPlayersCall) Do ¶
func (c *TurnBasedMatchesResetForAllPlayersCall) Do() error
Do executes the "gamesManagement.turnBasedMatches.resetForAllPlayers" call.
func (*TurnBasedMatchesResetForAllPlayersCall) Fields ¶
func (c *TurnBasedMatchesResetForAllPlayersCall) Fields(s ...googleapi.Field) *TurnBasedMatchesResetForAllPlayersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*TurnBasedMatchesResetForAllPlayersCall) QuotaUser ¶
func (c *TurnBasedMatchesResetForAllPlayersCall) QuotaUser(quotaUser string) *TurnBasedMatchesResetForAllPlayersCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*TurnBasedMatchesResetForAllPlayersCall) UserIP ¶
func (c *TurnBasedMatchesResetForAllPlayersCall) UserIP(userIP string) *TurnBasedMatchesResetForAllPlayersCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type TurnBasedMatchesService ¶
type TurnBasedMatchesService struct {
// contains filtered or unexported fields
}
func NewTurnBasedMatchesService ¶
func NewTurnBasedMatchesService(s *Service) *TurnBasedMatchesService
func (*TurnBasedMatchesService) Reset ¶
func (r *TurnBasedMatchesService) Reset() *TurnBasedMatchesResetCall
Reset: Reset all turn-based match data for a user. This method is only accessible to whitelisted tester accounts for your application.
func (*TurnBasedMatchesService) ResetForAllPlayers ¶
func (r *TurnBasedMatchesService) ResetForAllPlayers() *TurnBasedMatchesResetForAllPlayersCall
ResetForAllPlayers: Deletes turn-based matches where the only match participants are from whitelisted tester accounts for your application. This method is only available to user accounts for your developer console.