google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- 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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- 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 +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/youtube/partner/
|
26
26
|
module YoutubePartnerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170321'
|
29
29
|
|
30
30
|
# View and manage your assets and associated content on YouTube
|
31
31
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
@@ -482,6 +482,77 @@ module Google
|
|
482
482
|
end
|
483
483
|
end
|
484
484
|
|
485
|
+
#
|
486
|
+
class AssetShare
|
487
|
+
include Google::Apis::Core::Hashable
|
488
|
+
|
489
|
+
# The type of the API resource. For this resource, the value is youtubePartner#
|
490
|
+
# assetShare.
|
491
|
+
# Corresponds to the JSON property `kind`
|
492
|
+
# @return [String]
|
493
|
+
attr_accessor :kind
|
494
|
+
|
495
|
+
# A value that YouTube assigns and uses to uniquely identify the asset share.
|
496
|
+
# Corresponds to the JSON property `shareId`
|
497
|
+
# @return [String]
|
498
|
+
attr_accessor :share_id
|
499
|
+
|
500
|
+
# A value that YouTube assigns and uses to uniquely identify the asset view.
|
501
|
+
# Corresponds to the JSON property `viewId`
|
502
|
+
# @return [String]
|
503
|
+
attr_accessor :view_id
|
504
|
+
|
505
|
+
def initialize(**args)
|
506
|
+
update!(**args)
|
507
|
+
end
|
508
|
+
|
509
|
+
# Update properties of this object
|
510
|
+
def update!(**args)
|
511
|
+
@kind = args[:kind] if args.key?(:kind)
|
512
|
+
@share_id = args[:share_id] if args.key?(:share_id)
|
513
|
+
@view_id = args[:view_id] if args.key?(:view_id)
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
#
|
518
|
+
class AssetShareListResponse
|
519
|
+
include Google::Apis::Core::Hashable
|
520
|
+
|
521
|
+
# An assetShare resource that matches the request criteria.
|
522
|
+
# Corresponds to the JSON property `items`
|
523
|
+
# @return [Array<Google::Apis::YoutubePartnerV1::AssetShare>]
|
524
|
+
attr_accessor :items
|
525
|
+
|
526
|
+
# The type of the API response. For this operation, the value is youtubePartner#
|
527
|
+
# assetShareList.
|
528
|
+
# Corresponds to the JSON property `kind`
|
529
|
+
# @return [String]
|
530
|
+
attr_accessor :kind
|
531
|
+
|
532
|
+
# The token that can be used as the value of the pageToken parameter to retrieve
|
533
|
+
# the next page of results.
|
534
|
+
# Corresponds to the JSON property `nextPageToken`
|
535
|
+
# @return [String]
|
536
|
+
attr_accessor :next_page_token
|
537
|
+
|
538
|
+
# The pageInfo object encapsulates paging information for the result set.
|
539
|
+
# Corresponds to the JSON property `pageInfo`
|
540
|
+
# @return [Google::Apis::YoutubePartnerV1::PageInfo]
|
541
|
+
attr_accessor :page_info
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@items = args[:items] if args.key?(:items)
|
550
|
+
@kind = args[:kind] if args.key?(:kind)
|
551
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
552
|
+
@page_info = args[:page_info] if args.key?(:page_info)
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
485
556
|
#
|
486
557
|
class AssetSnippet
|
487
558
|
include Google::Apis::Core::Hashable
|
@@ -1249,6 +1320,11 @@ module Google
|
|
1249
1320
|
# @return [DateTime]
|
1250
1321
|
attr_accessor :time_created
|
1251
1322
|
|
1323
|
+
# The time the claim status and/or status detail was last modified.
|
1324
|
+
# Corresponds to the JSON property `timeStatusLastModified`
|
1325
|
+
# @return [DateTime]
|
1326
|
+
attr_accessor :time_status_last_modified
|
1327
|
+
|
1252
1328
|
# The unique YouTube video ID that identifies the video associated with the
|
1253
1329
|
# claim.
|
1254
1330
|
# Corresponds to the JSON property `videoId`
|
@@ -1280,6 +1356,7 @@ module Google
|
|
1280
1356
|
@status = args[:status] if args.key?(:status)
|
1281
1357
|
@third_party_claim = args[:third_party_claim] if args.key?(:third_party_claim)
|
1282
1358
|
@time_created = args[:time_created] if args.key?(:time_created)
|
1359
|
+
@time_status_last_modified = args[:time_status_last_modified] if args.key?(:time_status_last_modified)
|
1283
1360
|
@video_id = args[:video_id] if args.key?(:video_id)
|
1284
1361
|
@video_title = args[:video_title] if args.key?(:video_title)
|
1285
1362
|
@video_views = args[:video_views] if args.key?(:video_views)
|
@@ -2532,6 +2609,84 @@ module Google
|
|
2532
2609
|
end
|
2533
2610
|
end
|
2534
2611
|
|
2612
|
+
#
|
2613
|
+
class Package
|
2614
|
+
include Google::Apis::Core::Hashable
|
2615
|
+
|
2616
|
+
# The package's metadata file contents.
|
2617
|
+
# Corresponds to the JSON property `content`
|
2618
|
+
# @return [String]
|
2619
|
+
attr_accessor :content
|
2620
|
+
|
2621
|
+
# An ID that YouTube assigns and uses to uniquely identify the package.
|
2622
|
+
# Corresponds to the JSON property `id`
|
2623
|
+
# @return [String]
|
2624
|
+
attr_accessor :id
|
2625
|
+
|
2626
|
+
# The type of the API resource. For package resources, this value is
|
2627
|
+
# youtubePartner#package.
|
2628
|
+
# Corresponds to the JSON property `kind`
|
2629
|
+
# @return [String]
|
2630
|
+
attr_accessor :kind
|
2631
|
+
|
2632
|
+
# The desired locale of the error messages as defined in BCP 47 (http://tools.
|
2633
|
+
# ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will
|
2634
|
+
# return the error messages in English ("en").
|
2635
|
+
# Corresponds to the JSON property `locale`
|
2636
|
+
# @return [String]
|
2637
|
+
attr_accessor :locale
|
2638
|
+
|
2639
|
+
# The uploader name.
|
2640
|
+
# Corresponds to the JSON property `uploaderName`
|
2641
|
+
# @return [String]
|
2642
|
+
attr_accessor :uploader_name
|
2643
|
+
|
2644
|
+
def initialize(**args)
|
2645
|
+
update!(**args)
|
2646
|
+
end
|
2647
|
+
|
2648
|
+
# Update properties of this object
|
2649
|
+
def update!(**args)
|
2650
|
+
@content = args[:content] if args.key?(:content)
|
2651
|
+
@id = args[:id] if args.key?(:id)
|
2652
|
+
@kind = args[:kind] if args.key?(:kind)
|
2653
|
+
@locale = args[:locale] if args.key?(:locale)
|
2654
|
+
@uploader_name = args[:uploader_name] if args.key?(:uploader_name)
|
2655
|
+
end
|
2656
|
+
end
|
2657
|
+
|
2658
|
+
#
|
2659
|
+
class PackageInsertResponse
|
2660
|
+
include Google::Apis::Core::Hashable
|
2661
|
+
|
2662
|
+
# The list of errors and/or warnings.
|
2663
|
+
# Corresponds to the JSON property `errors`
|
2664
|
+
# @return [Array<Google::Apis::YoutubePartnerV1::ValidateError>]
|
2665
|
+
attr_accessor :errors
|
2666
|
+
|
2667
|
+
# The type of the API response. For this operation, the value is youtubePartner#
|
2668
|
+
# packageInsert.
|
2669
|
+
# Corresponds to the JSON property `kind`
|
2670
|
+
# @return [String]
|
2671
|
+
attr_accessor :kind
|
2672
|
+
|
2673
|
+
# The package resource.
|
2674
|
+
# Corresponds to the JSON property `resource`
|
2675
|
+
# @return [Google::Apis::YoutubePartnerV1::Package]
|
2676
|
+
attr_accessor :resource
|
2677
|
+
|
2678
|
+
def initialize(**args)
|
2679
|
+
update!(**args)
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
# Update properties of this object
|
2683
|
+
def update!(**args)
|
2684
|
+
@errors = args[:errors] if args.key?(:errors)
|
2685
|
+
@kind = args[:kind] if args.key?(:kind)
|
2686
|
+
@resource = args[:resource] if args.key?(:resource)
|
2687
|
+
end
|
2688
|
+
end
|
2689
|
+
|
2535
2690
|
#
|
2536
2691
|
class PageInfo
|
2537
2692
|
include Google::Apis::Core::Hashable
|
@@ -88,6 +88,18 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class AssetShare
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class AssetShareListResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class AssetSnippet
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
@@ -334,6 +346,18 @@ module Google
|
|
334
346
|
include Google::Apis::Core::JsonObjectSupport
|
335
347
|
end
|
336
348
|
|
349
|
+
class Package
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
|
+
|
352
|
+
include Google::Apis::Core::JsonObjectSupport
|
353
|
+
end
|
354
|
+
|
355
|
+
class PackageInsertResponse
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
337
361
|
class PageInfo
|
338
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
363
|
|
@@ -640,6 +664,27 @@ module Google
|
|
640
664
|
end
|
641
665
|
end
|
642
666
|
|
667
|
+
class AssetShare
|
668
|
+
# @private
|
669
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
670
|
+
property :kind, as: 'kind'
|
671
|
+
property :share_id, as: 'shareId'
|
672
|
+
property :view_id, as: 'viewId'
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
class AssetShareListResponse
|
677
|
+
# @private
|
678
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
679
|
+
collection :items, as: 'items', class: Google::Apis::YoutubePartnerV1::AssetShare, decorator: Google::Apis::YoutubePartnerV1::AssetShare::Representation
|
680
|
+
|
681
|
+
property :kind, as: 'kind'
|
682
|
+
property :next_page_token, as: 'nextPageToken'
|
683
|
+
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubePartnerV1::PageInfo, decorator: Google::Apis::YoutubePartnerV1::PageInfo::Representation
|
684
|
+
|
685
|
+
end
|
686
|
+
end
|
687
|
+
|
643
688
|
class AssetSnippet
|
644
689
|
# @private
|
645
690
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -856,6 +901,8 @@ module Google
|
|
856
901
|
property :third_party_claim, as: 'thirdPartyClaim'
|
857
902
|
property :time_created, as: 'timeCreated', type: DateTime
|
858
903
|
|
904
|
+
property :time_status_last_modified, as: 'timeStatusLastModified', type: DateTime
|
905
|
+
|
859
906
|
property :video_id, as: 'videoId'
|
860
907
|
property :video_title, as: 'videoTitle'
|
861
908
|
property :video_views, as: 'videoViews'
|
@@ -1166,6 +1213,28 @@ module Google
|
|
1166
1213
|
end
|
1167
1214
|
end
|
1168
1215
|
|
1216
|
+
class Package
|
1217
|
+
# @private
|
1218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1219
|
+
property :content, as: 'content'
|
1220
|
+
property :id, as: 'id'
|
1221
|
+
property :kind, as: 'kind'
|
1222
|
+
property :locale, as: 'locale'
|
1223
|
+
property :uploader_name, as: 'uploaderName'
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
class PackageInsertResponse
|
1228
|
+
# @private
|
1229
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1230
|
+
collection :errors, as: 'errors', class: Google::Apis::YoutubePartnerV1::ValidateError, decorator: Google::Apis::YoutubePartnerV1::ValidateError::Representation
|
1231
|
+
|
1232
|
+
property :kind, as: 'kind'
|
1233
|
+
property :resource, as: 'resource', class: Google::Apis::YoutubePartnerV1::Package, decorator: Google::Apis::YoutubePartnerV1::Package::Representation
|
1234
|
+
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1169
1238
|
class PageInfo
|
1170
1239
|
# @private
|
1171
1240
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -499,6 +499,58 @@ module Google
|
|
499
499
|
execute_or_queue_command(command, &block)
|
500
500
|
end
|
501
501
|
|
502
|
+
# This method either retrieves a list of asset shares the partner owns and that
|
503
|
+
# map to a specified asset view ID or it retrieves a list of asset views
|
504
|
+
# associated with a specified asset share ID owned by the partner.
|
505
|
+
# @param [String] asset_id
|
506
|
+
# The assetId parameter specifies the asset ID for which you are retrieving data.
|
507
|
+
# The parameter can be an asset view ID or an asset share ID.
|
508
|
+
# - If the value is an asset view ID, the API response identifies any asset
|
509
|
+
# share ids mapped to the asset view.
|
510
|
+
# - If the value is an asset share ID, the API response identifies any asset
|
511
|
+
# view ids that maps to that asset share.
|
512
|
+
# @param [String] on_behalf_of_content_owner
|
513
|
+
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
514
|
+
# user is acting on behalf of. This parameter supports users whose accounts are
|
515
|
+
# associated with multiple content owners.
|
516
|
+
# @param [String] page_token
|
517
|
+
# The pageToken parameter specifies a token that identifies a particular page of
|
518
|
+
# results to return. Set this parameter to the value of the nextPageToken value
|
519
|
+
# from the previous API response to retrieve the next page of search results.
|
520
|
+
# @param [String] fields
|
521
|
+
# Selector specifying which fields to include in a partial response.
|
522
|
+
# @param [String] quota_user
|
523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
525
|
+
# Overrides userIp if both are provided.
|
526
|
+
# @param [String] user_ip
|
527
|
+
# IP address of the site where the request originates. Use this if you want to
|
528
|
+
# enforce per-user limits.
|
529
|
+
# @param [Google::Apis::RequestOptions] options
|
530
|
+
# Request-specific options
|
531
|
+
#
|
532
|
+
# @yield [result, err] Result & error if block supplied
|
533
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::AssetShareListResponse] parsed result object
|
534
|
+
# @yieldparam err [StandardError] error object if request failed
|
535
|
+
#
|
536
|
+
# @return [Google::Apis::YoutubePartnerV1::AssetShareListResponse]
|
537
|
+
#
|
538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
541
|
+
def list_asset_shares(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
542
|
+
command = make_simple_command(:get, 'assetShares', options)
|
543
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::AssetShareListResponse::Representation
|
544
|
+
command.response_class = Google::Apis::YoutubePartnerV1::AssetShareListResponse
|
545
|
+
command.query['assetId'] = asset_id unless asset_id.nil?
|
546
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
547
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
548
|
+
command.query['fields'] = fields unless fields.nil?
|
549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
550
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
551
|
+
execute_or_queue_command(command, &block)
|
552
|
+
end
|
553
|
+
|
502
554
|
# Retrieves the metadata for the specified asset. Note that if the request
|
503
555
|
# identifies an asset that has been merged with another asset, meaning that
|
504
556
|
# YouTube identified the requested asset as a duplicate, then the request
|
@@ -1066,10 +1118,10 @@ module Google
|
|
1066
1118
|
# to retrieve.
|
1067
1119
|
# @param [DateTime] created_after
|
1068
1120
|
# The createdAfter parameter allows you to restrict the set of returned claims
|
1069
|
-
# to ones
|
1121
|
+
# to ones created on or after the specified date (inclusive).
|
1070
1122
|
# @param [DateTime] created_before
|
1071
1123
|
# The createdBefore parameter allows you to restrict the set of returned claims
|
1072
|
-
# to ones
|
1124
|
+
# to ones created before the specified date (exclusive).
|
1073
1125
|
# @param [String] inactive_reasons
|
1074
1126
|
# The inactiveReasons parameter allows you to specify what kind of inactive
|
1075
1127
|
# claims you want to find based on the reasons why the claims became inactive.
|
@@ -1108,6 +1160,16 @@ module Google
|
|
1108
1160
|
# @param [String] status
|
1109
1161
|
# The status parameter restricts your results to only claims in the specified
|
1110
1162
|
# status.
|
1163
|
+
# @param [DateTime] status_modified_after
|
1164
|
+
# The statusModifiedAfter parameter allows you to restrict the result set to
|
1165
|
+
# only include claims that have had their status modified on or after the
|
1166
|
+
# specified date (inclusive). The date specified must be on or after June 30,
|
1167
|
+
# 2016 (2016-06-30). The parameter value's format is YYYY-MM-DD.
|
1168
|
+
# @param [DateTime] status_modified_before
|
1169
|
+
# The statusModifiedBefore parameter allows you to restrict the result set to
|
1170
|
+
# only include claims that have had their status modified before the specified
|
1171
|
+
# date (exclusive). The date specified must be on or after July 1, 2016 (2016-07-
|
1172
|
+
# 01). The parameter value's format is YYYY-MM-DD.
|
1111
1173
|
# @param [String] video_id
|
1112
1174
|
# The videoId parameter specifies comma-separated list of YouTube video IDs for
|
1113
1175
|
# which you are retrieving claims.
|
@@ -1132,7 +1194,7 @@ module Google
|
|
1132
1194
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1133
1195
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1134
1196
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1135
|
-
def list_claim_searches(asset_id: nil, content_type: nil, created_after: nil, created_before: nil, inactive_reasons: nil, include_third_party_claims: nil, on_behalf_of_content_owner: nil, origin: nil, page_token: nil, partner_uploaded: nil, q: nil, reference_id: nil, sort: nil, status: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1197
|
+
def list_claim_searches(asset_id: nil, content_type: nil, created_after: nil, created_before: nil, inactive_reasons: nil, include_third_party_claims: nil, on_behalf_of_content_owner: nil, origin: nil, page_token: nil, partner_uploaded: nil, q: nil, reference_id: nil, sort: nil, status: nil, status_modified_after: nil, status_modified_before: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1136
1198
|
command = make_simple_command(:get, 'claimSearch', options)
|
1137
1199
|
command.response_representation = Google::Apis::YoutubePartnerV1::ClaimSearchResponse::Representation
|
1138
1200
|
command.response_class = Google::Apis::YoutubePartnerV1::ClaimSearchResponse
|
@@ -1150,6 +1212,8 @@ module Google
|
|
1150
1212
|
command.query['referenceId'] = reference_id unless reference_id.nil?
|
1151
1213
|
command.query['sort'] = sort unless sort.nil?
|
1152
1214
|
command.query['status'] = status unless status.nil?
|
1215
|
+
command.query['statusModifiedAfter'] = status_modified_after unless status_modified_after.nil?
|
1216
|
+
command.query['statusModifiedBefore'] = status_modified_before unless status_modified_before.nil?
|
1153
1217
|
command.query['videoId'] = video_id unless video_id.nil?
|
1154
1218
|
command.query['fields'] = fields unless fields.nil?
|
1155
1219
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -2155,6 +2219,46 @@ module Google
|
|
2155
2219
|
execute_or_queue_command(command, &block)
|
2156
2220
|
end
|
2157
2221
|
|
2222
|
+
# Inserts a metadata-only package.
|
2223
|
+
# @param [Google::Apis::YoutubePartnerV1::Package] package_object
|
2224
|
+
# @param [String] on_behalf_of_content_owner
|
2225
|
+
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2226
|
+
# user is acting on behalf of. This parameter supports users whose accounts are
|
2227
|
+
# associated with multiple content owners.
|
2228
|
+
# @param [String] fields
|
2229
|
+
# Selector specifying which fields to include in a partial response.
|
2230
|
+
# @param [String] quota_user
|
2231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2233
|
+
# Overrides userIp if both are provided.
|
2234
|
+
# @param [String] user_ip
|
2235
|
+
# IP address of the site where the request originates. Use this if you want to
|
2236
|
+
# enforce per-user limits.
|
2237
|
+
# @param [Google::Apis::RequestOptions] options
|
2238
|
+
# Request-specific options
|
2239
|
+
#
|
2240
|
+
# @yield [result, err] Result & error if block supplied
|
2241
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::PackageInsertResponse] parsed result object
|
2242
|
+
# @yieldparam err [StandardError] error object if request failed
|
2243
|
+
#
|
2244
|
+
# @return [Google::Apis::YoutubePartnerV1::PackageInsertResponse]
|
2245
|
+
#
|
2246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2249
|
+
def insert_package(package_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2250
|
+
command = make_simple_command(:post, 'package', options)
|
2251
|
+
command.request_representation = Google::Apis::YoutubePartnerV1::Package::Representation
|
2252
|
+
command.request_object = package_object
|
2253
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::PackageInsertResponse::Representation
|
2254
|
+
command.response_class = Google::Apis::YoutubePartnerV1::PackageInsertResponse
|
2255
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2256
|
+
command.query['fields'] = fields unless fields.nil?
|
2257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2258
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2259
|
+
execute_or_queue_command(command, &block)
|
2260
|
+
end
|
2261
|
+
|
2158
2262
|
# Retrieves the specified saved policy.
|
2159
2263
|
# @param [String] policy_id
|
2160
2264
|
# The policyId parameter specifies a value that uniquely identifies the policy
|