google-api-client 0.9.pre3 → 0.9.pre4
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 +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
|
@@ -1260,6 +1260,7 @@ module Google
|
|
|
1260
1260
|
property :chvrs_rating, as: 'chvrsRating'
|
|
1261
1261
|
property :cicf_rating, as: 'cicfRating'
|
|
1262
1262
|
property :cna_rating, as: 'cnaRating'
|
|
1263
|
+
property :cnc_rating, as: 'cncRating'
|
|
1263
1264
|
property :csa_rating, as: 'csaRating'
|
|
1264
1265
|
property :cscf_rating, as: 'cscfRating'
|
|
1265
1266
|
property :czfilm_rating, as: 'czfilmRating'
|
|
@@ -1575,6 +1576,7 @@ module Google
|
|
|
1575
1576
|
property :channel_id, as: 'channelId'
|
|
1576
1577
|
property :description, as: 'description'
|
|
1577
1578
|
property :is_default_broadcast, as: 'isDefaultBroadcast'
|
|
1579
|
+
property :live_chat_id, as: 'liveChatId'
|
|
1578
1580
|
property :published_at, as: 'publishedAt', type: DateTime
|
|
1579
1581
|
|
|
1580
1582
|
property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime
|
|
@@ -86,8 +86,7 @@ module Google
|
|
|
86
86
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
87
87
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
88
88
|
def insert_activity(part, activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
89
|
-
|
|
90
|
-
command = make_simple_command(:post, path, options)
|
|
89
|
+
command = make_simple_command(:post, 'activities', options)
|
|
91
90
|
command.request_representation = Google::Apis::YoutubeV3::Activity::Representation
|
|
92
91
|
command.request_object = activity_object
|
|
93
92
|
command.response_representation = Google::Apis::YoutubeV3::Activity::Representation
|
|
@@ -167,8 +166,7 @@ module Google
|
|
|
167
166
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
168
167
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
169
168
|
def list_activities(part, channel_id: nil, home: nil, max_results: nil, mine: nil, page_token: nil, published_after: nil, published_before: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
170
|
-
|
|
171
|
-
command = make_simple_command(:get, path, options)
|
|
169
|
+
command = make_simple_command(:get, 'activities', options)
|
|
172
170
|
command.response_representation = Google::Apis::YoutubeV3::ListActivitiesResponse::Representation
|
|
173
171
|
command.response_class = Google::Apis::YoutubeV3::ListActivitiesResponse
|
|
174
172
|
command.query['channelId'] = channel_id unless channel_id.nil?
|
|
@@ -190,9 +188,6 @@ module Google
|
|
|
190
188
|
# @param [String] id
|
|
191
189
|
# The id parameter identifies the caption track that is being deleted. The value
|
|
192
190
|
# is a caption track ID as identified by the id property in a caption resource.
|
|
193
|
-
# @param [String] debug_project_id_override
|
|
194
|
-
# The debugProjectIdOverride parameter should be used for mimicking a request
|
|
195
|
-
# for a certain project ID
|
|
196
191
|
# @param [String] on_behalf_of
|
|
197
192
|
# ID of the Google+ Page for the channel that the request is be on behalf of
|
|
198
193
|
# @param [String] on_behalf_of_content_owner
|
|
@@ -226,10 +221,8 @@ module Google
|
|
|
226
221
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
227
222
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
228
223
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
229
|
-
def delete_caption(id,
|
|
230
|
-
|
|
231
|
-
command = make_simple_command(:delete, path, options)
|
|
232
|
-
command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil?
|
|
224
|
+
def delete_caption(id, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
225
|
+
command = make_simple_command(:delete, 'captions', options)
|
|
233
226
|
command.query['id'] = id unless id.nil?
|
|
234
227
|
command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil?
|
|
235
228
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
@@ -246,9 +239,6 @@ module Google
|
|
|
246
239
|
# The id parameter identifies the caption track that is being retrieved. The
|
|
247
240
|
# value is a caption track ID as identified by the id property in a caption
|
|
248
241
|
# resource.
|
|
249
|
-
# @param [String] debug_project_id_override
|
|
250
|
-
# The debugProjectIdOverride parameter should be used for mimicking a request
|
|
251
|
-
# for a certain project ID
|
|
252
242
|
# @param [String] on_behalf_of
|
|
253
243
|
# ID of the Google+ Page for the channel that the request is be on behalf of
|
|
254
244
|
# @param [String] on_behalf_of_content_owner
|
|
@@ -294,16 +284,14 @@ module Google
|
|
|
294
284
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
295
285
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
296
286
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
297
|
-
def download_caption(id,
|
|
298
|
-
path = 'captions/{id}'
|
|
287
|
+
def download_caption(id, on_behalf_of: nil, on_behalf_of_content_owner: nil, tfmt: nil, tlang: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
299
288
|
if download_dest.nil?
|
|
300
|
-
command = make_simple_command(:get,
|
|
289
|
+
command = make_simple_command(:get, 'captions/{id}', options)
|
|
301
290
|
else
|
|
302
|
-
command = make_download_command(:get,
|
|
291
|
+
command = make_download_command(:get, 'captions/{id}', options)
|
|
303
292
|
command.download_dest = download_dest
|
|
304
293
|
end
|
|
305
294
|
command.params['id'] = id unless id.nil?
|
|
306
|
-
command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil?
|
|
307
295
|
command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil?
|
|
308
296
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
309
297
|
command.query['tfmt'] = tfmt unless tfmt.nil?
|
|
@@ -319,9 +307,6 @@ module Google
|
|
|
319
307
|
# The part parameter specifies the caption resource parts that the API response
|
|
320
308
|
# will include. Set the parameter value to snippet.
|
|
321
309
|
# @param [Google::Apis::YoutubeV3::Caption] caption_object
|
|
322
|
-
# @param [String] debug_project_id_override
|
|
323
|
-
# The debugProjectIdOverride parameter should be used for mimicking a request
|
|
324
|
-
# for a certain project ID.
|
|
325
310
|
# @param [String] on_behalf_of
|
|
326
311
|
# ID of the Google+ Page for the channel that the request is be on behalf of
|
|
327
312
|
# @param [String] on_behalf_of_content_owner
|
|
@@ -367,12 +352,11 @@ module Google
|
|
|
367
352
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
368
353
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
369
354
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
370
|
-
def insert_caption(part, caption_object = nil,
|
|
371
|
-
path = 'captions'
|
|
355
|
+
def insert_caption(part, caption_object = nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
372
356
|
if upload_source.nil?
|
|
373
|
-
command = make_simple_command(:post,
|
|
357
|
+
command = make_simple_command(:post, 'captions', options)
|
|
374
358
|
else
|
|
375
|
-
command = make_upload_command(:post,
|
|
359
|
+
command = make_upload_command(:post, 'captions', options)
|
|
376
360
|
command.upload_source = upload_source
|
|
377
361
|
command.upload_content_type = content_type
|
|
378
362
|
end
|
|
@@ -380,7 +364,6 @@ module Google
|
|
|
380
364
|
command.request_object = caption_object
|
|
381
365
|
command.response_representation = Google::Apis::YoutubeV3::Caption::Representation
|
|
382
366
|
command.response_class = Google::Apis::YoutubeV3::Caption
|
|
383
|
-
command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil?
|
|
384
367
|
command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil?
|
|
385
368
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
386
369
|
command.query['part'] = part unless part.nil?
|
|
@@ -401,9 +384,6 @@ module Google
|
|
|
401
384
|
# @param [String] video_id
|
|
402
385
|
# The videoId parameter specifies the YouTube video ID of the video for which
|
|
403
386
|
# the API should return caption tracks.
|
|
404
|
-
# @param [String] debug_project_id_override
|
|
405
|
-
# The debugProjectIdOverride parameter should be used for mimicking a request
|
|
406
|
-
# for a certain project ID.
|
|
407
387
|
# @param [String] id
|
|
408
388
|
# The id parameter specifies a comma-separated list of IDs that identify the
|
|
409
389
|
# caption resources that should be retrieved. Each ID must identify a caption
|
|
@@ -441,12 +421,10 @@ module Google
|
|
|
441
421
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
442
422
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
443
423
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
444
|
-
def list_captions(part, video_id,
|
|
445
|
-
|
|
446
|
-
command = make_simple_command(:get, path, options)
|
|
424
|
+
def list_captions(part, video_id, id: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
425
|
+
command = make_simple_command(:get, 'captions', options)
|
|
447
426
|
command.response_representation = Google::Apis::YoutubeV3::ListCaptionsResponse::Representation
|
|
448
427
|
command.response_class = Google::Apis::YoutubeV3::ListCaptionsResponse
|
|
449
|
-
command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil?
|
|
450
428
|
command.query['id'] = id unless id.nil?
|
|
451
429
|
command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil?
|
|
452
430
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
@@ -466,9 +444,6 @@ module Google
|
|
|
466
444
|
# the API response will include. Set the property value to snippet if you are
|
|
467
445
|
# updating the track's draft status. Otherwise, set the property value to id.
|
|
468
446
|
# @param [Google::Apis::YoutubeV3::Caption] caption_object
|
|
469
|
-
# @param [String] debug_project_id_override
|
|
470
|
-
# The debugProjectIdOverride parameter should be used for mimicking a request
|
|
471
|
-
# for a certain project ID.
|
|
472
447
|
# @param [String] on_behalf_of
|
|
473
448
|
# ID of the Google+ Page for the channel that the request is be on behalf of
|
|
474
449
|
# @param [String] on_behalf_of_content_owner
|
|
@@ -513,12 +488,11 @@ module Google
|
|
|
513
488
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
514
489
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
515
490
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
516
|
-
def update_caption(part, caption_object = nil,
|
|
517
|
-
path = 'captions'
|
|
491
|
+
def update_caption(part, caption_object = nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
518
492
|
if upload_source.nil?
|
|
519
|
-
command = make_simple_command(:put,
|
|
493
|
+
command = make_simple_command(:put, 'captions', options)
|
|
520
494
|
else
|
|
521
|
-
command = make_upload_command(:put,
|
|
495
|
+
command = make_upload_command(:put, 'captions', options)
|
|
522
496
|
command.upload_source = upload_source
|
|
523
497
|
command.upload_content_type = content_type
|
|
524
498
|
end
|
|
@@ -526,7 +500,6 @@ module Google
|
|
|
526
500
|
command.request_object = caption_object
|
|
527
501
|
command.response_representation = Google::Apis::YoutubeV3::Caption::Representation
|
|
528
502
|
command.response_class = Google::Apis::YoutubeV3::Caption
|
|
529
|
-
command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil?
|
|
530
503
|
command.query['onBehalfOf'] = on_behalf_of unless on_behalf_of.nil?
|
|
531
504
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
532
505
|
command.query['part'] = part unless part.nil?
|
|
@@ -584,11 +557,10 @@ module Google
|
|
|
584
557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
585
558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
586
559
|
def insert_channel_banner(channel_banner_resource_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
587
|
-
path = 'channelBanners/insert'
|
|
588
560
|
if upload_source.nil?
|
|
589
|
-
command = make_simple_command(:post,
|
|
561
|
+
command = make_simple_command(:post, 'channelBanners/insert', options)
|
|
590
562
|
else
|
|
591
|
-
command = make_upload_command(:post,
|
|
563
|
+
command = make_upload_command(:post, 'channelBanners/insert', options)
|
|
592
564
|
command.upload_source = upload_source
|
|
593
565
|
command.upload_content_type = content_type
|
|
594
566
|
end
|
|
@@ -640,8 +612,7 @@ module Google
|
|
|
640
612
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
641
613
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
642
614
|
def delete_channel_section(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
643
|
-
|
|
644
|
-
command = make_simple_command(:delete, path, options)
|
|
615
|
+
command = make_simple_command(:delete, 'channelSections', options)
|
|
645
616
|
command.query['id'] = id unless id.nil?
|
|
646
617
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
647
618
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -706,8 +677,7 @@ module Google
|
|
|
706
677
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
707
678
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
708
679
|
def insert_channel_section(part, channel_section_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
709
|
-
|
|
710
|
-
command = make_simple_command(:post, path, options)
|
|
680
|
+
command = make_simple_command(:post, 'channelSections', options)
|
|
711
681
|
command.request_representation = Google::Apis::YoutubeV3::ChannelSection::Representation
|
|
712
682
|
command.request_object = channel_section_object
|
|
713
683
|
command.response_representation = Google::Apis::YoutubeV3::ChannelSection::Representation
|
|
@@ -783,8 +753,7 @@ module Google
|
|
|
783
753
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
784
754
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
785
755
|
def list_channel_sections(part, channel_id: nil, hl: nil, id: nil, mine: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
786
|
-
|
|
787
|
-
command = make_simple_command(:get, path, options)
|
|
756
|
+
command = make_simple_command(:get, 'channelSections', options)
|
|
788
757
|
command.response_representation = Google::Apis::YoutubeV3::ListChannelSectionsResponse::Representation
|
|
789
758
|
command.response_class = Google::Apis::YoutubeV3::ListChannelSectionsResponse
|
|
790
759
|
command.query['channelId'] = channel_id unless channel_id.nil?
|
|
@@ -839,8 +808,7 @@ module Google
|
|
|
839
808
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
840
809
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
841
810
|
def update_channel_section(part, channel_section_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
842
|
-
|
|
843
|
-
command = make_simple_command(:put, path, options)
|
|
811
|
+
command = make_simple_command(:put, 'channelSections', options)
|
|
844
812
|
command.request_representation = Google::Apis::YoutubeV3::ChannelSection::Representation
|
|
845
813
|
command.request_object = channel_section_object
|
|
846
814
|
command.response_representation = Google::Apis::YoutubeV3::ChannelSection::Representation
|
|
@@ -927,8 +895,7 @@ module Google
|
|
|
927
895
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
928
896
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
929
897
|
def list_channels(part, category_id: nil, for_username: nil, hl: nil, id: nil, managed_by_me: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
930
|
-
|
|
931
|
-
command = make_simple_command(:get, path, options)
|
|
898
|
+
command = make_simple_command(:get, 'channels', options)
|
|
932
899
|
command.response_representation = Google::Apis::YoutubeV3::ListChannelsResponse::Representation
|
|
933
900
|
command.response_class = Google::Apis::YoutubeV3::ListChannelsResponse
|
|
934
901
|
command.query['categoryId'] = category_id unless category_id.nil?
|
|
@@ -992,8 +959,7 @@ module Google
|
|
|
992
959
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
993
960
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
994
961
|
def update_channel(part, channel_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
995
|
-
|
|
996
|
-
command = make_simple_command(:put, path, options)
|
|
962
|
+
command = make_simple_command(:put, 'channels', options)
|
|
997
963
|
command.request_representation = Google::Apis::YoutubeV3::Channel::Representation
|
|
998
964
|
command.request_object = channel_object
|
|
999
965
|
command.response_representation = Google::Apis::YoutubeV3::Channel::Representation
|
|
@@ -1013,10 +979,6 @@ module Google
|
|
|
1013
979
|
# include. Set the parameter value to snippet. The snippet part has a quota cost
|
|
1014
980
|
# of 2 units.
|
|
1015
981
|
# @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object
|
|
1016
|
-
# @param [Boolean] share_on_google_plus
|
|
1017
|
-
# The shareOnGooglePlus parameter indicates whether the top-level comment and
|
|
1018
|
-
# any replies that are made to that comment should also be posted to the author'
|
|
1019
|
-
# s Google+ profile.
|
|
1020
982
|
# @param [String] fields
|
|
1021
983
|
# Selector specifying which fields to include in a partial response.
|
|
1022
984
|
# @param [String] quota_user
|
|
@@ -1038,15 +1000,13 @@ module Google
|
|
|
1038
1000
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1039
1001
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1040
1002
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1041
|
-
def insert_comment_thread(part, comment_thread_object = nil,
|
|
1042
|
-
|
|
1043
|
-
command = make_simple_command(:post, path, options)
|
|
1003
|
+
def insert_comment_thread(part, comment_thread_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1004
|
+
command = make_simple_command(:post, 'commentThreads', options)
|
|
1044
1005
|
command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation
|
|
1045
1006
|
command.request_object = comment_thread_object
|
|
1046
1007
|
command.response_representation = Google::Apis::YoutubeV3::CommentThread::Representation
|
|
1047
1008
|
command.response_class = Google::Apis::YoutubeV3::CommentThread
|
|
1048
1009
|
command.query['part'] = part unless part.nil?
|
|
1049
|
-
command.query['shareOnGooglePlus'] = share_on_google_plus unless share_on_google_plus.nil?
|
|
1050
1010
|
command.query['fields'] = fields unless fields.nil?
|
|
1051
1011
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1052
1012
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1123,8 +1083,7 @@ module Google
|
|
|
1123
1083
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1124
1084
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1125
1085
|
def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1126
|
-
|
|
1127
|
-
command = make_simple_command(:get, path, options)
|
|
1086
|
+
command = make_simple_command(:get, 'commentThreads', options)
|
|
1128
1087
|
command.response_representation = Google::Apis::YoutubeV3::ListCommentThreadsResponse::Representation
|
|
1129
1088
|
command.response_class = Google::Apis::YoutubeV3::ListCommentThreadsResponse
|
|
1130
1089
|
command.query['allThreadsRelatedToChannelId'] = all_threads_related_to_channel_id unless all_threads_related_to_channel_id.nil?
|
|
@@ -1173,8 +1132,7 @@ module Google
|
|
|
1173
1132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1174
1133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1175
1134
|
def update_comment_thread(part, comment_thread_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1176
|
-
|
|
1177
|
-
command = make_simple_command(:put, path, options)
|
|
1135
|
+
command = make_simple_command(:put, 'commentThreads', options)
|
|
1178
1136
|
command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation
|
|
1179
1137
|
command.request_object = comment_thread_object
|
|
1180
1138
|
command.response_representation = Google::Apis::YoutubeV3::CommentThread::Representation
|
|
@@ -1212,8 +1170,7 @@ module Google
|
|
|
1212
1170
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1213
1171
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1214
1172
|
def delete_comment(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1215
|
-
|
|
1216
|
-
command = make_simple_command(:delete, path, options)
|
|
1173
|
+
command = make_simple_command(:delete, 'comments', options)
|
|
1217
1174
|
command.query['id'] = id unless id.nil?
|
|
1218
1175
|
command.query['fields'] = fields unless fields.nil?
|
|
1219
1176
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1250,8 +1207,7 @@ module Google
|
|
|
1250
1207
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1251
1208
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1252
1209
|
def insert_comment(part, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1253
|
-
|
|
1254
|
-
command = make_simple_command(:post, path, options)
|
|
1210
|
+
command = make_simple_command(:post, 'comments', options)
|
|
1255
1211
|
command.request_representation = Google::Apis::YoutubeV3::Comment::Representation
|
|
1256
1212
|
command.request_object = comment_object
|
|
1257
1213
|
command.response_representation = Google::Apis::YoutubeV3::Comment::Representation
|
|
@@ -1312,8 +1268,7 @@ module Google
|
|
|
1312
1268
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1313
1269
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1314
1270
|
def list_comments(part, id: nil, max_results: nil, page_token: nil, parent_id: nil, text_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1315
|
-
|
|
1316
|
-
command = make_simple_command(:get, path, options)
|
|
1271
|
+
command = make_simple_command(:get, 'comments', options)
|
|
1317
1272
|
command.response_representation = Google::Apis::YoutubeV3::ListCommentsResponse::Representation
|
|
1318
1273
|
command.response_class = Google::Apis::YoutubeV3::ListCommentsResponse
|
|
1319
1274
|
command.query['id'] = id unless id.nil?
|
|
@@ -1354,9 +1309,8 @@ module Google
|
|
|
1354
1309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1355
1310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1356
1311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1357
|
-
def
|
|
1358
|
-
|
|
1359
|
-
command = make_simple_command(:post, path, options)
|
|
1312
|
+
def mark_comment_as_spam(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1313
|
+
command = make_simple_command(:post, 'comments/markAsSpam', options)
|
|
1360
1314
|
command.query['id'] = id unless id.nil?
|
|
1361
1315
|
command.query['fields'] = fields unless fields.nil?
|
|
1362
1316
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1399,8 +1353,7 @@ module Google
|
|
|
1399
1353
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1400
1354
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1401
1355
|
def set_comment_moderation_status(id, moderation_status, ban_author: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1402
|
-
|
|
1403
|
-
command = make_simple_command(:post, path, options)
|
|
1356
|
+
command = make_simple_command(:post, 'comments/setModerationStatus', options)
|
|
1404
1357
|
command.query['banAuthor'] = ban_author unless ban_author.nil?
|
|
1405
1358
|
command.query['id'] = id unless id.nil?
|
|
1406
1359
|
command.query['moderationStatus'] = moderation_status unless moderation_status.nil?
|
|
@@ -1438,8 +1391,7 @@ module Google
|
|
|
1438
1391
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1439
1392
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1440
1393
|
def update_comment(part, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1441
|
-
|
|
1442
|
-
command = make_simple_command(:put, path, options)
|
|
1394
|
+
command = make_simple_command(:put, 'comments', options)
|
|
1443
1395
|
command.request_representation = Google::Apis::YoutubeV3::Comment::Representation
|
|
1444
1396
|
command.request_object = comment_object
|
|
1445
1397
|
command.response_representation = Google::Apis::YoutubeV3::Comment::Representation
|
|
@@ -1489,8 +1441,7 @@ module Google
|
|
|
1489
1441
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1490
1442
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1491
1443
|
def list_guide_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1492
|
-
|
|
1493
|
-
command = make_simple_command(:get, path, options)
|
|
1444
|
+
command = make_simple_command(:get, 'guideCategories', options)
|
|
1494
1445
|
command.response_representation = Google::Apis::YoutubeV3::ListGuideCategoriesResponse::Representation
|
|
1495
1446
|
command.response_class = Google::Apis::YoutubeV3::ListGuideCategoriesResponse
|
|
1496
1447
|
command.query['hl'] = hl unless hl.nil?
|
|
@@ -1532,8 +1483,7 @@ module Google
|
|
|
1532
1483
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1533
1484
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1534
1485
|
def list_i18n_languages(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1535
|
-
|
|
1536
|
-
command = make_simple_command(:get, path, options)
|
|
1486
|
+
command = make_simple_command(:get, 'i18nLanguages', options)
|
|
1537
1487
|
command.response_representation = Google::Apis::YoutubeV3::ListI18nLanguagesResponse::Representation
|
|
1538
1488
|
command.response_class = Google::Apis::YoutubeV3::ListI18nLanguagesResponse
|
|
1539
1489
|
command.query['hl'] = hl unless hl.nil?
|
|
@@ -1573,8 +1523,7 @@ module Google
|
|
|
1573
1523
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1574
1524
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1575
1525
|
def list_i18n_regions(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1576
|
-
|
|
1577
|
-
command = make_simple_command(:get, path, options)
|
|
1526
|
+
command = make_simple_command(:get, 'i18nRegions', options)
|
|
1578
1527
|
command.response_representation = Google::Apis::YoutubeV3::ListI18nRegionsResponse::Representation
|
|
1579
1528
|
command.response_class = Google::Apis::YoutubeV3::ListI18nRegionsResponse
|
|
1580
1529
|
command.query['hl'] = hl unless hl.nil?
|
|
@@ -1648,86 +1597,7 @@ module Google
|
|
|
1648
1597
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1649
1598
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1650
1599
|
def bind_live_broadcast(id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1651
|
-
|
|
1652
|
-
command = make_simple_command(:post, path, options)
|
|
1653
|
-
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
1654
|
-
command.response_class = Google::Apis::YoutubeV3::LiveBroadcast
|
|
1655
|
-
command.query['id'] = id unless id.nil?
|
|
1656
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
1657
|
-
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
|
1658
|
-
command.query['part'] = part unless part.nil?
|
|
1659
|
-
command.query['streamId'] = stream_id unless stream_id.nil?
|
|
1660
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1661
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1662
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1663
|
-
execute_or_queue_command(command, &block)
|
|
1664
|
-
end
|
|
1665
|
-
|
|
1666
|
-
# Binds a YouTube broadcast to a stream or removes an existing binding between a
|
|
1667
|
-
# broadcast and a stream. A broadcast can only be bound to one video stream,
|
|
1668
|
-
# though a video stream may be bound to more than one broadcast.
|
|
1669
|
-
# @param [String] id
|
|
1670
|
-
# The id parameter specifies the unique ID of the broadcast that is being bound
|
|
1671
|
-
# to a video stream.
|
|
1672
|
-
# @param [String] part
|
|
1673
|
-
# The part parameter specifies a comma-separated list of one or more
|
|
1674
|
-
# liveBroadcast resource properties that the API response will include. The part
|
|
1675
|
-
# names that you can include in the parameter value are id, snippet,
|
|
1676
|
-
# contentDetails, and status.
|
|
1677
|
-
# @param [String] on_behalf_of_content_owner
|
|
1678
|
-
# Note: This parameter is intended exclusively for YouTube content partners.
|
|
1679
|
-
# The onBehalfOfContentOwner parameter indicates that the request's
|
|
1680
|
-
# authorization credentials identify a YouTube CMS user who is acting on behalf
|
|
1681
|
-
# of the content owner specified in the parameter value. This parameter is
|
|
1682
|
-
# intended for YouTube content partners that own and manage many different
|
|
1683
|
-
# YouTube channels. It allows content owners to authenticate once and get access
|
|
1684
|
-
# to all their video and channel data, without having to provide authentication
|
|
1685
|
-
# credentials for each individual channel. The CMS account that the user
|
|
1686
|
-
# authenticates with must be linked to the specified YouTube content owner.
|
|
1687
|
-
# @param [String] on_behalf_of_content_owner_channel
|
|
1688
|
-
# This parameter can only be used in a properly authorized request. Note: This
|
|
1689
|
-
# parameter is intended exclusively for YouTube content partners.
|
|
1690
|
-
# The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
|
|
1691
|
-
# of the channel to which a video is being added. This parameter is required
|
|
1692
|
-
# when a request specifies a value for the onBehalfOfContentOwner parameter, and
|
|
1693
|
-
# it can only be used in conjunction with that parameter. In addition, the
|
|
1694
|
-
# request must be authorized using a CMS account that is linked to the content
|
|
1695
|
-
# owner that the onBehalfOfContentOwner parameter specifies. Finally, the
|
|
1696
|
-
# channel that the onBehalfOfContentOwnerChannel parameter value specifies must
|
|
1697
|
-
# be linked to the content owner that the onBehalfOfContentOwner parameter
|
|
1698
|
-
# specifies.
|
|
1699
|
-
# This parameter is intended for YouTube content partners that own and manage
|
|
1700
|
-
# many different YouTube channels. It allows content owners to authenticate once
|
|
1701
|
-
# and perform actions on behalf of the channel specified in the parameter value,
|
|
1702
|
-
# without having to provide authentication credentials for each separate channel.
|
|
1703
|
-
# @param [String] stream_id
|
|
1704
|
-
# The streamId parameter specifies the unique ID of the video stream that is
|
|
1705
|
-
# being bound to a broadcast. If this parameter is omitted, the API will remove
|
|
1706
|
-
# any existing binding between the broadcast and a video stream.
|
|
1707
|
-
# @param [String] fields
|
|
1708
|
-
# Selector specifying which fields to include in a partial response.
|
|
1709
|
-
# @param [String] quota_user
|
|
1710
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
1711
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1712
|
-
# Overrides userIp if both are provided.
|
|
1713
|
-
# @param [String] user_ip
|
|
1714
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
1715
|
-
# enforce per-user limits.
|
|
1716
|
-
# @param [Google::Apis::RequestOptions] options
|
|
1717
|
-
# Request-specific options
|
|
1718
|
-
#
|
|
1719
|
-
# @yield [result, err] Result & error if block supplied
|
|
1720
|
-
# @yieldparam result [Google::Apis::YoutubeV3::LiveBroadcast] parsed result object
|
|
1721
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
1722
|
-
#
|
|
1723
|
-
# @return [Google::Apis::YoutubeV3::LiveBroadcast]
|
|
1724
|
-
#
|
|
1725
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1726
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1727
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1728
|
-
def bind_direct_live_broadcast(id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1729
|
-
path = 'liveBroadcasts/bind/direct'
|
|
1730
|
-
command = make_simple_command(:post, path, options)
|
|
1600
|
+
command = make_simple_command(:post, 'liveBroadcasts/bind', options)
|
|
1731
1601
|
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
1732
1602
|
command.response_class = Google::Apis::YoutubeV3::LiveBroadcast
|
|
1733
1603
|
command.query['id'] = id unless id.nil?
|
|
@@ -1817,8 +1687,7 @@ module Google
|
|
|
1817
1687
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1818
1688
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1819
1689
|
def control_live_broadcast(id, part, display_slate: nil, offset_time_ms: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, walltime: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1820
|
-
|
|
1821
|
-
command = make_simple_command(:post, path, options)
|
|
1690
|
+
command = make_simple_command(:post, 'liveBroadcasts/control', options)
|
|
1822
1691
|
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
1823
1692
|
command.response_class = Google::Apis::YoutubeV3::LiveBroadcast
|
|
1824
1693
|
command.query['displaySlate'] = display_slate unless display_slate.nil?
|
|
@@ -1886,8 +1755,7 @@ module Google
|
|
|
1886
1755
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1887
1756
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1888
1757
|
def delete_live_broadcast(id, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1889
|
-
|
|
1890
|
-
command = make_simple_command(:delete, path, options)
|
|
1758
|
+
command = make_simple_command(:delete, 'liveBroadcasts', options)
|
|
1891
1759
|
command.query['id'] = id unless id.nil?
|
|
1892
1760
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
1893
1761
|
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
|
@@ -1953,8 +1821,7 @@ module Google
|
|
|
1953
1821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1954
1822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1955
1823
|
def insert_live_broadcast(part, live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1956
|
-
|
|
1957
|
-
command = make_simple_command(:post, path, options)
|
|
1824
|
+
command = make_simple_command(:post, 'liveBroadcasts', options)
|
|
1958
1825
|
command.request_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
1959
1826
|
command.request_object = live_broadcast_object
|
|
1960
1827
|
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
@@ -2040,8 +1907,7 @@ module Google
|
|
|
2040
1907
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2041
1908
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2042
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)
|
|
2043
|
-
|
|
2044
|
-
command = make_simple_command(:get, path, options)
|
|
1910
|
+
command = make_simple_command(:get, 'liveBroadcasts', options)
|
|
2045
1911
|
command.response_representation = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse::Representation
|
|
2046
1912
|
command.response_class = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse
|
|
2047
1913
|
command.query['broadcastStatus'] = broadcast_status unless broadcast_status.nil?
|
|
@@ -2125,8 +1991,7 @@ module Google
|
|
|
2125
1991
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2126
1992
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2127
1993
|
def transition_live_broadcast(broadcast_status, id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2128
|
-
|
|
2129
|
-
command = make_simple_command(:post, path, options)
|
|
1994
|
+
command = make_simple_command(:post, 'liveBroadcasts/transition', options)
|
|
2130
1995
|
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
2131
1996
|
command.response_class = Google::Apis::YoutubeV3::LiveBroadcast
|
|
2132
1997
|
command.query['broadcastStatus'] = broadcast_status unless broadcast_status.nil?
|
|
@@ -2205,8 +2070,7 @@ module Google
|
|
|
2205
2070
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2206
2071
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2207
2072
|
def update_live_broadcast(part, live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2208
|
-
|
|
2209
|
-
command = make_simple_command(:put, path, options)
|
|
2073
|
+
command = make_simple_command(:put, 'liveBroadcasts', options)
|
|
2210
2074
|
command.request_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
2211
2075
|
command.request_object = live_broadcast_object
|
|
2212
2076
|
command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation
|
|
@@ -2272,8 +2136,7 @@ module Google
|
|
|
2272
2136
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2273
2137
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2274
2138
|
def delete_live_stream(id, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2275
|
-
|
|
2276
|
-
command = make_simple_command(:delete, path, options)
|
|
2139
|
+
command = make_simple_command(:delete, 'liveStreams', options)
|
|
2277
2140
|
command.query['id'] = id unless id.nil?
|
|
2278
2141
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
2279
2142
|
command.query['onBehalfOfContentOwnerChannel'] = on_behalf_of_content_owner_channel unless on_behalf_of_content_owner_channel.nil?
|
|
@@ -2340,8 +2203,7 @@ module Google
|
|
|
2340
2203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2341
2204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2342
2205
|
def insert_live_stream(part, live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2343
|
-
|
|
2344
|
-
command = make_simple_command(:post, path, options)
|
|
2206
|
+
command = make_simple_command(:post, 'liveStreams', options)
|
|
2345
2207
|
command.request_representation = Google::Apis::YoutubeV3::LiveStream::Representation
|
|
2346
2208
|
command.request_object = live_stream_object
|
|
2347
2209
|
command.response_representation = Google::Apis::YoutubeV3::LiveStream::Representation
|
|
@@ -2423,8 +2285,7 @@ module Google
|
|
|
2423
2285
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2424
2286
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2425
2287
|
def list_live_streams(part, 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)
|
|
2426
|
-
|
|
2427
|
-
command = make_simple_command(:get, path, options)
|
|
2288
|
+
command = make_simple_command(:get, 'liveStreams', options)
|
|
2428
2289
|
command.response_representation = Google::Apis::YoutubeV3::ListLiveStreamsResponse::Representation
|
|
2429
2290
|
command.response_class = Google::Apis::YoutubeV3::ListLiveStreamsResponse
|
|
2430
2291
|
command.query['id'] = id unless id.nil?
|
|
@@ -2501,8 +2362,7 @@ module Google
|
|
|
2501
2362
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2502
2363
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2503
2364
|
def update_live_stream(part, live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2504
|
-
|
|
2505
|
-
command = make_simple_command(:put, path, options)
|
|
2365
|
+
command = make_simple_command(:put, 'liveStreams', options)
|
|
2506
2366
|
command.request_representation = Google::Apis::YoutubeV3::LiveStream::Representation
|
|
2507
2367
|
command.request_object = live_stream_object
|
|
2508
2368
|
command.response_representation = Google::Apis::YoutubeV3::LiveStream::Representation
|
|
@@ -2543,8 +2403,7 @@ module Google
|
|
|
2543
2403
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2544
2404
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2545
2405
|
def delete_playlist_item(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2546
|
-
|
|
2547
|
-
command = make_simple_command(:delete, path, options)
|
|
2406
|
+
command = make_simple_command(:delete, 'playlistItems', options)
|
|
2548
2407
|
command.query['id'] = id unless id.nil?
|
|
2549
2408
|
command.query['fields'] = fields unless fields.nil?
|
|
2550
2409
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2590,8 +2449,7 @@ module Google
|
|
|
2590
2449
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2591
2450
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2592
2451
|
def insert_playlist_item(part, playlist_item_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2593
|
-
|
|
2594
|
-
command = make_simple_command(:post, path, options)
|
|
2452
|
+
command = make_simple_command(:post, 'playlistItems', options)
|
|
2595
2453
|
command.request_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation
|
|
2596
2454
|
command.request_object = playlist_item_object
|
|
2597
2455
|
command.response_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation
|
|
@@ -2666,8 +2524,7 @@ module Google
|
|
|
2666
2524
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2667
2525
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2668
2526
|
def list_playlist_items(part, id: nil, max_results: nil, on_behalf_of_content_owner: nil, page_token: nil, playlist_id: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2669
|
-
|
|
2670
|
-
command = make_simple_command(:get, path, options)
|
|
2527
|
+
command = make_simple_command(:get, 'playlistItems', options)
|
|
2671
2528
|
command.response_representation = Google::Apis::YoutubeV3::ListPlaylistItemsResponse::Representation
|
|
2672
2529
|
command.response_class = Google::Apis::YoutubeV3::ListPlaylistItemsResponse
|
|
2673
2530
|
command.query['id'] = id unless id.nil?
|
|
@@ -2722,8 +2579,7 @@ module Google
|
|
|
2722
2579
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2723
2580
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2724
2581
|
def update_playlist_item(part, playlist_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2725
|
-
|
|
2726
|
-
command = make_simple_command(:put, path, options)
|
|
2582
|
+
command = make_simple_command(:put, 'playlistItems', options)
|
|
2727
2583
|
command.request_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation
|
|
2728
2584
|
command.request_object = playlist_item_object
|
|
2729
2585
|
command.response_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation
|
|
@@ -2772,8 +2628,7 @@ module Google
|
|
|
2772
2628
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2773
2629
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2774
2630
|
def delete_playlist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2775
|
-
|
|
2776
|
-
command = make_simple_command(:delete, path, options)
|
|
2631
|
+
command = make_simple_command(:delete, 'playlists', options)
|
|
2777
2632
|
command.query['id'] = id unless id.nil?
|
|
2778
2633
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
2779
2634
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -2836,8 +2691,7 @@ module Google
|
|
|
2836
2691
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2837
2692
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2838
2693
|
def insert_playlist(part, playlist_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2839
|
-
|
|
2840
|
-
command = make_simple_command(:post, path, options)
|
|
2694
|
+
command = make_simple_command(:post, 'playlists', options)
|
|
2841
2695
|
command.request_representation = Google::Apis::YoutubeV3::Playlist::Representation
|
|
2842
2696
|
command.request_object = playlist_object
|
|
2843
2697
|
command.response_representation = Google::Apis::YoutubeV3::Playlist::Representation
|
|
@@ -2930,8 +2784,7 @@ module Google
|
|
|
2930
2784
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2931
2785
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2932
2786
|
def list_playlists(part, channel_id: nil, hl: 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)
|
|
2933
|
-
|
|
2934
|
-
command = make_simple_command(:get, path, options)
|
|
2787
|
+
command = make_simple_command(:get, 'playlists', options)
|
|
2935
2788
|
command.response_representation = Google::Apis::YoutubeV3::ListPlaylistResponse::Representation
|
|
2936
2789
|
command.response_class = Google::Apis::YoutubeV3::ListPlaylistResponse
|
|
2937
2790
|
command.query['channelId'] = channel_id unless channel_id.nil?
|
|
@@ -2994,8 +2847,7 @@ module Google
|
|
|
2994
2847
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2995
2848
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2996
2849
|
def update_playlist(part, playlist_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2997
|
-
|
|
2998
|
-
command = make_simple_command(:put, path, options)
|
|
2850
|
+
command = make_simple_command(:put, 'playlists', options)
|
|
2999
2851
|
command.request_representation = Google::Apis::YoutubeV3::Playlist::Representation
|
|
3000
2852
|
command.request_object = playlist_object
|
|
3001
2853
|
command.response_representation = Google::Apis::YoutubeV3::Playlist::Representation
|
|
@@ -3187,8 +3039,7 @@ module Google
|
|
|
3187
3039
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3188
3040
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3189
3041
|
def list_searches(part, channel_id: nil, channel_type: nil, event_type: nil, for_content_owner: nil, for_developer: nil, for_mine: nil, location: nil, location_radius: nil, max_results: nil, on_behalf_of_content_owner: nil, order: nil, page_token: nil, published_after: nil, published_before: nil, q: nil, region_code: nil, related_to_video_id: nil, relevance_language: nil, safe_search: nil, topic_id: nil, type: nil, video_caption: nil, video_category_id: nil, video_definition: nil, video_dimension: nil, video_duration: nil, video_embeddable: nil, video_license: nil, video_syndicated: nil, video_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3190
|
-
|
|
3191
|
-
command = make_simple_command(:get, path, options)
|
|
3042
|
+
command = make_simple_command(:get, 'search', options)
|
|
3192
3043
|
command.response_representation = Google::Apis::YoutubeV3::SearchListsResponse::Representation
|
|
3193
3044
|
command.response_class = Google::Apis::YoutubeV3::SearchListsResponse
|
|
3194
3045
|
command.query['channelId'] = channel_id unless channel_id.nil?
|
|
@@ -3255,8 +3106,7 @@ module Google
|
|
|
3255
3106
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3256
3107
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3257
3108
|
def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3258
|
-
|
|
3259
|
-
command = make_simple_command(:delete, path, options)
|
|
3109
|
+
command = make_simple_command(:delete, 'subscriptions', options)
|
|
3260
3110
|
command.query['id'] = id unless id.nil?
|
|
3261
3111
|
command.query['fields'] = fields unless fields.nil?
|
|
3262
3112
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -3292,8 +3142,7 @@ module Google
|
|
|
3292
3142
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3293
3143
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3294
3144
|
def insert_subscription(part, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3295
|
-
|
|
3296
|
-
command = make_simple_command(:post, path, options)
|
|
3145
|
+
command = make_simple_command(:post, 'subscriptions', options)
|
|
3297
3146
|
command.request_representation = Google::Apis::YoutubeV3::Subscription::Representation
|
|
3298
3147
|
command.request_object = subscription_object
|
|
3299
3148
|
command.response_representation = Google::Apis::YoutubeV3::Subscription::Representation
|
|
@@ -3388,8 +3237,7 @@ module Google
|
|
|
3388
3237
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3389
3238
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3390
3239
|
def list_subscriptions(part, channel_id: nil, for_channel_id: nil, id: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, order: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3391
|
-
|
|
3392
|
-
command = make_simple_command(:get, path, options)
|
|
3240
|
+
command = make_simple_command(:get, 'subscriptions', options)
|
|
3393
3241
|
command.response_representation = Google::Apis::YoutubeV3::ListSubscriptionResponse::Representation
|
|
3394
3242
|
command.response_class = Google::Apis::YoutubeV3::ListSubscriptionResponse
|
|
3395
3243
|
command.query['channelId'] = channel_id unless channel_id.nil?
|
|
@@ -3449,11 +3297,10 @@ module Google
|
|
|
3449
3297
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3450
3298
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3451
3299
|
def set_thumbnail(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
3452
|
-
path = 'thumbnails/set'
|
|
3453
3300
|
if upload_source.nil?
|
|
3454
|
-
command = make_simple_command(:post,
|
|
3301
|
+
command = make_simple_command(:post, 'thumbnails/set', options)
|
|
3455
3302
|
else
|
|
3456
|
-
command = make_upload_command(:post,
|
|
3303
|
+
command = make_upload_command(:post, 'thumbnails/set', options)
|
|
3457
3304
|
command.upload_source = upload_source
|
|
3458
3305
|
command.upload_content_type = content_type
|
|
3459
3306
|
end
|
|
@@ -3496,8 +3343,7 @@ module Google
|
|
|
3496
3343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3497
3344
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3498
3345
|
def list_video_abuse_report_reasons(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3499
|
-
|
|
3500
|
-
command = make_simple_command(:get, path, options)
|
|
3346
|
+
command = make_simple_command(:get, 'videoAbuseReportReasons', options)
|
|
3501
3347
|
command.response_representation = Google::Apis::YoutubeV3::ListVideoAbuseReportReasonResponse::Representation
|
|
3502
3348
|
command.response_class = Google::Apis::YoutubeV3::ListVideoAbuseReportReasonResponse
|
|
3503
3349
|
command.query['hl'] = hl unless hl.nil?
|
|
@@ -3544,8 +3390,7 @@ module Google
|
|
|
3544
3390
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3545
3391
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3546
3392
|
def list_video_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3547
|
-
|
|
3548
|
-
command = make_simple_command(:get, path, options)
|
|
3393
|
+
command = make_simple_command(:get, 'videoCategories', options)
|
|
3549
3394
|
command.response_representation = Google::Apis::YoutubeV3::ListVideoCategoryResponse::Representation
|
|
3550
3395
|
command.response_class = Google::Apis::YoutubeV3::ListVideoCategoryResponse
|
|
3551
3396
|
command.query['hl'] = hl unless hl.nil?
|
|
@@ -3594,8 +3439,7 @@ module Google
|
|
|
3594
3439
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3595
3440
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3596
3441
|
def delete_video(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3597
|
-
|
|
3598
|
-
command = make_simple_command(:delete, path, options)
|
|
3442
|
+
command = make_simple_command(:delete, 'videos', options)
|
|
3599
3443
|
command.query['id'] = id unless id.nil?
|
|
3600
3444
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
3601
3445
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -3641,9 +3485,8 @@ module Google
|
|
|
3641
3485
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3642
3486
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3643
3487
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3644
|
-
def
|
|
3645
|
-
|
|
3646
|
-
command = make_simple_command(:get, path, options)
|
|
3488
|
+
def get_video_rating(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3489
|
+
command = make_simple_command(:get, 'videos/getRating', options)
|
|
3647
3490
|
command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation
|
|
3648
3491
|
command.response_class = Google::Apis::YoutubeV3::GetVideoRatingResponse
|
|
3649
3492
|
command.query['id'] = id unless id.nil?
|
|
@@ -3730,11 +3573,10 @@ module Google
|
|
|
3730
3573
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3731
3574
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3732
3575
|
def insert_video(part, video_object = nil, auto_levels: nil, notify_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stabilize: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
3733
|
-
path = 'videos'
|
|
3734
3576
|
if upload_source.nil?
|
|
3735
|
-
command = make_simple_command(:post,
|
|
3577
|
+
command = make_simple_command(:post, 'videos', options)
|
|
3736
3578
|
else
|
|
3737
|
-
command = make_upload_command(:post,
|
|
3579
|
+
command = make_upload_command(:post, 'videos', options)
|
|
3738
3580
|
command.upload_source = upload_source
|
|
3739
3581
|
command.upload_content_type = content_type
|
|
3740
3582
|
end
|
|
@@ -3765,9 +3607,6 @@ module Google
|
|
|
3765
3607
|
# response will contain all of those properties.
|
|
3766
3608
|
# @param [String] chart
|
|
3767
3609
|
# The chart parameter identifies the chart that you want to retrieve.
|
|
3768
|
-
# @param [String] debug_project_id_override
|
|
3769
|
-
# The debugProjectIdOverride parameter should be used for mimicking a request
|
|
3770
|
-
# for a certain project ID
|
|
3771
3610
|
# @param [String] hl
|
|
3772
3611
|
# The hl parameter instructs the API to retrieve localized resource metadata for
|
|
3773
3612
|
# a specific application language that the YouTube website supports. The
|
|
@@ -3839,13 +3678,11 @@ module Google
|
|
|
3839
3678
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3840
3679
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3841
3680
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3842
|
-
def list_videos(part, chart: nil,
|
|
3843
|
-
|
|
3844
|
-
command = make_simple_command(:get, path, options)
|
|
3681
|
+
def list_videos(part, chart: nil, hl: nil, id: nil, locale: nil, max_results: nil, my_rating: nil, on_behalf_of_content_owner: nil, page_token: nil, region_code: nil, video_category_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3682
|
+
command = make_simple_command(:get, 'videos', options)
|
|
3845
3683
|
command.response_representation = Google::Apis::YoutubeV3::ListVideosResponse::Representation
|
|
3846
3684
|
command.response_class = Google::Apis::YoutubeV3::ListVideosResponse
|
|
3847
3685
|
command.query['chart'] = chart unless chart.nil?
|
|
3848
|
-
command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil?
|
|
3849
3686
|
command.query['hl'] = hl unless hl.nil?
|
|
3850
3687
|
command.query['id'] = id unless id.nil?
|
|
3851
3688
|
command.query['locale'] = locale unless locale.nil?
|
|
@@ -3890,8 +3727,7 @@ module Google
|
|
|
3890
3727
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3891
3728
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3892
3729
|
def rate_video(id, rating, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3893
|
-
|
|
3894
|
-
command = make_simple_command(:post, path, options)
|
|
3730
|
+
command = make_simple_command(:post, 'videos/rate', options)
|
|
3895
3731
|
command.query['id'] = id unless id.nil?
|
|
3896
3732
|
command.query['rating'] = rating unless rating.nil?
|
|
3897
3733
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -3933,9 +3769,8 @@ module Google
|
|
|
3933
3769
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3934
3770
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3935
3771
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3936
|
-
def
|
|
3937
|
-
|
|
3938
|
-
command = make_simple_command(:post, path, options)
|
|
3772
|
+
def report_video_abuse(video_abuse_report_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3773
|
+
command = make_simple_command(:post, 'videos/reportAbuse', options)
|
|
3939
3774
|
command.request_representation = Google::Apis::YoutubeV3::VideoAbuseReport::Representation
|
|
3940
3775
|
command.request_object = video_abuse_report_object
|
|
3941
3776
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
@@ -3997,8 +3832,7 @@ module Google
|
|
|
3997
3832
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3998
3833
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3999
3834
|
def update_video(part, video_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4000
|
-
|
|
4001
|
-
command = make_simple_command(:put, path, options)
|
|
3835
|
+
command = make_simple_command(:put, 'videos', options)
|
|
4002
3836
|
command.request_representation = Google::Apis::YoutubeV3::Video::Representation
|
|
4003
3837
|
command.request_object = video_object
|
|
4004
3838
|
command.response_representation = Google::Apis::YoutubeV3::Video::Representation
|
|
@@ -4052,11 +3886,10 @@ module Google
|
|
|
4052
3886
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4053
3887
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4054
3888
|
def set_watermark(channel_id, invideo_branding_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
|
4055
|
-
path = 'watermarks/set'
|
|
4056
3889
|
if upload_source.nil?
|
|
4057
|
-
command = make_simple_command(:post,
|
|
3890
|
+
command = make_simple_command(:post, 'watermarks/set', options)
|
|
4058
3891
|
else
|
|
4059
|
-
command = make_upload_command(:post,
|
|
3892
|
+
command = make_upload_command(:post, 'watermarks/set', options)
|
|
4060
3893
|
command.upload_source = upload_source
|
|
4061
3894
|
command.upload_content_type = content_type
|
|
4062
3895
|
end
|
|
@@ -4106,8 +3939,7 @@ module Google
|
|
|
4106
3939
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4107
3940
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4108
3941
|
def unset_watermark(channel_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4109
|
-
|
|
4110
|
-
command = make_simple_command(:post, path, options)
|
|
3942
|
+
command = make_simple_command(:post, 'watermarks/unset', options)
|
|
4111
3943
|
command.query['channelId'] = channel_id unless channel_id.nil?
|
|
4112
3944
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
4113
3945
|
command.query['fields'] = fields unless fields.nil?
|