google-apis-games_v1 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/games_v1/classes.rb +0 -306
- data/lib/google/apis/games_v1/gem_version.rb +3 -3
- data/lib/google/apis/games_v1/representations.rb +0 -116
- data/lib/google/apis/games_v1/service.rb +0 -34
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c1c8065cf62ab2f8ed3a5ea26ee1966c7654fed8e35cfe3e42e04443bc44d7d
|
4
|
+
data.tar.gz: 43b4e74a34a028459bf87147edd24632e840d8f2556b8b5a67d17b9e3765861c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904ad2fe308cbbe2cd4a5969bc8d03d5e54b1dbc2a442f6a1c6fa6826be952ce2be409db474e436589553e9a239c9df4728ea24ee3af47f61400447aab4d3541
|
7
|
+
data.tar.gz: 92e22eb6209296aac442e4e7c434402b928a7e933aae43f7ade753c0c447343e82a8a943271bc00f461b93385b20d90da2330ad1e1ce53c7d13b8a894139046c
|
data/CHANGELOG.md
CHANGED
@@ -2306,63 +2306,6 @@ module Google
|
|
2306
2306
|
end
|
2307
2307
|
end
|
2308
2308
|
|
2309
|
-
# Request for ResolveSnapshotHead RPC.
|
2310
|
-
class ResolveSnapshotHeadRequest
|
2311
|
-
include Google::Apis::Core::Hashable
|
2312
|
-
|
2313
|
-
# The maximum number of SnapshotRevision resources for `conflictingRevisions` to
|
2314
|
-
# return per SnapshotExtended resource in the response. For any response, the
|
2315
|
-
# actual number of resources returned may be less than specified by `
|
2316
|
-
# maxConflictsPerSnapshot`. The value provided should be greater or equal to 0.
|
2317
|
-
# If no value is provided, the server will use a sensible default.
|
2318
|
-
# Corresponds to the JSON property `maxConflictsPerSnapshot`
|
2319
|
-
# @return [Fixnum]
|
2320
|
-
attr_accessor :max_conflicts_per_snapshot
|
2321
|
-
|
2322
|
-
# Required. The automatic resolution policy. All conflicts are resolved in
|
2323
|
-
# chronological order, starting from the/ least recent. If the comparison metric
|
2324
|
-
# is equal for the tentative head and the conflict, the head wins.
|
2325
|
-
# Corresponds to the JSON property `resolutionPolicy`
|
2326
|
-
# @return [String]
|
2327
|
-
attr_accessor :resolution_policy
|
2328
|
-
|
2329
|
-
def initialize(**args)
|
2330
|
-
update!(**args)
|
2331
|
-
end
|
2332
|
-
|
2333
|
-
# Update properties of this object
|
2334
|
-
def update!(**args)
|
2335
|
-
@max_conflicts_per_snapshot = args[:max_conflicts_per_snapshot] if args.key?(:max_conflicts_per_snapshot)
|
2336
|
-
@resolution_policy = args[:resolution_policy] if args.key?(:resolution_policy)
|
2337
|
-
end
|
2338
|
-
end
|
2339
|
-
|
2340
|
-
# Response for ResolveSnapshotHead RPC.
|
2341
|
-
class ResolveSnapshotHeadResponse
|
2342
|
-
include Google::Apis::Core::Hashable
|
2343
|
-
|
2344
|
-
# A snapshot represents a saved game state referred to using the developer-
|
2345
|
-
# provided snapshot_name. The set of attributes and binary data for a specific
|
2346
|
-
# state is called a revision. Each revision is itself immutable, and referred to
|
2347
|
-
# by a snapshot revision id. At any time, a snapshot has a "head" revision, and
|
2348
|
-
# updates are made against that revision. If a snapshot update is received that
|
2349
|
-
# isn't against the current head revision, then instead of changing the head
|
2350
|
-
# revision it will result in a conflicting revision that must be specifically
|
2351
|
-
# resolved.
|
2352
|
-
# Corresponds to the JSON property `snapshot`
|
2353
|
-
# @return [Google::Apis::GamesV1::SnapshotExtended]
|
2354
|
-
attr_accessor :snapshot
|
2355
|
-
|
2356
|
-
def initialize(**args)
|
2357
|
-
update!(**args)
|
2358
|
-
end
|
2359
|
-
|
2360
|
-
# Update properties of this object
|
2361
|
-
def update!(**args)
|
2362
|
-
@snapshot = args[:snapshot] if args.key?(:snapshot)
|
2363
|
-
end
|
2364
|
-
end
|
2365
|
-
|
2366
2309
|
# A third party checking a revision response.
|
2367
2310
|
class CheckRevisionResponse
|
2368
2311
|
include Google::Apis::Core::Hashable
|
@@ -2525,169 +2468,6 @@ module Google
|
|
2525
2468
|
end
|
2526
2469
|
end
|
2527
2470
|
|
2528
|
-
# Identifies a snapshot cover image resource. The image is provided by the game.
|
2529
|
-
class SnapshotCoverImageResource
|
2530
|
-
include Google::Apis::Core::Hashable
|
2531
|
-
|
2532
|
-
# Output only. Hash-like weak identifier of the uploaded image bytes, consistent
|
2533
|
-
# per player per application. The content hash for a given resource will not
|
2534
|
-
# change if the binary data hasn't changed. Except in very rare circumstances,
|
2535
|
-
# the content_hash for matching binary data will be the same within a given
|
2536
|
-
# player and application.
|
2537
|
-
# Corresponds to the JSON property `contentHash`
|
2538
|
-
# @return [String]
|
2539
|
-
attr_accessor :content_hash
|
2540
|
-
|
2541
|
-
# Output only. A URL the client can use to download the image. May vary across
|
2542
|
-
# requests, and only guaranteed to be valid for a short time after it is
|
2543
|
-
# returned.
|
2544
|
-
# Corresponds to the JSON property `downloadUrl`
|
2545
|
-
# @return [String]
|
2546
|
-
attr_accessor :download_url
|
2547
|
-
|
2548
|
-
# The height of the image in pixels.
|
2549
|
-
# Corresponds to the JSON property `height`
|
2550
|
-
# @return [Fixnum]
|
2551
|
-
attr_accessor :height
|
2552
|
-
|
2553
|
-
# Output only. The MIME type of the image.
|
2554
|
-
# Corresponds to the JSON property `mimeType`
|
2555
|
-
# @return [String]
|
2556
|
-
attr_accessor :mime_type
|
2557
|
-
|
2558
|
-
# The ID of the image resource. It's guaranteed that if two IDs are equal then
|
2559
|
-
# the contents are equal as well. It's not guaranteed that two identical blobs
|
2560
|
-
# coming from separate uploads have the same ID. The resource ID can only be
|
2561
|
-
# used within the application, user and resource type it was originally returned
|
2562
|
-
# for. For example, it's not possible to use SnapshotDataResource's resource ID
|
2563
|
-
# as the resource_id of a SnapshotCoverImageResource, even if the blob is a
|
2564
|
-
# valid image file.
|
2565
|
-
# Corresponds to the JSON property `resourceId`
|
2566
|
-
# @return [String]
|
2567
|
-
attr_accessor :resource_id
|
2568
|
-
|
2569
|
-
# The width of the image in pixels.
|
2570
|
-
# Corresponds to the JSON property `width`
|
2571
|
-
# @return [Fixnum]
|
2572
|
-
attr_accessor :width
|
2573
|
-
|
2574
|
-
def initialize(**args)
|
2575
|
-
update!(**args)
|
2576
|
-
end
|
2577
|
-
|
2578
|
-
# Update properties of this object
|
2579
|
-
def update!(**args)
|
2580
|
-
@content_hash = args[:content_hash] if args.key?(:content_hash)
|
2581
|
-
@download_url = args[:download_url] if args.key?(:download_url)
|
2582
|
-
@height = args[:height] if args.key?(:height)
|
2583
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
2584
|
-
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
2585
|
-
@width = args[:width] if args.key?(:width)
|
2586
|
-
end
|
2587
|
-
end
|
2588
|
-
|
2589
|
-
# Identifies a snapshot data resource. The data is provided by the game.
|
2590
|
-
class SnapshotDataResource
|
2591
|
-
include Google::Apis::Core::Hashable
|
2592
|
-
|
2593
|
-
# Output only. Hash-like weak identifier of the uploaded blob bytes, consistent
|
2594
|
-
# per player per application. The content hash for a given resource will not
|
2595
|
-
# change if the binary data hasn't changed. Except in very rare circumstances,
|
2596
|
-
# the content_hash for matching binary data will be the same within a given
|
2597
|
-
# player and application.
|
2598
|
-
# Corresponds to the JSON property `contentHash`
|
2599
|
-
# @return [String]
|
2600
|
-
attr_accessor :content_hash
|
2601
|
-
|
2602
|
-
# Output only. A URL that the client can use to download the blob. May vary
|
2603
|
-
# across requests, and only guaranteed to be valid for a short time after it is
|
2604
|
-
# returned.
|
2605
|
-
# Corresponds to the JSON property `downloadUrl`
|
2606
|
-
# @return [String]
|
2607
|
-
attr_accessor :download_url
|
2608
|
-
|
2609
|
-
# The ID of the blob resource. It's guaranteed that if two IDs are equal then
|
2610
|
-
# the contents are equal as well. It's not guaranteed that two identical blobs
|
2611
|
-
# coming from separate uploads have the same resource ID. The resource ID can
|
2612
|
-
# only be used within the application, user and resource type it was originally
|
2613
|
-
# returned for. For example, it's not possible to use SnapshotDataResource's
|
2614
|
-
# resource ID as the resource_id of a SnapshotCoverImageResource, even if the
|
2615
|
-
# blob is a valid image file.
|
2616
|
-
# Corresponds to the JSON property `resourceId`
|
2617
|
-
# @return [String]
|
2618
|
-
attr_accessor :resource_id
|
2619
|
-
|
2620
|
-
# Output only. Size of the saved game blob in bytes.
|
2621
|
-
# Corresponds to the JSON property `size`
|
2622
|
-
# @return [Fixnum]
|
2623
|
-
attr_accessor :size
|
2624
|
-
|
2625
|
-
def initialize(**args)
|
2626
|
-
update!(**args)
|
2627
|
-
end
|
2628
|
-
|
2629
|
-
# Update properties of this object
|
2630
|
-
def update!(**args)
|
2631
|
-
@content_hash = args[:content_hash] if args.key?(:content_hash)
|
2632
|
-
@download_url = args[:download_url] if args.key?(:download_url)
|
2633
|
-
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
2634
|
-
@size = args[:size] if args.key?(:size)
|
2635
|
-
end
|
2636
|
-
end
|
2637
|
-
|
2638
|
-
# A snapshot represents a saved game state referred to using the developer-
|
2639
|
-
# provided snapshot_name. The set of attributes and binary data for a specific
|
2640
|
-
# state is called a revision. Each revision is itself immutable, and referred to
|
2641
|
-
# by a snapshot revision id. At any time, a snapshot has a "head" revision, and
|
2642
|
-
# updates are made against that revision. If a snapshot update is received that
|
2643
|
-
# isn't against the current head revision, then instead of changing the head
|
2644
|
-
# revision it will result in a conflicting revision that must be specifically
|
2645
|
-
# resolved.
|
2646
|
-
class SnapshotExtended
|
2647
|
-
include Google::Apis::Core::Hashable
|
2648
|
-
|
2649
|
-
# A list of conflicting revisions. Only set if explicitly requested (e.g. using
|
2650
|
-
# a field mask or a request flag), or if the RPC guarantees that this field is
|
2651
|
-
# set. The conflicting revisions are sorted chronologically by their server
|
2652
|
-
# creation time (oldest first). If there are too many conflicting revisions to
|
2653
|
-
# return all of them in a single request this will only contain the first batch.
|
2654
|
-
# In such case, the presented conflicting revisions must be resolved first in
|
2655
|
-
# order to fetch the next batch.
|
2656
|
-
# Corresponds to the JSON property `conflictingRevisions`
|
2657
|
-
# @return [Array<Google::Apis::GamesV1::SnapshotRevision>]
|
2658
|
-
attr_accessor :conflicting_revisions
|
2659
|
-
|
2660
|
-
# An indicator whether the snapshot has any conflicting revisions or not. Always
|
2661
|
-
# set.
|
2662
|
-
# Corresponds to the JSON property `hasConflictingRevisions`
|
2663
|
-
# @return [Boolean]
|
2664
|
-
attr_accessor :has_conflicting_revisions
|
2665
|
-
alias_method :has_conflicting_revisions?, :has_conflicting_revisions
|
2666
|
-
|
2667
|
-
# A Snapshot revision resource. Snapshot revisions are immutable.
|
2668
|
-
# Corresponds to the JSON property `headRevision`
|
2669
|
-
# @return [Google::Apis::GamesV1::SnapshotRevision]
|
2670
|
-
attr_accessor :head_revision
|
2671
|
-
|
2672
|
-
# An identifier of the snapshot, developer-specified. It must match the pattern [
|
2673
|
-
# 0-9a-zA-Z-._~]`1,100`.
|
2674
|
-
# Corresponds to the JSON property `snapshotName`
|
2675
|
-
# @return [String]
|
2676
|
-
attr_accessor :snapshot_name
|
2677
|
-
|
2678
|
-
def initialize(**args)
|
2679
|
-
update!(**args)
|
2680
|
-
end
|
2681
|
-
|
2682
|
-
# Update properties of this object
|
2683
|
-
def update!(**args)
|
2684
|
-
@conflicting_revisions = args[:conflicting_revisions] if args.key?(:conflicting_revisions)
|
2685
|
-
@has_conflicting_revisions = args[:has_conflicting_revisions] if args.key?(:has_conflicting_revisions)
|
2686
|
-
@head_revision = args[:head_revision] if args.key?(:head_revision)
|
2687
|
-
@snapshot_name = args[:snapshot_name] if args.key?(:snapshot_name)
|
2688
|
-
end
|
2689
|
-
end
|
2690
|
-
|
2691
2471
|
# An image of a snapshot.
|
2692
2472
|
class SnapshotImage
|
2693
2473
|
include Google::Apis::Core::Hashable
|
@@ -2766,92 +2546,6 @@ module Google
|
|
2766
2546
|
end
|
2767
2547
|
end
|
2768
2548
|
|
2769
|
-
# Metadata about a snapshot revision. Snapshot metadata is immutable - a
|
2770
|
-
# metadata change corresponds to a new snapshot revision.
|
2771
|
-
class SnapshotMetadata
|
2772
|
-
include Google::Apis::Core::Hashable
|
2773
|
-
|
2774
|
-
# The description of this snapshot.
|
2775
|
-
# Corresponds to the JSON property `description`
|
2776
|
-
# @return [String]
|
2777
|
-
attr_accessor :description
|
2778
|
-
|
2779
|
-
# The device that created the current revision.
|
2780
|
-
# Corresponds to the JSON property `deviceName`
|
2781
|
-
# @return [String]
|
2782
|
-
attr_accessor :device_name
|
2783
|
-
|
2784
|
-
# The duration associated with this snapshot. Values with sub-millisecond
|
2785
|
-
# precision can be rounded or trimmed to the closest millisecond.
|
2786
|
-
# Corresponds to the JSON property `gameplayDuration`
|
2787
|
-
# @return [String]
|
2788
|
-
attr_accessor :gameplay_duration
|
2789
|
-
|
2790
|
-
# The timestamp of the last modification to this snapshot as provided by the
|
2791
|
-
# client. Values with sub-millisecond precision can be rounded or trimmed to the
|
2792
|
-
# closest millisecond.
|
2793
|
-
# Corresponds to the JSON property `lastModifyTime`
|
2794
|
-
# @return [String]
|
2795
|
-
attr_accessor :last_modify_time
|
2796
|
-
|
2797
|
-
# The progress value (64-bit integer set by developer) associated with this
|
2798
|
-
# snapshot.
|
2799
|
-
# Corresponds to the JSON property `progressValue`
|
2800
|
-
# @return [Fixnum]
|
2801
|
-
attr_accessor :progress_value
|
2802
|
-
|
2803
|
-
def initialize(**args)
|
2804
|
-
update!(**args)
|
2805
|
-
end
|
2806
|
-
|
2807
|
-
# Update properties of this object
|
2808
|
-
def update!(**args)
|
2809
|
-
@description = args[:description] if args.key?(:description)
|
2810
|
-
@device_name = args[:device_name] if args.key?(:device_name)
|
2811
|
-
@gameplay_duration = args[:gameplay_duration] if args.key?(:gameplay_duration)
|
2812
|
-
@last_modify_time = args[:last_modify_time] if args.key?(:last_modify_time)
|
2813
|
-
@progress_value = args[:progress_value] if args.key?(:progress_value)
|
2814
|
-
end
|
2815
|
-
end
|
2816
|
-
|
2817
|
-
# A Snapshot revision resource. Snapshot revisions are immutable.
|
2818
|
-
class SnapshotRevision
|
2819
|
-
include Google::Apis::Core::Hashable
|
2820
|
-
|
2821
|
-
# Identifies a snapshot data resource. The data is provided by the game.
|
2822
|
-
# Corresponds to the JSON property `blob`
|
2823
|
-
# @return [Google::Apis::GamesV1::SnapshotDataResource]
|
2824
|
-
attr_accessor :blob
|
2825
|
-
|
2826
|
-
# Identifies a snapshot cover image resource. The image is provided by the game.
|
2827
|
-
# Corresponds to the JSON property `coverImage`
|
2828
|
-
# @return [Google::Apis::GamesV1::SnapshotCoverImageResource]
|
2829
|
-
attr_accessor :cover_image
|
2830
|
-
|
2831
|
-
# Output only. A server generated identifier of the snapshot revision.
|
2832
|
-
# Corresponds to the JSON property `id`
|
2833
|
-
# @return [String]
|
2834
|
-
attr_accessor :id
|
2835
|
-
|
2836
|
-
# Metadata about a snapshot revision. Snapshot metadata is immutable - a
|
2837
|
-
# metadata change corresponds to a new snapshot revision.
|
2838
|
-
# Corresponds to the JSON property `metadata`
|
2839
|
-
# @return [Google::Apis::GamesV1::SnapshotMetadata]
|
2840
|
-
attr_accessor :metadata
|
2841
|
-
|
2842
|
-
def initialize(**args)
|
2843
|
-
update!(**args)
|
2844
|
-
end
|
2845
|
-
|
2846
|
-
# Update properties of this object
|
2847
|
-
def update!(**args)
|
2848
|
-
@blob = args[:blob] if args.key?(:blob)
|
2849
|
-
@cover_image = args[:cover_image] if args.key?(:cover_image)
|
2850
|
-
@id = args[:id] if args.key?(:id)
|
2851
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
2852
|
-
end
|
2853
|
-
end
|
2854
|
-
|
2855
2549
|
# A third party stats resource.
|
2856
2550
|
class StatsResponse
|
2857
2551
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module GamesV1
|
18
18
|
# Version of the google-apis-games_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.5.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210401"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -352,18 +352,6 @@ module Google
|
|
352
352
|
include Google::Apis::Core::JsonObjectSupport
|
353
353
|
end
|
354
354
|
|
355
|
-
class ResolveSnapshotHeadRequest
|
356
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
-
|
358
|
-
include Google::Apis::Core::JsonObjectSupport
|
359
|
-
end
|
360
|
-
|
361
|
-
class ResolveSnapshotHeadResponse
|
362
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
-
|
364
|
-
include Google::Apis::Core::JsonObjectSupport
|
365
|
-
end
|
366
|
-
|
367
355
|
class CheckRevisionResponse
|
368
356
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
357
|
|
@@ -382,24 +370,6 @@ module Google
|
|
382
370
|
include Google::Apis::Core::JsonObjectSupport
|
383
371
|
end
|
384
372
|
|
385
|
-
class SnapshotCoverImageResource
|
386
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
-
|
388
|
-
include Google::Apis::Core::JsonObjectSupport
|
389
|
-
end
|
390
|
-
|
391
|
-
class SnapshotDataResource
|
392
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
-
|
394
|
-
include Google::Apis::Core::JsonObjectSupport
|
395
|
-
end
|
396
|
-
|
397
|
-
class SnapshotExtended
|
398
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
-
|
400
|
-
include Google::Apis::Core::JsonObjectSupport
|
401
|
-
end
|
402
|
-
|
403
373
|
class SnapshotImage
|
404
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
375
|
|
@@ -412,18 +382,6 @@ module Google
|
|
412
382
|
include Google::Apis::Core::JsonObjectSupport
|
413
383
|
end
|
414
384
|
|
415
|
-
class SnapshotMetadata
|
416
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
-
|
418
|
-
include Google::Apis::Core::JsonObjectSupport
|
419
|
-
end
|
420
|
-
|
421
|
-
class SnapshotRevision
|
422
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
-
|
424
|
-
include Google::Apis::Core::JsonObjectSupport
|
425
|
-
end
|
426
|
-
|
427
385
|
class StatsResponse
|
428
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
387
|
|
@@ -1046,22 +1004,6 @@ module Google
|
|
1046
1004
|
end
|
1047
1005
|
end
|
1048
1006
|
|
1049
|
-
class ResolveSnapshotHeadRequest
|
1050
|
-
# @private
|
1051
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1052
|
-
property :max_conflicts_per_snapshot, as: 'maxConflictsPerSnapshot'
|
1053
|
-
property :resolution_policy, as: 'resolutionPolicy'
|
1054
|
-
end
|
1055
|
-
end
|
1056
|
-
|
1057
|
-
class ResolveSnapshotHeadResponse
|
1058
|
-
# @private
|
1059
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1060
|
-
property :snapshot, as: 'snapshot', class: Google::Apis::GamesV1::SnapshotExtended, decorator: Google::Apis::GamesV1::SnapshotExtended::Representation
|
1061
|
-
|
1062
|
-
end
|
1063
|
-
end
|
1064
|
-
|
1065
1007
|
class CheckRevisionResponse
|
1066
1008
|
# @private
|
1067
1009
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1100,40 +1042,6 @@ module Google
|
|
1100
1042
|
end
|
1101
1043
|
end
|
1102
1044
|
|
1103
|
-
class SnapshotCoverImageResource
|
1104
|
-
# @private
|
1105
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1106
|
-
property :content_hash, as: 'contentHash'
|
1107
|
-
property :download_url, as: 'downloadUrl'
|
1108
|
-
property :height, as: 'height'
|
1109
|
-
property :mime_type, as: 'mimeType'
|
1110
|
-
property :resource_id, as: 'resourceId'
|
1111
|
-
property :width, as: 'width'
|
1112
|
-
end
|
1113
|
-
end
|
1114
|
-
|
1115
|
-
class SnapshotDataResource
|
1116
|
-
# @private
|
1117
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1118
|
-
property :content_hash, as: 'contentHash'
|
1119
|
-
property :download_url, as: 'downloadUrl'
|
1120
|
-
property :resource_id, as: 'resourceId'
|
1121
|
-
property :size, :numeric_string => true, as: 'size'
|
1122
|
-
end
|
1123
|
-
end
|
1124
|
-
|
1125
|
-
class SnapshotExtended
|
1126
|
-
# @private
|
1127
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1128
|
-
collection :conflicting_revisions, as: 'conflictingRevisions', class: Google::Apis::GamesV1::SnapshotRevision, decorator: Google::Apis::GamesV1::SnapshotRevision::Representation
|
1129
|
-
|
1130
|
-
property :has_conflicting_revisions, as: 'hasConflictingRevisions'
|
1131
|
-
property :head_revision, as: 'headRevision', class: Google::Apis::GamesV1::SnapshotRevision, decorator: Google::Apis::GamesV1::SnapshotRevision::Representation
|
1132
|
-
|
1133
|
-
property :snapshot_name, as: 'snapshotName'
|
1134
|
-
end
|
1135
|
-
end
|
1136
|
-
|
1137
1045
|
class SnapshotImage
|
1138
1046
|
# @private
|
1139
1047
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1155,30 +1063,6 @@ module Google
|
|
1155
1063
|
end
|
1156
1064
|
end
|
1157
1065
|
|
1158
|
-
class SnapshotMetadata
|
1159
|
-
# @private
|
1160
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1161
|
-
property :description, as: 'description'
|
1162
|
-
property :device_name, as: 'deviceName'
|
1163
|
-
property :gameplay_duration, as: 'gameplayDuration'
|
1164
|
-
property :last_modify_time, as: 'lastModifyTime'
|
1165
|
-
property :progress_value, :numeric_string => true, as: 'progressValue'
|
1166
|
-
end
|
1167
|
-
end
|
1168
|
-
|
1169
|
-
class SnapshotRevision
|
1170
|
-
# @private
|
1171
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1172
|
-
property :blob, as: 'blob', class: Google::Apis::GamesV1::SnapshotDataResource, decorator: Google::Apis::GamesV1::SnapshotDataResource::Representation
|
1173
|
-
|
1174
|
-
property :cover_image, as: 'coverImage', class: Google::Apis::GamesV1::SnapshotCoverImageResource, decorator: Google::Apis::GamesV1::SnapshotCoverImageResource::Representation
|
1175
|
-
|
1176
|
-
property :id, as: 'id'
|
1177
|
-
property :metadata, as: 'metadata', class: Google::Apis::GamesV1::SnapshotMetadata, decorator: Google::Apis::GamesV1::SnapshotMetadata::Representation
|
1178
|
-
|
1179
|
-
end
|
1180
|
-
end
|
1181
|
-
|
1182
1066
|
class StatsResponse
|
1183
1067
|
# @private
|
1184
1068
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1107,40 +1107,6 @@ module Google
|
|
1107
1107
|
execute_or_queue_command(command, &block)
|
1108
1108
|
end
|
1109
1109
|
|
1110
|
-
# Resolves any potential conflicts according to the resolution policy specified
|
1111
|
-
# in the request and returns the snapshot head after the resolution.
|
1112
|
-
# @param [String] snapshot_name
|
1113
|
-
# Required. Name of the snapshot.
|
1114
|
-
# @param [Google::Apis::GamesV1::ResolveSnapshotHeadRequest] resolve_snapshot_head_request_object
|
1115
|
-
# @param [String] fields
|
1116
|
-
# Selector specifying which fields to include in a partial response.
|
1117
|
-
# @param [String] quota_user
|
1118
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1119
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1120
|
-
# @param [Google::Apis::RequestOptions] options
|
1121
|
-
# Request-specific options
|
1122
|
-
#
|
1123
|
-
# @yield [result, err] Result & error if block supplied
|
1124
|
-
# @yieldparam result [Google::Apis::GamesV1::ResolveSnapshotHeadResponse] parsed result object
|
1125
|
-
# @yieldparam err [StandardError] error object if request failed
|
1126
|
-
#
|
1127
|
-
# @return [Google::Apis::GamesV1::ResolveSnapshotHeadResponse]
|
1128
|
-
#
|
1129
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1130
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1131
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1132
|
-
def resolve_snapshots_extended_snapshot_head(snapshot_name, resolve_snapshot_head_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1133
|
-
command = make_simple_command(:post, 'games/v1/snapshotsExtended/{snapshotName}:resolveHead', options)
|
1134
|
-
command.request_representation = Google::Apis::GamesV1::ResolveSnapshotHeadRequest::Representation
|
1135
|
-
command.request_object = resolve_snapshot_head_request_object
|
1136
|
-
command.response_representation = Google::Apis::GamesV1::ResolveSnapshotHeadResponse::Representation
|
1137
|
-
command.response_class = Google::Apis::GamesV1::ResolveSnapshotHeadResponse
|
1138
|
-
command.params['snapshotName'] = snapshot_name unless snapshot_name.nil?
|
1139
|
-
command.query['fields'] = fields unless fields.nil?
|
1140
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1141
|
-
execute_or_queue_command(command, &block)
|
1142
|
-
end
|
1143
|
-
|
1144
1110
|
# Returns engagement and spend statistics in this application for the currently
|
1145
1111
|
# authenticated user.
|
1146
1112
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-games_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-games_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-games_v1/v0.5.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-games_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Google Play Game Services V1
|