Skip to content

Commit e5f475b

Browse files
chore(games): update the api
#### games:v1 The following keys were deleted: - schemas.SnapshotCoverImageResource.properties.height (Total Keys: 1) - schemas.SnapshotCoverImageResource.properties.width (Total Keys: 1) - schemas.SnapshotExtended.properties.name (Total Keys: 1) - schemas.SnapshotMetadata.properties.duration (Total Keys: 2) The following keys were added: - resources.applications.methods.getEndPoint (Total Keys: 11) - schemas.EndPoint (Total Keys: 2) - schemas.ResolveSnapshotHeadRequest.properties.maxConflictsPerSnapshot (Total Keys: 2) - schemas.SnapshotDataResource.properties.size (Total Keys: 1) - schemas.SnapshotExtended.properties.snapshotName (Total Keys: 1) - schemas.SnapshotMetadata.properties.gameplayDuration (Total Keys: 2)
1 parent 3fce351 commit e5f475b

File tree

3 files changed

+3377
-3304
lines changed

3 files changed

+3377
-3304
lines changed

docs/dyn/games_v1.applications.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
8080
<p class="toc_element">
8181
<code><a href="#get">get(applicationId, language=None, platformType=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified `platformType`, the returned response will not include any instance data.</p>
83+
<p class="toc_element">
84+
<code><a href="#getEndPoint">getEndPoint(applicationId=None, endPointType=None, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Returns a URL for the requested end point type.</p>
8386
<p class="toc_element">
8487
<code><a href="#played">played(x__xgafv=None)</a></code></p>
8588
<p class="firstline">Indicate that the currently authenticated user is playing your application.</p>
@@ -173,6 +176,30 @@ <h3>Method Details</h3>
173176
}</pre>
174177
</div>
175178

179+
<div class="method">
180+
<code class="details" id="getEndPoint">getEndPoint(applicationId=None, endPointType=None, x__xgafv=None)</code>
181+
<pre>Returns a URL for the requested end point type.
182+
183+
Args:
184+
applicationId: string, The application ID from the Google Play developer console.
185+
endPointType: string, Type of endpoint being requested.
186+
Allowed values
187+
END_POINT_TYPE_UNSPECIFIED - Default value. This value is unused.
188+
PROFILE_CREATION - Request a URL to create a new profile.
189+
PROFILE_SETTINGS - Request a URL for the Settings view.
190+
x__xgafv: string, V1 error format.
191+
Allowed values
192+
1 - v1 error format
193+
2 - v2 error format
194+
195+
Returns:
196+
An object of the form:
197+
198+
{ # Container for a URL end point of the requested type.
199+
&quot;url&quot;: &quot;A String&quot;, # A URL suitable for loading in a web browser for the requested endpoint.
200+
}</pre>
201+
</div>
202+
176203
<div class="method">
177204
<code class="details" id="played">played(x__xgafv=None)</code>
178205
<pre>Indicate that the currently authenticated user is playing your application.

docs/dyn/games_v1.snapshotsExtended.html

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ <h3>Method Details</h3>
9696
The object takes the form of:
9797

9898
{ # Request for ResolveSnapshotHead RPC.
99+
&quot;maxConflictsPerSnapshot&quot;: 42, # The maximum number of SnapshotRevision resources for `conflictingRevisions` to return per SnapshotExtended resource in the response. For any response, the actual number of resources returned may be less than specified by `maxConflictsPerSnapshot`. The value provided should be greater or equal to 0. If no value is provided, the server will use a sensible default.
99100
&quot;resolutionPolicy&quot;: &quot;A String&quot;, # Required. The automatic resolution policy. All conflicts are resolved in chronological order, starting from the/ least recent. If the comparison metric is equal for the tentative head and the conflict, the head wins.
100101
}
101102

@@ -108,61 +109,59 @@ <h3>Method Details</h3>
108109
An object of the form:
109110

110111
{ # Response for ResolveSnapshotHead RPC.
111-
&quot;snapshot&quot;: { # A snapshot represents a saved game state referred to using the developer-provided snapshot_id (think of it as a file&#x27;s path). The set of attributes and binary data for a specific state is called a revision. Each revision is itself immutable, and referred to by a snapshot_revision_id. At any time, a snapshot has a &quot;head&quot; revision, and updates are made against that revision. If a snapshot update is received that isn&#x27;t against the current head revision, then instead of changing the head revision it will result in a conflicting revision that must be specifically resolved. # The state of the snapshot.
112+
&quot;snapshot&quot;: { # A snapshot represents a saved game state referred to using the developer-provided snapshot_name. The set of attributes and binary data for a specific state is called a revision. Each revision is itself immutable, and referred to by a snapshot revision id. At any time, a snapshot has a &quot;head&quot; revision, and updates are made against that revision. If a snapshot update is received that isn&#x27;t against the current head revision, then instead of changing the head revision it will result in a conflicting revision that must be specifically resolved. # The state of the snapshot.
112113
&quot;conflictingRevisions&quot;: [ # A list of conflicting revisions. Only set if explicitly requested (e.g. using a field mask or a request flag), or if the RPC guarantees that this field is set. The conflicting revisions are sorted chronologically by their server creation time (oldest first). If there are too many conflicting revisions to return all of them in a single request this will only contain the first batch. In such case, the presented conflicting revisions must be resolved first in order to fetch the next batch.
113114
{ # A Snapshot revision resource. Snapshot revisions are immutable.
114115
&quot;blob&quot;: { # Identifies a snapshot data resource. The data is provided by the game. # Reference to the game provided blob for this revision.
115-
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded blob, consistent per player per application. Within the context of a single player/application, it&#x27;s guaranteed that two identical blobs coming from two different uploads will have the same content hash. It&#x27;s extremely likely, though not guaranteed, that if two content hashes are equal, the blobs are identical.
116+
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded blob bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn&#x27;t changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
116117
&quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. A URL that the client can use to download the blob. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
117118
&quot;resourceId&quot;: &quot;A String&quot;, # The ID of the blob resource. It&#x27;s guaranteed that if two IDs are equal then the contents are equal as well. It&#x27;s not guaranteed that two identical blobs coming from separate uploads have the same resource ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it&#x27;s not possible to use SnapshotDataResource&#x27;s resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
118-
&quot;size&quot;: &quot;A String&quot;, # Size of the saved game blob in bytes.
119+
&quot;size&quot;: &quot;A String&quot;, # Output only. Size of the saved game blob in bytes.
119120
},
120121
&quot;coverImage&quot;: { # Identifies a snapshot cover image resource. The image is provided by the game. # Reference to the cover image for this revision.
121-
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. Within the context of a single player/application, it&#x27;s guaranteed that two identical blobs coming from two different uploads will have the same content hash. It&#x27;s extremely likely, though not guaranteed, that if two content hashes are equal, the images are identical.
122+
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn&#x27;t changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
122123
&quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. A URL the client can use to download the image. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
123-
&quot;height&quot;: 42, # Output only. The height of the image in pixels.
124+
&quot;height&quot;: 42, # The height of the image in pixels.
124125
&quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the image.
125126
&quot;resourceId&quot;: &quot;A String&quot;, # The ID of the image resource. It&#x27;s guaranteed that if two IDs are equal then the contents are equal as well. It&#x27;s not guaranteed that two identical blobs coming from separate uploads have the same ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it&#x27;s not possible to use SnapshotDataResource&#x27;s resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
126-
&quot;width&quot;: 42, # Output only. The width of the image in pixels.
127+
&quot;width&quot;: 42, # The width of the image in pixels.
127128
},
128129
&quot;id&quot;: &quot;A String&quot;, # Output only. A server generated identifier of the snapshot revision.
129130
&quot;metadata&quot;: { # Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision. # Metadata for this snapshot revision.
130131
&quot;description&quot;: &quot;A String&quot;, # The description of this snapshot.
131132
&quot;deviceName&quot;: &quot;A String&quot;, # The device that created the current revision.
132-
&quot;duration&quot;: &quot;A String&quot;, # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
133-
&quot;lastModifyTime&quot;: &quot;A String&quot;, # The timestamp of the last modification to this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
133+
&quot;gameplayDuration&quot;: &quot;A String&quot;, # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
134+
&quot;lastModifyTime&quot;: &quot;A String&quot;, # The timestamp of the last modification to this snapshot as provided by the client. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
134135
&quot;progressValue&quot;: &quot;A String&quot;, # The progress value (64-bit integer set by developer) associated with this snapshot.
135-
&quot;title&quot;: &quot;A String&quot;, # The title of this snapshot.
136136
},
137137
},
138138
],
139139
&quot;hasConflictingRevisions&quot;: True or False, # An indicator whether the snapshot has any conflicting revisions or not. Always set.
140140
&quot;headRevision&quot;: { # A Snapshot revision resource. Snapshot revisions are immutable. # The current head revision (the canonical revision as understood by the server).
141141
&quot;blob&quot;: { # Identifies a snapshot data resource. The data is provided by the game. # Reference to the game provided blob for this revision.
142-
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded blob, consistent per player per application. Within the context of a single player/application, it&#x27;s guaranteed that two identical blobs coming from two different uploads will have the same content hash. It&#x27;s extremely likely, though not guaranteed, that if two content hashes are equal, the blobs are identical.
142+
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded blob bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn&#x27;t changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
143143
&quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. A URL that the client can use to download the blob. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
144144
&quot;resourceId&quot;: &quot;A String&quot;, # The ID of the blob resource. It&#x27;s guaranteed that if two IDs are equal then the contents are equal as well. It&#x27;s not guaranteed that two identical blobs coming from separate uploads have the same resource ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it&#x27;s not possible to use SnapshotDataResource&#x27;s resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
145-
&quot;size&quot;: &quot;A String&quot;, # Size of the saved game blob in bytes.
145+
&quot;size&quot;: &quot;A String&quot;, # Output only. Size of the saved game blob in bytes.
146146
},
147147
&quot;coverImage&quot;: { # Identifies a snapshot cover image resource. The image is provided by the game. # Reference to the cover image for this revision.
148-
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. Within the context of a single player/application, it&#x27;s guaranteed that two identical blobs coming from two different uploads will have the same content hash. It&#x27;s extremely likely, though not guaranteed, that if two content hashes are equal, the images are identical.
148+
&quot;contentHash&quot;: &quot;A String&quot;, # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn&#x27;t changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
149149
&quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. A URL the client can use to download the image. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
150-
&quot;height&quot;: 42, # Output only. The height of the image in pixels.
150+
&quot;height&quot;: 42, # The height of the image in pixels.
151151
&quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the image.
152152
&quot;resourceId&quot;: &quot;A String&quot;, # The ID of the image resource. It&#x27;s guaranteed that if two IDs are equal then the contents are equal as well. It&#x27;s not guaranteed that two identical blobs coming from separate uploads have the same ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it&#x27;s not possible to use SnapshotDataResource&#x27;s resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
153-
&quot;width&quot;: 42, # Output only. The width of the image in pixels.
153+
&quot;width&quot;: 42, # The width of the image in pixels.
154154
},
155155
&quot;id&quot;: &quot;A String&quot;, # Output only. A server generated identifier of the snapshot revision.
156156
&quot;metadata&quot;: { # Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision. # Metadata for this snapshot revision.
157157
&quot;description&quot;: &quot;A String&quot;, # The description of this snapshot.
158158
&quot;deviceName&quot;: &quot;A String&quot;, # The device that created the current revision.
159-
&quot;duration&quot;: &quot;A String&quot;, # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
160-
&quot;lastModifyTime&quot;: &quot;A String&quot;, # The timestamp of the last modification to this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
159+
&quot;gameplayDuration&quot;: &quot;A String&quot;, # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
160+
&quot;lastModifyTime&quot;: &quot;A String&quot;, # The timestamp of the last modification to this snapshot as provided by the client. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
161161
&quot;progressValue&quot;: &quot;A String&quot;, # The progress value (64-bit integer set by developer) associated with this snapshot.
162-
&quot;title&quot;: &quot;A String&quot;, # The title of this snapshot.
163162
},
164163
},
165-
&quot;name&quot;: &quot;A String&quot;, # An identifier of the snapshot,developer-specified.
164+
&quot;snapshotName&quot;: &quot;A String&quot;, # An identifier of the snapshot, developer-specified. It must match the pattern [0-9a-zA-Z-._~]{1,100}.
166165
},
167166
}</pre>
168167
</div>

0 commit comments

Comments
 (0)