google-apis-youtube_v3 0.14.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9fc6b4079dc8e913d0406c4f54965781836879b80a9e4bd9fefe8dfd381282c
4
- data.tar.gz: 3a0befbb8f20c1ced3afa0324616f074217357653b489f04a736adf47ff198cd
3
+ metadata.gz: 9f80197aac8760d2e7279f5dcd4750602bcda5b67ff87fa509ad8f30f55dbbad
4
+ data.tar.gz: 941a106874bf1e70ca9867a02c872135dc8891627404d1ec1537c6de8a0891eb
5
5
  SHA512:
6
- metadata.gz: 34617cad334ca19ae3c370bb05738d5af96a4e81d1fa030d78a94e7d65a091987e83e1ee6b884969290436f513a4e6c0a168d2f1ce90520032bf459aaa5c239c
7
- data.tar.gz: c2bb734322863ec34ed9171e69ba606b2e09e6098141c700e5a88514bc7c5c57579ddac0bd7aa93a4094076680ad206cd97da4e37980da2a585e1c9c53240f4c
6
+ metadata.gz: abca7a517d9067a622c4dcb32f48c4a3de6bd85fcc7d490666317f51dd6474c034c13908fbef6e190539b531de2527924bd3be26398103133223cf2d9fa8fa35
7
+ data.tar.gz: cddeeb8927a2ab4b131c13a43789853f4b4d82f49110163badaddec3ec31f211ed532b2e4f24c42d8b6a0dd0e01dcea1d06c94b7ab3d4d7a39708ae49fda5855
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-youtube_v3
2
2
 
3
+ ### v0.17.0 (2022-03-22)
4
+
5
+ * Regenerated from discovery document revision 20220320
6
+
7
+ ### v0.16.0 (2022-03-15)
8
+
9
+ * Regenerated from discovery document revision 20220312
10
+
11
+ ### v0.15.0 (2022-03-01)
12
+
13
+ * Regenerated from discovery document revision 20220227
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.14.0 (2021-12-14)
4
17
 
5
18
  * Unspecified changes
@@ -904,7 +904,7 @@ module Google
904
904
  # @return [String]
905
905
  attr_accessor :frame_rate
906
906
 
907
- # Describes information necessary for ingesting an RTMP or an HTTP stream.
907
+ # Describes information necessary for ingesting an RTMP, HTTP, or SRT stream.
908
908
  # Corresponds to the JSON property `ingestionInfo`
909
909
  # @return [Google::Apis::YoutubeV3::IngestionInfo]
910
910
  attr_accessor :ingestion_info
@@ -1911,6 +1911,11 @@ module Google
1911
1911
  class ChannelToStoreLinkDetails
1912
1912
  include Google::Apis::Core::Hashable
1913
1913
 
1914
+ # Google Merchant Center id of the store.
1915
+ # Corresponds to the JSON property `merchantId`
1916
+ # @return [Fixnum]
1917
+ attr_accessor :merchant_id
1918
+
1914
1919
  # Name of the store.
1915
1920
  # Corresponds to the JSON property `storeName`
1916
1921
  # @return [String]
@@ -1927,6 +1932,7 @@ module Google
1927
1932
 
1928
1933
  # Update properties of this object
1929
1934
  def update!(**args)
1935
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
1930
1936
  @store_name = args[:store_name] if args.key?(:store_name)
1931
1937
  @store_url = args[:store_url] if args.key?(:store_url)
1932
1938
  end
@@ -3290,7 +3296,7 @@ module Google
3290
3296
  end
3291
3297
  end
3292
3298
 
3293
- # Describes information necessary for ingesting an RTMP or an HTTP stream.
3299
+ # Describes information necessary for ingesting an RTMP, HTTP, or SRT stream.
3294
3300
  class IngestionInfo
3295
3301
  include Google::Apis::Core::Hashable
3296
3302
 
@@ -3322,7 +3328,7 @@ module Google
3322
3328
  # @return [String]
3323
3329
  attr_accessor :rtmps_ingestion_address
3324
3330
 
3325
- # The HTTP or RTMP stream name that YouTube assigns to the video stream.
3331
+ # The stream name that YouTube assigns to the video stream.
3326
3332
  # Corresponds to the JSON property `streamName`
3327
3333
  # @return [String]
3328
3334
  attr_accessor :stream_name
@@ -4058,6 +4064,43 @@ module Google
4058
4064
  end
4059
4065
  end
4060
4066
 
4067
+ #
4068
+ class LiveChatGiftMembershipReceivedDetails
4069
+ include Google::Apis::Core::Hashable
4070
+
4071
+ # The ID of the membership gifting message that is related to this gift
4072
+ # membership. This ID will always refer to a message whose type is '
4073
+ # membershipGiftingEvent'.
4074
+ # Corresponds to the JSON property `associatedMembershipGiftingMessageId`
4075
+ # @return [String]
4076
+ attr_accessor :associated_membership_gifting_message_id
4077
+
4078
+ # The ID of the user that made the membership gifting purchase. This matches the
4079
+ # `snippet.authorChannelId` of the associated membership gifting message.
4080
+ # Corresponds to the JSON property `gifterChannelId`
4081
+ # @return [String]
4082
+ attr_accessor :gifter_channel_id
4083
+
4084
+ # The name of the Level at which the viewer is a member. This matches the `
4085
+ # snippet.membershipGiftingDetails.giftMembershipsLevelName` of the associated
4086
+ # membership gifting message. The Level names are defined by the YouTube channel
4087
+ # offering the Membership. In some situations this field isn't filled.
4088
+ # Corresponds to the JSON property `memberLevelName`
4089
+ # @return [String]
4090
+ attr_accessor :member_level_name
4091
+
4092
+ def initialize(**args)
4093
+ update!(**args)
4094
+ end
4095
+
4096
+ # Update properties of this object
4097
+ def update!(**args)
4098
+ @associated_membership_gifting_message_id = args[:associated_membership_gifting_message_id] if args.key?(:associated_membership_gifting_message_id)
4099
+ @gifter_channel_id = args[:gifter_channel_id] if args.key?(:gifter_channel_id)
4100
+ @member_level_name = args[:member_level_name] if args.key?(:member_level_name)
4101
+ end
4102
+ end
4103
+
4061
4104
  #
4062
4105
  class LiveChatMemberMilestoneChatDetails
4063
4106
  include Google::Apis::Core::Hashable
@@ -4094,6 +4137,33 @@ module Google
4094
4137
  end
4095
4138
  end
4096
4139
 
4140
+ #
4141
+ class LiveChatMembershipGiftingDetails
4142
+ include Google::Apis::Core::Hashable
4143
+
4144
+ # The number of gift memberships purchased by the user.
4145
+ # Corresponds to the JSON property `giftMembershipsCount`
4146
+ # @return [Fixnum]
4147
+ attr_accessor :gift_memberships_count
4148
+
4149
+ # The name of the level of the gift memberships purchased by the user. The Level
4150
+ # names are defined by the YouTube channel offering the Membership. In some
4151
+ # situations this field isn't filled.
4152
+ # Corresponds to the JSON property `giftMembershipsLevelName`
4153
+ # @return [String]
4154
+ attr_accessor :gift_memberships_level_name
4155
+
4156
+ def initialize(**args)
4157
+ update!(**args)
4158
+ end
4159
+
4160
+ # Update properties of this object
4161
+ def update!(**args)
4162
+ @gift_memberships_count = args[:gift_memberships_count] if args.key?(:gift_memberships_count)
4163
+ @gift_memberships_level_name = args[:gift_memberships_level_name] if args.key?(:gift_memberships_level_name)
4164
+ end
4165
+ end
4166
+
4097
4167
  # A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.
4098
4168
  class LiveChatMessage
4099
4169
  include Google::Apis::Core::Hashable
@@ -4120,7 +4190,7 @@ module Google
4120
4190
  # @return [String]
4121
4191
  attr_accessor :kind
4122
4192
 
4123
- # Next ID: 31
4193
+ # Next ID: 33
4124
4194
  # Corresponds to the JSON property `snippet`
4125
4195
  # @return [Google::Apis::YoutubeV3::LiveChatMessageSnippet]
4126
4196
  attr_accessor :snippet
@@ -4317,7 +4387,7 @@ module Google
4317
4387
  end
4318
4388
  end
4319
4389
 
4320
- # Next ID: 31
4390
+ # Next ID: 33
4321
4391
  class LiveChatMessageSnippet
4322
4392
  include Google::Apis::Core::Hashable
4323
4393
 
@@ -4325,6 +4395,8 @@ module Google
4325
4395
  # textMessageEvent - the user that wrote the message fanFundingEvent - the user
4326
4396
  # that funded the broadcast newSponsorEvent - the user that just became a
4327
4397
  # sponsor memberMilestoneChatEvent - the member that sent the message
4398
+ # membershipGiftingEvent - the user that made the purchase
4399
+ # giftMembershipReceivedEvent - the user that received the gift membership
4328
4400
  # messageDeletedEvent - the moderator that took the action messageRetractedEvent
4329
4401
  # - the author that retracted their message userBannedEvent - the moderator that
4330
4402
  # took the action superChatEvent - the user that made the purchase
@@ -4346,6 +4418,12 @@ module Google
4346
4418
  # @return [Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails]
4347
4419
  attr_accessor :fan_funding_event_details
4348
4420
 
4421
+ # Details about the Gift Membership Received event, this is only set if the type
4422
+ # is 'giftMembershipReceivedEvent'.
4423
+ # Corresponds to the JSON property `giftMembershipReceivedDetails`
4424
+ # @return [Google::Apis::YoutubeV3::LiveChatGiftMembershipReceivedDetails]
4425
+ attr_accessor :gift_membership_received_details
4426
+
4349
4427
  # Whether the message has display content that should be displayed to users.
4350
4428
  # Corresponds to the JSON property `hasDisplayContent`
4351
4429
  # @return [Boolean]
@@ -4363,6 +4441,12 @@ module Google
4363
4441
  # @return [Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails]
4364
4442
  attr_accessor :member_milestone_chat_details
4365
4443
 
4444
+ # Details about the Membership Gifting event, this is only set if the type is '
4445
+ # membershipGiftingEvent'.
4446
+ # Corresponds to the JSON property `membershipGiftingDetails`
4447
+ # @return [Google::Apis::YoutubeV3::LiveChatMembershipGiftingDetails]
4448
+ attr_accessor :membership_gifting_details
4449
+
4366
4450
  #
4367
4451
  # Corresponds to the JSON property `messageDeletedDetails`
4368
4452
  # @return [Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails]
@@ -4422,9 +4506,11 @@ module Google
4422
4506
  @author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id)
4423
4507
  @display_message = args[:display_message] if args.key?(:display_message)
4424
4508
  @fan_funding_event_details = args[:fan_funding_event_details] if args.key?(:fan_funding_event_details)
4509
+ @gift_membership_received_details = args[:gift_membership_received_details] if args.key?(:gift_membership_received_details)
4425
4510
  @has_display_content = args[:has_display_content] if args.key?(:has_display_content)
4426
4511
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
4427
4512
  @member_milestone_chat_details = args[:member_milestone_chat_details] if args.key?(:member_milestone_chat_details)
4513
+ @membership_gifting_details = args[:membership_gifting_details] if args.key?(:membership_gifting_details)
4428
4514
  @message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
4429
4515
  @message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
4430
4516
  @new_sponsor_details = args[:new_sponsor_details] if args.key?(:new_sponsor_details)
@@ -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.14.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210915"
25
+ REVISION = "20220320"
26
26
  end
27
27
  end
28
28
  end
@@ -496,12 +496,24 @@ module Google
496
496
  include Google::Apis::Core::JsonObjectSupport
497
497
  end
498
498
 
499
+ class LiveChatGiftMembershipReceivedDetails
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
499
505
  class LiveChatMemberMilestoneChatDetails
500
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
501
507
 
502
508
  include Google::Apis::Core::JsonObjectSupport
503
509
  end
504
510
 
511
+ class LiveChatMembershipGiftingDetails
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
505
517
  class LiveChatMessage
506
518
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
519
 
@@ -1652,6 +1664,7 @@ module Google
1652
1664
  class ChannelToStoreLinkDetails
1653
1665
  # @private
1654
1666
  class Representation < Google::Apis::Core::JsonRepresentation
1667
+ property :merchant_id, :numeric_string => true, as: 'merchantId'
1655
1668
  property :store_name, as: 'storeName'
1656
1669
  property :store_url, as: 'storeUrl'
1657
1670
  end
@@ -2154,6 +2167,15 @@ module Google
2154
2167
  end
2155
2168
  end
2156
2169
 
2170
+ class LiveChatGiftMembershipReceivedDetails
2171
+ # @private
2172
+ class Representation < Google::Apis::Core::JsonRepresentation
2173
+ property :associated_membership_gifting_message_id, as: 'associatedMembershipGiftingMessageId'
2174
+ property :gifter_channel_id, as: 'gifterChannelId'
2175
+ property :member_level_name, as: 'memberLevelName'
2176
+ end
2177
+ end
2178
+
2157
2179
  class LiveChatMemberMilestoneChatDetails
2158
2180
  # @private
2159
2181
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2163,6 +2185,14 @@ module Google
2163
2185
  end
2164
2186
  end
2165
2187
 
2188
+ class LiveChatMembershipGiftingDetails
2189
+ # @private
2190
+ class Representation < Google::Apis::Core::JsonRepresentation
2191
+ property :gift_memberships_count, as: 'giftMembershipsCount'
2192
+ property :gift_memberships_level_name, as: 'giftMembershipsLevelName'
2193
+ end
2194
+ end
2195
+
2166
2196
  class LiveChatMessage
2167
2197
  # @private
2168
2198
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2231,10 +2261,14 @@ module Google
2231
2261
  property :display_message, as: 'displayMessage'
2232
2262
  property :fan_funding_event_details, as: 'fanFundingEventDetails', class: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails, decorator: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails::Representation
2233
2263
 
2264
+ property :gift_membership_received_details, as: 'giftMembershipReceivedDetails', class: Google::Apis::YoutubeV3::LiveChatGiftMembershipReceivedDetails, decorator: Google::Apis::YoutubeV3::LiveChatGiftMembershipReceivedDetails::Representation
2265
+
2234
2266
  property :has_display_content, as: 'hasDisplayContent'
2235
2267
  property :live_chat_id, as: 'liveChatId'
2236
2268
  property :member_milestone_chat_details, as: 'memberMilestoneChatDetails', class: Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatMemberMilestoneChatDetails::Representation
2237
2269
 
2270
+ property :membership_gifting_details, as: 'membershipGiftingDetails', class: Google::Apis::YoutubeV3::LiveChatMembershipGiftingDetails, decorator: Google::Apis::YoutubeV3::LiveChatMembershipGiftingDetails::Representation
2271
+
2238
2272
  property :message_deleted_details, as: 'messageDeletedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails::Representation
2239
2273
 
2240
2274
  property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
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.14.0
4
+ version: 0.17.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: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-03-28 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/main/generated/google-apis-youtube_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-youtube_v3/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-youtube_v3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for YouTube Data API v3 V3