google-api-client 0.9.pre4 → 0.9.pre5

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +9 -0
  4. data/README.md +11 -1
  5. data/api_names.yaml +1 -0
  6. data/api_names_out.yaml +163 -98
  7. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  8. data/generated/google/apis/analytics_v3.rb +1 -1
  9. data/generated/google/apis/analytics_v3/classes.rb +7 -0
  10. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  11. data/generated/google/apis/analytics_v3/service.rb +42 -0
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/bigquery_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2/classes.rb +23 -66
  15. data/generated/google/apis/bigquery_v2/representations.rb +1 -17
  16. data/generated/google/apis/bigquery_v2/service.rb +6 -6
  17. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  18. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  19. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  20. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -4
  21. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  22. data/generated/google/apis/drive_v2.rb +1 -1
  23. data/generated/google/apis/drive_v2/service.rb +4 -3
  24. data/generated/google/apis/drive_v3.rb +1 -1
  25. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  26. data/generated/google/apis/games_management_v1management.rb +1 -1
  27. data/generated/google/apis/games_v1.rb +1 -1
  28. data/generated/google/apis/genomics_v1.rb +1 -1
  29. data/generated/google/apis/gmail_v1.rb +1 -1
  30. data/generated/google/apis/gmail_v1/classes.rb +2 -2
  31. data/generated/google/apis/plus_domains_v1.rb +1 -1
  32. data/generated/google/apis/plus_v1.rb +1 -1
  33. data/generated/google/apis/plus_v1/classes.rb +0 -497
  34. data/generated/google/apis/plus_v1/representations.rb +0 -121
  35. data/generated/google/apis/plus_v1/service.rb +0 -101
  36. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  37. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +4 -4
  38. data/generated/google/apis/webmasters_v3.rb +3 -3
  39. data/generated/google/apis/webmasters_v3/service.rb +2 -2
  40. data/generated/google/apis/youtube_v3.rb +1 -1
  41. data/generated/google/apis/youtube_v3/classes.rb +942 -64
  42. data/generated/google/apis/youtube_v3/representations.rb +307 -0
  43. data/generated/google/apis/youtube_v3/service.rb +443 -1
  44. data/google-api-client.gemspec +1 -0
  45. data/lib/google/apis/core/api_command.rb +2 -2
  46. data/lib/google/apis/core/base_service.rb +2 -0
  47. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  48. data/lib/google/apis/core/http_command.rb +16 -1
  49. data/lib/google/apis/core/json_representation.rb +3 -2
  50. data/lib/google/apis/core/upload.rb +7 -1
  51. data/lib/google/apis/options.rb +4 -2
  52. data/lib/google/apis/version.rb +1 -1
  53. data/samples/Gemfile +7 -0
  54. data/samples/README.md +51 -0
  55. data/samples/google-api-samples +32 -0
  56. data/samples/lib/base_cli.rb +94 -0
  57. data/samples/lib/samples/analytics.rb +62 -0
  58. data/samples/lib/samples/calendar.rb +83 -0
  59. data/samples/lib/samples/drive.rb +82 -0
  60. data/samples/lib/samples/gmail.rb +50 -0
  61. data/samples/lib/samples/pubsub.rb +114 -0
  62. data/samples/lib/samples/translate.rb +44 -0
  63. data/samples/lib/samples/you_tube.rb +44 -0
  64. data/spec/google/apis/core/api_command_spec.rb +39 -0
  65. data/spec/google/apis/core/http_command_spec.rb +9 -0
  66. data/spec/google/apis/core/upload_spec.rb +14 -0
  67. data/spec/google/apis/options_spec.rb +0 -8
  68. data/spec/integration_tests/adsense_spec.rb +1 -0
  69. data/spec/integration_tests/pubsub_spec.rb +3 -3
  70. data/spec/integration_tests/url_shortener_spec.rb +14 -0
  71. data/spec/spec_helper.rb +33 -6
  72. data/{samples/translate/translate.rb → spec/spec_helper/load_path_spec.rb} +15 -6
  73. metadata +30 -6
  74. data/samples/calendar/calendar.rb +0 -43
  75. data/samples/drive/drive.rb +0 -47
  76. data/samples/pubsub/pubsub.rb +0 -51
@@ -150,6 +150,10 @@ module Google
150
150
  class Representation < Google::Apis::Core::JsonRepresentation; end
151
151
  end
152
152
 
153
+ class ChannelProfileDetails
154
+ class Representation < Google::Apis::Core::JsonRepresentation; end
155
+ end
156
+
153
157
  class ChannelSection
154
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
155
159
  end
@@ -226,6 +230,18 @@ module Google
226
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
227
231
  end
228
232
 
233
+ class FanFundingEvent
234
+ class Representation < Google::Apis::Core::JsonRepresentation; end
235
+ end
236
+
237
+ class FanFundingEventListResponse
238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
239
+ end
240
+
241
+ class FanFundingEventSnippet
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+ end
244
+
229
245
  class GeoPoint
230
246
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
247
  end
@@ -330,6 +346,50 @@ module Google
330
346
  class Representation < Google::Apis::Core::JsonRepresentation; end
331
347
  end
332
348
 
349
+ class LiveChatBan
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+ end
352
+
353
+ class LiveChatBanSnippet
354
+ class Representation < Google::Apis::Core::JsonRepresentation; end
355
+ end
356
+
357
+ class LiveChatFanFundingEventDetails
358
+ class Representation < Google::Apis::Core::JsonRepresentation; end
359
+ end
360
+
361
+ class LiveChatMessage
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+ end
364
+
365
+ class LiveChatMessageAuthorDetails
366
+ class Representation < Google::Apis::Core::JsonRepresentation; end
367
+ end
368
+
369
+ class LiveChatMessageListResponse
370
+ class Representation < Google::Apis::Core::JsonRepresentation; end
371
+ end
372
+
373
+ class LiveChatMessageSnippet
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+ end
376
+
377
+ class LiveChatModerator
378
+ class Representation < Google::Apis::Core::JsonRepresentation; end
379
+ end
380
+
381
+ class LiveChatModeratorListResponse
382
+ class Representation < Google::Apis::Core::JsonRepresentation; end
383
+ end
384
+
385
+ class LiveChatModeratorSnippet
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+ end
388
+
389
+ class LiveChatTextMessageDetails
390
+ class Representation < Google::Apis::Core::JsonRepresentation; end
391
+ end
392
+
333
393
  class LiveStream
334
394
  class Representation < Google::Apis::Core::JsonRepresentation; end
335
395
  end
@@ -450,6 +510,18 @@ module Google
450
510
  class Representation < Google::Apis::Core::JsonRepresentation; end
451
511
  end
452
512
 
513
+ class Sponsor
514
+ class Representation < Google::Apis::Core::JsonRepresentation; end
515
+ end
516
+
517
+ class SponsorListResponse
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+ end
520
+
521
+ class SponsorSnippet
522
+ class Representation < Google::Apis::Core::JsonRepresentation; end
523
+ end
524
+
453
525
  class Subscription
454
526
  class Representation < Google::Apis::Core::JsonRepresentation; end
455
527
  end
@@ -1008,6 +1080,16 @@ module Google
1008
1080
  end
1009
1081
  end
1010
1082
 
1083
+ class ChannelProfileDetails
1084
+ # @private
1085
+ class Representation < Google::Apis::Core::JsonRepresentation
1086
+ property :channel_id, as: 'channelId'
1087
+ property :channel_url, as: 'channelUrl'
1088
+ property :display_name, as: 'displayName'
1089
+ property :profile_image_url, as: 'profileImageUrl'
1090
+ end
1091
+ end
1092
+
1011
1093
  class ChannelSection
1012
1094
  # @private
1013
1095
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1313,6 +1395,49 @@ module Google
1313
1395
  end
1314
1396
  end
1315
1397
 
1398
+ class FanFundingEvent
1399
+ # @private
1400
+ class Representation < Google::Apis::Core::JsonRepresentation
1401
+ property :etag, as: 'etag'
1402
+ property :id, as: 'id'
1403
+ property :kind, as: 'kind'
1404
+ property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::FanFundingEventSnippet, decorator: Google::Apis::YoutubeV3::FanFundingEventSnippet::Representation
1405
+
1406
+ end
1407
+ end
1408
+
1409
+ class FanFundingEventListResponse
1410
+ # @private
1411
+ class Representation < Google::Apis::Core::JsonRepresentation
1412
+ property :etag, as: 'etag'
1413
+ property :event_id, as: 'eventId'
1414
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::FanFundingEvent, decorator: Google::Apis::YoutubeV3::FanFundingEvent::Representation
1415
+
1416
+ property :kind, as: 'kind'
1417
+ property :next_page_token, as: 'nextPageToken'
1418
+ property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
1419
+
1420
+ property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
1421
+
1422
+ property :visitor_id, as: 'visitorId'
1423
+ end
1424
+ end
1425
+
1426
+ class FanFundingEventSnippet
1427
+ # @private
1428
+ class Representation < Google::Apis::Core::JsonRepresentation
1429
+ property :amount_micros, as: 'amountMicros'
1430
+ property :channel_id, as: 'channelId'
1431
+ property :comment_text, as: 'commentText'
1432
+ property :created_at, as: 'createdAt', type: DateTime
1433
+
1434
+ property :currency, as: 'currency'
1435
+ property :display_string, as: 'displayString'
1436
+ property :supporter_details, as: 'supporterDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
1437
+
1438
+ end
1439
+ end
1440
+
1316
1441
  class GeoPoint
1317
1442
  # @private
1318
1443
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1536,6 +1661,7 @@ module Google
1536
1661
  # @private
1537
1662
  class Representation < Google::Apis::Core::JsonRepresentation
1538
1663
  property :bound_stream_id, as: 'boundStreamId'
1664
+ property :closed_captions_type, as: 'closedCaptionsType'
1539
1665
  property :enable_closed_captions, as: 'enableClosedCaptions'
1540
1666
  property :enable_content_encryption, as: 'enableContentEncryption'
1541
1667
  property :enable_dvr, as: 'enableDvr'
@@ -1633,6 +1759,147 @@ module Google
1633
1759
  end
1634
1760
  end
1635
1761
 
1762
+ class LiveChatBan
1763
+ # @private
1764
+ class Representation < Google::Apis::Core::JsonRepresentation
1765
+ property :etag, as: 'etag'
1766
+ property :id, as: 'id'
1767
+ property :kind, as: 'kind'
1768
+ property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::LiveChatBanSnippet, decorator: Google::Apis::YoutubeV3::LiveChatBanSnippet::Representation
1769
+
1770
+ end
1771
+ end
1772
+
1773
+ class LiveChatBanSnippet
1774
+ # @private
1775
+ class Representation < Google::Apis::Core::JsonRepresentation
1776
+ property :ban_duration_seconds, as: 'banDurationSeconds'
1777
+ property :banned_user_details, as: 'bannedUserDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
1778
+
1779
+ property :live_chat_id, as: 'liveChatId'
1780
+ property :type, as: 'type'
1781
+ end
1782
+ end
1783
+
1784
+ class LiveChatFanFundingEventDetails
1785
+ # @private
1786
+ class Representation < Google::Apis::Core::JsonRepresentation
1787
+ property :amount_display_string, as: 'amountDisplayString'
1788
+ property :amount_micros, as: 'amountMicros'
1789
+ property :currency, as: 'currency'
1790
+ property :user_comment, as: 'userComment'
1791
+ end
1792
+ end
1793
+
1794
+ class LiveChatMessage
1795
+ # @private
1796
+ class Representation < Google::Apis::Core::JsonRepresentation
1797
+ property :author_details, as: 'authorDetails', class: Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails::Representation
1798
+
1799
+ property :etag, as: 'etag'
1800
+ property :id, as: 'id'
1801
+ property :kind, as: 'kind'
1802
+ property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::LiveChatMessageSnippet, decorator: Google::Apis::YoutubeV3::LiveChatMessageSnippet::Representation
1803
+
1804
+ end
1805
+ end
1806
+
1807
+ class LiveChatMessageAuthorDetails
1808
+ # @private
1809
+ class Representation < Google::Apis::Core::JsonRepresentation
1810
+ property :channel_id, as: 'channelId'
1811
+ property :channel_url, as: 'channelUrl'
1812
+ property :display_name, as: 'displayName'
1813
+ property :is_chat_moderator, as: 'isChatModerator'
1814
+ property :is_chat_owner, as: 'isChatOwner'
1815
+ property :is_chat_sponsor, as: 'isChatSponsor'
1816
+ property :is_verified, as: 'isVerified'
1817
+ property :profile_image_url, as: 'profileImageUrl'
1818
+ end
1819
+ end
1820
+
1821
+ class LiveChatMessageListResponse
1822
+ # @private
1823
+ class Representation < Google::Apis::Core::JsonRepresentation
1824
+ property :etag, as: 'etag'
1825
+ property :event_id, as: 'eventId'
1826
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatMessage, decorator: Google::Apis::YoutubeV3::LiveChatMessage::Representation
1827
+
1828
+ property :kind, as: 'kind'
1829
+ property :next_page_token, as: 'nextPageToken'
1830
+ property :offline_at, as: 'offlineAt', type: DateTime
1831
+
1832
+ property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
1833
+
1834
+ property :polling_interval_millis, as: 'pollingIntervalMillis'
1835
+ property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
1836
+
1837
+ property :visitor_id, as: 'visitorId'
1838
+ end
1839
+ end
1840
+
1841
+ class LiveChatMessageSnippet
1842
+ # @private
1843
+ class Representation < Google::Apis::Core::JsonRepresentation
1844
+ property :author_channel_id, as: 'authorChannelId'
1845
+ property :display_message, as: 'displayMessage'
1846
+ property :fan_funding_event_details, as: 'fanFundingEventDetails', class: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails, decorator: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails::Representation
1847
+
1848
+ property :has_display_content, as: 'hasDisplayContent'
1849
+ property :live_chat_id, as: 'liveChatId'
1850
+ property :published_at, as: 'publishedAt', type: DateTime
1851
+
1852
+ property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation
1853
+
1854
+ property :type, as: 'type'
1855
+ end
1856
+ end
1857
+
1858
+ class LiveChatModerator
1859
+ # @private
1860
+ class Representation < Google::Apis::Core::JsonRepresentation
1861
+ property :etag, as: 'etag'
1862
+ property :id, as: 'id'
1863
+ property :kind, as: 'kind'
1864
+ property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::LiveChatModeratorSnippet, decorator: Google::Apis::YoutubeV3::LiveChatModeratorSnippet::Representation
1865
+
1866
+ end
1867
+ end
1868
+
1869
+ class LiveChatModeratorListResponse
1870
+ # @private
1871
+ class Representation < Google::Apis::Core::JsonRepresentation
1872
+ property :etag, as: 'etag'
1873
+ property :event_id, as: 'eventId'
1874
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatModerator, decorator: Google::Apis::YoutubeV3::LiveChatModerator::Representation
1875
+
1876
+ property :kind, as: 'kind'
1877
+ property :next_page_token, as: 'nextPageToken'
1878
+ property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
1879
+
1880
+ property :prev_page_token, as: 'prevPageToken'
1881
+ property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
1882
+
1883
+ property :visitor_id, as: 'visitorId'
1884
+ end
1885
+ end
1886
+
1887
+ class LiveChatModeratorSnippet
1888
+ # @private
1889
+ class Representation < Google::Apis::Core::JsonRepresentation
1890
+ property :live_chat_id, as: 'liveChatId'
1891
+ property :moderator_details, as: 'moderatorDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
1892
+
1893
+ end
1894
+ end
1895
+
1896
+ class LiveChatTextMessageDetails
1897
+ # @private
1898
+ class Representation < Google::Apis::Core::JsonRepresentation
1899
+ property :message_text, as: 'messageText'
1900
+ end
1901
+ end
1902
+
1636
1903
  class LiveStream
1637
1904
  # @private
1638
1905
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1990,6 +2257,45 @@ module Google
1990
2257
  end
1991
2258
  end
1992
2259
 
2260
+ class Sponsor
2261
+ # @private
2262
+ class Representation < Google::Apis::Core::JsonRepresentation
2263
+ property :etag, as: 'etag'
2264
+ property :id, as: 'id'
2265
+ property :kind, as: 'kind'
2266
+ property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::SponsorSnippet, decorator: Google::Apis::YoutubeV3::SponsorSnippet::Representation
2267
+
2268
+ end
2269
+ end
2270
+
2271
+ class SponsorListResponse
2272
+ # @private
2273
+ class Representation < Google::Apis::Core::JsonRepresentation
2274
+ property :etag, as: 'etag'
2275
+ property :event_id, as: 'eventId'
2276
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::Sponsor, decorator: Google::Apis::YoutubeV3::Sponsor::Representation
2277
+
2278
+ property :kind, as: 'kind'
2279
+ property :next_page_token, as: 'nextPageToken'
2280
+ property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
2281
+
2282
+ property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
2283
+
2284
+ property :visitor_id, as: 'visitorId'
2285
+ end
2286
+ end
2287
+
2288
+ class SponsorSnippet
2289
+ # @private
2290
+ class Representation < Google::Apis::Core::JsonRepresentation
2291
+ property :channel_id, as: 'channelId'
2292
+ property :sponsor_details, as: 'sponsorDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
2293
+
2294
+ property :sponsor_since, as: 'sponsorSince', type: DateTime
2295
+
2296
+ end
2297
+ end
2298
+
1993
2299
  class Subscription
1994
2300
  # @private
1995
2301
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2358,6 +2664,7 @@ module Google
2358
2664
  class VideoLiveStreamingDetails
2359
2665
  # @private
2360
2666
  class Representation < Google::Apis::Core::JsonRepresentation
2667
+ property :active_live_chat_id, as: 'activeLiveChatId'
2361
2668
  property :actual_end_time, as: 'actualEndTime', type: DateTime
2362
2669
 
2363
2670
  property :actual_start_time, as: 'actualStartTime', type: DateTime
@@ -1403,6 +1403,61 @@ module Google
1403
1403
  execute_or_queue_command(command, &block)
1404
1404
  end
1405
1405
 
1406
+ # Lists fan funding events for a channel.
1407
+ # @param [String] part
1408
+ # The part parameter specifies the fanFundingEvent resource parts that the API
1409
+ # response will include. Supported values are id and snippet.
1410
+ # @param [String] hl
1411
+ # The hl parameter instructs the API to retrieve localized resource metadata for
1412
+ # a specific application language that the YouTube website supports. The
1413
+ # parameter value must be a language code included in the list returned by the
1414
+ # i18nLanguages.list method.
1415
+ # If localized resource details are available in that language, the resource's
1416
+ # snippet.localized object will contain the localized values. However, if
1417
+ # localized details are not available, the snippet.localized object will contain
1418
+ # resource details in the resource's default language.
1419
+ # @param [Fixnum] max_results
1420
+ # The maxResults parameter specifies the maximum number of items that should be
1421
+ # returned in the result set.
1422
+ # @param [String] page_token
1423
+ # The pageToken parameter identifies a specific page in the result set that
1424
+ # should be returned. In an API response, the nextPageToken and prevPageToken
1425
+ # properties identify other pages that could be retrieved.
1426
+ # @param [String] fields
1427
+ # Selector specifying which fields to include in a partial response.
1428
+ # @param [String] quota_user
1429
+ # Available to use for quota purposes for server-side applications. Can be any
1430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1431
+ # Overrides userIp if both are provided.
1432
+ # @param [String] user_ip
1433
+ # IP address of the site where the request originates. Use this if you want to
1434
+ # enforce per-user limits.
1435
+ # @param [Google::Apis::RequestOptions] options
1436
+ # Request-specific options
1437
+ #
1438
+ # @yield [result, err] Result & error if block supplied
1439
+ # @yieldparam result [Google::Apis::YoutubeV3::FanFundingEventListResponse] parsed result object
1440
+ # @yieldparam err [StandardError] error object if request failed
1441
+ #
1442
+ # @return [Google::Apis::YoutubeV3::FanFundingEventListResponse]
1443
+ #
1444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1447
+ def list_fan_funding_events(part, hl: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1448
+ command = make_simple_command(:get, 'fanFundingEvents', options)
1449
+ command.response_representation = Google::Apis::YoutubeV3::FanFundingEventListResponse::Representation
1450
+ command.response_class = Google::Apis::YoutubeV3::FanFundingEventListResponse
1451
+ command.query['hl'] = hl unless hl.nil?
1452
+ command.query['maxResults'] = max_results unless max_results.nil?
1453
+ command.query['pageToken'] = page_token unless page_token.nil?
1454
+ command.query['part'] = part unless part.nil?
1455
+ command.query['fields'] = fields unless fields.nil?
1456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1457
+ command.query['userIp'] = user_ip unless user_ip.nil?
1458
+ execute_or_queue_command(command, &block)
1459
+ end
1460
+
1406
1461
  # Returns a list of categories that can be associated with YouTube channels.
1407
1462
  # @param [String] part
1408
1463
  # The part parameter specifies the guideCategory resource properties that the
@@ -1844,6 +1899,10 @@ module Google
1844
1899
  # @param [String] broadcast_status
1845
1900
  # The broadcastStatus parameter filters the API response to only include
1846
1901
  # broadcasts with the specified status.
1902
+ # @param [String] broadcast_type
1903
+ # The broadcastType parameter filters the API response to only include
1904
+ # broadcasts with the specified type. This is only compatible with the mine
1905
+ # filter for now.
1847
1906
  # @param [String] id
1848
1907
  # The id parameter specifies a comma-separated list of YouTube broadcast IDs
1849
1908
  # that identify the broadcasts being retrieved. In a liveBroadcast resource, the
@@ -1906,11 +1965,12 @@ module Google
1906
1965
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1907
1966
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1908
1967
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1909
- def list_live_broadcasts(part, broadcast_status: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1968
+ def list_live_broadcasts(part, broadcast_status: nil, broadcast_type: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1910
1969
  command = make_simple_command(:get, 'liveBroadcasts', options)
1911
1970
  command.response_representation = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse::Representation
1912
1971
  command.response_class = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse
1913
1972
  command.query['broadcastStatus'] = broadcast_status unless broadcast_status.nil?
1973
+ command.query['broadcastType'] = broadcast_type unless broadcast_type.nil?
1914
1974
  command.query['id'] = id unless id.nil?
1915
1975
  command.query['maxResults'] = max_results unless max_results.nil?
1916
1976
  command.query['mine'] = mine unless mine.nil?
@@ -2084,6 +2144,340 @@ module Google
2084
2144
  execute_or_queue_command(command, &block)
2085
2145
  end
2086
2146
 
2147
+ # Removes a chat ban.
2148
+ # @param [String] id
2149
+ # The id parameter identifies the chat ban to remove. The value uniquely
2150
+ # identifies both the ban and the chat.
2151
+ # @param [String] fields
2152
+ # Selector specifying which fields to include in a partial response.
2153
+ # @param [String] quota_user
2154
+ # Available to use for quota purposes for server-side applications. Can be any
2155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2156
+ # Overrides userIp if both are provided.
2157
+ # @param [String] user_ip
2158
+ # IP address of the site where the request originates. Use this if you want to
2159
+ # enforce per-user limits.
2160
+ # @param [Google::Apis::RequestOptions] options
2161
+ # Request-specific options
2162
+ #
2163
+ # @yield [result, err] Result & error if block supplied
2164
+ # @yieldparam result [NilClass] No result returned for this method
2165
+ # @yieldparam err [StandardError] error object if request failed
2166
+ #
2167
+ # @return [void]
2168
+ #
2169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2172
+ def delete_live_chat_ban(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2173
+ command = make_simple_command(:delete, 'liveChat/bans', options)
2174
+ command.query['id'] = id unless id.nil?
2175
+ command.query['fields'] = fields unless fields.nil?
2176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2177
+ command.query['userIp'] = user_ip unless user_ip.nil?
2178
+ execute_or_queue_command(command, &block)
2179
+ end
2180
+
2181
+ # Adds a new ban to the chat.
2182
+ # @param [String] part
2183
+ # The part parameter serves two purposes in this operation. It identifies the
2184
+ # properties that the write operation will set as well as the properties that
2185
+ # the API response returns. Set the parameter value to snippet.
2186
+ # @param [Google::Apis::YoutubeV3::LiveChatBan] live_chat_ban_object
2187
+ # @param [String] fields
2188
+ # Selector specifying which fields to include in a partial response.
2189
+ # @param [String] quota_user
2190
+ # Available to use for quota purposes for server-side applications. Can be any
2191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2192
+ # Overrides userIp if both are provided.
2193
+ # @param [String] user_ip
2194
+ # IP address of the site where the request originates. Use this if you want to
2195
+ # enforce per-user limits.
2196
+ # @param [Google::Apis::RequestOptions] options
2197
+ # Request-specific options
2198
+ #
2199
+ # @yield [result, err] Result & error if block supplied
2200
+ # @yieldparam result [Google::Apis::YoutubeV3::LiveChatBan] parsed result object
2201
+ # @yieldparam err [StandardError] error object if request failed
2202
+ #
2203
+ # @return [Google::Apis::YoutubeV3::LiveChatBan]
2204
+ #
2205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2208
+ def insert_live_chat_ban(part, live_chat_ban_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2209
+ command = make_simple_command(:post, 'liveChat/bans', options)
2210
+ command.request_representation = Google::Apis::YoutubeV3::LiveChatBan::Representation
2211
+ command.request_object = live_chat_ban_object
2212
+ command.response_representation = Google::Apis::YoutubeV3::LiveChatBan::Representation
2213
+ command.response_class = Google::Apis::YoutubeV3::LiveChatBan
2214
+ command.query['part'] = part unless part.nil?
2215
+ command.query['fields'] = fields unless fields.nil?
2216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2217
+ command.query['userIp'] = user_ip unless user_ip.nil?
2218
+ execute_or_queue_command(command, &block)
2219
+ end
2220
+
2221
+ # Deletes a chat message.
2222
+ # @param [String] id
2223
+ # The id parameter specifies the YouTube chat message ID of the resource that is
2224
+ # being deleted.
2225
+ # @param [String] fields
2226
+ # Selector specifying which fields to include in a partial response.
2227
+ # @param [String] quota_user
2228
+ # Available to use for quota purposes for server-side applications. Can be any
2229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2230
+ # Overrides userIp if both are provided.
2231
+ # @param [String] user_ip
2232
+ # IP address of the site where the request originates. Use this if you want to
2233
+ # enforce per-user limits.
2234
+ # @param [Google::Apis::RequestOptions] options
2235
+ # Request-specific options
2236
+ #
2237
+ # @yield [result, err] Result & error if block supplied
2238
+ # @yieldparam result [NilClass] No result returned for this method
2239
+ # @yieldparam err [StandardError] error object if request failed
2240
+ #
2241
+ # @return [void]
2242
+ #
2243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2245
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2246
+ def delete_live_chat_message(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2247
+ command = make_simple_command(:delete, 'liveChat/messages', options)
2248
+ command.query['id'] = id unless id.nil?
2249
+ command.query['fields'] = fields unless fields.nil?
2250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2251
+ command.query['userIp'] = user_ip unless user_ip.nil?
2252
+ execute_or_queue_command(command, &block)
2253
+ end
2254
+
2255
+ # Adds a message to a live chat.
2256
+ # @param [String] part
2257
+ # The part parameter serves two purposes. It identifies the properties that the
2258
+ # write operation will set as well as the properties that the API response will
2259
+ # include. Set the parameter value to snippet.
2260
+ # @param [Google::Apis::YoutubeV3::LiveChatMessage] live_chat_message_object
2261
+ # @param [String] fields
2262
+ # Selector specifying which fields to include in a partial response.
2263
+ # @param [String] quota_user
2264
+ # Available to use for quota purposes for server-side applications. Can be any
2265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2266
+ # Overrides userIp if both are provided.
2267
+ # @param [String] user_ip
2268
+ # IP address of the site where the request originates. Use this if you want to
2269
+ # enforce per-user limits.
2270
+ # @param [Google::Apis::RequestOptions] options
2271
+ # Request-specific options
2272
+ #
2273
+ # @yield [result, err] Result & error if block supplied
2274
+ # @yieldparam result [Google::Apis::YoutubeV3::LiveChatMessage] parsed result object
2275
+ # @yieldparam err [StandardError] error object if request failed
2276
+ #
2277
+ # @return [Google::Apis::YoutubeV3::LiveChatMessage]
2278
+ #
2279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2282
+ def insert_live_chat_message(part, live_chat_message_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2283
+ command = make_simple_command(:post, 'liveChat/messages', options)
2284
+ command.request_representation = Google::Apis::YoutubeV3::LiveChatMessage::Representation
2285
+ command.request_object = live_chat_message_object
2286
+ command.response_representation = Google::Apis::YoutubeV3::LiveChatMessage::Representation
2287
+ command.response_class = Google::Apis::YoutubeV3::LiveChatMessage
2288
+ command.query['part'] = part unless part.nil?
2289
+ command.query['fields'] = fields unless fields.nil?
2290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2291
+ command.query['userIp'] = user_ip unless user_ip.nil?
2292
+ execute_or_queue_command(command, &block)
2293
+ end
2294
+
2295
+ # Lists live chat messages for a specific chat.
2296
+ # @param [String] live_chat_id
2297
+ # The liveChatId parameter specifies the ID of the chat whose messages will be
2298
+ # returned.
2299
+ # @param [String] part
2300
+ # The part parameter specifies the liveChatComment resource parts that the API
2301
+ # response will include. Supported values are id and snippet.
2302
+ # @param [String] hl
2303
+ # The hl parameter instructs the API to retrieve localized resource metadata for
2304
+ # a specific application language that the YouTube website supports. The
2305
+ # parameter value must be a language code included in the list returned by the
2306
+ # i18nLanguages.list method.
2307
+ # If localized resource details are available in that language, the resource's
2308
+ # snippet.localized object will contain the localized values. However, if
2309
+ # localized details are not available, the snippet.localized object will contain
2310
+ # resource details in the resource's default language.
2311
+ # @param [Fixnum] max_results
2312
+ # The maxResults parameter specifies the maximum number of messages that should
2313
+ # be returned in the result set.
2314
+ # @param [String] page_token
2315
+ # The pageToken parameter identifies a specific page in the result set that
2316
+ # should be returned. In an API response, the nextPageToken property identify
2317
+ # other pages that could be retrieved.
2318
+ # @param [Fixnum] profile_image_size
2319
+ # The profileImageSize parameter specifies the size of the user profile pictures
2320
+ # that should be returned in the result set. Default: 88.
2321
+ # @param [String] fields
2322
+ # Selector specifying which fields to include in a partial response.
2323
+ # @param [String] quota_user
2324
+ # Available to use for quota purposes for server-side applications. Can be any
2325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2326
+ # Overrides userIp if both are provided.
2327
+ # @param [String] user_ip
2328
+ # IP address of the site where the request originates. Use this if you want to
2329
+ # enforce per-user limits.
2330
+ # @param [Google::Apis::RequestOptions] options
2331
+ # Request-specific options
2332
+ #
2333
+ # @yield [result, err] Result & error if block supplied
2334
+ # @yieldparam result [Google::Apis::YoutubeV3::LiveChatMessageListResponse] parsed result object
2335
+ # @yieldparam err [StandardError] error object if request failed
2336
+ #
2337
+ # @return [Google::Apis::YoutubeV3::LiveChatMessageListResponse]
2338
+ #
2339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2342
+ def list_live_chat_messages(live_chat_id, part, hl: nil, max_results: nil, page_token: nil, profile_image_size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2343
+ command = make_simple_command(:get, 'liveChat/messages', options)
2344
+ command.response_representation = Google::Apis::YoutubeV3::LiveChatMessageListResponse::Representation
2345
+ command.response_class = Google::Apis::YoutubeV3::LiveChatMessageListResponse
2346
+ command.query['hl'] = hl unless hl.nil?
2347
+ command.query['liveChatId'] = live_chat_id unless live_chat_id.nil?
2348
+ command.query['maxResults'] = max_results unless max_results.nil?
2349
+ command.query['pageToken'] = page_token unless page_token.nil?
2350
+ command.query['part'] = part unless part.nil?
2351
+ command.query['profileImageSize'] = profile_image_size unless profile_image_size.nil?
2352
+ command.query['fields'] = fields unless fields.nil?
2353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2354
+ command.query['userIp'] = user_ip unless user_ip.nil?
2355
+ execute_or_queue_command(command, &block)
2356
+ end
2357
+
2358
+ # Removes a chat moderator.
2359
+ # @param [String] id
2360
+ # The id parameter identifies the chat moderator to remove. The value uniquely
2361
+ # identifies both the moderator and the chat.
2362
+ # @param [String] fields
2363
+ # Selector specifying which fields to include in a partial response.
2364
+ # @param [String] quota_user
2365
+ # Available to use for quota purposes for server-side applications. Can be any
2366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2367
+ # Overrides userIp if both are provided.
2368
+ # @param [String] user_ip
2369
+ # IP address of the site where the request originates. Use this if you want to
2370
+ # enforce per-user limits.
2371
+ # @param [Google::Apis::RequestOptions] options
2372
+ # Request-specific options
2373
+ #
2374
+ # @yield [result, err] Result & error if block supplied
2375
+ # @yieldparam result [NilClass] No result returned for this method
2376
+ # @yieldparam err [StandardError] error object if request failed
2377
+ #
2378
+ # @return [void]
2379
+ #
2380
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2381
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2382
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2383
+ def delete_live_chat_moderator(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2384
+ command = make_simple_command(:delete, 'liveChat/moderators', options)
2385
+ command.query['id'] = id unless id.nil?
2386
+ command.query['fields'] = fields unless fields.nil?
2387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2388
+ command.query['userIp'] = user_ip unless user_ip.nil?
2389
+ execute_or_queue_command(command, &block)
2390
+ end
2391
+
2392
+ # Adds a new moderator for the chat.
2393
+ # @param [String] part
2394
+ # The part parameter serves two purposes in this operation. It identifies the
2395
+ # properties that the write operation will set as well as the properties that
2396
+ # the API response returns. Set the parameter value to snippet.
2397
+ # @param [Google::Apis::YoutubeV3::LiveChatModerator] live_chat_moderator_object
2398
+ # @param [String] fields
2399
+ # Selector specifying which fields to include in a partial response.
2400
+ # @param [String] quota_user
2401
+ # Available to use for quota purposes for server-side applications. Can be any
2402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2403
+ # Overrides userIp if both are provided.
2404
+ # @param [String] user_ip
2405
+ # IP address of the site where the request originates. Use this if you want to
2406
+ # enforce per-user limits.
2407
+ # @param [Google::Apis::RequestOptions] options
2408
+ # Request-specific options
2409
+ #
2410
+ # @yield [result, err] Result & error if block supplied
2411
+ # @yieldparam result [Google::Apis::YoutubeV3::LiveChatModerator] parsed result object
2412
+ # @yieldparam err [StandardError] error object if request failed
2413
+ #
2414
+ # @return [Google::Apis::YoutubeV3::LiveChatModerator]
2415
+ #
2416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2419
+ def insert_live_chat_moderator(part, live_chat_moderator_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2420
+ command = make_simple_command(:post, 'liveChat/moderators', options)
2421
+ command.request_representation = Google::Apis::YoutubeV3::LiveChatModerator::Representation
2422
+ command.request_object = live_chat_moderator_object
2423
+ command.response_representation = Google::Apis::YoutubeV3::LiveChatModerator::Representation
2424
+ command.response_class = Google::Apis::YoutubeV3::LiveChatModerator
2425
+ command.query['part'] = part unless part.nil?
2426
+ command.query['fields'] = fields unless fields.nil?
2427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2428
+ command.query['userIp'] = user_ip unless user_ip.nil?
2429
+ execute_or_queue_command(command, &block)
2430
+ end
2431
+
2432
+ # Lists moderators for a live chat.
2433
+ # @param [String] live_chat_id
2434
+ # The liveChatId parameter specifies the YouTube live chat for which the API
2435
+ # should return moderators.
2436
+ # @param [String] part
2437
+ # The part parameter specifies the liveChatModerator resource parts that the API
2438
+ # response will include. Supported values are id and snippet.
2439
+ # @param [Fixnum] max_results
2440
+ # The maxResults parameter specifies the maximum number of items that should be
2441
+ # returned in the result set.
2442
+ # @param [String] page_token
2443
+ # The pageToken parameter identifies a specific page in the result set that
2444
+ # should be returned. In an API response, the nextPageToken and prevPageToken
2445
+ # properties identify other pages that could be retrieved.
2446
+ # @param [String] fields
2447
+ # Selector specifying which fields to include in a partial response.
2448
+ # @param [String] quota_user
2449
+ # Available to use for quota purposes for server-side applications. Can be any
2450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2451
+ # Overrides userIp if both are provided.
2452
+ # @param [String] user_ip
2453
+ # IP address of the site where the request originates. Use this if you want to
2454
+ # enforce per-user limits.
2455
+ # @param [Google::Apis::RequestOptions] options
2456
+ # Request-specific options
2457
+ #
2458
+ # @yield [result, err] Result & error if block supplied
2459
+ # @yieldparam result [Google::Apis::YoutubeV3::LiveChatModeratorListResponse] parsed result object
2460
+ # @yieldparam err [StandardError] error object if request failed
2461
+ #
2462
+ # @return [Google::Apis::YoutubeV3::LiveChatModeratorListResponse]
2463
+ #
2464
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2465
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2466
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2467
+ def list_live_chat_moderators(live_chat_id, part, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2468
+ command = make_simple_command(:get, 'liveChat/moderators', options)
2469
+ command.response_representation = Google::Apis::YoutubeV3::LiveChatModeratorListResponse::Representation
2470
+ command.response_class = Google::Apis::YoutubeV3::LiveChatModeratorListResponse
2471
+ command.query['liveChatId'] = live_chat_id unless live_chat_id.nil?
2472
+ command.query['maxResults'] = max_results unless max_results.nil?
2473
+ command.query['pageToken'] = page_token unless page_token.nil?
2474
+ command.query['part'] = part unless part.nil?
2475
+ command.query['fields'] = fields unless fields.nil?
2476
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2477
+ command.query['userIp'] = user_ip unless user_ip.nil?
2478
+ execute_or_queue_command(command, &block)
2479
+ end
2480
+
2087
2481
  # Deletes a video stream.
2088
2482
  # @param [String] id
2089
2483
  # The id parameter specifies the YouTube live stream ID for the resource that is
@@ -3079,6 +3473,54 @@ module Google
3079
3473
  execute_or_queue_command(command, &block)
3080
3474
  end
3081
3475
 
3476
+ # Lists sponsors for a channel.
3477
+ # @param [String] part
3478
+ # The part parameter specifies the sponsor resource parts that the API response
3479
+ # will include. Supported values are id and snippet.
3480
+ # @param [String] filter
3481
+ # The filter parameter specifies which channel sponsors to return.
3482
+ # @param [Fixnum] max_results
3483
+ # The maxResults parameter specifies the maximum number of items that should be
3484
+ # returned in the result set.
3485
+ # @param [String] page_token
3486
+ # The pageToken parameter identifies a specific page in the result set that
3487
+ # should be returned. In an API response, the nextPageToken and prevPageToken
3488
+ # properties identify other pages that could be retrieved.
3489
+ # @param [String] fields
3490
+ # Selector specifying which fields to include in a partial response.
3491
+ # @param [String] quota_user
3492
+ # Available to use for quota purposes for server-side applications. Can be any
3493
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3494
+ # Overrides userIp if both are provided.
3495
+ # @param [String] user_ip
3496
+ # IP address of the site where the request originates. Use this if you want to
3497
+ # enforce per-user limits.
3498
+ # @param [Google::Apis::RequestOptions] options
3499
+ # Request-specific options
3500
+ #
3501
+ # @yield [result, err] Result & error if block supplied
3502
+ # @yieldparam result [Google::Apis::YoutubeV3::SponsorListResponse] parsed result object
3503
+ # @yieldparam err [StandardError] error object if request failed
3504
+ #
3505
+ # @return [Google::Apis::YoutubeV3::SponsorListResponse]
3506
+ #
3507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3510
+ def list_sponsors(part, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3511
+ command = make_simple_command(:get, 'sponsors', options)
3512
+ command.response_representation = Google::Apis::YoutubeV3::SponsorListResponse::Representation
3513
+ command.response_class = Google::Apis::YoutubeV3::SponsorListResponse
3514
+ command.query['filter'] = filter unless filter.nil?
3515
+ command.query['maxResults'] = max_results unless max_results.nil?
3516
+ command.query['pageToken'] = page_token unless page_token.nil?
3517
+ command.query['part'] = part unless part.nil?
3518
+ command.query['fields'] = fields unless fields.nil?
3519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3520
+ command.query['userIp'] = user_ip unless user_ip.nil?
3521
+ execute_or_queue_command(command, &block)
3522
+ end
3523
+
3082
3524
  # Deletes a subscription.
3083
3525
  # @param [String] id
3084
3526
  # The id parameter specifies the YouTube subscription ID for the resource that