gamesconfiguration - ActiveState ActiveGo 1.8
...

Package gamesconfiguration

import "google.golang.org/api/gamesconfiguration/v1configuration"
Overview
Index

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
type AchievementConfiguration
    func (s *AchievementConfiguration) MarshalJSON() ([]byte, error)
type AchievementConfigurationDetail
    func (s *AchievementConfigurationDetail) MarshalJSON() ([]byte, error)
type AchievementConfigurationListResponse
    func (s *AchievementConfigurationListResponse) MarshalJSON() ([]byte, error)
type AchievementConfigurationsDeleteCall
    func (c *AchievementConfigurationsDeleteCall) Context(ctx context.Context) *AchievementConfigurationsDeleteCall
    func (c *AchievementConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) error
    func (c *AchievementConfigurationsDeleteCall) Fields(s ...googleapi.Field) *AchievementConfigurationsDeleteCall
    func (c *AchievementConfigurationsDeleteCall) Header() http.Header
type AchievementConfigurationsGetCall
    func (c *AchievementConfigurationsGetCall) Context(ctx context.Context) *AchievementConfigurationsGetCall
    func (c *AchievementConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)
    func (c *AchievementConfigurationsGetCall) Fields(s ...googleapi.Field) *AchievementConfigurationsGetCall
    func (c *AchievementConfigurationsGetCall) Header() http.Header
    func (c *AchievementConfigurationsGetCall) IfNoneMatch(entityTag string) *AchievementConfigurationsGetCall
type AchievementConfigurationsInsertCall
    func (c *AchievementConfigurationsInsertCall) Context(ctx context.Context) *AchievementConfigurationsInsertCall
    func (c *AchievementConfigurationsInsertCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)
    func (c *AchievementConfigurationsInsertCall) Fields(s ...googleapi.Field) *AchievementConfigurationsInsertCall
    func (c *AchievementConfigurationsInsertCall) Header() http.Header
type AchievementConfigurationsListCall
    func (c *AchievementConfigurationsListCall) Context(ctx context.Context) *AchievementConfigurationsListCall
    func (c *AchievementConfigurationsListCall) Do(opts ...googleapi.CallOption) (*AchievementConfigurationListResponse, error)
    func (c *AchievementConfigurationsListCall) Fields(s ...googleapi.Field) *AchievementConfigurationsListCall
    func (c *AchievementConfigurationsListCall) Header() http.Header
    func (c *AchievementConfigurationsListCall) IfNoneMatch(entityTag string) *AchievementConfigurationsListCall
    func (c *AchievementConfigurationsListCall) MaxResults(maxResults int64) *AchievementConfigurationsListCall
    func (c *AchievementConfigurationsListCall) PageToken(pageToken string) *AchievementConfigurationsListCall
    func (c *AchievementConfigurationsListCall) Pages(ctx context.Context, f func(*AchievementConfigurationListResponse) error) error
type AchievementConfigurationsPatchCall
    func (c *AchievementConfigurationsPatchCall) Context(ctx context.Context) *AchievementConfigurationsPatchCall
    func (c *AchievementConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)
    func (c *AchievementConfigurationsPatchCall) Fields(s ...googleapi.Field) *AchievementConfigurationsPatchCall
    func (c *AchievementConfigurationsPatchCall) Header() http.Header
type AchievementConfigurationsService
    func NewAchievementConfigurationsService(s *Service) *AchievementConfigurationsService
    func (r *AchievementConfigurationsService) Delete(achievementId string) *AchievementConfigurationsDeleteCall
    func (r *AchievementConfigurationsService) Get(achievementId string) *AchievementConfigurationsGetCall
    func (r *AchievementConfigurationsService) Insert(applicationId string, achievementconfiguration *AchievementConfiguration) *AchievementConfigurationsInsertCall
    func (r *AchievementConfigurationsService) List(applicationId string) *AchievementConfigurationsListCall
    func (r *AchievementConfigurationsService) Patch(achievementId string, achievementconfiguration *AchievementConfiguration) *AchievementConfigurationsPatchCall
    func (r *AchievementConfigurationsService) Update(achievementId string, achievementconfiguration *AchievementConfiguration) *AchievementConfigurationsUpdateCall
type AchievementConfigurationsUpdateCall
    func (c *AchievementConfigurationsUpdateCall) Context(ctx context.Context) *AchievementConfigurationsUpdateCall
    func (c *AchievementConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)
    func (c *AchievementConfigurationsUpdateCall) Fields(s ...googleapi.Field) *AchievementConfigurationsUpdateCall
    func (c *AchievementConfigurationsUpdateCall) Header() http.Header
type GamesNumberAffixConfiguration
    func (s *GamesNumberAffixConfiguration) MarshalJSON() ([]byte, error)
type GamesNumberFormatConfiguration
    func (s *GamesNumberFormatConfiguration) MarshalJSON() ([]byte, error)
type ImageConfiguration
    func (s *ImageConfiguration) MarshalJSON() ([]byte, error)
type ImageConfigurationsService
    func NewImageConfigurationsService(s *Service) *ImageConfigurationsService
    func (r *ImageConfigurationsService) Upload(resourceId string, imageType string) *ImageConfigurationsUploadCall
type ImageConfigurationsUploadCall
    func (c *ImageConfigurationsUploadCall) Context(ctx context.Context) *ImageConfigurationsUploadCall
    func (c *ImageConfigurationsUploadCall) Do(opts ...googleapi.CallOption) (*ImageConfiguration, error)
    func (c *ImageConfigurationsUploadCall) Fields(s ...googleapi.Field) *ImageConfigurationsUploadCall
    func (c *ImageConfigurationsUploadCall) Header() http.Header
    func (c *ImageConfigurationsUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *ImageConfigurationsUploadCall
    func (c *ImageConfigurationsUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ImageConfigurationsUploadCall
    func (c *ImageConfigurationsUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ImageConfigurationsUploadCall
type LeaderboardConfiguration
    func (s *LeaderboardConfiguration) MarshalJSON() ([]byte, error)
type LeaderboardConfigurationDetail
    func (s *LeaderboardConfigurationDetail) MarshalJSON() ([]byte, error)
type LeaderboardConfigurationListResponse
    func (s *LeaderboardConfigurationListResponse) MarshalJSON() ([]byte, error)
type LeaderboardConfigurationsDeleteCall
    func (c *LeaderboardConfigurationsDeleteCall) Context(ctx context.Context) *LeaderboardConfigurationsDeleteCall
    func (c *LeaderboardConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) error
    func (c *LeaderboardConfigurationsDeleteCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsDeleteCall
    func (c *LeaderboardConfigurationsDeleteCall) Header() http.Header
type LeaderboardConfigurationsGetCall
    func (c *LeaderboardConfigurationsGetCall) Context(ctx context.Context) *LeaderboardConfigurationsGetCall
    func (c *LeaderboardConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)
    func (c *LeaderboardConfigurationsGetCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsGetCall
    func (c *LeaderboardConfigurationsGetCall) Header() http.Header
    func (c *LeaderboardConfigurationsGetCall) IfNoneMatch(entityTag string) *LeaderboardConfigurationsGetCall
type LeaderboardConfigurationsInsertCall
    func (c *LeaderboardConfigurationsInsertCall) Context(ctx context.Context) *LeaderboardConfigurationsInsertCall
    func (c *LeaderboardConfigurationsInsertCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)
    func (c *LeaderboardConfigurationsInsertCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsInsertCall
    func (c *LeaderboardConfigurationsInsertCall) Header() http.Header
type LeaderboardConfigurationsListCall
    func (c *LeaderboardConfigurationsListCall) Context(ctx context.Context) *LeaderboardConfigurationsListCall
    func (c *LeaderboardConfigurationsListCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfigurationListResponse, error)
    func (c *LeaderboardConfigurationsListCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsListCall
    func (c *LeaderboardConfigurationsListCall) Header() http.Header
    func (c *LeaderboardConfigurationsListCall) IfNoneMatch(entityTag string) *LeaderboardConfigurationsListCall
    func (c *LeaderboardConfigurationsListCall) MaxResults(maxResults int64) *LeaderboardConfigurationsListCall
    func (c *LeaderboardConfigurationsListCall) PageToken(pageToken string) *LeaderboardConfigurationsListCall
    func (c *LeaderboardConfigurationsListCall) Pages(ctx context.Context, f func(*LeaderboardConfigurationListResponse) error) error
type LeaderboardConfigurationsPatchCall
    func (c *LeaderboardConfigurationsPatchCall) Context(ctx context.Context) *LeaderboardConfigurationsPatchCall
    func (c *LeaderboardConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)
    func (c *LeaderboardConfigurationsPatchCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsPatchCall
    func (c *LeaderboardConfigurationsPatchCall) Header() http.Header
type LeaderboardConfigurationsService
    func NewLeaderboardConfigurationsService(s *Service) *LeaderboardConfigurationsService
    func (r *LeaderboardConfigurationsService) Delete(leaderboardId string) *LeaderboardConfigurationsDeleteCall
    func (r *LeaderboardConfigurationsService) Get(leaderboardId string) *LeaderboardConfigurationsGetCall
    func (r *LeaderboardConfigurationsService) Insert(applicationId string, leaderboardconfiguration *LeaderboardConfiguration) *LeaderboardConfigurationsInsertCall
    func (r *LeaderboardConfigurationsService) List(applicationId string) *LeaderboardConfigurationsListCall
    func (r *LeaderboardConfigurationsService) Patch(leaderboardId string, leaderboardconfiguration *LeaderboardConfiguration) *LeaderboardConfigurationsPatchCall
    func (r *LeaderboardConfigurationsService) Update(leaderboardId string, leaderboardconfiguration *LeaderboardConfiguration) *LeaderboardConfigurationsUpdateCall
type LeaderboardConfigurationsUpdateCall
    func (c *LeaderboardConfigurationsUpdateCall) Context(ctx context.Context) *LeaderboardConfigurationsUpdateCall
    func (c *LeaderboardConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)
    func (c *LeaderboardConfigurationsUpdateCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsUpdateCall
    func (c *LeaderboardConfigurationsUpdateCall) Header() http.Header
type LocalizedString
    func (s *LocalizedString) MarshalJSON() ([]byte, error)
type LocalizedStringBundle
    func (s *LocalizedStringBundle) MarshalJSON() ([]byte, error)
type Service
    func New(client *http.Client) (*Service, error)

Package files

gamesconfiguration-gen.go

Constants

OAuth2 scopes used by this API.

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

type AchievementConfiguration

AchievementConfiguration: This is a JSON template for an achievement configuration resource.

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"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AchievementType") 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:"-"`

    // NullFields is a list of field names (e.g. "AchievementType") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*AchievementConfiguration) MarshalJSON

func (s *AchievementConfiguration) MarshalJSON() ([]byte, error)

type AchievementConfigurationDetail

AchievementConfigurationDetail: This is a JSON template for an achievement configuration detail.

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"`

    // ForceSendFields is a list of field names (e.g. "Description") 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:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AchievementConfigurationDetail) MarshalJSON

func (s *AchievementConfigurationDetail) MarshalJSON() ([]byte, error)

type AchievementConfigurationListResponse

AchievementConfigurationListResponse: This is a JSON template for a ListConfigurations response.

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"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AchievementConfigurationListResponse) MarshalJSON

func (s *AchievementConfigurationListResponse) MarshalJSON() ([]byte, error)

type AchievementConfigurationsDeleteCall

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

func (*AchievementConfigurationsDeleteCall) Context

func (c *AchievementConfigurationsDeleteCall) Context(ctx context.Context) *AchievementConfigurationsDeleteCall

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 (*AchievementConfigurationsDeleteCall) Do

func (c *AchievementConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesConfiguration.achievementConfigurations.delete" call.

func (*AchievementConfigurationsDeleteCall) Fields

func (c *AchievementConfigurationsDeleteCall) Fields(s ...googleapi.Field) *AchievementConfigurationsDeleteCall

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

func (*AchievementConfigurationsDeleteCall) Header

func (c *AchievementConfigurationsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementConfigurationsGetCall

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

func (*AchievementConfigurationsGetCall) Context

func (c *AchievementConfigurationsGetCall) Context(ctx context.Context) *AchievementConfigurationsGetCall

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 (*AchievementConfigurationsGetCall) Do

func (c *AchievementConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)

Do executes the "gamesConfiguration.achievementConfigurations.get" call. Exactly one of *AchievementConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementConfiguration.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 (*AchievementConfigurationsGetCall) Fields

func (c *AchievementConfigurationsGetCall) Fields(s ...googleapi.Field) *AchievementConfigurationsGetCall

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

func (*AchievementConfigurationsGetCall) Header

func (c *AchievementConfigurationsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AchievementConfigurationsGetCall) IfNoneMatch

func (c *AchievementConfigurationsGetCall) IfNoneMatch(entityTag string) *AchievementConfigurationsGetCall

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.

type AchievementConfigurationsInsertCall

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

func (*AchievementConfigurationsInsertCall) Context

func (c *AchievementConfigurationsInsertCall) Context(ctx context.Context) *AchievementConfigurationsInsertCall

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 (*AchievementConfigurationsInsertCall) Do

func (c *AchievementConfigurationsInsertCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)

Do executes the "gamesConfiguration.achievementConfigurations.insert" call. Exactly one of *AchievementConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementConfiguration.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 (*AchievementConfigurationsInsertCall) Fields

func (c *AchievementConfigurationsInsertCall) Fields(s ...googleapi.Field) *AchievementConfigurationsInsertCall

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

func (*AchievementConfigurationsInsertCall) Header

func (c *AchievementConfigurationsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementConfigurationsListCall

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

func (*AchievementConfigurationsListCall) Context

func (c *AchievementConfigurationsListCall) Context(ctx context.Context) *AchievementConfigurationsListCall

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 (*AchievementConfigurationsListCall) Do

func (c *AchievementConfigurationsListCall) Do(opts ...googleapi.CallOption) (*AchievementConfigurationListResponse, error)

Do executes the "gamesConfiguration.achievementConfigurations.list" call. Exactly one of *AchievementConfigurationListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementConfigurationListResponse.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 (*AchievementConfigurationsListCall) Fields

func (c *AchievementConfigurationsListCall) Fields(s ...googleapi.Field) *AchievementConfigurationsListCall

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

func (*AchievementConfigurationsListCall) Header

func (c *AchievementConfigurationsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AchievementConfigurationsListCall) IfNoneMatch

func (c *AchievementConfigurationsListCall) IfNoneMatch(entityTag string) *AchievementConfigurationsListCall

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 (*AchievementConfigurationsListCall) MaxResults

func (c *AchievementConfigurationsListCall) MaxResults(maxResults int64) *AchievementConfigurationsListCall

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

func (c *AchievementConfigurationsListCall) PageToken(pageToken string) *AchievementConfigurationsListCall

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

func (*AchievementConfigurationsListCall) Pages

func (c *AchievementConfigurationsListCall) Pages(ctx context.Context, f func(*AchievementConfigurationListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AchievementConfigurationsPatchCall

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

func (*AchievementConfigurationsPatchCall) Context

func (c *AchievementConfigurationsPatchCall) Context(ctx context.Context) *AchievementConfigurationsPatchCall

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 (*AchievementConfigurationsPatchCall) Do

func (c *AchievementConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)

Do executes the "gamesConfiguration.achievementConfigurations.patch" call. Exactly one of *AchievementConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementConfiguration.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 (*AchievementConfigurationsPatchCall) Fields

func (c *AchievementConfigurationsPatchCall) Fields(s ...googleapi.Field) *AchievementConfigurationsPatchCall

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

func (*AchievementConfigurationsPatchCall) Header

func (c *AchievementConfigurationsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementConfigurationsService

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

func NewAchievementConfigurationsService

func NewAchievementConfigurationsService(s *Service) *AchievementConfigurationsService

func (*AchievementConfigurationsService) Delete

func (r *AchievementConfigurationsService) Delete(achievementId string) *AchievementConfigurationsDeleteCall

Delete: Delete the achievement configuration with the given ID.

func (*AchievementConfigurationsService) Get

func (r *AchievementConfigurationsService) Get(achievementId string) *AchievementConfigurationsGetCall

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

func (r *AchievementConfigurationsService) List(applicationId string) *AchievementConfigurationsListCall

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) Context

func (c *AchievementConfigurationsUpdateCall) Context(ctx context.Context) *AchievementConfigurationsUpdateCall

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 (*AchievementConfigurationsUpdateCall) Do

func (c *AchievementConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*AchievementConfiguration, error)

Do executes the "gamesConfiguration.achievementConfigurations.update" call. Exactly one of *AchievementConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementConfiguration.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 (*AchievementConfigurationsUpdateCall) Fields

func (c *AchievementConfigurationsUpdateCall) Fields(s ...googleapi.Field) *AchievementConfigurationsUpdateCall

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

func (*AchievementConfigurationsUpdateCall) Header

func (c *AchievementConfigurationsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GamesNumberAffixConfiguration

GamesNumberAffixConfiguration: This is a JSON template for a number affix resource.

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"`

    // ForceSendFields is a list of field names (e.g. "Few") 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:"-"`

    // NullFields is a list of field names (e.g. "Few") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GamesNumberAffixConfiguration) MarshalJSON

func (s *GamesNumberAffixConfiguration) MarshalJSON() ([]byte, error)

type GamesNumberFormatConfiguration

GamesNumberFormatConfiguration: This is a JSON template for a number format resource.

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"`

    // ForceSendFields is a list of field names (e.g. "CurrencyCode") 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:"-"`

    // NullFields is a list of field names (e.g. "CurrencyCode") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GamesNumberFormatConfiguration) MarshalJSON

func (s *GamesNumberFormatConfiguration) MarshalJSON() ([]byte, error)

type ImageConfiguration

ImageConfiguration: This is a JSON template for an image configuration resource.

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"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ImageType") 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:"-"`

    // NullFields is a list of field names (e.g. "ImageType") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ImageConfiguration) MarshalJSON

func (s *ImageConfiguration) MarshalJSON() ([]byte, error)

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) Context

func (c *ImageConfigurationsUploadCall) Context(ctx context.Context) *ImageConfigurationsUploadCall

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. This context will supersede any context previously provided to the ResumableMedia method.

func (*ImageConfigurationsUploadCall) Do

func (c *ImageConfigurationsUploadCall) Do(opts ...googleapi.CallOption) (*ImageConfiguration, error)

Do executes the "gamesConfiguration.imageConfigurations.upload" call. Exactly one of *ImageConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ImageConfiguration.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 (*ImageConfigurationsUploadCall) Fields

func (c *ImageConfigurationsUploadCall) Fields(s ...googleapi.Field) *ImageConfigurationsUploadCall

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

func (*ImageConfigurationsUploadCall) Header

func (c *ImageConfigurationsUploadCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ImageConfigurationsUploadCall) Media

func (c *ImageConfigurationsUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *ImageConfigurationsUploadCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*ImageConfigurationsUploadCall) ProgressUpdater

func (c *ImageConfigurationsUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ImageConfigurationsUploadCall

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

func (c *ImageConfigurationsUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ImageConfigurationsUploadCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

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. The provided ctx will supersede any context previously provided to the Context method.

type LeaderboardConfiguration

LeaderboardConfiguration: This is a JSON template for an leaderboard configuration resource.

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"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Draft") 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:"-"`

    // NullFields is a list of field names (e.g. "Draft") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*LeaderboardConfiguration) MarshalJSON

func (s *LeaderboardConfiguration) MarshalJSON() ([]byte, error)

type LeaderboardConfigurationDetail

LeaderboardConfigurationDetail: This is a JSON template for a leaderboard configuration detail.

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"`

    // ForceSendFields is a list of field names (e.g. "IconUrl") 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:"-"`

    // NullFields is a list of field names (e.g. "IconUrl") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*LeaderboardConfigurationDetail) MarshalJSON

func (s *LeaderboardConfigurationDetail) MarshalJSON() ([]byte, error)

type LeaderboardConfigurationListResponse

LeaderboardConfigurationListResponse: This is a JSON template for a ListConfigurations response.

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"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*LeaderboardConfigurationListResponse) MarshalJSON

func (s *LeaderboardConfigurationListResponse) MarshalJSON() ([]byte, error)

type LeaderboardConfigurationsDeleteCall

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

func (*LeaderboardConfigurationsDeleteCall) Context

func (c *LeaderboardConfigurationsDeleteCall) Context(ctx context.Context) *LeaderboardConfigurationsDeleteCall

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 (*LeaderboardConfigurationsDeleteCall) Do

func (c *LeaderboardConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesConfiguration.leaderboardConfigurations.delete" call.

func (*LeaderboardConfigurationsDeleteCall) Fields

func (c *LeaderboardConfigurationsDeleteCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsDeleteCall

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

func (*LeaderboardConfigurationsDeleteCall) Header

func (c *LeaderboardConfigurationsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LeaderboardConfigurationsGetCall

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

func (*LeaderboardConfigurationsGetCall) Context

func (c *LeaderboardConfigurationsGetCall) Context(ctx context.Context) *LeaderboardConfigurationsGetCall

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 (*LeaderboardConfigurationsGetCall) Do

func (c *LeaderboardConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)

Do executes the "gamesConfiguration.leaderboardConfigurations.get" call. Exactly one of *LeaderboardConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LeaderboardConfiguration.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 (*LeaderboardConfigurationsGetCall) Fields

func (c *LeaderboardConfigurationsGetCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsGetCall

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

func (*LeaderboardConfigurationsGetCall) Header

func (c *LeaderboardConfigurationsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LeaderboardConfigurationsGetCall) IfNoneMatch

func (c *LeaderboardConfigurationsGetCall) IfNoneMatch(entityTag string) *LeaderboardConfigurationsGetCall

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.

type LeaderboardConfigurationsInsertCall

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

func (*LeaderboardConfigurationsInsertCall) Context

func (c *LeaderboardConfigurationsInsertCall) Context(ctx context.Context) *LeaderboardConfigurationsInsertCall

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 (*LeaderboardConfigurationsInsertCall) Do

func (c *LeaderboardConfigurationsInsertCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)

Do executes the "gamesConfiguration.leaderboardConfigurations.insert" call. Exactly one of *LeaderboardConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LeaderboardConfiguration.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 (*LeaderboardConfigurationsInsertCall) Fields

func (c *LeaderboardConfigurationsInsertCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsInsertCall

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

func (*LeaderboardConfigurationsInsertCall) Header

func (c *LeaderboardConfigurationsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LeaderboardConfigurationsListCall

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

func (*LeaderboardConfigurationsListCall) Context

func (c *LeaderboardConfigurationsListCall) Context(ctx context.Context) *LeaderboardConfigurationsListCall

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 (*LeaderboardConfigurationsListCall) Do

func (c *LeaderboardConfigurationsListCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfigurationListResponse, error)

Do executes the "gamesConfiguration.leaderboardConfigurations.list" call. Exactly one of *LeaderboardConfigurationListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LeaderboardConfigurationListResponse.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 (*LeaderboardConfigurationsListCall) Fields

func (c *LeaderboardConfigurationsListCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsListCall

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

func (*LeaderboardConfigurationsListCall) Header

func (c *LeaderboardConfigurationsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LeaderboardConfigurationsListCall) IfNoneMatch

func (c *LeaderboardConfigurationsListCall) IfNoneMatch(entityTag string) *LeaderboardConfigurationsListCall

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 (*LeaderboardConfigurationsListCall) MaxResults

func (c *LeaderboardConfigurationsListCall) MaxResults(maxResults int64) *LeaderboardConfigurationsListCall

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

func (c *LeaderboardConfigurationsListCall) PageToken(pageToken string) *LeaderboardConfigurationsListCall

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

func (*LeaderboardConfigurationsListCall) Pages

func (c *LeaderboardConfigurationsListCall) Pages(ctx context.Context, f func(*LeaderboardConfigurationListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type LeaderboardConfigurationsPatchCall

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

func (*LeaderboardConfigurationsPatchCall) Context

func (c *LeaderboardConfigurationsPatchCall) Context(ctx context.Context) *LeaderboardConfigurationsPatchCall

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 (*LeaderboardConfigurationsPatchCall) Do

func (c *LeaderboardConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)

Do executes the "gamesConfiguration.leaderboardConfigurations.patch" call. Exactly one of *LeaderboardConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LeaderboardConfiguration.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 (*LeaderboardConfigurationsPatchCall) Fields

func (c *LeaderboardConfigurationsPatchCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsPatchCall

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

func (*LeaderboardConfigurationsPatchCall) Header

func (c *LeaderboardConfigurationsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LeaderboardConfigurationsService

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

func NewLeaderboardConfigurationsService

func NewLeaderboardConfigurationsService(s *Service) *LeaderboardConfigurationsService

func (*LeaderboardConfigurationsService) Delete

func (r *LeaderboardConfigurationsService) Delete(leaderboardId string) *LeaderboardConfigurationsDeleteCall

Delete: Delete the leaderboard configuration with the given ID.

func (*LeaderboardConfigurationsService) Get

func (r *LeaderboardConfigurationsService) Get(leaderboardId string) *LeaderboardConfigurationsGetCall

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

func (r *LeaderboardConfigurationsService) List(applicationId string) *LeaderboardConfigurationsListCall

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) Context

func (c *LeaderboardConfigurationsUpdateCall) Context(ctx context.Context) *LeaderboardConfigurationsUpdateCall

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 (*LeaderboardConfigurationsUpdateCall) Do

func (c *LeaderboardConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*LeaderboardConfiguration, error)

Do executes the "gamesConfiguration.leaderboardConfigurations.update" call. Exactly one of *LeaderboardConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LeaderboardConfiguration.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 (*LeaderboardConfigurationsUpdateCall) Fields

func (c *LeaderboardConfigurationsUpdateCall) Fields(s ...googleapi.Field) *LeaderboardConfigurationsUpdateCall

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

func (*LeaderboardConfigurationsUpdateCall) Header

func (c *LeaderboardConfigurationsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LocalizedString

LocalizedString: This is a JSON template for a localized string resource.

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"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*LocalizedString) MarshalJSON

func (s *LocalizedString) MarshalJSON() ([]byte, error)

type LocalizedStringBundle

LocalizedStringBundle: This is a JSON template for a localized string bundle resource.

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"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*LocalizedStringBundle) MarshalJSON

func (s *LocalizedStringBundle) MarshalJSON() ([]byte, error)

type Service

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    AchievementConfigurations *AchievementConfigurationsService

    ImageConfigurations *ImageConfigurationsService

    LeaderboardConfigurations *LeaderboardConfigurationsService
    // contains filtered or unexported fields
}

func New

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