google-api-client 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +34 -0
- data/api_names.yaml +3 -0
- data/api_names_out.yaml +1058 -20
- data/bin/generate-api +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +203 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +78 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +36 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +2 -3
- data/generated/google/apis/androidenterprise_v1/classes.rb +11 -4
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +5 -6
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +6 -0
- data/generated/google/apis/appengine_v1beta5.rb +2 -3
- data/generated/google/apis/appengine_v1beta5/classes.rb +143 -8
- data/generated/google/apis/appengine_v1beta5/representations.rb +42 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +48 -6
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +68 -14
- data/generated/google/apis/bigquery_v2/representations.rb +30 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +68 -3
- data/generated/google/apis/books_v1/representations.rb +21 -0
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/clouduseraccounts_beta.rb +1 -1
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +138 -108
- data/generated/google/apis/compute_beta/representations.rb +16 -18
- data/generated/google/apis/compute_beta/service.rb +52 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +55 -74
- data/generated/google/apis/compute_v1/representations.rb +14 -18
- data/generated/google/apis/compute_v1/service.rb +45 -1
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +200 -42
- data/generated/google/apis/container_v1/representations.rb +54 -0
- data/generated/google/apis/container_v1/service.rb +31 -30
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2.rb +2 -2
- data/generated/google/apis/datastore_v1beta2/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +2 -3
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -1
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +26 -27
- data/generated/google/apis/dfareporting_v2_3.rb +2 -2
- data/generated/google/apis/dfareporting_v2_3/classes.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +10 -4
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -2
- data/generated/google/apis/genomics_v1/classes.rb +770 -82
- data/generated/google/apis/genomics_v1/representations.rb +287 -24
- data/generated/google/apis/genomics_v1/service.rb +412 -13
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +13 -6
- data/generated/google/apis/groupssettings_v1/representations.rb +1 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +50 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
- data/generated/google/apis/logging_v2beta1.rb +2 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +219 -63
- data/generated/google/apis/logging_v2beta1/representations.rb +24 -1
- data/generated/google/apis/logging_v2beta1/service.rb +25 -32
- data/generated/google/apis/oauth2_v2.rb +2 -2
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +20 -12
- data/generated/google/apis/pubsub_v1/service.rb +32 -35
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +23 -9
- data/generated/google/apis/reseller_v1/representations.rb +2 -0
- data/generated/google/apis/sheets_v1.rb +43 -0
- data/generated/google/apis/sheets_v1/classes.rb +4542 -0
- data/generated/google/apis/sheets_v1/representations.rb +1703 -0
- data/generated/google/apis/sheets_v1/service.rb +363 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +3 -2
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +4 -3
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +2 -2
- data/generated/google/apis/vision_v1/classes.rb +11 -11
- data/generated/google/apis/vision_v1/service.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +2 -2
- data/generated/google/apis/webmasters_v3/classes.rb +7 -0
- data/generated/google/apis/webmasters_v3/representations.rb +1 -0
- data/generated/google/apis/webmasters_v3/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +37 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +3656 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1452 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +3165 -0
- data/generated/google/apis/youtube_v3.rb +3 -2
- data/generated/google/apis/youtube_v3/classes.rb +100 -3
- data/generated/google/apis/youtube_v3/representations.rb +50 -0
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +17 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +2 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +21 -3
- data/google-api-client.gemspec +2 -0
- data/lib/google/apis.rb +12 -2
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +5 -2
- data/spec/google/apis/logging_spec.rb +55 -0
- metadata +12 -4
@@ -20,12 +20,13 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# YouTube Data API
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# Supports core YouTube features, such as uploading videos, creating and
|
24
|
+
# managing playlists, searching for content, and much more.
|
24
25
|
#
|
25
26
|
# @see https://developers.google.com/youtube/v3
|
26
27
|
module YoutubeV3
|
27
28
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
29
|
+
REVISION = '20160406'
|
29
30
|
|
30
31
|
# Manage your YouTube account
|
31
32
|
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
@@ -1066,7 +1066,7 @@ module Google
|
|
1066
1066
|
# @return [Google::Apis::YoutubeV3::ImageSettings]
|
1067
1067
|
attr_accessor :image
|
1068
1068
|
|
1069
|
-
# Branding properties for the watch.
|
1069
|
+
# Branding properties for the watch. All deprecated.
|
1070
1070
|
# Corresponds to the JSON property `watch`
|
1071
1071
|
# @return [Google::Apis::YoutubeV3::WatchSettings]
|
1072
1072
|
attr_accessor :watch
|
@@ -3711,6 +3711,12 @@ module Google
|
|
3711
3711
|
# @return [String]
|
3712
3712
|
attr_accessor :bound_stream_id
|
3713
3713
|
|
3714
|
+
# The date and time that the live stream referenced by boundStreamId was last
|
3715
|
+
# updated.
|
3716
|
+
# Corresponds to the JSON property `boundStreamLastUpdateTimeMs`
|
3717
|
+
# @return [DateTime]
|
3718
|
+
attr_accessor :bound_stream_last_update_time_ms
|
3719
|
+
|
3714
3720
|
#
|
3715
3721
|
# Corresponds to the JSON property `closedCaptionsType`
|
3716
3722
|
# @return [String]
|
@@ -3793,6 +3799,7 @@ module Google
|
|
3793
3799
|
# Update properties of this object
|
3794
3800
|
def update!(**args)
|
3795
3801
|
@bound_stream_id = args[:bound_stream_id] if args.key?(:bound_stream_id)
|
3802
|
+
@bound_stream_last_update_time_ms = args[:bound_stream_last_update_time_ms] if args.key?(:bound_stream_last_update_time_ms)
|
3796
3803
|
@closed_captions_type = args[:closed_captions_type] if args.key?(:closed_captions_type)
|
3797
3804
|
@enable_closed_captions = args[:enable_closed_captions] if args.key?(:enable_closed_captions)
|
3798
3805
|
@enable_content_encryption = args[:enable_content_encryption] if args.key?(:enable_content_encryption)
|
@@ -4345,6 +4352,25 @@ module Google
|
|
4345
4352
|
end
|
4346
4353
|
end
|
4347
4354
|
|
4355
|
+
#
|
4356
|
+
class LiveChatMessageDeletedDetails
|
4357
|
+
include Google::Apis::Core::Hashable
|
4358
|
+
|
4359
|
+
#
|
4360
|
+
# Corresponds to the JSON property `deletedMessageId`
|
4361
|
+
# @return [String]
|
4362
|
+
attr_accessor :deleted_message_id
|
4363
|
+
|
4364
|
+
def initialize(**args)
|
4365
|
+
update!(**args)
|
4366
|
+
end
|
4367
|
+
|
4368
|
+
# Update properties of this object
|
4369
|
+
def update!(**args)
|
4370
|
+
@deleted_message_id = args[:deleted_message_id] if args.key?(:deleted_message_id)
|
4371
|
+
end
|
4372
|
+
end
|
4373
|
+
|
4348
4374
|
#
|
4349
4375
|
class LiveChatMessageListResponse
|
4350
4376
|
include Google::Apis::Core::Hashable
|
@@ -4422,6 +4448,25 @@ module Google
|
|
4422
4448
|
end
|
4423
4449
|
end
|
4424
4450
|
|
4451
|
+
#
|
4452
|
+
class LiveChatMessageRetractedDetails
|
4453
|
+
include Google::Apis::Core::Hashable
|
4454
|
+
|
4455
|
+
#
|
4456
|
+
# Corresponds to the JSON property `retractedMessageId`
|
4457
|
+
# @return [String]
|
4458
|
+
attr_accessor :retracted_message_id
|
4459
|
+
|
4460
|
+
def initialize(**args)
|
4461
|
+
update!(**args)
|
4462
|
+
end
|
4463
|
+
|
4464
|
+
# Update properties of this object
|
4465
|
+
def update!(**args)
|
4466
|
+
@retracted_message_id = args[:retracted_message_id] if args.key?(:retracted_message_id)
|
4467
|
+
end
|
4468
|
+
end
|
4469
|
+
|
4425
4470
|
#
|
4426
4471
|
class LiveChatMessageSnippet
|
4427
4472
|
include Google::Apis::Core::Hashable
|
@@ -4429,7 +4474,9 @@ module Google
|
|
4429
4474
|
# The ID of the user that authored this message, this field is not always filled.
|
4430
4475
|
# textMessageEvent - the user that wrote the message fanFundingEvent - the user
|
4431
4476
|
# that funded the broadcast newSponsorEvent - the user that just became a
|
4432
|
-
# sponsor
|
4477
|
+
# sponsor messageDeletedEvent - the moderator that took the action
|
4478
|
+
# messageRetractedEvent - the author that retracted their message
|
4479
|
+
# userBannedEvent - the moderator that took the action
|
4433
4480
|
# Corresponds to the JSON property `authorChannelId`
|
4434
4481
|
# @return [String]
|
4435
4482
|
attr_accessor :author_channel_id
|
@@ -4458,6 +4505,16 @@ module Google
|
|
4458
4505
|
# @return [String]
|
4459
4506
|
attr_accessor :live_chat_id
|
4460
4507
|
|
4508
|
+
#
|
4509
|
+
# Corresponds to the JSON property `messageDeletedDetails`
|
4510
|
+
# @return [Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails]
|
4511
|
+
attr_accessor :message_deleted_details
|
4512
|
+
|
4513
|
+
#
|
4514
|
+
# Corresponds to the JSON property `messageRetractedDetails`
|
4515
|
+
# @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]
|
4516
|
+
attr_accessor :message_retracted_details
|
4517
|
+
|
4461
4518
|
# The date and time when the message was orignally published. The value is
|
4462
4519
|
# specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
|
4463
4520
|
# Corresponds to the JSON property `publishedAt`
|
@@ -4476,6 +4533,11 @@ module Google
|
|
4476
4533
|
# @return [String]
|
4477
4534
|
attr_accessor :type
|
4478
4535
|
|
4536
|
+
#
|
4537
|
+
# Corresponds to the JSON property `userBannedDetails`
|
4538
|
+
# @return [Google::Apis::YoutubeV3::LiveChatUserBannedMessageDetails]
|
4539
|
+
attr_accessor :user_banned_details
|
4540
|
+
|
4479
4541
|
def initialize(**args)
|
4480
4542
|
update!(**args)
|
4481
4543
|
end
|
@@ -4487,9 +4549,12 @@ module Google
|
|
4487
4549
|
@fan_funding_event_details = args[:fan_funding_event_details] if args.key?(:fan_funding_event_details)
|
4488
4550
|
@has_display_content = args[:has_display_content] if args.key?(:has_display_content)
|
4489
4551
|
@live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
|
4552
|
+
@message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
|
4553
|
+
@message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
|
4490
4554
|
@published_at = args[:published_at] if args.key?(:published_at)
|
4491
4555
|
@text_message_details = args[:text_message_details] if args.key?(:text_message_details)
|
4492
4556
|
@type = args[:type] if args.key?(:type)
|
4557
|
+
@user_banned_details = args[:user_banned_details] if args.key?(:user_banned_details)
|
4493
4558
|
end
|
4494
4559
|
end
|
4495
4560
|
|
@@ -4648,6 +4713,38 @@ module Google
|
|
4648
4713
|
end
|
4649
4714
|
end
|
4650
4715
|
|
4716
|
+
#
|
4717
|
+
class LiveChatUserBannedMessageDetails
|
4718
|
+
include Google::Apis::Core::Hashable
|
4719
|
+
|
4720
|
+
# The duration of the ban. This property is only present if the banType is
|
4721
|
+
# temporary.
|
4722
|
+
# Corresponds to the JSON property `banDurationSeconds`
|
4723
|
+
# @return [String]
|
4724
|
+
attr_accessor :ban_duration_seconds
|
4725
|
+
|
4726
|
+
# The type of ban.
|
4727
|
+
# Corresponds to the JSON property `banType`
|
4728
|
+
# @return [String]
|
4729
|
+
attr_accessor :ban_type
|
4730
|
+
|
4731
|
+
# The details of the user that was banned.
|
4732
|
+
# Corresponds to the JSON property `bannedUserDetails`
|
4733
|
+
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
|
4734
|
+
attr_accessor :banned_user_details
|
4735
|
+
|
4736
|
+
def initialize(**args)
|
4737
|
+
update!(**args)
|
4738
|
+
end
|
4739
|
+
|
4740
|
+
# Update properties of this object
|
4741
|
+
def update!(**args)
|
4742
|
+
@ban_duration_seconds = args[:ban_duration_seconds] if args.key?(:ban_duration_seconds)
|
4743
|
+
@ban_type = args[:ban_type] if args.key?(:ban_type)
|
4744
|
+
@banned_user_details = args[:banned_user_details] if args.key?(:banned_user_details)
|
4745
|
+
end
|
4746
|
+
end
|
4747
|
+
|
4651
4748
|
# A live stream describes a live ingestion point.
|
4652
4749
|
class LiveStream
|
4653
4750
|
include Google::Apis::Core::Hashable
|
@@ -8043,7 +8140,7 @@ module Google
|
|
8043
8140
|
end
|
8044
8141
|
end
|
8045
8142
|
|
8046
|
-
# Branding properties for the watch.
|
8143
|
+
# Branding properties for the watch. All deprecated.
|
8047
8144
|
class WatchSettings
|
8048
8145
|
include Google::Apis::Core::Hashable
|
8049
8146
|
|
@@ -532,12 +532,24 @@ module Google
|
|
532
532
|
include Google::Apis::Core::JsonObjectSupport
|
533
533
|
end
|
534
534
|
|
535
|
+
class LiveChatMessageDeletedDetails
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
|
+
|
538
|
+
include Google::Apis::Core::JsonObjectSupport
|
539
|
+
end
|
540
|
+
|
535
541
|
class LiveChatMessageListResponse
|
536
542
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
543
|
|
538
544
|
include Google::Apis::Core::JsonObjectSupport
|
539
545
|
end
|
540
546
|
|
547
|
+
class LiveChatMessageRetractedDetails
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
549
|
+
|
550
|
+
include Google::Apis::Core::JsonObjectSupport
|
551
|
+
end
|
552
|
+
|
541
553
|
class LiveChatMessageSnippet
|
542
554
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
555
|
|
@@ -568,6 +580,12 @@ module Google
|
|
568
580
|
include Google::Apis::Core::JsonObjectSupport
|
569
581
|
end
|
570
582
|
|
583
|
+
class LiveChatUserBannedMessageDetails
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
585
|
+
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
587
|
+
end
|
588
|
+
|
571
589
|
class LiveStream
|
572
590
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
591
|
|
@@ -1975,6 +1993,8 @@ module Google
|
|
1975
1993
|
# @private
|
1976
1994
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1977
1995
|
property :bound_stream_id, as: 'boundStreamId'
|
1996
|
+
property :bound_stream_last_update_time_ms, as: 'boundStreamLastUpdateTimeMs', type: DateTime
|
1997
|
+
|
1978
1998
|
property :closed_captions_type, as: 'closedCaptionsType'
|
1979
1999
|
property :enable_closed_captions, as: 'enableClosedCaptions'
|
1980
2000
|
property :enable_content_encryption, as: 'enableContentEncryption'
|
@@ -2132,6 +2152,13 @@ module Google
|
|
2132
2152
|
end
|
2133
2153
|
end
|
2134
2154
|
|
2155
|
+
class LiveChatMessageDeletedDetails
|
2156
|
+
# @private
|
2157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2158
|
+
property :deleted_message_id, as: 'deletedMessageId'
|
2159
|
+
end
|
2160
|
+
end
|
2161
|
+
|
2135
2162
|
class LiveChatMessageListResponse
|
2136
2163
|
# @private
|
2137
2164
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2152,6 +2179,13 @@ module Google
|
|
2152
2179
|
end
|
2153
2180
|
end
|
2154
2181
|
|
2182
|
+
class LiveChatMessageRetractedDetails
|
2183
|
+
# @private
|
2184
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2185
|
+
property :retracted_message_id, as: 'retractedMessageId'
|
2186
|
+
end
|
2187
|
+
end
|
2188
|
+
|
2155
2189
|
class LiveChatMessageSnippet
|
2156
2190
|
# @private
|
2157
2191
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2161,11 +2195,17 @@ module Google
|
|
2161
2195
|
|
2162
2196
|
property :has_display_content, as: 'hasDisplayContent'
|
2163
2197
|
property :live_chat_id, as: 'liveChatId'
|
2198
|
+
property :message_deleted_details, as: 'messageDeletedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageDeletedDetails::Representation
|
2199
|
+
|
2200
|
+
property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
|
2201
|
+
|
2164
2202
|
property :published_at, as: 'publishedAt', type: DateTime
|
2165
2203
|
|
2166
2204
|
property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation
|
2167
2205
|
|
2168
2206
|
property :type, as: 'type'
|
2207
|
+
property :user_banned_details, as: 'userBannedDetails', class: Google::Apis::YoutubeV3::LiveChatUserBannedMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatUserBannedMessageDetails::Representation
|
2208
|
+
|
2169
2209
|
end
|
2170
2210
|
end
|
2171
2211
|
|
@@ -2214,6 +2254,16 @@ module Google
|
|
2214
2254
|
end
|
2215
2255
|
end
|
2216
2256
|
|
2257
|
+
class LiveChatUserBannedMessageDetails
|
2258
|
+
# @private
|
2259
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2260
|
+
property :ban_duration_seconds, as: 'banDurationSeconds'
|
2261
|
+
property :ban_type, as: 'banType'
|
2262
|
+
property :banned_user_details, as: 'bannedUserDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
|
2263
|
+
|
2264
|
+
end
|
2265
|
+
end
|
2266
|
+
|
2217
2267
|
class LiveStream
|
2218
2268
|
# @private
|
2219
2269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -22,7 +22,8 @@ module Google
|
|
22
22
|
module YoutubeV3
|
23
23
|
# YouTube Data API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Supports core YouTube features, such as uploading videos, creating and
|
26
|
+
# managing playlists, searching for content, and much more.
|
26
27
|
#
|
27
28
|
# @example
|
28
29
|
# require 'google/apis/youtube_v3'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
27
27
|
module YoutubereportingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160315'
|
30
30
|
|
31
31
|
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
32
32
|
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
@@ -82,6 +82,14 @@ module Google
|
|
82
82
|
# @return [String]
|
83
83
|
attr_accessor :name
|
84
84
|
|
85
|
+
# True if this a system-managed report type; otherwise false. Reporting jobs for
|
86
|
+
# system-managed report types are created automatically and can thus not be used
|
87
|
+
# in the `CreateJob` method.
|
88
|
+
# Corresponds to the JSON property `systemManaged`
|
89
|
+
# @return [Boolean]
|
90
|
+
attr_accessor :system_managed
|
91
|
+
alias_method :system_managed?, :system_managed
|
92
|
+
|
85
93
|
def initialize(**args)
|
86
94
|
update!(**args)
|
87
95
|
end
|
@@ -90,6 +98,7 @@ module Google
|
|
90
98
|
def update!(**args)
|
91
99
|
@id = args[:id] if args.key?(:id)
|
92
100
|
@name = args[:name] if args.key?(:name)
|
101
|
+
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
93
102
|
end
|
94
103
|
end
|
95
104
|
|
@@ -117,6 +126,13 @@ module Google
|
|
117
126
|
# @return [String]
|
118
127
|
attr_accessor :create_time
|
119
128
|
|
129
|
+
# True if this a system-managed job that cannot be modified by the user;
|
130
|
+
# otherwise false.
|
131
|
+
# Corresponds to the JSON property `systemManaged`
|
132
|
+
# @return [Boolean]
|
133
|
+
attr_accessor :system_managed
|
134
|
+
alias_method :system_managed?, :system_managed
|
135
|
+
|
120
136
|
def initialize(**args)
|
121
137
|
update!(**args)
|
122
138
|
end
|
@@ -127,6 +143,7 @@ module Google
|
|
127
143
|
@report_type_id = args[:report_type_id] if args.key?(:report_type_id)
|
128
144
|
@name = args[:name] if args.key?(:name)
|
129
145
|
@create_time = args[:create_time] if args.key?(:create_time)
|
146
|
+
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
130
147
|
end
|
131
148
|
end
|
132
149
|
|
@@ -91,6 +91,7 @@ module Google
|
|
91
91
|
class Representation < Google::Apis::Core::JsonRepresentation
|
92
92
|
property :id, as: 'id'
|
93
93
|
property :name, as: 'name'
|
94
|
+
property :system_managed, as: 'systemManaged'
|
94
95
|
end
|
95
96
|
end
|
96
97
|
|
@@ -101,6 +102,7 @@ module Google
|
|
101
102
|
property :report_type_id, as: 'reportTypeId'
|
102
103
|
property :name, as: 'name'
|
103
104
|
property :create_time, as: 'createTime'
|
105
|
+
property :system_managed, as: 'systemManaged'
|
104
106
|
end
|
105
107
|
end
|
106
108
|
|
@@ -97,6 +97,10 @@ module Google
|
|
97
97
|
# A token identifying a page of results the server should return. Typically,
|
98
98
|
# this is the value of ListReportTypesResponse.next_page_token returned in
|
99
99
|
# response to the previous call to the `ListReportTypes` method.
|
100
|
+
# @param [Boolean] include_system_managed
|
101
|
+
# If set to true, also system-managed report types will be returned; otherwise
|
102
|
+
# only the report types that can be used to create new reporting jobs will be
|
103
|
+
# returned.
|
100
104
|
# @param [String] fields
|
101
105
|
# Selector specifying which fields to include in a partial response.
|
102
106
|
# @param [String] quota_user
|
@@ -114,13 +118,14 @@ module Google
|
|
114
118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
-
def list_report_types(on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
121
|
+
def list_report_types(on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, include_system_managed: nil, fields: nil, quota_user: nil, options: nil, &block)
|
118
122
|
command = make_simple_command(:get, 'v1/reportTypes', options)
|
119
123
|
command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
|
120
124
|
command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
|
121
125
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
122
126
|
command.query['pageSize'] = page_size unless page_size.nil?
|
123
127
|
command.query['pageToken'] = page_token unless page_token.nil?
|
128
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
124
129
|
command.query['fields'] = fields unless fields.nil?
|
125
130
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
126
131
|
execute_or_queue_command(command, &block)
|
@@ -171,6 +176,10 @@ module Google
|
|
171
176
|
# A token identifying a page of results the server should return. Typically,
|
172
177
|
# this is the value of ListReportTypesResponse.next_page_token returned in
|
173
178
|
# response to the previous call to the `ListJobs` method.
|
179
|
+
# @param [Boolean] include_system_managed
|
180
|
+
# If set to true, also system-managed jobs will be returned; otherwise only user-
|
181
|
+
# created jobs will be returned. System-managed jobs can neither be modified nor
|
182
|
+
# deleted.
|
174
183
|
# @param [String] fields
|
175
184
|
# Selector specifying which fields to include in a partial response.
|
176
185
|
# @param [String] quota_user
|
@@ -188,13 +197,14 @@ module Google
|
|
188
197
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
198
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
199
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
-
def list_jobs(on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
200
|
+
def list_jobs(on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, include_system_managed: nil, fields: nil, quota_user: nil, options: nil, &block)
|
192
201
|
command = make_simple_command(:get, 'v1/jobs', options)
|
193
202
|
command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
|
194
203
|
command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
|
195
204
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
196
205
|
command.query['pageSize'] = page_size unless page_size.nil?
|
197
206
|
command.query['pageToken'] = page_token unless page_token.nil?
|
207
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
198
208
|
command.query['fields'] = fields unless fields.nil?
|
199
209
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
210
|
execute_or_queue_command(command, &block)
|
@@ -284,6 +294,12 @@ module Google
|
|
284
294
|
# to the previous call to the `ListReports` method.
|
285
295
|
# @param [String] created_after
|
286
296
|
# If set, only reports created after the specified date/time are returned.
|
297
|
+
# @param [String] start_time_at_or_after
|
298
|
+
# If set, only reports whose start time is greater than or equal the specified
|
299
|
+
# date/time are returned.
|
300
|
+
# @param [String] start_time_before
|
301
|
+
# If set, only reports whose start time is smaller than the specified date/time
|
302
|
+
# are returned.
|
287
303
|
# @param [String] fields
|
288
304
|
# Selector specifying which fields to include in a partial response.
|
289
305
|
# @param [String] quota_user
|
@@ -301,7 +317,7 @@ module Google
|
|
301
317
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
302
318
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
303
319
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
304
|
-
def list_job_reports(job_id, on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, created_after: nil, fields: nil, quota_user: nil, options: nil, &block)
|
320
|
+
def list_job_reports(job_id, on_behalf_of_content_owner: nil, page_size: nil, page_token: nil, created_after: nil, start_time_at_or_after: nil, start_time_before: nil, fields: nil, quota_user: nil, options: nil, &block)
|
305
321
|
command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options)
|
306
322
|
command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation
|
307
323
|
command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse
|
@@ -310,6 +326,8 @@ module Google
|
|
310
326
|
command.query['pageSize'] = page_size unless page_size.nil?
|
311
327
|
command.query['pageToken'] = page_token unless page_token.nil?
|
312
328
|
command.query['createdAfter'] = created_after unless created_after.nil?
|
329
|
+
command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
|
330
|
+
command.query['startTimeBefore'] = start_time_before unless start_time_before.nil?
|
313
331
|
command.query['fields'] = fields unless fields.nil?
|
314
332
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
315
333
|
execute_or_queue_command(command, &block)
|