google-api-client 0.33.2 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +1 -1
  4. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  5. data/generated/google/apis/cloudshell_v1.rb +1 -1
  6. data/generated/google/apis/cloudshell_v1/classes.rb +7 -6
  7. data/generated/google/apis/cloudshell_v1/representations.rb +1 -1
  8. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  9. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +7 -6
  10. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -1
  11. data/generated/google/apis/compute_alpha.rb +1 -1
  12. data/generated/google/apis/compute_alpha/classes.rb +38 -26
  13. data/generated/google/apis/compute_alpha/representations.rb +1 -0
  14. data/generated/google/apis/compute_beta.rb +1 -1
  15. data/generated/google/apis/compute_beta/classes.rb +31 -26
  16. data/generated/google/apis/compute_v1.rb +1 -1
  17. data/generated/google/apis/compute_v1/classes.rb +31 -26
  18. data/generated/google/apis/compute_v1/service.rb +10 -1
  19. data/generated/google/apis/container_v1.rb +1 -1
  20. data/generated/google/apis/container_v1/classes.rb +2 -1
  21. data/generated/google/apis/container_v1beta1.rb +1 -1
  22. data/generated/google/apis/container_v1beta1/classes.rb +32 -1
  23. data/generated/google/apis/container_v1beta1/representations.rb +4 -0
  24. data/generated/google/apis/datastore_v1.rb +1 -1
  25. data/generated/google/apis/datastore_v1/service.rb +85 -1
  26. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  27. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  28. data/generated/google/apis/dialogflow_v2.rb +1 -1
  29. data/generated/google/apis/dialogflow_v2/classes.rb +25 -287
  30. data/generated/google/apis/dialogflow_v2/representations.rb +2 -115
  31. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  32. data/generated/google/apis/dialogflow_v2beta1/classes.rb +33 -287
  33. data/generated/google/apis/dialogflow_v2beta1/representations.rb +3 -115
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +19 -11
  36. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  37. data/generated/google/apis/dlp_v2/service.rb +43 -0
  38. data/generated/google/apis/drive_v2.rb +1 -1
  39. data/generated/google/apis/drive_v2/service.rb +3 -3
  40. data/generated/google/apis/drive_v3.rb +1 -1
  41. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  42. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +37 -0
  43. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +16 -0
  44. data/generated/google/apis/firestore_v1.rb +1 -1
  45. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  46. data/generated/google/apis/games_management_v1management.rb +1 -1
  47. data/generated/google/apis/games_management_v1management/classes.rb +6 -26
  48. data/generated/google/apis/games_management_v1management/representations.rb +1 -14
  49. data/generated/google/apis/games_management_v1management/service.rb +0 -158
  50. data/generated/google/apis/games_v1.rb +1 -1
  51. data/generated/google/apis/games_v1/classes.rb +6 -292
  52. data/generated/google/apis/games_v1/representations.rb +1 -98
  53. data/generated/google/apis/games_v1/service.rb +0 -123
  54. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  55. data/generated/google/apis/healthcare_v1beta1/classes.rb +2 -1
  56. data/generated/google/apis/healthcare_v1beta1/service.rb +88 -95
  57. data/generated/google/apis/iam_v1.rb +1 -1
  58. data/generated/google/apis/iam_v1/classes.rb +8 -1
  59. data/generated/google/apis/iam_v1/representations.rb +1 -0
  60. data/generated/google/apis/jobs_v2.rb +1 -1
  61. data/generated/google/apis/jobs_v2/classes.rb +167 -0
  62. data/generated/google/apis/jobs_v2/representations.rb +40 -0
  63. data/generated/google/apis/jobs_v3.rb +1 -1
  64. data/generated/google/apis/jobs_v3/classes.rb +179 -0
  65. data/generated/google/apis/jobs_v3/representations.rb +41 -0
  66. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  67. data/generated/google/apis/jobs_v3p1beta1/classes.rb +179 -0
  68. data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
  69. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  70. data/generated/google/apis/lifesciences_v2beta/classes.rb +2 -1
  71. data/generated/google/apis/ml_v1.rb +1 -1
  72. data/generated/google/apis/ml_v1/classes.rb +57 -23
  73. data/generated/google/apis/ml_v1/service.rb +6 -2
  74. data/generated/google/apis/monitoring_v3.rb +1 -1
  75. data/generated/google/apis/monitoring_v3/classes.rb +12 -12
  76. data/generated/google/apis/monitoring_v3/service.rb +2 -2
  77. data/generated/google/apis/oslogin_v1.rb +1 -1
  78. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  79. data/generated/google/apis/people_v1.rb +1 -1
  80. data/generated/google/apis/people_v1/classes.rb +67 -63
  81. data/generated/google/apis/people_v1/service.rb +53 -44
  82. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  83. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -11
  84. data/generated/google/apis/servicecontrol_v1/representations.rb +0 -1
  85. data/generated/google/apis/videointelligence_v1.rb +1 -1
  86. data/generated/google/apis/videointelligence_v1/classes.rb +1 -2
  87. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  88. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -2
  89. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  90. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -2
  91. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  92. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -2
  93. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  94. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -2
  95. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  96. data/google-api-client.gemspec +3 -0
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +4 -7
  99. data/generated/google/apis/dfareporting_v3_2.rb +0 -40
  100. data/generated/google/apis/dfareporting_v3_2/classes.rb +0 -12299
  101. data/generated/google/apis/dfareporting_v3_2/representations.rb +0 -4397
  102. data/generated/google/apis/dfareporting_v3_2/service.rb +0 -8793
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/firestore
27
27
  module FirestoreV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190804'
29
+ REVISION = '20191018'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/firestore
27
27
  module FirestoreV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20190804'
29
+ REVISION = '20191019'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesManagementV1management
27
27
  VERSION = 'V1management'
28
- REVISION = '20190725'
28
+ REVISION = '20191017'
29
29
 
30
30
  # Create, edit, and delete your Google Play Games activity
31
31
  AUTH_GAMES = 'https://www.googleapis.com/auth/games'
@@ -364,6 +364,11 @@ module Google
364
364
  # @return [String]
365
365
  attr_accessor :player_id
366
366
 
367
+ #
368
+ # Corresponds to the JSON property `playerStattus`
369
+ # @return [String]
370
+ attr_accessor :player_stattus
371
+
367
372
  # This is a JSON template for profile settings
368
373
  # Corresponds to the JSON property `profileSettings`
369
374
  # @return [Google::Apis::GamesManagementV1management::ProfileSettings]
@@ -390,6 +395,7 @@ module Google
390
395
  @name = args[:name] if args.key?(:name)
391
396
  @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
392
397
  @player_id = args[:player_id] if args.key?(:player_id)
398
+ @player_stattus = args[:player_stattus] if args.key?(:player_stattus)
393
399
  @profile_settings = args[:profile_settings] if args.key?(:profile_settings)
394
400
  @title = args[:title] if args.key?(:title)
395
401
  end
@@ -510,32 +516,6 @@ module Google
510
516
  end
511
517
  end
512
518
 
513
- # This is a JSON template for multiple quests reset all request.
514
- class QuestsResetMultipleForAllRequest
515
- include Google::Apis::Core::Hashable
516
-
517
- # Uniquely identifies the type of this resource. Value is always the fixed
518
- # string gamesManagement#questsResetMultipleForAllRequest.
519
- # Corresponds to the JSON property `kind`
520
- # @return [String]
521
- attr_accessor :kind
522
-
523
- # The IDs of quests to reset.
524
- # Corresponds to the JSON property `quest_ids`
525
- # @return [Array<String>]
526
- attr_accessor :quest_ids
527
-
528
- def initialize(**args)
529
- update!(**args)
530
- end
531
-
532
- # Update properties of this object
533
- def update!(**args)
534
- @kind = args[:kind] if args.key?(:kind)
535
- @quest_ids = args[:quest_ids] if args.key?(:quest_ids)
536
- end
537
- end
538
-
539
519
  # This is a JSON template for multiple scores reset all request.
540
520
  class ScoresResetMultipleForAllRequest
541
521
  include Google::Apis::Core::Hashable
@@ -106,12 +106,6 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class QuestsResetMultipleForAllRequest
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
109
  class ScoresResetMultipleForAllRequest
116
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
111
 
@@ -218,6 +212,7 @@ module Google
218
212
 
219
213
  property :original_player_id, as: 'originalPlayerId'
220
214
  property :player_id, as: 'playerId'
215
+ property :player_stattus, as: 'playerStattus'
221
216
  property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesManagementV1management::ProfileSettings, decorator: Google::Apis::GamesManagementV1management::ProfileSettings::Representation
222
217
 
223
218
  property :title, as: 'title'
@@ -258,14 +253,6 @@ module Google
258
253
  end
259
254
  end
260
255
 
261
- class QuestsResetMultipleForAllRequest
262
- # @private
263
- class Representation < Google::Apis::Core::JsonRepresentation
264
- property :kind, as: 'kind'
265
- collection :quest_ids, as: 'quest_ids'
266
- end
267
- end
268
-
269
256
  class ScoresResetMultipleForAllRequest
270
257
  # @private
271
258
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -487,164 +487,6 @@ module Google
487
487
  execute_or_queue_command(command, &block)
488
488
  end
489
489
 
490
- # Resets all player progress on the quest with the given ID for the currently
491
- # authenticated player. This method is only accessible to whitelisted tester
492
- # accounts for your application.
493
- # @param [String] quest_id
494
- # The ID of the quest.
495
- # @param [String] fields
496
- # Selector specifying which fields to include in a partial response.
497
- # @param [String] quota_user
498
- # An opaque string that represents a user for quota purposes. Must not exceed 40
499
- # characters.
500
- # @param [String] user_ip
501
- # Deprecated. Please use quotaUser instead.
502
- # @param [Google::Apis::RequestOptions] options
503
- # Request-specific options
504
- #
505
- # @yield [result, err] Result & error if block supplied
506
- # @yieldparam result [NilClass] No result returned for this method
507
- # @yieldparam err [StandardError] error object if request failed
508
- #
509
- # @return [void]
510
- #
511
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
- # @raise [Google::Apis::AuthorizationError] Authorization is required
514
- def reset_quest(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
515
- command = make_simple_command(:post, 'quests/{questId}/reset', options)
516
- command.params['questId'] = quest_id unless quest_id.nil?
517
- command.query['fields'] = fields unless fields.nil?
518
- command.query['quotaUser'] = quota_user unless quota_user.nil?
519
- command.query['userIp'] = user_ip unless user_ip.nil?
520
- execute_or_queue_command(command, &block)
521
- end
522
-
523
- # Resets all player progress on all quests for the currently authenticated
524
- # player. This method is only accessible to whitelisted tester accounts for your
525
- # application.
526
- # @param [String] fields
527
- # Selector specifying which fields to include in a partial response.
528
- # @param [String] quota_user
529
- # An opaque string that represents a user for quota purposes. Must not exceed 40
530
- # characters.
531
- # @param [String] user_ip
532
- # Deprecated. Please use quotaUser instead.
533
- # @param [Google::Apis::RequestOptions] options
534
- # Request-specific options
535
- #
536
- # @yield [result, err] Result & error if block supplied
537
- # @yieldparam result [NilClass] No result returned for this method
538
- # @yieldparam err [StandardError] error object if request failed
539
- #
540
- # @return [void]
541
- #
542
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
- # @raise [Google::Apis::AuthorizationError] Authorization is required
545
- def reset_quest_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
546
- command = make_simple_command(:post, 'quests/reset', options)
547
- command.query['fields'] = fields unless fields.nil?
548
- command.query['quotaUser'] = quota_user unless quota_user.nil?
549
- command.query['userIp'] = user_ip unless user_ip.nil?
550
- execute_or_queue_command(command, &block)
551
- end
552
-
553
- # Resets all draft quests for all players. This method is only available to user
554
- # accounts for your developer console.
555
- # @param [String] fields
556
- # Selector specifying which fields to include in a partial response.
557
- # @param [String] quota_user
558
- # An opaque string that represents a user for quota purposes. Must not exceed 40
559
- # characters.
560
- # @param [String] user_ip
561
- # Deprecated. Please use quotaUser instead.
562
- # @param [Google::Apis::RequestOptions] options
563
- # Request-specific options
564
- #
565
- # @yield [result, err] Result & error if block supplied
566
- # @yieldparam result [NilClass] No result returned for this method
567
- # @yieldparam err [StandardError] error object if request failed
568
- #
569
- # @return [void]
570
- #
571
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
- # @raise [Google::Apis::AuthorizationError] Authorization is required
574
- def reset_quest_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
575
- command = make_simple_command(:post, 'quests/resetAllForAllPlayers', options)
576
- command.query['fields'] = fields unless fields.nil?
577
- command.query['quotaUser'] = quota_user unless quota_user.nil?
578
- command.query['userIp'] = user_ip unless user_ip.nil?
579
- execute_or_queue_command(command, &block)
580
- end
581
-
582
- # Resets all player progress on the quest with the given ID for all players.
583
- # This method is only available to user accounts for your developer console.
584
- # Only draft quests can be reset.
585
- # @param [String] quest_id
586
- # The ID of the quest.
587
- # @param [String] fields
588
- # Selector specifying which fields to include in a partial response.
589
- # @param [String] quota_user
590
- # An opaque string that represents a user for quota purposes. Must not exceed 40
591
- # characters.
592
- # @param [String] user_ip
593
- # Deprecated. Please use quotaUser instead.
594
- # @param [Google::Apis::RequestOptions] options
595
- # Request-specific options
596
- #
597
- # @yield [result, err] Result & error if block supplied
598
- # @yieldparam result [NilClass] No result returned for this method
599
- # @yieldparam err [StandardError] error object if request failed
600
- #
601
- # @return [void]
602
- #
603
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
604
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
605
- # @raise [Google::Apis::AuthorizationError] Authorization is required
606
- def reset_quest_for_all_players(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
607
- command = make_simple_command(:post, 'quests/{questId}/resetForAllPlayers', options)
608
- command.params['questId'] = quest_id unless quest_id.nil?
609
- command.query['fields'] = fields unless fields.nil?
610
- command.query['quotaUser'] = quota_user unless quota_user.nil?
611
- command.query['userIp'] = user_ip unless user_ip.nil?
612
- execute_or_queue_command(command, &block)
613
- end
614
-
615
- # Resets quests with the given IDs for all players. This method is only
616
- # available to user accounts for your developer console. Only draft quests may
617
- # be reset.
618
- # @param [Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest] quests_reset_multiple_for_all_request_object
619
- # @param [String] fields
620
- # Selector specifying which fields to include in a partial response.
621
- # @param [String] quota_user
622
- # An opaque string that represents a user for quota purposes. Must not exceed 40
623
- # characters.
624
- # @param [String] user_ip
625
- # Deprecated. Please use quotaUser instead.
626
- # @param [Google::Apis::RequestOptions] options
627
- # Request-specific options
628
- #
629
- # @yield [result, err] Result & error if block supplied
630
- # @yieldparam result [NilClass] No result returned for this method
631
- # @yieldparam err [StandardError] error object if request failed
632
- #
633
- # @return [void]
634
- #
635
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
- # @raise [Google::Apis::AuthorizationError] Authorization is required
638
- def reset_quest_multiple_for_all_players(quests_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
639
- command = make_simple_command(:post, 'quests/resetMultipleForAllPlayers', options)
640
- command.request_representation = Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest::Representation
641
- command.request_object = quests_reset_multiple_for_all_request_object
642
- command.query['fields'] = fields unless fields.nil?
643
- command.query['quotaUser'] = quota_user unless quota_user.nil?
644
- command.query['userIp'] = user_ip unless user_ip.nil?
645
- execute_or_queue_command(command, &block)
646
- end
647
-
648
490
  # Reset all rooms for the currently authenticated player for your application.
649
491
  # This method is only accessible to whitelisted tester accounts for your
650
492
  # application.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/
26
26
  module GamesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190725'
28
+ REVISION = '20191017'
29
29
 
30
30
  # View and manage its own configuration data in your Google Drive
31
31
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
@@ -2038,6 +2038,11 @@ module Google
2038
2038
  # @return [String]
2039
2039
  attr_accessor :player_id
2040
2040
 
2041
+ #
2042
+ # Corresponds to the JSON property `playerStattus`
2043
+ # @return [String]
2044
+ attr_accessor :player_stattus
2045
+
2041
2046
  # This is a JSON template for profile settings
2042
2047
  # Corresponds to the JSON property `profileSettings`
2043
2048
  # @return [Google::Apis::GamesV1::ProfileSettings]
@@ -2064,6 +2069,7 @@ module Google
2064
2069
  @name = args[:name] if args.key?(:name)
2065
2070
  @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
2066
2071
  @player_id = args[:player_id] if args.key?(:player_id)
2072
+ @player_stattus = args[:player_stattus] if args.key?(:player_stattus)
2067
2073
  @profile_settings = args[:profile_settings] if args.key?(:profile_settings)
2068
2074
  @title = args[:title] if args.key?(:title)
2069
2075
  end
@@ -2775,298 +2781,6 @@ module Google
2775
2781
  end
2776
2782
  end
2777
2783
 
2778
- # This is a JSON template for a Quest resource.
2779
- class Quest
2780
- include Google::Apis::Core::Hashable
2781
-
2782
- # The timestamp at which the user accepted the quest in milliseconds since the
2783
- # epoch in UTC. Only present if the player has accepted the quest.
2784
- # Corresponds to the JSON property `acceptedTimestampMillis`
2785
- # @return [Fixnum]
2786
- attr_accessor :accepted_timestamp_millis
2787
-
2788
- # The ID of the application this quest is part of.
2789
- # Corresponds to the JSON property `applicationId`
2790
- # @return [String]
2791
- attr_accessor :application_id
2792
-
2793
- # The banner image URL for the quest.
2794
- # Corresponds to the JSON property `bannerUrl`
2795
- # @return [String]
2796
- attr_accessor :banner_url
2797
-
2798
- # The description of the quest.
2799
- # Corresponds to the JSON property `description`
2800
- # @return [String]
2801
- attr_accessor :description
2802
-
2803
- # The timestamp at which the quest ceases to be active in milliseconds since the
2804
- # epoch in UTC.
2805
- # Corresponds to the JSON property `endTimestampMillis`
2806
- # @return [Fixnum]
2807
- attr_accessor :end_timestamp_millis
2808
-
2809
- # The icon image URL for the quest.
2810
- # Corresponds to the JSON property `iconUrl`
2811
- # @return [String]
2812
- attr_accessor :icon_url
2813
-
2814
- # The ID of the quest.
2815
- # Corresponds to the JSON property `id`
2816
- # @return [String]
2817
- attr_accessor :id
2818
-
2819
- # Indicates whether the banner image being returned is a default image, or is
2820
- # game-provided.
2821
- # Corresponds to the JSON property `isDefaultBannerUrl`
2822
- # @return [Boolean]
2823
- attr_accessor :is_default_banner_url
2824
- alias_method :is_default_banner_url?, :is_default_banner_url
2825
-
2826
- # Indicates whether the icon image being returned is a default image, or is game-
2827
- # provided.
2828
- # Corresponds to the JSON property `isDefaultIconUrl`
2829
- # @return [Boolean]
2830
- attr_accessor :is_default_icon_url
2831
- alias_method :is_default_icon_url?, :is_default_icon_url
2832
-
2833
- # Uniquely identifies the type of this resource. Value is always the fixed
2834
- # string games#quest.
2835
- # Corresponds to the JSON property `kind`
2836
- # @return [String]
2837
- attr_accessor :kind
2838
-
2839
- # The timestamp at which the quest was last updated by the user in milliseconds
2840
- # since the epoch in UTC. Only present if the player has accepted the quest.
2841
- # Corresponds to the JSON property `lastUpdatedTimestampMillis`
2842
- # @return [Fixnum]
2843
- attr_accessor :last_updated_timestamp_millis
2844
-
2845
- # The quest milestones.
2846
- # Corresponds to the JSON property `milestones`
2847
- # @return [Array<Google::Apis::GamesV1::QuestMilestone>]
2848
- attr_accessor :milestones
2849
-
2850
- # The name of the quest.
2851
- # Corresponds to the JSON property `name`
2852
- # @return [String]
2853
- attr_accessor :name
2854
-
2855
- # The timestamp at which the user should be notified that the quest will end
2856
- # soon in milliseconds since the epoch in UTC.
2857
- # Corresponds to the JSON property `notifyTimestampMillis`
2858
- # @return [Fixnum]
2859
- attr_accessor :notify_timestamp_millis
2860
-
2861
- # The timestamp at which the quest becomes active in milliseconds since the
2862
- # epoch in UTC.
2863
- # Corresponds to the JSON property `startTimestampMillis`
2864
- # @return [Fixnum]
2865
- attr_accessor :start_timestamp_millis
2866
-
2867
- # The state of the quest.
2868
- # Possible values are:
2869
- # - "UPCOMING": The quest is upcoming. The user can see the quest, but cannot
2870
- # accept it until it is open.
2871
- # - "OPEN": The quest is currently open and may be accepted at this time.
2872
- # - "ACCEPTED": The user is currently participating in this quest.
2873
- # - "COMPLETED": The user has completed the quest.
2874
- # - "FAILED": The quest was attempted but was not completed before the deadline
2875
- # expired.
2876
- # - "EXPIRED": The quest has expired and was not accepted.
2877
- # - "DELETED": The quest should be deleted from the local database.
2878
- # Corresponds to the JSON property `state`
2879
- # @return [String]
2880
- attr_accessor :state
2881
-
2882
- def initialize(**args)
2883
- update!(**args)
2884
- end
2885
-
2886
- # Update properties of this object
2887
- def update!(**args)
2888
- @accepted_timestamp_millis = args[:accepted_timestamp_millis] if args.key?(:accepted_timestamp_millis)
2889
- @application_id = args[:application_id] if args.key?(:application_id)
2890
- @banner_url = args[:banner_url] if args.key?(:banner_url)
2891
- @description = args[:description] if args.key?(:description)
2892
- @end_timestamp_millis = args[:end_timestamp_millis] if args.key?(:end_timestamp_millis)
2893
- @icon_url = args[:icon_url] if args.key?(:icon_url)
2894
- @id = args[:id] if args.key?(:id)
2895
- @is_default_banner_url = args[:is_default_banner_url] if args.key?(:is_default_banner_url)
2896
- @is_default_icon_url = args[:is_default_icon_url] if args.key?(:is_default_icon_url)
2897
- @kind = args[:kind] if args.key?(:kind)
2898
- @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
2899
- @milestones = args[:milestones] if args.key?(:milestones)
2900
- @name = args[:name] if args.key?(:name)
2901
- @notify_timestamp_millis = args[:notify_timestamp_millis] if args.key?(:notify_timestamp_millis)
2902
- @start_timestamp_millis = args[:start_timestamp_millis] if args.key?(:start_timestamp_millis)
2903
- @state = args[:state] if args.key?(:state)
2904
- end
2905
- end
2906
-
2907
- # This is a JSON template for a Quest Criterion Contribution resource.
2908
- class QuestContribution
2909
- include Google::Apis::Core::Hashable
2910
-
2911
- # The formatted value of the contribution as a string. Format depends on the
2912
- # configuration for the associated event definition in the Play Games Developer
2913
- # Console.
2914
- # Corresponds to the JSON property `formattedValue`
2915
- # @return [String]
2916
- attr_accessor :formatted_value
2917
-
2918
- # Uniquely identifies the type of this resource. Value is always the fixed
2919
- # string games#questContribution.
2920
- # Corresponds to the JSON property `kind`
2921
- # @return [String]
2922
- attr_accessor :kind
2923
-
2924
- # The value of the contribution.
2925
- # Corresponds to the JSON property `value`
2926
- # @return [Fixnum]
2927
- attr_accessor :value
2928
-
2929
- def initialize(**args)
2930
- update!(**args)
2931
- end
2932
-
2933
- # Update properties of this object
2934
- def update!(**args)
2935
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
2936
- @kind = args[:kind] if args.key?(:kind)
2937
- @value = args[:value] if args.key?(:value)
2938
- end
2939
- end
2940
-
2941
- # This is a JSON template for a Quest Criterion resource.
2942
- class QuestCriterion
2943
- include Google::Apis::Core::Hashable
2944
-
2945
- # This is a JSON template for a Quest Criterion Contribution resource.
2946
- # Corresponds to the JSON property `completionContribution`
2947
- # @return [Google::Apis::GamesV1::QuestContribution]
2948
- attr_accessor :completion_contribution
2949
-
2950
- # This is a JSON template for a Quest Criterion Contribution resource.
2951
- # Corresponds to the JSON property `currentContribution`
2952
- # @return [Google::Apis::GamesV1::QuestContribution]
2953
- attr_accessor :current_contribution
2954
-
2955
- # The ID of the event the criterion corresponds to.
2956
- # Corresponds to the JSON property `eventId`
2957
- # @return [String]
2958
- attr_accessor :event_id
2959
-
2960
- # This is a JSON template for a Quest Criterion Contribution resource.
2961
- # Corresponds to the JSON property `initialPlayerProgress`
2962
- # @return [Google::Apis::GamesV1::QuestContribution]
2963
- attr_accessor :initial_player_progress
2964
-
2965
- # Uniquely identifies the type of this resource. Value is always the fixed
2966
- # string games#questCriterion.
2967
- # Corresponds to the JSON property `kind`
2968
- # @return [String]
2969
- attr_accessor :kind
2970
-
2971
- def initialize(**args)
2972
- update!(**args)
2973
- end
2974
-
2975
- # Update properties of this object
2976
- def update!(**args)
2977
- @completion_contribution = args[:completion_contribution] if args.key?(:completion_contribution)
2978
- @current_contribution = args[:current_contribution] if args.key?(:current_contribution)
2979
- @event_id = args[:event_id] if args.key?(:event_id)
2980
- @initial_player_progress = args[:initial_player_progress] if args.key?(:initial_player_progress)
2981
- @kind = args[:kind] if args.key?(:kind)
2982
- end
2983
- end
2984
-
2985
- # This is a JSON template for a list of quest objects.
2986
- class ListQuestResponse
2987
- include Google::Apis::Core::Hashable
2988
-
2989
- # The quests.
2990
- # Corresponds to the JSON property `items`
2991
- # @return [Array<Google::Apis::GamesV1::Quest>]
2992
- attr_accessor :items
2993
-
2994
- # Uniquely identifies the type of this resource. Value is always the fixed
2995
- # string games#questListResponse.
2996
- # Corresponds to the JSON property `kind`
2997
- # @return [String]
2998
- attr_accessor :kind
2999
-
3000
- # Token corresponding to the next page of results.
3001
- # Corresponds to the JSON property `nextPageToken`
3002
- # @return [String]
3003
- attr_accessor :next_page_token
3004
-
3005
- def initialize(**args)
3006
- update!(**args)
3007
- end
3008
-
3009
- # Update properties of this object
3010
- def update!(**args)
3011
- @items = args[:items] if args.key?(:items)
3012
- @kind = args[:kind] if args.key?(:kind)
3013
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3014
- end
3015
- end
3016
-
3017
- # This is a JSON template for a Quest Milestone resource.
3018
- class QuestMilestone
3019
- include Google::Apis::Core::Hashable
3020
-
3021
- # The completion reward data of the milestone, represented as a Base64-encoded
3022
- # string. This is a developer-specified binary blob with size between 0 and 2 KB
3023
- # before encoding.
3024
- # Corresponds to the JSON property `completionRewardData`
3025
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
3026
- # @return [String]
3027
- attr_accessor :completion_reward_data
3028
-
3029
- # The criteria of the milestone.
3030
- # Corresponds to the JSON property `criteria`
3031
- # @return [Array<Google::Apis::GamesV1::QuestCriterion>]
3032
- attr_accessor :criteria
3033
-
3034
- # The milestone ID.
3035
- # Corresponds to the JSON property `id`
3036
- # @return [String]
3037
- attr_accessor :id
3038
-
3039
- # Uniquely identifies the type of this resource. Value is always the fixed
3040
- # string games#questMilestone.
3041
- # Corresponds to the JSON property `kind`
3042
- # @return [String]
3043
- attr_accessor :kind
3044
-
3045
- # The current state of the milestone.
3046
- # Possible values are:
3047
- # - "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has not yet been
3048
- # claimed.
3049
- # - "CLAIMED" - The milestone is complete and has been claimed.
3050
- # - "NOT_COMPLETED" - The milestone has not yet been completed.
3051
- # - "NOT_STARTED" - The milestone is for a quest that has not yet been accepted.
3052
- # Corresponds to the JSON property `state`
3053
- # @return [String]
3054
- attr_accessor :state
3055
-
3056
- def initialize(**args)
3057
- update!(**args)
3058
- end
3059
-
3060
- # Update properties of this object
3061
- def update!(**args)
3062
- @completion_reward_data = args[:completion_reward_data] if args.key?(:completion_reward_data)
3063
- @criteria = args[:criteria] if args.key?(:criteria)
3064
- @id = args[:id] if args.key?(:id)
3065
- @kind = args[:kind] if args.key?(:kind)
3066
- @state = args[:state] if args.key?(:state)
3067
- end
3068
- end
3069
-
3070
2784
  # This is a JSON template for the result of checking a revision.
3071
2785
  class CheckRevisionResponse
3072
2786
  include Google::Apis::Core::Hashable