google-apis-youtube_v3 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f946ad2d41baa745f848bff5cc0a4503b1c6608fa3b3cccf8296477efbd2b89
4
- data.tar.gz: 924d57ca2c52b99a6fd2af00a99362e6f4e7ece4457ba5c26213b2c8c4553344
3
+ metadata.gz: eb3a92bfe8bb49e0a020a128056b86a2c68d153df554279cdbf70830a9adace2
4
+ data.tar.gz: aba8d1749c0aa63f716ad6ced6756c3b726a82e9eb3bac986606ffa30ad30aad
5
5
  SHA512:
6
- metadata.gz: 240bcfa521defbc444b019bf9291d11cb042431516b88af2c28ccac6944b16ceb4f048b733cd42b00d58e86f47adb51c287986bd7a1dcd217dc1cecba09f4d04
7
- data.tar.gz: 8c1232a1a87efe0b0eb9867b147e8c2bb93957cdc1fb84d68281d77d7534d66094cd25df43b25d9cea303f946602c758820020105b109179624fc5d8fe152dd5
6
+ metadata.gz: 6f6541c513d84c0c802a69cde1852291d716b0de7ca715ddf1b44b47abf196201fa29f8bf9cecad53a4071d2910b5d09bce61a62438e7763c8b37aaf71713ed2
7
+ data.tar.gz: 2316a5572f643bc8640c7722295607b0c39d9b660063243cad39c5b8086add167229cbf7209c5087b8eee366d19b315b9eaf9addad721d5a09a7ea77445537c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.10.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210828
6
+
3
7
  ### v0.9.0 (2021-06-29)
4
8
 
5
9
  * Regenerated using generator version 0.4.0
@@ -4058,6 +4058,42 @@ module Google
4058
4058
  end
4059
4059
  end
4060
4060
 
4061
+ #
4062
+ class LiveChatMemberMilestoneChatDetails
4063
+ include Google::Apis::Core::Hashable
4064
+
4065
+ # The name of the Level at which the viever is a member. The Level names are
4066
+ # defined by the YouTube channel offering the Membership. In some situations
4067
+ # this field isn't filled.
4068
+ # Corresponds to the JSON property `memberLevelName`
4069
+ # @return [String]
4070
+ attr_accessor :member_level_name
4071
+
4072
+ # The total amount of months (rounded up) the viewer has been a member that
4073
+ # granted them this Member Milestone Chat. This is the same number of months as
4074
+ # is being displayed to YouTube users.
4075
+ # Corresponds to the JSON property `memberMonth`
4076
+ # @return [Fixnum]
4077
+ attr_accessor :member_month
4078
+
4079
+ # The comment added by the member to this Member Milestone Chat. This field is
4080
+ # empty for messages without a comment from the member.
4081
+ # Corresponds to the JSON property `userComment`
4082
+ # @return [String]
4083
+ attr_accessor :user_comment
4084
+
4085
+ def initialize(**args)
4086
+ update!(**args)
4087
+ end
4088
+
4089
+ # Update properties of this object
4090
+ def update!(**args)
4091
+ @member_level_name = args[:member_level_name] if args.key?(:member_level_name)
4092
+ @member_month = args[:member_month] if args.key?(:member_month)
4093
+ @user_comment = args[:user_comment] if args.key?(:user_comment)
4094
+ end
4095
+ end
4096
+
4061
4097
  # A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.
4062
4098
  class LiveChatMessage
4063
4099
  include Google::Apis::Core::Hashable
@@ -4084,7 +4120,7 @@ module Google
4084
4120
  # @return [String]
4085
4121
  attr_accessor :kind
4086
4122
 
4087
- # The snippet object contains basic details about the message.
4123
+ # Next ID: 31
4088
4124
  # Corresponds to the JSON property `snippet`
4089
4125
  # @return [Google::Apis::YoutubeV3::LiveChatMessageSnippet]
4090
4126
  attr_accessor :snippet
@@ -4281,17 +4317,18 @@ module Google
4281
4317
  end
4282
4318
  end
4283
4319
 
4284
- #
4320
+ # Next ID: 31
4285
4321
  class LiveChatMessageSnippet
4286
4322
  include Google::Apis::Core::Hashable
4287
4323
 
4288
4324
  # The ID of the user that authored this message, this field is not always filled.
4289
4325
  # textMessageEvent - the user that wrote the message fanFundingEvent - the user
4290
4326
  # that funded the broadcast newSponsorEvent - the user that just became a
4291
- # sponsor messageDeletedEvent - the moderator that took the action
4292
- # messageRetractedEvent - the author that retracted their message
4293
- # userBannedEvent - the moderator that took the action superChatEvent - the user
4294
- # that made the purchase
4327
+ # sponsor memberMilestoneChatEvent - the member that sent the message
4328
+ # messageDeletedEvent - the moderator that took the action messageRetractedEvent
4329
+ # - the author that retracted their message userBannedEvent - the moderator that
4330
+ # took the action superChatEvent - the user that made the purchase
4331
+ # superStickerEvent - the user that made the purchase
4295
4332
  # Corresponds to the JSON property `authorChannelId`
4296
4333
  # @return [String]
4297
4334
  attr_accessor :author_channel_id
@@ -4320,6 +4357,12 @@ module Google
4320
4357
  # @return [String]
4321
4358
  attr_accessor :live_chat_id
4322
4359
 
4360
+ # Details about the Member Milestone Chat event, this is only set if the type is
4361
+ # 'memberMilestoneChatEvent'.
4362
+ # Corresponds to the JSON property `memberMilestoneChatDetails`
4363
+ # @return [Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails]
4364
+ attr_accessor :member_milestone_chat_details
4365
+
4323
4366
  #
4324
4367
  # Corresponds to the JSON property `messageDeletedDetails`
4325
4368
  # @return [Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails]
@@ -4330,6 +4373,12 @@ module Google
4330
4373
  # @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]
4331
4374
  attr_accessor :message_retracted_details
4332
4375
 
4376
+ # Details about the New Member Announcement event, this is only set if the type
4377
+ # is 'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
4378
+ # Corresponds to the JSON property `newSponsorDetails`
4379
+ # @return [Google::Apis::YoutubeV3::LiveChatNewSponsorDetails]
4380
+ attr_accessor :new_sponsor_details
4381
+
4333
4382
  # The date and time when the message was orignally published.
4334
4383
  # Corresponds to the JSON property `publishedAt`
4335
4384
  # @return [DateTime]
@@ -4375,8 +4424,10 @@ module Google
4375
4424
  @fan_funding_event_details = args[:fan_funding_event_details] if args.key?(:fan_funding_event_details)
4376
4425
  @has_display_content = args[:has_display_content] if args.key?(:has_display_content)
4377
4426
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
4427
+ @member_milestone_chat_details = args[:member_milestone_chat_details] if args.key?(:member_milestone_chat_details)
4378
4428
  @message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
4379
4429
  @message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
4430
+ @new_sponsor_details = args[:new_sponsor_details] if args.key?(:new_sponsor_details)
4380
4431
  @published_at = args[:published_at] if args.key?(:published_at)
4381
4432
  @super_chat_details = args[:super_chat_details] if args.key?(:super_chat_details)
4382
4433
  @super_sticker_details = args[:super_sticker_details] if args.key?(:super_sticker_details)
@@ -4522,6 +4573,35 @@ module Google
4522
4573
  end
4523
4574
  end
4524
4575
 
4576
+ #
4577
+ class LiveChatNewSponsorDetails
4578
+ include Google::Apis::Core::Hashable
4579
+
4580
+ # If the viewer just had upgraded from a lower level. For viewers that were not
4581
+ # members at the time of purchase, this field is false.
4582
+ # Corresponds to the JSON property `isUpgrade`
4583
+ # @return [Boolean]
4584
+ attr_accessor :is_upgrade
4585
+ alias_method :is_upgrade?, :is_upgrade
4586
+
4587
+ # The name of the Level that the viewer just had joined. The Level names are
4588
+ # defined by the YouTube channel offering the Membership. In some situations
4589
+ # this field isn't filled.
4590
+ # Corresponds to the JSON property `memberLevelName`
4591
+ # @return [String]
4592
+ attr_accessor :member_level_name
4593
+
4594
+ def initialize(**args)
4595
+ update!(**args)
4596
+ end
4597
+
4598
+ # Update properties of this object
4599
+ def update!(**args)
4600
+ @is_upgrade = args[:is_upgrade] if args.key?(:is_upgrade)
4601
+ @member_level_name = args[:member_level_name] if args.key?(:member_level_name)
4602
+ end
4603
+ end
4604
+
4525
4605
  #
4526
4606
  class LiveChatSuperChatDetails
4527
4607
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module YoutubeV3
18
18
  # Version of the google-apis-youtube_v3 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210624"
25
+ REVISION = "20210828"
26
26
  end
27
27
  end
28
28
  end
@@ -496,6 +496,12 @@ module Google
496
496
  include Google::Apis::Core::JsonObjectSupport
497
497
  end
498
498
 
499
+ class LiveChatMemberMilestoneChatDetails
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
499
505
  class LiveChatMessage
500
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
501
507
 
@@ -550,6 +556,12 @@ module Google
550
556
  include Google::Apis::Core::JsonObjectSupport
551
557
  end
552
558
 
559
+ class LiveChatNewSponsorDetails
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
553
565
  class LiveChatSuperChatDetails
554
566
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
567
 
@@ -2142,6 +2154,15 @@ module Google
2142
2154
  end
2143
2155
  end
2144
2156
 
2157
+ class LiveChatMemberMilestoneChatDetails
2158
+ # @private
2159
+ class Representation < Google::Apis::Core::JsonRepresentation
2160
+ property :member_level_name, as: 'memberLevelName'
2161
+ property :member_month, as: 'memberMonth'
2162
+ property :user_comment, as: 'userComment'
2163
+ end
2164
+ end
2165
+
2145
2166
  class LiveChatMessage
2146
2167
  # @private
2147
2168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2212,10 +2233,14 @@ module Google
2212
2233
 
2213
2234
  property :has_display_content, as: 'hasDisplayContent'
2214
2235
  property :live_chat_id, as: 'liveChatId'
2236
+ property :member_milestone_chat_details, as: 'memberMilestoneChatDetails', class: Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails::Representation
2237
+
2215
2238
  property :message_deleted_details, as: 'messageDeletedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails::Representation
2216
2239
 
2217
2240
  property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
2218
2241
 
2242
+ property :new_sponsor_details, as: 'newSponsorDetails', class: Google::Apis::YoutubeV3::LiveChatNewSponsorDetails, decorator: Google::Apis::YoutubeV3::LiveChatNewSponsorDetails::Representation
2243
+
2219
2244
  property :published_at, as: 'publishedAt', type: DateTime
2220
2245
 
2221
2246
  property :super_chat_details, as: 'superChatDetails', class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperChatDetails::Representation
@@ -2268,6 +2293,14 @@ module Google
2268
2293
  end
2269
2294
  end
2270
2295
 
2296
+ class LiveChatNewSponsorDetails
2297
+ # @private
2298
+ class Representation < Google::Apis::Core::JsonRepresentation
2299
+ property :is_upgrade, as: 'isUpgrade'
2300
+ property :member_level_name, as: 'memberLevelName'
2301
+ end
2302
+ end
2303
+
2271
2304
  class LiveChatSuperChatDetails
2272
2305
  # @private
2273
2306
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-youtube_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.10.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-youtube_v3
63
63
  post_install_message:
64
64
  rdoc_options: []