google-api-client 0.28.1 → 0.28.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.sh +1 -1
  3. data/CHANGELOG.md +28 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
  6. data/generated/google/apis/admin_reports_v1.rb +1 -1
  7. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1/classes.rb +9 -8
  9. data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
  10. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  11. data/generated/google/apis/cloudasset_v1beta1/service.rb +81 -6
  12. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  13. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +3 -3
  14. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  15. data/generated/google/apis/cloudresourcemanager_v1/service.rb +3 -1
  16. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  17. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +3 -1
  18. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  19. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -0
  20. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  21. data/generated/google/apis/dlp_v2.rb +1 -1
  22. data/generated/google/apis/dlp_v2/classes.rb +28 -0
  23. data/generated/google/apis/dlp_v2/representations.rb +15 -0
  24. data/generated/google/apis/dlp_v2/service.rb +23 -1
  25. data/generated/google/apis/docs_v1.rb +46 -0
  26. data/generated/google/apis/docs_v1/classes.rb +5383 -0
  27. data/generated/google/apis/docs_v1/representations.rb +2209 -0
  28. data/generated/google/apis/docs_v1/service.rb +176 -0
  29. data/generated/google/apis/file_v1.rb +1 -1
  30. data/generated/google/apis/file_v1/classes.rb +0 -193
  31. data/generated/google/apis/file_v1/representations.rb +0 -70
  32. data/generated/google/apis/file_v1/service.rb +0 -190
  33. data/generated/google/apis/iam_v1.rb +1 -1
  34. data/generated/google/apis/iam_v1/service.rb +8 -0
  35. data/generated/google/apis/jobs_v3/classes.rb +130 -3
  36. data/generated/google/apis/jobs_v3/representations.rb +47 -0
  37. data/generated/google/apis/jobs_v3/service.rb +40 -0
  38. data/generated/google/apis/ml_v1.rb +1 -1
  39. data/generated/google/apis/ml_v1/classes.rb +44 -0
  40. data/generated/google/apis/ml_v1/representations.rb +21 -0
  41. data/generated/google/apis/redis_v1.rb +1 -1
  42. data/generated/google/apis/redis_v1beta1.rb +1 -1
  43. data/generated/google/apis/redis_v1beta1/classes.rb +5 -4
  44. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  45. data/generated/google/apis/remotebuildexecution_v1/classes.rb +3 -2
  46. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  47. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +3 -2
  48. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  49. data/generated/google/apis/remotebuildexecution_v2/classes.rb +3 -2
  50. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  51. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -0
  52. data/generated/google/apis/testing_v1.rb +1 -1
  53. data/generated/google/apis/videointelligence_v1p2beta1.rb +35 -0
  54. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2872 -0
  55. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +1221 -0
  56. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +93 -0
  57. data/generated/google/apis/vision_v1.rb +1 -1
  58. data/generated/google/apis/vision_v1/classes.rb +1 -1
  59. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  60. data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
  61. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  62. data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
  63. data/generated/google/apis/youtube_v3.rb +1 -1
  64. data/generated/google/apis/youtube_v3/classes.rb +100 -13
  65. data/generated/google/apis/youtube_v3/representations.rb +38 -1
  66. data/lib/google/apis/core/http_command.rb +9 -1
  67. data/lib/google/apis/version.rb +1 -1
  68. metadata +10 -3
  69. data/.travis.yml +0 -26
@@ -0,0 +1,93 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module VideointelligenceV1p2beta1
23
+ # Cloud Video Intelligence API
24
+ #
25
+ # Detects objects, explicit content, and scene changes in videos. It also
26
+ # specifies the region for annotation and transcribes speech to text.
27
+ #
28
+ # @example
29
+ # require 'google/apis/videointelligence_v1p2beta1'
30
+ #
31
+ # Videointelligence = Google::Apis::VideointelligenceV1p2beta1 # Alias the module
32
+ # service = Videointelligence::CloudVideoIntelligenceService.new
33
+ #
34
+ # @see https://cloud.google.com/video-intelligence/docs/
35
+ class CloudVideoIntelligenceService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://videointelligence.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Performs asynchronous video annotation. Progress and results can be
52
+ # retrieved through the `google.longrunning.Operations` interface.
53
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
54
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
55
+ # @param [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest] google_cloud_videointelligence_v1p2beta1_annotate_video_request_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def annotate_video(google_cloud_videointelligence_v1p2beta1_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1p2beta1/videos:annotate', options)
75
+ command.request_representation = Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest::Representation
76
+ command.request_object = google_cloud_videointelligence_v1p2beta1_annotate_video_request_object
77
+ command.response_representation = Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation::Representation
78
+ command.response_class = Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ protected
85
+
86
+ def apply_command_defaults(command)
87
+ command.query['key'] = key unless key.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190119'
30
+ REVISION = '20190125'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -70,7 +70,7 @@ module Google
70
70
  end
71
71
 
72
72
  # Request for performing Google Cloud Vision API tasks over a user-provided
73
- # image, with user-requested features.
73
+ # image, with user-requested features, and with context information.
74
74
  class AnnotateImageRequest
75
75
  include Google::Apis::Core::Hashable
76
76
 
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p1beta1
29
29
  VERSION = 'V1p1beta1'
30
- REVISION = '20190119'
30
+ REVISION = '20190125'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -999,7 +999,7 @@ module Google
999
999
  end
1000
1000
 
1001
1001
  # Request for performing Google Cloud Vision API tasks over a user-provided
1002
- # image, with user-requested features.
1002
+ # image, with user-requested features, and with context information.
1003
1003
  class GoogleCloudVisionV1p1beta1AnnotateImageRequest
1004
1004
  include Google::Apis::Core::Hashable
1005
1005
 
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p2beta1
29
29
  VERSION = 'V1p2beta1'
30
- REVISION = '20190119'
30
+ REVISION = '20190125'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2746,7 +2746,7 @@ module Google
2746
2746
  end
2747
2747
 
2748
2748
  # Request for performing Google Cloud Vision API tasks over a user-provided
2749
- # image, with user-requested features.
2749
+ # image, with user-requested features, and with context information.
2750
2750
  class GoogleCloudVisionV1p2beta1AnnotateImageRequest
2751
2751
  include Google::Apis::Core::Hashable
2752
2752
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/v3
27
27
  module YoutubeV3
28
28
  VERSION = 'V3'
29
- REVISION = '20180511'
29
+ REVISION = '20190128'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -1003,16 +1003,6 @@ module Google
1003
1003
  attr_accessor :copyright_strikes_good_standing
1004
1004
  alias_method :copyright_strikes_good_standing?, :copyright_strikes_good_standing
1005
1005
 
1006
- # Describes the general state of the channel. This field will always show if
1007
- # there are any issues whatsoever with the channel. Currently this field
1008
- # represents the result of the logical and operation over the community
1009
- # guidelines good standing, the copyright strikes good standing and the content
1010
- # ID claims good standing, but this may change in the future.
1011
- # Corresponds to the JSON property `overallGoodStanding`
1012
- # @return [Boolean]
1013
- attr_accessor :overall_good_standing
1014
- alias_method :overall_good_standing?, :overall_good_standing
1015
-
1016
1006
  def initialize(**args)
1017
1007
  update!(**args)
1018
1008
  end
@@ -1022,7 +1012,6 @@ module Google
1022
1012
  @community_guidelines_good_standing = args[:community_guidelines_good_standing] if args.key?(:community_guidelines_good_standing)
1023
1013
  @content_id_claims_good_standing = args[:content_id_claims_good_standing] if args.key?(:content_id_claims_good_standing)
1024
1014
  @copyright_strikes_good_standing = args[:copyright_strikes_good_standing] if args.key?(:copyright_strikes_good_standing)
1025
- @overall_good_standing = args[:overall_good_standing] if args.key?(:overall_good_standing)
1026
1015
  end
1027
1016
  end
1028
1017
 
@@ -4367,6 +4356,12 @@ module Google
4367
4356
  # @return [Google::Apis::YoutubeV3::LiveChatSuperChatDetails]
4368
4357
  attr_accessor :super_chat_details
4369
4358
 
4359
+ # Details about the Super Sticker event, this is only set if the type is '
4360
+ # superStickerEvent'.
4361
+ # Corresponds to the JSON property `superStickerDetails`
4362
+ # @return [Google::Apis::YoutubeV3::LiveChatSuperStickerDetails]
4363
+ attr_accessor :super_sticker_details
4364
+
4370
4365
  # Details about the text message, this is only set if the type is '
4371
4366
  # textMessageEvent'.
4372
4367
  # Corresponds to the JSON property `textMessageDetails`
@@ -4403,6 +4398,7 @@ module Google
4403
4398
  @poll_voted_details = args[:poll_voted_details] if args.key?(:poll_voted_details)
4404
4399
  @published_at = args[:published_at] if args.key?(:published_at)
4405
4400
  @super_chat_details = args[:super_chat_details] if args.key?(:super_chat_details)
4401
+ @super_sticker_details = args[:super_sticker_details] if args.key?(:super_sticker_details)
4406
4402
  @text_message_details = args[:text_message_details] if args.key?(:text_message_details)
4407
4403
  @type = args[:type] if args.key?(:type)
4408
4404
  @user_banned_details = args[:user_banned_details] if args.key?(:user_banned_details)
@@ -4695,8 +4691,8 @@ module Google
4695
4691
  # @return [String]
4696
4692
  attr_accessor :currency
4697
4693
 
4698
- # The tier in which the amount belongs to. Lower amounts belong to lower tiers.
4699
- # Starts at 1.
4694
+ # The tier in which the amount belongs. Lower amounts belong to lower tiers. The
4695
+ # lowest tier is 1.
4700
4696
  # Corresponds to the JSON property `tier`
4701
4697
  # @return [Fixnum]
4702
4698
  attr_accessor :tier
@@ -4720,6 +4716,50 @@ module Google
4720
4716
  end
4721
4717
  end
4722
4718
 
4719
+ #
4720
+ class LiveChatSuperStickerDetails
4721
+ include Google::Apis::Core::Hashable
4722
+
4723
+ # A rendered string that displays the fund amount and currency to the user.
4724
+ # Corresponds to the JSON property `amountDisplayString`
4725
+ # @return [String]
4726
+ attr_accessor :amount_display_string
4727
+
4728
+ # The amount purchased by the user, in micros (1,750,000 micros = 1.75).
4729
+ # Corresponds to the JSON property `amountMicros`
4730
+ # @return [Fixnum]
4731
+ attr_accessor :amount_micros
4732
+
4733
+ # The currency in which the purchase was made.
4734
+ # Corresponds to the JSON property `currency`
4735
+ # @return [String]
4736
+ attr_accessor :currency
4737
+
4738
+ # Information about the Super Sticker.
4739
+ # Corresponds to the JSON property `superStickerMetadata`
4740
+ # @return [Google::Apis::YoutubeV3::SuperStickerMetadata]
4741
+ attr_accessor :super_sticker_metadata
4742
+
4743
+ # The tier in which the amount belongs. Lower amounts belong to lower tiers. The
4744
+ # lowest tier is 1.
4745
+ # Corresponds to the JSON property `tier`
4746
+ # @return [Fixnum]
4747
+ attr_accessor :tier
4748
+
4749
+ def initialize(**args)
4750
+ update!(**args)
4751
+ end
4752
+
4753
+ # Update properties of this object
4754
+ def update!(**args)
4755
+ @amount_display_string = args[:amount_display_string] if args.key?(:amount_display_string)
4756
+ @amount_micros = args[:amount_micros] if args.key?(:amount_micros)
4757
+ @currency = args[:currency] if args.key?(:currency)
4758
+ @super_sticker_metadata = args[:super_sticker_metadata] if args.key?(:super_sticker_metadata)
4759
+ @tier = args[:tier] if args.key?(:tier)
4760
+ end
4761
+ end
4762
+
4723
4763
  #
4724
4764
  class LiveChatTextMessageDetails
4725
4765
  include Google::Apis::Core::Hashable
@@ -6692,6 +6732,12 @@ module Google
6692
6732
  attr_accessor :is_super_chat_for_good
6693
6733
  alias_method :is_super_chat_for_good?, :is_super_chat_for_good
6694
6734
 
6735
+ # True if this event is a Super Sticker event.
6736
+ # Corresponds to the JSON property `isSuperStickerEvent`
6737
+ # @return [Boolean]
6738
+ attr_accessor :is_super_sticker_event
6739
+ alias_method :is_super_sticker_event?, :is_super_sticker_event
6740
+
6695
6741
  # The tier for the paid message, which is based on the amount of money spent to
6696
6742
  # purchase the message.
6697
6743
  # Corresponds to the JSON property `messageType`
@@ -6703,6 +6749,12 @@ module Google
6703
6749
  # @return [Google::Apis::YoutubeV3::Nonprofit]
6704
6750
  attr_accessor :nonprofit
6705
6751
 
6752
+ # If this event is a Super Sticker event, this field will contain metadata about
6753
+ # the Super Sticker.
6754
+ # Corresponds to the JSON property `superStickerMetadata`
6755
+ # @return [Google::Apis::YoutubeV3::SuperStickerMetadata]
6756
+ attr_accessor :super_sticker_metadata
6757
+
6706
6758
  # Details about the supporter.
6707
6759
  # Corresponds to the JSON property `supporterDetails`
6708
6760
  # @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
@@ -6721,12 +6773,47 @@ module Google
6721
6773
  @currency = args[:currency] if args.key?(:currency)
6722
6774
  @display_string = args[:display_string] if args.key?(:display_string)
6723
6775
  @is_super_chat_for_good = args[:is_super_chat_for_good] if args.key?(:is_super_chat_for_good)
6776
+ @is_super_sticker_event = args[:is_super_sticker_event] if args.key?(:is_super_sticker_event)
6724
6777
  @message_type = args[:message_type] if args.key?(:message_type)
6725
6778
  @nonprofit = args[:nonprofit] if args.key?(:nonprofit)
6779
+ @super_sticker_metadata = args[:super_sticker_metadata] if args.key?(:super_sticker_metadata)
6726
6780
  @supporter_details = args[:supporter_details] if args.key?(:supporter_details)
6727
6781
  end
6728
6782
  end
6729
6783
 
6784
+ #
6785
+ class SuperStickerMetadata
6786
+ include Google::Apis::Core::Hashable
6787
+
6788
+ # Internationalized alt text that describes the sticker image and any animation
6789
+ # associated with it.
6790
+ # Corresponds to the JSON property `altText`
6791
+ # @return [String]
6792
+ attr_accessor :alt_text
6793
+
6794
+ # Specifies the localization language in which the alt text is returned.
6795
+ # Corresponds to the JSON property `altTextLanguage`
6796
+ # @return [String]
6797
+ attr_accessor :alt_text_language
6798
+
6799
+ # Unique identifier of the Super Sticker. This is a shorter form of the alt_text
6800
+ # that includes pack name and a recognizable characteristic of the sticker.
6801
+ # Corresponds to the JSON property `stickerId`
6802
+ # @return [String]
6803
+ attr_accessor :sticker_id
6804
+
6805
+ def initialize(**args)
6806
+ update!(**args)
6807
+ end
6808
+
6809
+ # Update properties of this object
6810
+ def update!(**args)
6811
+ @alt_text = args[:alt_text] if args.key?(:alt_text)
6812
+ @alt_text_language = args[:alt_text_language] if args.key?(:alt_text_language)
6813
+ @sticker_id = args[:sticker_id] if args.key?(:sticker_id)
6814
+ end
6815
+ end
6816
+
6730
6817
  # A thumbnail is an image representing a YouTube resource.
6731
6818
  class Thumbnail
6732
6819
  include Google::Apis::Core::Hashable
@@ -574,6 +574,12 @@ module Google
574
574
  include Google::Apis::Core::JsonObjectSupport
575
575
  end
576
576
 
577
+ class LiveChatSuperStickerDetails
578
+ class Representation < Google::Apis::Core::JsonRepresentation; end
579
+
580
+ include Google::Apis::Core::JsonObjectSupport
581
+ end
582
+
577
583
  class LiveChatTextMessageDetails
578
584
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
585
 
@@ -844,6 +850,12 @@ module Google
844
850
  include Google::Apis::Core::JsonObjectSupport
845
851
  end
846
852
 
853
+ class SuperStickerMetadata
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
847
859
  class Thumbnail
848
860
  class Representation < Google::Apis::Core::JsonRepresentation; end
849
861
 
@@ -1345,7 +1357,6 @@ module Google
1345
1357
  property :community_guidelines_good_standing, as: 'communityGuidelinesGoodStanding'
1346
1358
  property :content_id_claims_good_standing, as: 'contentIdClaimsGoodStanding'
1347
1359
  property :copyright_strikes_good_standing, as: 'copyrightStrikesGoodStanding'
1348
- property :overall_good_standing, as: 'overallGoodStanding'
1349
1360
  end
1350
1361
  end
1351
1362
 
@@ -2180,6 +2191,8 @@ module Google
2180
2191
 
2181
2192
  property :super_chat_details, as: 'superChatDetails', class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperChatDetails::Representation
2182
2193
 
2194
+ property :super_sticker_details, as: 'superStickerDetails', class: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails::Representation
2195
+
2183
2196
  property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation
2184
2197
 
2185
2198
  property :type, as: 'type'
@@ -2280,6 +2293,18 @@ module Google
2280
2293
  end
2281
2294
  end
2282
2295
 
2296
+ class LiveChatSuperStickerDetails
2297
+ # @private
2298
+ class Representation < Google::Apis::Core::JsonRepresentation
2299
+ property :amount_display_string, as: 'amountDisplayString'
2300
+ property :amount_micros, :numeric_string => true, as: 'amountMicros'
2301
+ property :currency, as: 'currency'
2302
+ property :super_sticker_metadata, as: 'superStickerMetadata', class: Google::Apis::YoutubeV3::SuperStickerMetadata, decorator: Google::Apis::YoutubeV3::SuperStickerMetadata::Representation
2303
+
2304
+ property :tier, as: 'tier'
2305
+ end
2306
+ end
2307
+
2283
2308
  class LiveChatTextMessageDetails
2284
2309
  # @private
2285
2310
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2820,14 +2845,26 @@ module Google
2820
2845
  property :currency, as: 'currency'
2821
2846
  property :display_string, as: 'displayString'
2822
2847
  property :is_super_chat_for_good, as: 'isSuperChatForGood'
2848
+ property :is_super_sticker_event, as: 'isSuperStickerEvent'
2823
2849
  property :message_type, as: 'messageType'
2824
2850
  property :nonprofit, as: 'nonprofit', class: Google::Apis::YoutubeV3::Nonprofit, decorator: Google::Apis::YoutubeV3::Nonprofit::Representation
2825
2851
 
2852
+ property :super_sticker_metadata, as: 'superStickerMetadata', class: Google::Apis::YoutubeV3::SuperStickerMetadata, decorator: Google::Apis::YoutubeV3::SuperStickerMetadata::Representation
2853
+
2826
2854
  property :supporter_details, as: 'supporterDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
2827
2855
 
2828
2856
  end
2829
2857
  end
2830
2858
 
2859
+ class SuperStickerMetadata
2860
+ # @private
2861
+ class Representation < Google::Apis::Core::JsonRepresentation
2862
+ property :alt_text, as: 'altText'
2863
+ property :alt_text_language, as: 'altTextLanguage'
2864
+ property :sticker_id, as: 'stickerId'
2865
+ end
2866
+ end
2867
+
2831
2868
  class Thumbnail
2832
2869
  # @private
2833
2870
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -305,7 +305,7 @@ module Google
305
305
  header: request_header,
306
306
  follow_redirect: true)
307
307
  logger.debug { @http_res.status }
308
- logger.debug { @http_res.inspect }
308
+ logger.debug { safe_response_representation @http_res }
309
309
  response = process_response(@http_res.status.to_i, @http_res.header, @http_res.body)
310
310
  success(response)
311
311
  rescue => e
@@ -346,6 +346,14 @@ module Google
346
346
  end
347
347
  end
348
348
 
349
+ def safe_response_representation http_res
350
+ if respond_to?(:response_class) && response_class.is_a?(Class) &&
351
+ UNSAFE_CLASS_NAMES.include?(response_class.name)
352
+ return "#<#{http_res.class.name} (fields redacted)>"
353
+ end
354
+ http_res.inspect
355
+ end
356
+
349
357
  def opencensus_begin_span
350
358
  return unless OPENCENSUS_AVAILABLE && options.use_opencensus
351
359
  return if @opencensus_span