google-api-client 0.41.1 → 0.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +352 -0
- data/bin/generate-api +1 -3
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +9 -0
- data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
- data/generated/google/apis/accessapproval_v1/service.rb +3 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +523 -653
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
- data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/classes.rb +139 -268
- data/generated/google/apis/admob_v1/service.rb +11 -13
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
- data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +199 -220
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
- data/generated/google/apis/androidenterprise_v1/service.rb +181 -240
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +356 -339
- data/generated/google/apis/androidpublisher_v3/representations.rb +44 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +272 -152
- data/generated/google/apis/apigee_v1.rb +6 -7
- data/generated/google/apis/apigee_v1/classes.rb +1898 -1067
- data/generated/google/apis/apigee_v1/representations.rb +542 -0
- data/generated/google/apis/apigee_v1/service.rb +1895 -1090
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +6 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +6 -2
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +198 -3
- data/generated/google/apis/bigquery_v2/representations.rb +70 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +267 -0
- data/generated/google/apis/bigtableadmin_v1/representations.rb +100 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +361 -6
- data/generated/google/apis/bigtableadmin_v2/representations.rb +146 -0
- data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +103 -109
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
- data/generated/google/apis/blogger_v2.rb +2 -3
- data/generated/google/apis/blogger_v2/classes.rb +1 -2
- data/generated/google/apis/blogger_v2/service.rb +1 -2
- data/generated/google/apis/blogger_v3.rb +2 -3
- data/generated/google/apis/blogger_v3/classes.rb +1 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -2
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +140 -159
- data/generated/google/apis/books_v1/service.rb +47 -49
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +130 -0
- data/generated/google/apis/chat_v1/representations.rb +63 -0
- data/generated/google/apis/chat_v1/service.rb +71 -0
- data/generated/google/apis/chromeuxreport_v1.rb +1 -1
- data/generated/google/apis/chromeuxreport_v1/classes.rb +68 -57
- data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +250 -365
- data/generated/google/apis/classroom_v1/service.rb +645 -900
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +15 -11
- data/generated/google/apis/cloudasset_v1/service.rb +62 -45
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +3 -1
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/{androidpublisher_v1_1.rb → cloudasset_v1p5beta1.rb} +11 -11
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1539 -0
- data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
- data/generated/google/apis/cloudasset_v1p5beta1/service.rb +129 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +272 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
- data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +284 -24
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +284 -24
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +7 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -43
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -17
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +32 -1
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +16 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +16 -5
- data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +16 -5
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +1 -2
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +2 -2
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -5
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
- data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +402 -48
- data/generated/google/apis/compute_alpha/representations.rb +103 -0
- data/generated/google/apis/compute_alpha/service.rb +38 -36
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +371 -41
- data/generated/google/apis/compute_beta/representations.rb +94 -0
- data/generated/google/apis/compute_beta/service.rb +347 -36
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +397 -40
- data/generated/google/apis/compute_v1/representations.rb +110 -0
- data/generated/google/apis/compute_v1/service.rb +341 -48
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +129 -2
- data/generated/google/apis/container_v1/representations.rb +51 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +136 -17
- data/generated/google/apis/container_v1beta1/representations.rb +39 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +17 -2
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +19 -4
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
- data/generated/google/apis/customsearch_v1/classes.rb +1421 -0
- data/generated/google/apis/customsearch_v1/representations.rb +372 -0
- data/generated/google/apis/customsearch_v1/service.rb +461 -0
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +6 -3
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +21 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
- data/generated/google/apis/datafusion_v1.rb +43 -0
- data/generated/google/apis/datafusion_v1/classes.rb +1154 -0
- data/generated/google/apis/{cloudfunctions_v1beta2 → datafusion_v1}/representations.rb +138 -93
- data/generated/google/apis/datafusion_v1/service.rb +680 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +207 -330
- data/generated/google/apis/dataproc_v1/service.rb +134 -168
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +236 -325
- data/generated/google/apis/dataproc_v1beta2/representations.rb +4 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +421 -0
- data/generated/google/apis/dfareporting_v3_4/representations.rb +182 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1341 -1513
- data/generated/google/apis/dialogflow_v2/representations.rb +31 -0
- data/generated/google/apis/dialogflow_v2/service.rb +324 -444
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1419 -1591
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +780 -1022
- data/generated/google/apis/displayvideo_v1.rb +7 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +1776 -1728
- data/generated/google/apis/displayvideo_v1/representations.rb +300 -0
- data/generated/google/apis/displayvideo_v1/service.rb +1277 -929
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +10 -6
- data/generated/google/apis/dns_v1.rb +4 -4
- data/generated/google/apis/dns_v1/classes.rb +313 -162
- data/generated/google/apis/dns_v1/service.rb +247 -180
- data/generated/google/apis/dns_v1beta2.rb +4 -4
- data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
- data/generated/google/apis/dns_v1beta2/service.rb +247 -180
- data/generated/google/apis/dns_v2beta1.rb +4 -4
- data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
- data/generated/google/apis/dns_v2beta1/service.rb +247 -180
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
- data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +4 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +196 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +4 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
- data/generated/google/apis/doubleclicksearch_v2/service.rb +3 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +77 -2
- data/generated/google/apis/drive_v2/representations.rb +23 -0
- data/generated/google/apis/drive_v2/service.rb +23 -10
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +82 -2
- data/generated/google/apis/drive_v3/representations.rb +24 -0
- data/generated/google/apis/drive_v3/service.rb +8 -5
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +245 -393
- data/generated/google/apis/fcm_v1/service.rb +5 -6
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +313 -351
- data/generated/google/apis/firebase_v1beta1/representations.rb +1 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +356 -420
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
- data/generated/google/apis/{androidpublisher_v2.rb → firebasehosting_v1.rb} +11 -12
- data/generated/google/apis/firebasehosting_v1/classes.rb +182 -0
- data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
- data/generated/google/apis/firebasehosting_v1/service.rb +180 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +148 -177
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +112 -143
- data/generated/google/apis/firebaseml_v1.rb +1 -1
- data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
- data/generated/google/apis/firebaseml_v1/service.rb +19 -22
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +67 -68
- data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
- data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1/service.rb +78 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +2 -2
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +2 -2
- data/generated/google/apis/games_v1.rb +6 -4
- data/generated/google/apis/games_v1/classes.rb +354 -2112
- data/generated/google/apis/games_v1/representations.rb +12 -647
- data/generated/google/apis/games_v1/service.rb +213 -1155
- data/generated/google/apis/{cloudfunctions_v1beta2.rb → gameservices_v1.rb} +9 -9
- data/generated/google/apis/gameservices_v1/classes.rb +2175 -0
- data/generated/google/apis/gameservices_v1/representations.rb +971 -0
- data/generated/google/apis/gameservices_v1/service.rb +1432 -0
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +344 -523
- data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +3 -75
- data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -27
- data/generated/google/apis/genomics_v2alpha1/service.rb +0 -34
- data/generated/google/apis/gmail_v1.rb +3 -3
- data/generated/google/apis/gmail_v1/classes.rb +216 -269
- data/generated/google/apis/gmail_v1/service.rb +260 -288
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +36 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +301 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +230 -0
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +72 -13
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +85 -17
- data/generated/google/apis/healthcare_v1beta1/representations.rb +39 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +146 -16
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +22 -3
- data/generated/google/apis/iam_v1/service.rb +18 -6
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +93 -111
- data/generated/google/apis/language_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +78 -90
- data/generated/google/apis/language_v1beta1/service.rb +2 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +95 -112
- data/generated/google/apis/language_v1beta2/service.rb +4 -4
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
- data/generated/google/apis/libraryagent_v1/service.rb +13 -16
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +6 -6
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +355 -437
- data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
- data/generated/google/apis/managedidentities_v1/service.rb +78 -96
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +365 -442
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -109
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +361 -441
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -93
- data/generated/google/apis/{groupsmigration_v1.rb → memcache_v1.rb} +11 -11
- data/generated/google/apis/memcache_v1/classes.rb +1157 -0
- data/generated/google/apis/memcache_v1/representations.rb +471 -0
- data/generated/google/apis/{cloudfunctions_v1beta2 → memcache_v1}/service.rb +268 -196
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +42 -503
- data/generated/google/apis/memcache_v1beta2/representations.rb +9 -110
- data/generated/google/apis/memcache_v1beta2/service.rb +0 -119
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +23 -17
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +14 -12
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +97 -47
- data/generated/google/apis/monitoring_v3/representations.rb +3 -0
- data/generated/google/apis/monitoring_v3/service.rb +13 -9
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +798 -2
- data/generated/google/apis/osconfig_v1/representations.rb +372 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +77 -2
- data/generated/google/apis/osconfig_v1beta/representations.rb +35 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +382 -401
- data/generated/google/apis/people_v1/representations.rb +57 -0
- data/generated/google/apis/people_v1/service.rb +169 -385
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
- data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +122 -146
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +38 -49
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +45 -28
- data/generated/google/apis/pubsub_v1/representations.rb +2 -0
- data/generated/google/apis/pubsub_v1/service.rb +35 -44
- data/generated/google/apis/realtimebidding_v1.rb +1 -4
- data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
- data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
- data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2017 -0
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +271 -84
- data/generated/google/apis/recommender_v1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1/service.rb +143 -35
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
- data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +397 -0
- data/generated/google/apis/redis_v1/representations.rb +139 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +397 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +139 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +4 -3
- data/generated/google/apis/reseller_v1/classes.rb +219 -160
- data/generated/google/apis/reseller_v1/service.rb +247 -252
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +835 -1248
- data/generated/google/apis/run_v1/service.rb +233 -247
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +934 -1331
- data/generated/google/apis/run_v1alpha1/service.rb +321 -377
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +209 -276
- data/generated/google/apis/run_v1beta1/service.rb +16 -18
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
- data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +122 -146
- data/generated/google/apis/sasportal_v1alpha1/service.rb +38 -49
- data/generated/google/apis/searchconsole_v1.rb +4 -3
- data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
- data/generated/google/apis/searchconsole_v1/service.rb +3 -2
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +574 -826
- data/generated/google/apis/securitycenter_v1/service.rb +250 -332
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +521 -746
- data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +176 -208
- data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +21 -25
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +545 -791
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +247 -330
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1150 -1784
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +114 -141
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1137 -1774
- data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
- data/generated/google/apis/servicecontrol_v2.rb +38 -0
- data/generated/google/apis/servicecontrol_v2/classes.rb +1121 -0
- data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
- data/generated/google/apis/servicecontrol_v2/service.rb +165 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +50 -2
- data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1119 -1758
- data/generated/google/apis/servicenetworking_v1/service.rb +94 -114
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1065 -1684
- data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1140 -1823
- data/generated/google/apis/serviceusage_v1/service.rb +63 -80
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1235 -1986
- data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +28 -28
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +3 -2
- data/generated/google/apis/spanner_v1/service.rb +5 -0
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/classes.rb +207 -200
- data/generated/google/apis/sql_v1beta4/representations.rb +2 -1
- data/generated/google/apis/sql_v1beta4/service.rb +2 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +8 -10
- data/generated/google/apis/storagetransfer_v1/service.rb +26 -2
- data/generated/google/apis/tagmanager_v1.rb +2 -3
- data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
- data/generated/google/apis/tagmanager_v1/service.rb +20 -21
- data/generated/google/apis/tagmanager_v2.rb +2 -3
- data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
- data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
- data/generated/google/apis/tagmanager_v2/service.rb +187 -283
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +80 -6
- data/generated/google/apis/testing_v1/representations.rb +33 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +671 -928
- data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +522 -640
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +68 -78
- data/generated/google/apis/tpu_v1/service.rb +21 -25
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +68 -78
- data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/service.rb +14 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/service.rb +14 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1304 -1868
- data/generated/google/apis/vision_v1/service.rb +254 -340
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1788
- data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1788
- data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
- data/generated/google/apis/webfonts_v1.rb +1 -1
- data/generated/google/apis/webfonts_v1/service.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
- data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
- data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
- data/generated/google/apis/youtube_partner_v1.rb +4 -3
- data/generated/google/apis/youtube_partner_v1/classes.rb +1106 -690
- data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
- data/generated/google/apis/youtube_partner_v1/service.rb +519 -1079
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +1456 -1134
- data/generated/google/apis/youtube_v3/representations.rb +282 -0
- data/generated/google/apis/youtube_v3/service.rb +1225 -1274
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
- data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
- data/lib/google/apis/core/base_service.rb +7 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +39 -27
- data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
- data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
- data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
- data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -841
- data/generated/google/apis/fitness_v1.rb +0 -85
- data/generated/google/apis/fitness_v1/classes.rb +0 -1020
- data/generated/google/apis/fitness_v1/representations.rb +0 -398
- data/generated/google/apis/fitness_v1/service.rb +0 -647
- data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
- data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
- data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -22,7 +22,8 @@ module Google
|
|
22
22
|
module YoutubePartnerV1
|
23
23
|
# YouTube Content ID API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# The YouTube Content ID API allows the management of YouTube assets along with
|
26
|
+
# their associated content, references, ownership, rights and policies.
|
26
27
|
#
|
27
28
|
# @example
|
28
29
|
# require 'google/apis/youtube_partner_v1'
|
@@ -30,7 +31,7 @@ module Google
|
|
30
31
|
# YoutubePartner = Google::Apis::YoutubePartnerV1 # Alias the module
|
31
32
|
# service = YoutubePartner::YouTubePartnerService.new
|
32
33
|
#
|
33
|
-
# @see https://
|
34
|
+
# @see https://devsite.googleplex.com/youtube/partner/docs/v1/
|
34
35
|
class YouTubePartnerService < Google::Apis::Core::BaseService
|
35
36
|
# @return [String]
|
36
37
|
# API key. Your API key identifies your project and provides you with API access,
|
@@ -38,32 +39,26 @@ module Google
|
|
38
39
|
attr_accessor :key
|
39
40
|
|
40
41
|
# @return [String]
|
41
|
-
#
|
42
|
-
# characters.
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
44
|
attr_accessor :quota_user
|
44
45
|
|
45
|
-
# @return [String]
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
47
|
-
attr_accessor :user_ip
|
48
|
-
|
49
46
|
def initialize
|
50
|
-
super('https://www.googleapis.com/', '
|
47
|
+
super('https://www.googleapis.com/', '')
|
51
48
|
@batch_path = 'batch/youtubePartner/v1'
|
52
49
|
end
|
53
50
|
|
54
51
|
# Insert an asset label for an owner.
|
55
52
|
# @param [Google::Apis::YoutubePartnerV1::AssetLabel] asset_label_object
|
56
53
|
# @param [String] on_behalf_of_content_owner
|
57
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
54
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
58
55
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
59
56
|
# associated with multiple content owners.
|
60
57
|
# @param [String] fields
|
61
58
|
# Selector specifying which fields to include in a partial response.
|
62
59
|
# @param [String] quota_user
|
63
|
-
#
|
64
|
-
# characters.
|
65
|
-
# @param [String] user_ip
|
66
|
-
# Deprecated. Please use quotaUser instead.
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
62
|
# @param [Google::Apis::RequestOptions] options
|
68
63
|
# Request-specific options
|
69
64
|
#
|
@@ -76,8 +71,8 @@ module Google
|
|
76
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
-
def insert_asset_label(asset_label_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
80
|
-
command = make_simple_command(:post, 'assetLabels', options)
|
74
|
+
def insert_asset_label(asset_label_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'youtube/partner/v1/assetLabels', options)
|
81
76
|
command.request_representation = Google::Apis::YoutubePartnerV1::AssetLabel::Representation
|
82
77
|
command.request_object = asset_label_object
|
83
78
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetLabel::Representation
|
@@ -85,27 +80,24 @@ module Google
|
|
85
80
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
86
81
|
command.query['fields'] = fields unless fields.nil?
|
87
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
89
83
|
execute_or_queue_command(command, &block)
|
90
84
|
end
|
91
85
|
|
92
86
|
# Retrieves a list of all asset labels for an owner.
|
93
87
|
# @param [String] label_prefix
|
94
|
-
# The labelPrefix parameter identifies the prefix of asset labels to retrieve.
|
88
|
+
# The *labelPrefix* parameter identifies the prefix of asset labels to retrieve.
|
95
89
|
# @param [String] on_behalf_of_content_owner
|
96
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
90
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
97
91
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
98
92
|
# associated with multiple content owners.
|
99
93
|
# @param [String] q
|
100
|
-
# The q parameter specifies the query string to use to filter search results.
|
101
|
-
# YouTube searches for the query string in the labelName field of asset labels.
|
94
|
+
# The *q* parameter specifies the query string to use to filter search results.
|
95
|
+
# YouTube searches for the query string in the *labelName* field of asset labels.
|
102
96
|
# @param [String] fields
|
103
97
|
# Selector specifying which fields to include in a partial response.
|
104
98
|
# @param [String] quota_user
|
105
|
-
#
|
106
|
-
# characters.
|
107
|
-
# @param [String] user_ip
|
108
|
-
# Deprecated. Please use quotaUser instead.
|
99
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
109
101
|
# @param [Google::Apis::RequestOptions] options
|
110
102
|
# Request-specific options
|
111
103
|
#
|
@@ -118,8 +110,8 @@ module Google
|
|
118
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
119
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
120
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
121
|
-
def list_asset_labels(label_prefix: nil, on_behalf_of_content_owner: nil, q: nil, fields: nil, quota_user: nil,
|
122
|
-
command = make_simple_command(:get, 'assetLabels', options)
|
113
|
+
def list_asset_labels(label_prefix: nil, on_behalf_of_content_owner: nil, q: nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assetLabels', options)
|
123
115
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetLabelListResponse::Representation
|
124
116
|
command.response_class = Google::Apis::YoutubePartnerV1::AssetLabelListResponse
|
125
117
|
command.query['labelPrefix'] = label_prefix unless label_prefix.nil?
|
@@ -127,7 +119,6 @@ module Google
|
|
127
119
|
command.query['q'] = q unless q.nil?
|
128
120
|
command.query['fields'] = fields unless fields.nil?
|
129
121
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
130
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
131
122
|
execute_or_queue_command(command, &block)
|
132
123
|
end
|
133
124
|
|
@@ -135,19 +126,17 @@ module Google
|
|
135
126
|
# owner associated with the authenticated user. This information is only
|
136
127
|
# accessible to an owner of the asset.
|
137
128
|
# @param [String] asset_id
|
138
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
129
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
139
130
|
# you are retrieving the match policy.
|
140
131
|
# @param [String] on_behalf_of_content_owner
|
141
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
132
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
142
133
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
143
134
|
# associated with multiple content owners.
|
144
135
|
# @param [String] fields
|
145
136
|
# Selector specifying which fields to include in a partial response.
|
146
137
|
# @param [String] quota_user
|
147
|
-
#
|
148
|
-
# characters.
|
149
|
-
# @param [String] user_ip
|
150
|
-
# Deprecated. Please use quotaUser instead.
|
138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
151
140
|
# @param [Google::Apis::RequestOptions] options
|
152
141
|
# Request-specific options
|
153
142
|
#
|
@@ -160,37 +149,34 @@ module Google
|
|
160
149
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
161
150
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
162
151
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
163
|
-
def get_asset_match_policy(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
164
|
-
command = make_simple_command(:get, 'assets/{assetId}/matchPolicy', options)
|
152
|
+
def get_asset_match_policy(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assets/{assetId}/matchPolicy', options)
|
165
154
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation
|
166
155
|
command.response_class = Google::Apis::YoutubePartnerV1::AssetMatchPolicy
|
167
156
|
command.params['assetId'] = asset_id unless asset_id.nil?
|
168
157
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
169
158
|
command.query['fields'] = fields unless fields.nil?
|
170
159
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
171
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
172
160
|
execute_or_queue_command(command, &block)
|
173
161
|
end
|
174
162
|
|
175
|
-
#
|
163
|
+
# Patches the asset's match policy. If an asset has multiple owners, each owner
|
176
164
|
# may set its own match policy for the asset. YouTube then computes the match
|
177
165
|
# policy that is actually applied for the asset based on the territories where
|
178
|
-
# each owner owns the asset.
|
166
|
+
# each owner owns the asset.
|
179
167
|
# @param [String] asset_id
|
180
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
168
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
181
169
|
# you are retrieving the match policy.
|
182
170
|
# @param [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] asset_match_policy_object
|
183
171
|
# @param [String] on_behalf_of_content_owner
|
184
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
172
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
185
173
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
186
174
|
# associated with multiple content owners.
|
187
175
|
# @param [String] fields
|
188
176
|
# Selector specifying which fields to include in a partial response.
|
189
177
|
# @param [String] quota_user
|
190
|
-
#
|
191
|
-
# characters.
|
192
|
-
# @param [String] user_ip
|
193
|
-
# Deprecated. Please use quotaUser instead.
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
194
180
|
# @param [Google::Apis::RequestOptions] options
|
195
181
|
# Request-specific options
|
196
182
|
#
|
@@ -203,8 +189,8 @@ module Google
|
|
203
189
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
204
190
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
205
191
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
206
|
-
def patch_asset_match_policy(asset_id, asset_match_policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
207
|
-
command = make_simple_command(:patch, 'assets/{assetId}/matchPolicy', options)
|
192
|
+
def patch_asset_match_policy(asset_id, asset_match_policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/assets/{assetId}/matchPolicy', options)
|
208
194
|
command.request_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation
|
209
195
|
command.request_object = asset_match_policy_object
|
210
196
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation
|
@@ -213,7 +199,6 @@ module Google
|
|
213
199
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
214
200
|
command.query['fields'] = fields unless fields.nil?
|
215
201
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
217
202
|
execute_or_queue_command(command, &block)
|
218
203
|
end
|
219
204
|
|
@@ -222,20 +207,18 @@ module Google
|
|
222
207
|
# policy that is actually applied for the asset based on the territories where
|
223
208
|
# each owner owns the asset.
|
224
209
|
# @param [String] asset_id
|
225
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
210
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
226
211
|
# you are retrieving the match policy.
|
227
212
|
# @param [Google::Apis::YoutubePartnerV1::AssetMatchPolicy] asset_match_policy_object
|
228
213
|
# @param [String] on_behalf_of_content_owner
|
229
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
214
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
230
215
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
231
216
|
# associated with multiple content owners.
|
232
217
|
# @param [String] fields
|
233
218
|
# Selector specifying which fields to include in a partial response.
|
234
219
|
# @param [String] quota_user
|
235
|
-
#
|
236
|
-
# characters.
|
237
|
-
# @param [String] user_ip
|
238
|
-
# Deprecated. Please use quotaUser instead.
|
220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
222
|
# @param [Google::Apis::RequestOptions] options
|
240
223
|
# Request-specific options
|
241
224
|
#
|
@@ -248,8 +231,8 @@ module Google
|
|
248
231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
233
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
-
def update_asset_match_policy(asset_id, asset_match_policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
252
|
-
command = make_simple_command(:put, 'assets/{assetId}/matchPolicy', options)
|
234
|
+
def update_asset_match_policy(asset_id, asset_match_policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
235
|
+
command = make_simple_command(:put, 'youtube/partner/v1/assets/{assetId}/matchPolicy', options)
|
253
236
|
command.request_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation
|
254
237
|
command.request_object = asset_match_policy_object
|
255
238
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetMatchPolicy::Representation
|
@@ -258,60 +241,56 @@ module Google
|
|
258
241
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
259
242
|
command.query['fields'] = fields unless fields.nil?
|
260
243
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
261
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
262
244
|
execute_or_queue_command(command, &block)
|
263
245
|
end
|
264
246
|
|
265
247
|
# Deletes a relationship between two assets.
|
266
248
|
# @param [String] asset_relationship_id
|
267
|
-
# The assetRelationshipId parameter specifies a value that uniquely identifies
|
249
|
+
# The *assetRelationshipId* parameter specifies a value that uniquely identifies
|
268
250
|
# the relationship you are deleting.
|
269
251
|
# @param [String] on_behalf_of_content_owner
|
270
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
252
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
271
253
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
272
254
|
# associated with multiple content owners.
|
273
255
|
# @param [String] fields
|
274
256
|
# Selector specifying which fields to include in a partial response.
|
275
257
|
# @param [String] quota_user
|
276
|
-
#
|
277
|
-
# characters.
|
278
|
-
# @param [String] user_ip
|
279
|
-
# Deprecated. Please use quotaUser instead.
|
258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
280
260
|
# @param [Google::Apis::RequestOptions] options
|
281
261
|
# Request-specific options
|
282
262
|
#
|
283
263
|
# @yield [result, err] Result & error if block supplied
|
284
|
-
# @yieldparam result [
|
264
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::Empty] parsed result object
|
285
265
|
# @yieldparam err [StandardError] error object if request failed
|
286
266
|
#
|
287
|
-
# @return [
|
267
|
+
# @return [Google::Apis::YoutubePartnerV1::Empty]
|
288
268
|
#
|
289
269
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
290
270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
291
271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
292
|
-
def delete_asset_relationship(asset_relationship_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
293
|
-
command = make_simple_command(:delete, 'assetRelationships/{assetRelationshipId}', options)
|
272
|
+
def delete_asset_relationship(asset_relationship_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
273
|
+
command = make_simple_command(:delete, 'youtube/partner/v1/assetRelationships/{assetRelationshipId}', options)
|
274
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::Empty::Representation
|
275
|
+
command.response_class = Google::Apis::YoutubePartnerV1::Empty
|
294
276
|
command.params['assetRelationshipId'] = asset_relationship_id unless asset_relationship_id.nil?
|
295
277
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
296
278
|
command.query['fields'] = fields unless fields.nil?
|
297
279
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
298
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
299
280
|
execute_or_queue_command(command, &block)
|
300
281
|
end
|
301
282
|
|
302
283
|
# Creates a relationship that links two assets.
|
303
284
|
# @param [Google::Apis::YoutubePartnerV1::AssetRelationship] asset_relationship_object
|
304
285
|
# @param [String] on_behalf_of_content_owner
|
305
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
286
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
306
287
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
307
288
|
# associated with multiple content owners.
|
308
289
|
# @param [String] fields
|
309
290
|
# Selector specifying which fields to include in a partial response.
|
310
291
|
# @param [String] quota_user
|
311
|
-
#
|
312
|
-
# characters.
|
313
|
-
# @param [String] user_ip
|
314
|
-
# Deprecated. Please use quotaUser instead.
|
292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
315
294
|
# @param [Google::Apis::RequestOptions] options
|
316
295
|
# Request-specific options
|
317
296
|
#
|
@@ -324,8 +303,8 @@ module Google
|
|
324
303
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
304
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
305
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
-
def insert_asset_relationship(asset_relationship_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
328
|
-
command = make_simple_command(:post, 'assetRelationships', options)
|
306
|
+
def insert_asset_relationship(asset_relationship_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
+
command = make_simple_command(:post, 'youtube/partner/v1/assetRelationships', options)
|
329
308
|
command.request_representation = Google::Apis::YoutubePartnerV1::AssetRelationship::Representation
|
330
309
|
command.request_object = asset_relationship_object
|
331
310
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetRelationship::Representation
|
@@ -333,7 +312,6 @@ module Google
|
|
333
312
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
334
313
|
command.query['fields'] = fields unless fields.nil?
|
335
314
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
337
315
|
execute_or_queue_command(command, &block)
|
338
316
|
end
|
339
317
|
|
@@ -341,23 +319,22 @@ module Google
|
|
341
319
|
# relationships where the specified asset is either the parent (embedding) or
|
342
320
|
# child (embedded) asset in the relationship.
|
343
321
|
# @param [String] asset_id
|
344
|
-
# The assetId parameter specifies the asset ID of the asset for which you are
|
322
|
+
# The *assetId* parameter specifies the asset ID of the asset for which you are
|
345
323
|
# retrieving relationships.
|
346
324
|
# @param [String] on_behalf_of_content_owner
|
347
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
325
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
348
326
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
349
327
|
# associated with multiple content owners.
|
350
328
|
# @param [String] page_token
|
351
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
352
|
-
# results to return. Set this parameter to the value of the nextPageToken
|
353
|
-
# from the previous API response to retrieve the next page of search
|
329
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
330
|
+
# of results to return. Set this parameter to the value of the nextPageToken
|
331
|
+
# value from the previous API response to retrieve the next page of search
|
332
|
+
# results.
|
354
333
|
# @param [String] fields
|
355
334
|
# Selector specifying which fields to include in a partial response.
|
356
335
|
# @param [String] quota_user
|
357
|
-
#
|
358
|
-
# characters.
|
359
|
-
# @param [String] user_ip
|
360
|
-
# Deprecated. Please use quotaUser instead.
|
336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
361
338
|
# @param [Google::Apis::RequestOptions] options
|
362
339
|
# Request-specific options
|
363
340
|
#
|
@@ -370,8 +347,8 @@ module Google
|
|
370
347
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
371
348
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
372
349
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
373
|
-
def list_asset_relationships(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil,
|
374
|
-
command = make_simple_command(:get, 'assetRelationships', options)
|
350
|
+
def list_asset_relationships(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
351
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assetRelationships', options)
|
375
352
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetRelationshipListResponse::Representation
|
376
353
|
command.response_class = Google::Apis::YoutubePartnerV1::AssetRelationshipListResponse
|
377
354
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
@@ -379,27 +356,26 @@ module Google
|
|
379
356
|
command.query['pageToken'] = page_token unless page_token.nil?
|
380
357
|
command.query['fields'] = fields unless fields.nil?
|
381
358
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
382
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
383
359
|
execute_or_queue_command(command, &block)
|
384
360
|
end
|
385
361
|
|
386
362
|
# Searches for assets based on asset metadata. The method can retrieve all
|
387
363
|
# assets or only assets owned by the content owner. This method mimics the
|
388
364
|
# functionality of the advanced search feature on the Assets page in CMS.
|
389
|
-
# @param [
|
390
|
-
# The createdAfter parameter restricts the set of returned assets to ones
|
365
|
+
# @param [String] created_after
|
366
|
+
# The *createdAfter* parameter restricts the set of returned assets to ones
|
391
367
|
# originally created on or after the specified datetime. For example: 2015-01-
|
392
368
|
# 29T23:00:00Z
|
393
|
-
# @param [
|
394
|
-
# The createdBefore parameter restricts the set of returned assets to ones
|
369
|
+
# @param [String] created_before
|
370
|
+
# The *createdBefore* parameter restricts the set of returned assets to ones
|
395
371
|
# originally created on or before the specified datetime. For example: 2015-01-
|
396
372
|
# 29T23:00:00Z
|
397
373
|
# @param [Boolean] has_conflicts
|
398
|
-
# The hasConflicts parameter enables you to only retrieve assets that have
|
374
|
+
# The *hasConflicts* parameter enables you to only retrieve assets that have
|
399
375
|
# ownership conflicts. The only valid value is true. Setting the parameter value
|
400
376
|
# to false does not affect the results.
|
401
377
|
# @param [Boolean] include_any_providedlabel
|
402
|
-
# If includeAnyProvidedlabel parameter is set to true, will search for assets
|
378
|
+
# If *includeAnyProvidedlabel* parameter is set to true, will search for assets
|
403
379
|
# that contain any of the provided labels; else will search for assets that
|
404
380
|
# contain all the provided labels.
|
405
381
|
# @param [String] isrcs
|
@@ -408,43 +384,42 @@ module Google
|
|
408
384
|
# q, includeAnyProvidedLabel, hasConflicts, labels, metadataSearchFields, sort,
|
409
385
|
# and type.
|
410
386
|
# @param [String] labels
|
411
|
-
# The labels parameter specifies the assets with certain asset labels that you
|
387
|
+
# The *labels* parameter specifies the assets with certain asset labels that you
|
412
388
|
# want to retrieve. The parameter value is a comma-separated list of asset
|
413
389
|
# labels.
|
414
390
|
# @param [String] metadata_search_fields
|
415
|
-
# The metadataSearchField parameter specifies which metadata fields to search
|
416
|
-
# It is a comma-separated list of metadata field and value pairs connected
|
417
|
-
# colon(:). For example: customId:my_custom_id,artist:Dandexx
|
391
|
+
# The *metadataSearchField* parameter specifies which metadata fields to search
|
392
|
+
# by. It is a comma-separated list of metadata field and value pairs connected
|
393
|
+
# by colon(:). For example: customId:my_custom_id,artist:Dandexx
|
418
394
|
# @param [String] on_behalf_of_content_owner
|
419
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
395
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
420
396
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
421
397
|
# associated with multiple content owners.
|
422
398
|
# @param [String] ownership_restriction
|
423
|
-
# The ownershipRestriction parameter specifies the ownership filtering option
|
399
|
+
# The *ownershipRestriction* parameter specifies the ownership filtering option
|
424
400
|
# for the search. By default the search is performed in the assets owned by
|
425
401
|
# currently authenticated user only.
|
426
402
|
# @param [String] page_token
|
427
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
428
|
-
# results to return. Set this parameter to the value of the nextPageToken
|
429
|
-
# from the previous API response to retrieve the next page of search
|
403
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
404
|
+
# of results to return. Set this parameter to the value of the nextPageToken
|
405
|
+
# value from the previous API response to retrieve the next page of search
|
406
|
+
# results.
|
430
407
|
# @param [String] q
|
431
|
-
# YouTube searches within the id
|
432
|
-
# well as in numerous other metadata fields – such as actor
|
433
|
-
# isrc
|
434
|
-
# videos, etc.).
|
408
|
+
# YouTube searches within the *id*, *type*, and *customId* fields for all assets
|
409
|
+
# as well as in numerous other metadata fields – such as *actor*, *album*, *
|
410
|
+
# director*, *isrc*, and *tmsId* – that vary for different types of assets (
|
411
|
+
# movies, music videos, etc.).
|
435
412
|
# @param [String] sort
|
436
|
-
# The sort parameter specifies how the search results should be sorted. Note
|
413
|
+
# The *sort* parameter specifies how the search results should be sorted. Note
|
437
414
|
# that results are always sorted in descending order.
|
438
415
|
# @param [String] type
|
439
|
-
# The type parameter specifies the types of assets that you want to retrieve.
|
416
|
+
# The *type* parameter specifies the types of assets that you want to retrieve.
|
440
417
|
# The parameter value is a comma-separated list of asset types.
|
441
418
|
# @param [String] fields
|
442
419
|
# Selector specifying which fields to include in a partial response.
|
443
420
|
# @param [String] quota_user
|
444
|
-
#
|
445
|
-
# characters.
|
446
|
-
# @param [String] user_ip
|
447
|
-
# Deprecated. Please use quotaUser instead.
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
448
423
|
# @param [Google::Apis::RequestOptions] options
|
449
424
|
# Request-specific options
|
450
425
|
#
|
@@ -457,8 +432,8 @@ module Google
|
|
457
432
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
458
433
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
459
434
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
460
|
-
def list_asset_searches(created_after: nil, created_before: nil, has_conflicts: nil, include_any_providedlabel: nil, isrcs: nil, labels: nil, metadata_search_fields: nil, on_behalf_of_content_owner: nil, ownership_restriction: nil, page_token: nil, q: nil, sort: nil, type: nil, fields: nil, quota_user: nil,
|
461
|
-
command = make_simple_command(:get, 'assetSearch', options)
|
435
|
+
def list_asset_searches(created_after: nil, created_before: nil, has_conflicts: nil, include_any_providedlabel: nil, isrcs: nil, labels: nil, metadata_search_fields: nil, on_behalf_of_content_owner: nil, ownership_restriction: nil, page_token: nil, q: nil, sort: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assetSearch', options)
|
462
437
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetSearchResponse::Representation
|
463
438
|
command.response_class = Google::Apis::YoutubePartnerV1::AssetSearchResponse
|
464
439
|
command.query['createdAfter'] = created_after unless created_after.nil?
|
@@ -476,35 +451,32 @@ module Google
|
|
476
451
|
command.query['type'] = type unless type.nil?
|
477
452
|
command.query['fields'] = fields unless fields.nil?
|
478
453
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
479
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
480
454
|
execute_or_queue_command(command, &block)
|
481
455
|
end
|
482
456
|
|
483
457
|
# This method either retrieves a list of asset shares the partner owns and that
|
484
|
-
# map to a specified asset view ID or it retrieves a list of asset views
|
458
|
+
# map to a specified asset view ID *or* it retrieves a list of asset views
|
485
459
|
# associated with a specified asset share ID owned by the partner.
|
486
460
|
# @param [String] asset_id
|
487
|
-
# The assetId parameter specifies the asset ID for which you are retrieving
|
488
|
-
# The parameter can be an asset view ID or an asset share ID.
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
# view ids that maps to that asset share.
|
461
|
+
# The *assetId* parameter specifies the asset ID for which you are retrieving
|
462
|
+
# data. The parameter can be an asset view ID or an asset share ID. - If the
|
463
|
+
# value is an asset view ID, the API response identifies any asset share ids
|
464
|
+
# mapped to the asset view. - If the value is an asset share ID, the API
|
465
|
+
# response identifies any asset view ids that maps to that asset share.
|
493
466
|
# @param [String] on_behalf_of_content_owner
|
494
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
467
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
495
468
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
496
469
|
# associated with multiple content owners.
|
497
470
|
# @param [String] page_token
|
498
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
499
|
-
# results to return. Set this parameter to the value of the nextPageToken
|
500
|
-
# from the previous API response to retrieve the next page of search
|
471
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
472
|
+
# of results to return. Set this parameter to the value of the nextPageToken
|
473
|
+
# value from the previous API response to retrieve the next page of search
|
474
|
+
# results.
|
501
475
|
# @param [String] fields
|
502
476
|
# Selector specifying which fields to include in a partial response.
|
503
477
|
# @param [String] quota_user
|
504
|
-
#
|
505
|
-
# characters.
|
506
|
-
# @param [String] user_ip
|
507
|
-
# Deprecated. Please use quotaUser instead.
|
478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
508
480
|
# @param [Google::Apis::RequestOptions] options
|
509
481
|
# Request-specific options
|
510
482
|
#
|
@@ -517,8 +489,8 @@ module Google
|
|
517
489
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
518
490
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
519
491
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
520
|
-
def list_asset_shares(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil,
|
521
|
-
command = make_simple_command(:get, 'assetShares', options)
|
492
|
+
def list_asset_shares(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
493
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assetShares', options)
|
522
494
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetShareListResponse::Representation
|
523
495
|
command.response_class = Google::Apis::YoutubePartnerV1::AssetShareListResponse
|
524
496
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
@@ -526,7 +498,6 @@ module Google
|
|
526
498
|
command.query['pageToken'] = page_token unless page_token.nil?
|
527
499
|
command.query['fields'] = fields unless fields.nil?
|
528
500
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
529
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
530
501
|
execute_or_queue_command(command, &block)
|
531
502
|
end
|
532
503
|
|
@@ -535,34 +506,32 @@ module Google
|
|
535
506
|
# YouTube identified the requested asset as a duplicate, then the request
|
536
507
|
# retrieves the merged, or synthesized, asset.
|
537
508
|
# @param [String] asset_id
|
538
|
-
# The assetId parameter specifies the YouTube asset ID of the asset being
|
509
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset being
|
539
510
|
# retrieved.
|
540
511
|
# @param [String] fetch_match_policy
|
541
|
-
# The fetchMatchPolicy parameter specifies the version of the asset's match
|
512
|
+
# The *fetchMatchPolicy* parameter specifies the version of the asset's match
|
542
513
|
# policy that should be returned in the API response.
|
543
514
|
# @param [String] fetch_metadata
|
544
|
-
# The fetchMetadata parameter specifies the version of the asset's metadata
|
545
|
-
# should be returned in the API response. In some cases, YouTube receives
|
515
|
+
# The *fetchMetadata* parameter specifies the version of the asset's metadata
|
516
|
+
# that should be returned in the API response. In some cases, YouTube receives
|
546
517
|
# metadata for an asset from multiple sources, such as when different partners
|
547
518
|
# own the asset in different territories.
|
548
519
|
# @param [String] fetch_ownership
|
549
|
-
# The fetchOwnership parameter specifies the version of the asset's ownership
|
520
|
+
# The *fetchOwnership* parameter specifies the version of the asset's ownership
|
550
521
|
# data that should be returned in the API response. As with asset metadata,
|
551
522
|
# YouTube can receive asset ownership data from multiple sources.
|
552
523
|
# @param [Boolean] fetch_ownership_conflicts
|
553
|
-
# The fetchOwnershipConflicts parameter allows you to retrieve information
|
554
|
-
# ownership conflicts.
|
524
|
+
# The *fetchOwnershipConflicts* parameter allows you to retrieve information
|
525
|
+
# about ownership conflicts.
|
555
526
|
# @param [String] on_behalf_of_content_owner
|
556
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
527
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
557
528
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
558
529
|
# associated with multiple content owners.
|
559
530
|
# @param [String] fields
|
560
531
|
# Selector specifying which fields to include in a partial response.
|
561
532
|
# @param [String] quota_user
|
562
|
-
#
|
563
|
-
# characters.
|
564
|
-
# @param [String] user_ip
|
565
|
-
# Deprecated. Please use quotaUser instead.
|
533
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
534
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
566
535
|
# @param [Google::Apis::RequestOptions] options
|
567
536
|
# Request-specific options
|
568
537
|
#
|
@@ -575,8 +544,8 @@ module Google
|
|
575
544
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
576
545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
577
546
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
578
|
-
def get_asset(asset_id, fetch_match_policy: nil, fetch_metadata: nil, fetch_ownership: nil, fetch_ownership_conflicts: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
579
|
-
command = make_simple_command(:get, 'assets/{assetId}', options)
|
547
|
+
def get_asset(asset_id, fetch_match_policy: nil, fetch_metadata: nil, fetch_ownership: nil, fetch_ownership_conflicts: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
548
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assets/{assetId}', options)
|
580
549
|
command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
581
550
|
command.response_class = Google::Apis::YoutubePartnerV1::Asset
|
582
551
|
command.params['assetId'] = asset_id unless asset_id.nil?
|
@@ -587,7 +556,6 @@ module Google
|
|
587
556
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
588
557
|
command.query['fields'] = fields unless fields.nil?
|
589
558
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
590
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
591
559
|
execute_or_queue_command(command, &block)
|
592
560
|
end
|
593
561
|
|
@@ -595,16 +563,14 @@ module Google
|
|
595
563
|
# can set its ownership data and match policy.
|
596
564
|
# @param [Google::Apis::YoutubePartnerV1::Asset] asset_object
|
597
565
|
# @param [String] on_behalf_of_content_owner
|
598
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
566
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
599
567
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
600
568
|
# associated with multiple content owners.
|
601
569
|
# @param [String] fields
|
602
570
|
# Selector specifying which fields to include in a partial response.
|
603
571
|
# @param [String] quota_user
|
604
|
-
#
|
605
|
-
# characters.
|
606
|
-
# @param [String] user_ip
|
607
|
-
# Deprecated. Please use quotaUser instead.
|
572
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
573
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
608
574
|
# @param [Google::Apis::RequestOptions] options
|
609
575
|
# Request-specific options
|
610
576
|
#
|
@@ -617,8 +583,8 @@ module Google
|
|
617
583
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
618
584
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
619
585
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
620
|
-
def insert_asset(asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
621
|
-
command = make_simple_command(:post, 'assets', options)
|
586
|
+
def insert_asset(asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
587
|
+
command = make_simple_command(:post, 'youtube/partner/v1/assets', options)
|
622
588
|
command.request_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
623
589
|
command.request_object = asset_object
|
624
590
|
command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
@@ -626,51 +592,48 @@ module Google
|
|
626
592
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
627
593
|
command.query['fields'] = fields unless fields.nil?
|
628
594
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
629
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
630
595
|
execute_or_queue_command(command, &block)
|
631
596
|
end
|
632
597
|
|
633
598
|
# Retrieves a list of assets based on asset metadata. The method can retrieve
|
634
|
-
# all assets or only assets owned by the content owner.
|
635
|
-
#
|
636
|
-
#
|
637
|
-
#
|
599
|
+
# all assets or only assets owned by the content owner. Note that in cases where
|
600
|
+
# duplicate assets have been merged, the API response only contains the
|
601
|
+
# synthesized asset. (It does not contain the constituent assets that were
|
602
|
+
# merged into the synthesized asset.)
|
638
603
|
# @param [String] id
|
639
|
-
# The id parameter specifies a comma-separated list of YouTube Asset IDs that
|
604
|
+
# The *id* parameter specifies a comma-separated list of YouTube Asset IDs that
|
640
605
|
# identify the assets you want to retrieve. As noted in the method description,
|
641
606
|
# if you try to retrieve an asset that YouTube identified as a duplicate and
|
642
607
|
# merged with another asset, the API response only returns the synthesized asset.
|
643
608
|
# In that case, the aliasId property in the asset resource specifies a list of
|
644
|
-
# other asset IDs that can be used to identify that asset.
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
609
|
+
# other asset IDs that can be used to identify that asset. Also note that the
|
610
|
+
# API response does not contain duplicates. As such, if your request identifies
|
611
|
+
# three asset IDs, and all of those have been merged into a single asset, then
|
612
|
+
# the API response identifies one matching asset.
|
648
613
|
# @param [String] fetch_match_policy
|
649
|
-
# The fetchMatchPolicy parameter specifies the version of the asset's match
|
614
|
+
# The *fetchMatchPolicy* parameter specifies the version of the asset's match
|
650
615
|
# policy that should be returned in the API response.
|
651
616
|
# @param [String] fetch_metadata
|
652
|
-
# The fetchMetadata parameter specifies the version of the asset's metadata
|
653
|
-
# should be returned in the API response. In some cases, YouTube receives
|
617
|
+
# The *fetchMetadata* parameter specifies the version of the asset's metadata
|
618
|
+
# that should be returned in the API response. In some cases, YouTube receives
|
654
619
|
# metadata for an asset from multiple sources, such as when different partners
|
655
620
|
# own the asset in different territories.
|
656
621
|
# @param [String] fetch_ownership
|
657
|
-
# The fetchOwnership parameter specifies the version of the asset's ownership
|
622
|
+
# The *fetchOwnership* parameter specifies the version of the asset's ownership
|
658
623
|
# data that should be returned in the API response. As with asset metadata,
|
659
624
|
# YouTube can receive asset ownership data from multiple sources.
|
660
625
|
# @param [Boolean] fetch_ownership_conflicts
|
661
|
-
# The fetchOwnershipConflicts parameter allows you to retrieve information
|
662
|
-
# ownership conflicts.
|
626
|
+
# The *fetchOwnershipConflicts* parameter allows you to retrieve information
|
627
|
+
# about ownership conflicts.
|
663
628
|
# @param [String] on_behalf_of_content_owner
|
664
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
629
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
665
630
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
666
631
|
# associated with multiple content owners.
|
667
632
|
# @param [String] fields
|
668
633
|
# Selector specifying which fields to include in a partial response.
|
669
634
|
# @param [String] quota_user
|
670
|
-
#
|
671
|
-
# characters.
|
672
|
-
# @param [String] user_ip
|
673
|
-
# Deprecated. Please use quotaUser instead.
|
635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
674
637
|
# @param [Google::Apis::RequestOptions] options
|
675
638
|
# Request-specific options
|
676
639
|
#
|
@@ -683,8 +646,8 @@ module Google
|
|
683
646
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
684
647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
685
648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
686
|
-
def list_assets(id, fetch_match_policy: nil, fetch_metadata: nil, fetch_ownership: nil, fetch_ownership_conflicts: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
687
|
-
command = make_simple_command(:get, 'assets', options)
|
649
|
+
def list_assets(id, fetch_match_policy: nil, fetch_metadata: nil, fetch_ownership: nil, fetch_ownership_conflicts: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
650
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assets', options)
|
688
651
|
command.response_representation = Google::Apis::YoutubePartnerV1::AssetListResponse::Representation
|
689
652
|
command.response_class = Google::Apis::YoutubePartnerV1::AssetListResponse
|
690
653
|
command.query['fetchMatchPolicy'] = fetch_match_policy unless fetch_match_policy.nil?
|
@@ -695,26 +658,23 @@ module Google
|
|
695
658
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
696
659
|
command.query['fields'] = fields unless fields.nil?
|
697
660
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
699
661
|
execute_or_queue_command(command, &block)
|
700
662
|
end
|
701
663
|
|
702
664
|
# Patches the metadata for the specified asset.
|
703
665
|
# @param [String] asset_id
|
704
|
-
# The assetId parameter specifies the YouTube asset ID of the asset being
|
666
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset being
|
705
667
|
# patched.
|
706
668
|
# @param [Google::Apis::YoutubePartnerV1::Asset] asset_object
|
707
669
|
# @param [String] on_behalf_of_content_owner
|
708
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
670
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
709
671
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
710
672
|
# associated with multiple content owners.
|
711
673
|
# @param [String] fields
|
712
674
|
# Selector specifying which fields to include in a partial response.
|
713
675
|
# @param [String] quota_user
|
714
|
-
#
|
715
|
-
# characters.
|
716
|
-
# @param [String] user_ip
|
717
|
-
# Deprecated. Please use quotaUser instead.
|
676
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
677
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
718
678
|
# @param [Google::Apis::RequestOptions] options
|
719
679
|
# Request-specific options
|
720
680
|
#
|
@@ -727,8 +687,8 @@ module Google
|
|
727
687
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
728
688
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
729
689
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
730
|
-
def patch_asset(asset_id, asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
731
|
-
command = make_simple_command(:patch, 'assets/{assetId}', options)
|
690
|
+
def patch_asset(asset_id, asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
691
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/assets/{assetId}', options)
|
732
692
|
command.request_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
733
693
|
command.request_object = asset_object
|
734
694
|
command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
@@ -737,26 +697,23 @@ module Google
|
|
737
697
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
738
698
|
command.query['fields'] = fields unless fields.nil?
|
739
699
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
740
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
741
700
|
execute_or_queue_command(command, &block)
|
742
701
|
end
|
743
702
|
|
744
703
|
# Updates the metadata for the specified asset.
|
745
704
|
# @param [String] asset_id
|
746
|
-
# The assetId parameter specifies the YouTube asset ID of the asset being
|
705
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset being
|
747
706
|
# updated.
|
748
707
|
# @param [Google::Apis::YoutubePartnerV1::Asset] asset_object
|
749
708
|
# @param [String] on_behalf_of_content_owner
|
750
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
709
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
751
710
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
752
711
|
# associated with multiple content owners.
|
753
712
|
# @param [String] fields
|
754
713
|
# Selector specifying which fields to include in a partial response.
|
755
714
|
# @param [String] quota_user
|
756
|
-
#
|
757
|
-
# characters.
|
758
|
-
# @param [String] user_ip
|
759
|
-
# Deprecated. Please use quotaUser instead.
|
715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
760
717
|
# @param [Google::Apis::RequestOptions] options
|
761
718
|
# Request-specific options
|
762
719
|
#
|
@@ -769,8 +726,8 @@ module Google
|
|
769
726
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
770
727
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
771
728
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
772
|
-
def update_asset(asset_id, asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
773
|
-
command = make_simple_command(:put, 'assets/{assetId}', options)
|
729
|
+
def update_asset(asset_id, asset_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
730
|
+
command = make_simple_command(:put, 'youtube/partner/v1/assets/{assetId}', options)
|
774
731
|
command.request_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
775
732
|
command.request_object = asset_object
|
776
733
|
command.response_representation = Google::Apis::YoutubePartnerV1::Asset::Representation
|
@@ -779,62 +736,58 @@ module Google
|
|
779
736
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
780
737
|
command.query['fields'] = fields unless fields.nil?
|
781
738
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
782
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
783
739
|
execute_or_queue_command(command, &block)
|
784
740
|
end
|
785
741
|
|
786
742
|
# Deletes a specified campaign for an owner.
|
787
743
|
# @param [String] campaign_id
|
788
|
-
# The campaignId parameter specifies the YouTube campaign ID of the campaign
|
744
|
+
# The *campaignId* parameter specifies the YouTube campaign ID of the campaign
|
789
745
|
# being deleted.
|
790
746
|
# @param [String] on_behalf_of_content_owner
|
791
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
747
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
792
748
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
793
749
|
# associated with multiple content owners.
|
794
750
|
# @param [String] fields
|
795
751
|
# Selector specifying which fields to include in a partial response.
|
796
752
|
# @param [String] quota_user
|
797
|
-
#
|
798
|
-
# characters.
|
799
|
-
# @param [String] user_ip
|
800
|
-
# Deprecated. Please use quotaUser instead.
|
753
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
754
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
801
755
|
# @param [Google::Apis::RequestOptions] options
|
802
756
|
# Request-specific options
|
803
757
|
#
|
804
758
|
# @yield [result, err] Result & error if block supplied
|
805
|
-
# @yieldparam result [
|
759
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::Empty] parsed result object
|
806
760
|
# @yieldparam err [StandardError] error object if request failed
|
807
761
|
#
|
808
|
-
# @return [
|
762
|
+
# @return [Google::Apis::YoutubePartnerV1::Empty]
|
809
763
|
#
|
810
764
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
811
765
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
812
766
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
813
|
-
def delete_campaign(campaign_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
814
|
-
command = make_simple_command(:delete, 'campaigns/{campaignId}', options)
|
767
|
+
def delete_campaign(campaign_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
768
|
+
command = make_simple_command(:delete, 'youtube/partner/v1/campaigns/{campaignId}', options)
|
769
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::Empty::Representation
|
770
|
+
command.response_class = Google::Apis::YoutubePartnerV1::Empty
|
815
771
|
command.params['campaignId'] = campaign_id unless campaign_id.nil?
|
816
772
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
817
773
|
command.query['fields'] = fields unless fields.nil?
|
818
774
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
819
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
820
775
|
execute_or_queue_command(command, &block)
|
821
776
|
end
|
822
777
|
|
823
778
|
# Retrieves a particular campaign for an owner.
|
824
779
|
# @param [String] campaign_id
|
825
|
-
# The campaignId parameter specifies the YouTube campaign ID of the campaign
|
780
|
+
# The *campaignId* parameter specifies the YouTube campaign ID of the campaign
|
826
781
|
# being retrieved.
|
827
782
|
# @param [String] on_behalf_of_content_owner
|
828
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
783
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
829
784
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
830
785
|
# associated with multiple content owners.
|
831
786
|
# @param [String] fields
|
832
787
|
# Selector specifying which fields to include in a partial response.
|
833
788
|
# @param [String] quota_user
|
834
|
-
#
|
835
|
-
# characters.
|
836
|
-
# @param [String] user_ip
|
837
|
-
# Deprecated. Please use quotaUser instead.
|
789
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
790
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
838
791
|
# @param [Google::Apis::RequestOptions] options
|
839
792
|
# Request-specific options
|
840
793
|
#
|
@@ -847,31 +800,28 @@ module Google
|
|
847
800
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
848
801
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
849
802
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
850
|
-
def get_campaign(campaign_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
851
|
-
command = make_simple_command(:get, 'campaigns/{campaignId}', options)
|
803
|
+
def get_campaign(campaign_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
804
|
+
command = make_simple_command(:get, 'youtube/partner/v1/campaigns/{campaignId}', options)
|
852
805
|
command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
853
806
|
command.response_class = Google::Apis::YoutubePartnerV1::Campaign
|
854
807
|
command.params['campaignId'] = campaign_id unless campaign_id.nil?
|
855
808
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
856
809
|
command.query['fields'] = fields unless fields.nil?
|
857
810
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
858
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
859
811
|
execute_or_queue_command(command, &block)
|
860
812
|
end
|
861
813
|
|
862
814
|
# Insert a new campaign for an owner using the specified campaign data.
|
863
815
|
# @param [Google::Apis::YoutubePartnerV1::Campaign] campaign_object
|
864
816
|
# @param [String] on_behalf_of_content_owner
|
865
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
817
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
866
818
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
867
819
|
# associated with multiple content owners.
|
868
820
|
# @param [String] fields
|
869
821
|
# Selector specifying which fields to include in a partial response.
|
870
822
|
# @param [String] quota_user
|
871
|
-
#
|
872
|
-
# characters.
|
873
|
-
# @param [String] user_ip
|
874
|
-
# Deprecated. Please use quotaUser instead.
|
823
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
824
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
875
825
|
# @param [Google::Apis::RequestOptions] options
|
876
826
|
# Request-specific options
|
877
827
|
#
|
@@ -884,8 +834,8 @@ module Google
|
|
884
834
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
885
835
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
886
836
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
887
|
-
def insert_campaign(campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
888
|
-
command = make_simple_command(:post, 'campaigns', options)
|
837
|
+
def insert_campaign(campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
838
|
+
command = make_simple_command(:post, 'youtube/partner/v1/campaigns', options)
|
889
839
|
command.request_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
890
840
|
command.request_object = campaign_object
|
891
841
|
command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
@@ -893,27 +843,24 @@ module Google
|
|
893
843
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
894
844
|
command.query['fields'] = fields unless fields.nil?
|
895
845
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
896
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
897
846
|
execute_or_queue_command(command, &block)
|
898
847
|
end
|
899
848
|
|
900
849
|
# Retrieves a list of campaigns for an owner.
|
901
850
|
# @param [String] on_behalf_of_content_owner
|
902
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
851
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
903
852
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
904
853
|
# associated with multiple content owners.
|
905
854
|
# @param [String] page_token
|
906
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
907
|
-
# results to return. For example, set this parameter to the value of the
|
855
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
856
|
+
# of results to return. For example, set this parameter to the value of the
|
908
857
|
# nextPageToken value from the previous API response to retrieve the next page
|
909
858
|
# of search results.
|
910
859
|
# @param [String] fields
|
911
860
|
# Selector specifying which fields to include in a partial response.
|
912
861
|
# @param [String] quota_user
|
913
|
-
#
|
914
|
-
# characters.
|
915
|
-
# @param [String] user_ip
|
916
|
-
# Deprecated. Please use quotaUser instead.
|
862
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
863
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
917
864
|
# @param [Google::Apis::RequestOptions] options
|
918
865
|
# Request-specific options
|
919
866
|
#
|
@@ -926,34 +873,31 @@ module Google
|
|
926
873
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
927
874
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
928
875
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
929
|
-
def list_campaigns(on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil,
|
930
|
-
command = make_simple_command(:get, 'campaigns', options)
|
876
|
+
def list_campaigns(on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
877
|
+
command = make_simple_command(:get, 'youtube/partner/v1/campaigns', options)
|
931
878
|
command.response_representation = Google::Apis::YoutubePartnerV1::CampaignList::Representation
|
932
879
|
command.response_class = Google::Apis::YoutubePartnerV1::CampaignList
|
933
880
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
934
881
|
command.query['pageToken'] = page_token unless page_token.nil?
|
935
882
|
command.query['fields'] = fields unless fields.nil?
|
936
883
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
937
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
938
884
|
execute_or_queue_command(command, &block)
|
939
885
|
end
|
940
886
|
|
941
|
-
#
|
887
|
+
# Patch the data for a specific campaign.
|
942
888
|
# @param [String] campaign_id
|
943
|
-
# The campaignId parameter specifies the YouTube campaign ID of the campaign
|
889
|
+
# The *campaignId* parameter specifies the YouTube campaign ID of the campaign
|
944
890
|
# being retrieved.
|
945
891
|
# @param [Google::Apis::YoutubePartnerV1::Campaign] campaign_object
|
946
892
|
# @param [String] on_behalf_of_content_owner
|
947
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
893
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
948
894
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
949
895
|
# associated with multiple content owners.
|
950
896
|
# @param [String] fields
|
951
897
|
# Selector specifying which fields to include in a partial response.
|
952
898
|
# @param [String] quota_user
|
953
|
-
#
|
954
|
-
# characters.
|
955
|
-
# @param [String] user_ip
|
956
|
-
# Deprecated. Please use quotaUser instead.
|
899
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
900
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
957
901
|
# @param [Google::Apis::RequestOptions] options
|
958
902
|
# Request-specific options
|
959
903
|
#
|
@@ -966,8 +910,8 @@ module Google
|
|
966
910
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
967
911
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
968
912
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
969
|
-
def patch_campaign(campaign_id, campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
970
|
-
command = make_simple_command(:patch, 'campaigns/{campaignId}', options)
|
913
|
+
def patch_campaign(campaign_id, campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
914
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/campaigns/{campaignId}', options)
|
971
915
|
command.request_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
972
916
|
command.request_object = campaign_object
|
973
917
|
command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
@@ -976,26 +920,23 @@ module Google
|
|
976
920
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
977
921
|
command.query['fields'] = fields unless fields.nil?
|
978
922
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
979
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
980
923
|
execute_or_queue_command(command, &block)
|
981
924
|
end
|
982
925
|
|
983
926
|
# Update the data for a specific campaign.
|
984
927
|
# @param [String] campaign_id
|
985
|
-
# The campaignId parameter specifies the YouTube campaign ID of the campaign
|
928
|
+
# The *campaignId* parameter specifies the YouTube campaign ID of the campaign
|
986
929
|
# being retrieved.
|
987
930
|
# @param [Google::Apis::YoutubePartnerV1::Campaign] campaign_object
|
988
931
|
# @param [String] on_behalf_of_content_owner
|
989
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
932
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
990
933
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
991
934
|
# associated with multiple content owners.
|
992
935
|
# @param [String] fields
|
993
936
|
# Selector specifying which fields to include in a partial response.
|
994
937
|
# @param [String] quota_user
|
995
|
-
#
|
996
|
-
# characters.
|
997
|
-
# @param [String] user_ip
|
998
|
-
# Deprecated. Please use quotaUser instead.
|
938
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
939
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
999
940
|
# @param [Google::Apis::RequestOptions] options
|
1000
941
|
# Request-specific options
|
1001
942
|
#
|
@@ -1008,8 +949,8 @@ module Google
|
|
1008
949
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1009
950
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1010
951
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1011
|
-
def update_campaign(campaign_id, campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1012
|
-
command = make_simple_command(:put, 'campaigns/{campaignId}', options)
|
952
|
+
def update_campaign(campaign_id, campaign_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
953
|
+
command = make_simple_command(:put, 'youtube/partner/v1/campaigns/{campaignId}', options)
|
1013
954
|
command.request_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
1014
955
|
command.request_object = campaign_object
|
1015
956
|
command.response_representation = Google::Apis::YoutubePartnerV1::Campaign::Representation
|
@@ -1018,25 +959,22 @@ module Google
|
|
1018
959
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1019
960
|
command.query['fields'] = fields unless fields.nil?
|
1020
961
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1021
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1022
962
|
execute_or_queue_command(command, &block)
|
1023
963
|
end
|
1024
964
|
|
1025
965
|
# Retrieves the claim history for a specified claim.
|
1026
966
|
# @param [String] claim_id
|
1027
|
-
# The claimId parameter specifies the YouTube claim ID of the claim for which
|
967
|
+
# The *claimId* parameter specifies the YouTube claim ID of the claim for which
|
1028
968
|
# you are retrieving the claim history.
|
1029
969
|
# @param [String] on_behalf_of_content_owner
|
1030
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
970
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1031
971
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1032
972
|
# associated with multiple content owners.
|
1033
973
|
# @param [String] fields
|
1034
974
|
# Selector specifying which fields to include in a partial response.
|
1035
975
|
# @param [String] quota_user
|
1036
|
-
#
|
1037
|
-
# characters.
|
1038
|
-
# @param [String] user_ip
|
1039
|
-
# Deprecated. Please use quotaUser instead.
|
976
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
977
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1040
978
|
# @param [Google::Apis::RequestOptions] options
|
1041
979
|
# Request-specific options
|
1042
980
|
#
|
@@ -1049,15 +987,14 @@ module Google
|
|
1049
987
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1050
988
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1051
989
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1052
|
-
def get_claim_history(claim_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1053
|
-
command = make_simple_command(:get, 'claimHistory/{claimId}', options)
|
990
|
+
def get_claim_history(claim_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
991
|
+
command = make_simple_command(:get, 'youtube/partner/v1/claimHistory/{claimId}', options)
|
1054
992
|
command.response_representation = Google::Apis::YoutubePartnerV1::ClaimHistory::Representation
|
1055
993
|
command.response_class = Google::Apis::YoutubePartnerV1::ClaimHistory
|
1056
994
|
command.params['claimId'] = claim_id unless claim_id.nil?
|
1057
995
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1058
996
|
command.query['fields'] = fields unless fields.nil?
|
1059
997
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1060
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1061
998
|
execute_or_queue_command(command, &block)
|
1062
999
|
end
|
1063
1000
|
|
@@ -1065,75 +1002,73 @@ module Google
|
|
1065
1002
|
# claims that are associated with a specific asset or video or that match a
|
1066
1003
|
# specified query string.
|
1067
1004
|
# @param [String] asset_id
|
1068
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
1005
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
1069
1006
|
# you are retrieving claims.
|
1070
1007
|
# @param [String] content_type
|
1071
|
-
# The contentType parameter specifies the content type of claims that you want
|
1008
|
+
# The *contentType* parameter specifies the content type of claims that you want
|
1072
1009
|
# to retrieve.
|
1073
|
-
# @param [
|
1074
|
-
# The createdAfter parameter allows you to restrict the set of returned claims
|
1010
|
+
# @param [String] created_after
|
1011
|
+
# The *createdAfter* parameter allows you to restrict the set of returned claims
|
1075
1012
|
# to ones created on or after the specified date (inclusive).
|
1076
|
-
# @param [
|
1077
|
-
# The createdBefore parameter allows you to restrict the set of returned
|
1078
|
-
# to ones created before the specified date (exclusive).
|
1013
|
+
# @param [String] created_before
|
1014
|
+
# The *createdBefore* parameter allows you to restrict the set of returned
|
1015
|
+
# claims to ones created before the specified date (exclusive).
|
1079
1016
|
# @param [String] inactive_reasons
|
1080
|
-
# The inactiveReasons parameter allows you to specify what kind of inactive
|
1017
|
+
# The *inactiveReasons* parameter allows you to specify what kind of inactive
|
1081
1018
|
# claims you want to find based on the reasons why the claims became inactive.
|
1082
1019
|
# @param [Boolean] include_third_party_claims
|
1083
|
-
# Used along with the videoId parameter this parameter determines whether or
|
1084
|
-
# to include third party claims in the search results.
|
1020
|
+
# Used along with the *videoId* parameter this parameter determines whether or
|
1021
|
+
# not to include third party claims in the search results.
|
1085
1022
|
# @param [String] on_behalf_of_content_owner
|
1086
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1023
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1087
1024
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1088
1025
|
# associated with multiple content owners.
|
1089
1026
|
# @param [String] origin
|
1090
|
-
# The origin parameter specifies the origins you want to find claims for. It
|
1091
|
-
# a comma-separated list of origin values.
|
1027
|
+
# The *origin* parameter specifies the origins you want to find claims for. It
|
1028
|
+
# is a comma-separated list of origin values.
|
1092
1029
|
# @param [String] page_token
|
1093
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
1094
|
-
# results to return. For example, set this parameter to the value of the
|
1030
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
1031
|
+
# of results to return. For example, set this parameter to the value of the
|
1095
1032
|
# nextPageToken value from the previous API response to retrieve the next page
|
1096
1033
|
# of search results.
|
1097
1034
|
# @param [Boolean] partner_uploaded
|
1098
|
-
# The partnerUploaded parameter specifies whether you want to filter your
|
1099
|
-
# results to only partner uploaded or non partner uploaded claims.
|
1035
|
+
# The *partnerUploaded* parameter specifies whether you want to filter your
|
1036
|
+
# search results to only partner uploaded or non partner uploaded claims.
|
1100
1037
|
# @param [String] q
|
1101
|
-
# The q parameter specifies the query string to use to filter search results.
|
1102
|
-
# YouTube searches for the query string in the following claim fields:
|
1103
|
-
# video_title
|
1104
|
-
# the content owner's email address.
|
1038
|
+
# The *q* parameter specifies the query string to use to filter search results.
|
1039
|
+
# YouTube searches for the query string in the following claim fields: *
|
1040
|
+
# video_title*, *video_keywords*, *user_name*, *isrc*, *iswc*, *grid*, *
|
1041
|
+
# custom_id*, and in the content owner's email address.
|
1105
1042
|
# @param [String] reference_id
|
1106
|
-
# The referenceId parameter specifies the YouTube reference ID of the
|
1107
|
-
# for which you are retrieving claims.
|
1043
|
+
# The *referenceId* parameter specifies the YouTube reference ID of the
|
1044
|
+
# reference for which you are retrieving claims.
|
1108
1045
|
# @param [String] sort
|
1109
|
-
# The sort parameter specifies the method that will be used to order resources
|
1046
|
+
# The *sort* parameter specifies the method that will be used to order resources
|
1110
1047
|
# in the API response. The default value is date. However, if the status
|
1111
1048
|
# parameter value is either appealed, disputed, pending, potential, or
|
1112
1049
|
# routedForReview, then results will be sorted by the time that the claim review
|
1113
1050
|
# period expires.
|
1114
1051
|
# @param [String] status
|
1115
|
-
# The status parameter restricts your results to only claims in the specified
|
1052
|
+
# The *status* parameter restricts your results to only claims in the specified
|
1116
1053
|
# status.
|
1117
|
-
# @param [
|
1118
|
-
# The statusModifiedAfter parameter allows you to restrict the result set to
|
1054
|
+
# @param [String] status_modified_after
|
1055
|
+
# The *statusModifiedAfter* parameter allows you to restrict the result set to
|
1119
1056
|
# only include claims that have had their status modified on or after the
|
1120
1057
|
# specified date (inclusive). The date specified must be on or after June 30,
|
1121
1058
|
# 2016 (2016-06-30). The parameter value's format is YYYY-MM-DD.
|
1122
|
-
# @param [
|
1123
|
-
# The statusModifiedBefore parameter allows you to restrict the result set to
|
1059
|
+
# @param [String] status_modified_before
|
1060
|
+
# The *statusModifiedBefore* parameter allows you to restrict the result set to
|
1124
1061
|
# only include claims that have had their status modified before the specified
|
1125
1062
|
# date (exclusive). The date specified must be on or after July 1, 2016 (2016-07-
|
1126
1063
|
# 01). The parameter value's format is YYYY-MM-DD.
|
1127
1064
|
# @param [String] video_id
|
1128
|
-
# The videoId parameter specifies comma-separated list of YouTube video IDs
|
1129
|
-
# which you are retrieving claims.
|
1065
|
+
# The *videoId* parameter specifies comma-separated list of YouTube video IDs
|
1066
|
+
# for which you are retrieving claims.
|
1130
1067
|
# @param [String] fields
|
1131
1068
|
# Selector specifying which fields to include in a partial response.
|
1132
1069
|
# @param [String] quota_user
|
1133
|
-
#
|
1134
|
-
# characters.
|
1135
|
-
# @param [String] user_ip
|
1136
|
-
# Deprecated. Please use quotaUser instead.
|
1070
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1071
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1137
1072
|
# @param [Google::Apis::RequestOptions] options
|
1138
1073
|
# Request-specific options
|
1139
1074
|
#
|
@@ -1146,8 +1081,8 @@ module Google
|
|
1146
1081
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1147
1082
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1148
1083
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1149
|
-
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,
|
1150
|
-
command = make_simple_command(:get, 'claimSearch', options)
|
1084
|
+
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, options: nil, &block)
|
1085
|
+
command = make_simple_command(:get, 'youtube/partner/v1/claimSearch', options)
|
1151
1086
|
command.response_representation = Google::Apis::YoutubePartnerV1::ClaimSearchResponse::Representation
|
1152
1087
|
command.response_class = Google::Apis::YoutubePartnerV1::ClaimSearchResponse
|
1153
1088
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
@@ -1169,24 +1104,21 @@ module Google
|
|
1169
1104
|
command.query['videoId'] = video_id unless video_id.nil?
|
1170
1105
|
command.query['fields'] = fields unless fields.nil?
|
1171
1106
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1172
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1173
1107
|
execute_or_queue_command(command, &block)
|
1174
1108
|
end
|
1175
1109
|
|
1176
1110
|
# Retrieves a specific claim by ID.
|
1177
1111
|
# @param [String] claim_id
|
1178
|
-
# The claimId parameter specifies the claim ID of the claim being retrieved.
|
1112
|
+
# The *claimId* parameter specifies the claim ID of the claim being retrieved.
|
1179
1113
|
# @param [String] on_behalf_of_content_owner
|
1180
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1114
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1181
1115
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1182
1116
|
# associated with multiple content owners.
|
1183
1117
|
# @param [String] fields
|
1184
1118
|
# Selector specifying which fields to include in a partial response.
|
1185
1119
|
# @param [String] quota_user
|
1186
|
-
#
|
1187
|
-
# characters.
|
1188
|
-
# @param [String] user_ip
|
1189
|
-
# Deprecated. Please use quotaUser instead.
|
1120
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1121
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1190
1122
|
# @param [Google::Apis::RequestOptions] options
|
1191
1123
|
# Request-specific options
|
1192
1124
|
#
|
@@ -1199,38 +1131,34 @@ module Google
|
|
1199
1131
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1200
1132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1201
1133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1202
|
-
def get_claim(claim_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1203
|
-
command = make_simple_command(:get, 'claims/{claimId}', options)
|
1134
|
+
def get_claim(claim_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1135
|
+
command = make_simple_command(:get, 'youtube/partner/v1/claims/{claimId}', options)
|
1204
1136
|
command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
1205
1137
|
command.response_class = Google::Apis::YoutubePartnerV1::Claim
|
1206
1138
|
command.params['claimId'] = claim_id unless claim_id.nil?
|
1207
1139
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1208
1140
|
command.query['fields'] = fields unless fields.nil?
|
1209
1141
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1210
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1211
1142
|
execute_or_queue_command(command, &block)
|
1212
1143
|
end
|
1213
1144
|
|
1214
1145
|
# Creates a claim. The video being claimed must have been uploaded to a channel
|
1215
1146
|
# associated with the same content owner as the API user sending the request.
|
1216
|
-
# You can set the claim's policy in any of the following ways:
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
# - Use the claim resource's policy property to specify a custom set of rules.
|
1147
|
+
# You can set the claim's policy in any of the following ways: - Use the claim
|
1148
|
+
# resource's policy property to identify a saved policy by its unique ID. - Use
|
1149
|
+
# the claim resource's policy property to specify a custom set of rules.
|
1220
1150
|
# @param [Google::Apis::YoutubePartnerV1::Claim] claim_object
|
1221
1151
|
# @param [Boolean] is_manual_claim
|
1222
1152
|
# restricted
|
1223
1153
|
# @param [String] on_behalf_of_content_owner
|
1224
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1154
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1225
1155
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1226
1156
|
# associated with multiple content owners.
|
1227
1157
|
# @param [String] fields
|
1228
1158
|
# Selector specifying which fields to include in a partial response.
|
1229
1159
|
# @param [String] quota_user
|
1230
|
-
#
|
1231
|
-
# characters.
|
1232
|
-
# @param [String] user_ip
|
1233
|
-
# Deprecated. Please use quotaUser instead.
|
1160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1234
1162
|
# @param [Google::Apis::RequestOptions] options
|
1235
1163
|
# Request-specific options
|
1236
1164
|
#
|
@@ -1243,8 +1171,8 @@ module Google
|
|
1243
1171
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1244
1172
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1245
1173
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1246
|
-
def insert_claim(claim_object = nil, is_manual_claim: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1247
|
-
command = make_simple_command(:post, 'claims', options)
|
1174
|
+
def insert_claim(claim_object = nil, is_manual_claim: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1175
|
+
command = make_simple_command(:post, 'youtube/partner/v1/claims', options)
|
1248
1176
|
command.request_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
1249
1177
|
command.request_object = claim_object
|
1250
1178
|
command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
@@ -1253,7 +1181,6 @@ module Google
|
|
1253
1181
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1254
1182
|
command.query['fields'] = fields unless fields.nil?
|
1255
1183
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1256
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1257
1184
|
execute_or_queue_command(command, &block)
|
1258
1185
|
end
|
1259
1186
|
|
@@ -1263,37 +1190,35 @@ module Google
|
|
1263
1190
|
# @param [String] asset_id
|
1264
1191
|
# Use the claimSearch.list method's assetId parameter to search for claim
|
1265
1192
|
# snippets by asset ID. You can then retrieve the claim resources for those
|
1266
|
-
# claims by using this method's id parameter to specify a comma-separated list
|
1193
|
+
# claims by using this method's *id* parameter to specify a comma-separated list
|
1267
1194
|
# of claim IDs.
|
1268
1195
|
# @param [String] id
|
1269
|
-
# The id parameter specifies a list of comma-separated YouTube claim IDs to
|
1196
|
+
# The *id* parameter specifies a list of comma-separated YouTube claim IDs to
|
1270
1197
|
# retrieve.
|
1271
1198
|
# @param [String] on_behalf_of_content_owner
|
1272
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1199
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1273
1200
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1274
1201
|
# associated with multiple content owners.
|
1275
1202
|
# @param [String] page_token
|
1276
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
1277
|
-
# results to return. For example, set this parameter to the value of the
|
1203
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
1204
|
+
# of results to return. For example, set this parameter to the value of the
|
1278
1205
|
# nextPageToken value from the previous API response to retrieve the next page
|
1279
1206
|
# of search results.
|
1280
1207
|
# @param [String] q
|
1281
1208
|
# Use the claimSearch.list method's q parameter to search for claim snippets
|
1282
1209
|
# that match a particular query string. You can then retrieve the claim
|
1283
|
-
# resources for those claims by using this method's id parameter to specify a
|
1210
|
+
# resources for those claims by using this method's *id* parameter to specify a
|
1284
1211
|
# comma-separated list of claim IDs.
|
1285
1212
|
# @param [String] video_id
|
1286
1213
|
# Use the claimSearch.list method's videoId parameter to search for claim
|
1287
1214
|
# snippets by video ID. You can then retrieve the claim resources for those
|
1288
|
-
# claims by using this method's id parameter to specify a comma-separated list
|
1215
|
+
# claims by using this method's *id* parameter to specify a comma-separated list
|
1289
1216
|
# of claim IDs.
|
1290
1217
|
# @param [String] fields
|
1291
1218
|
# Selector specifying which fields to include in a partial response.
|
1292
1219
|
# @param [String] quota_user
|
1293
|
-
#
|
1294
|
-
# characters.
|
1295
|
-
# @param [String] user_ip
|
1296
|
-
# Deprecated. Please use quotaUser instead.
|
1220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1297
1222
|
# @param [Google::Apis::RequestOptions] options
|
1298
1223
|
# Request-specific options
|
1299
1224
|
#
|
@@ -1306,8 +1231,8 @@ module Google
|
|
1306
1231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1307
1232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1308
1233
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1309
|
-
def list_claims(asset_id: nil, id: nil, on_behalf_of_content_owner: nil, page_token: nil, q: nil, video_id: nil, fields: nil, quota_user: nil,
|
1310
|
-
command = make_simple_command(:get, 'claims', options)
|
1234
|
+
def list_claims(asset_id: nil, id: nil, on_behalf_of_content_owner: nil, page_token: nil, q: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1235
|
+
command = make_simple_command(:get, 'youtube/partner/v1/claims', options)
|
1311
1236
|
command.response_representation = Google::Apis::YoutubePartnerV1::ClaimListResponse::Representation
|
1312
1237
|
command.response_class = Google::Apis::YoutubePartnerV1::ClaimListResponse
|
1313
1238
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
@@ -1318,7 +1243,6 @@ module Google
|
|
1318
1243
|
command.query['videoId'] = video_id unless video_id.nil?
|
1319
1244
|
command.query['fields'] = fields unless fields.nil?
|
1320
1245
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1321
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1322
1246
|
execute_or_queue_command(command, &block)
|
1323
1247
|
end
|
1324
1248
|
|
@@ -1326,19 +1250,17 @@ module Google
|
|
1326
1250
|
# update a claim's status from active to inactive to effectively release the
|
1327
1251
|
# claim.
|
1328
1252
|
# @param [String] claim_id
|
1329
|
-
# The claimId parameter specifies the claim ID of the claim being updated.
|
1253
|
+
# The *claimId* parameter specifies the claim ID of the claim being updated.
|
1330
1254
|
# @param [Google::Apis::YoutubePartnerV1::Claim] claim_object
|
1331
1255
|
# @param [String] on_behalf_of_content_owner
|
1332
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1256
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1333
1257
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1334
1258
|
# associated with multiple content owners.
|
1335
1259
|
# @param [String] fields
|
1336
1260
|
# Selector specifying which fields to include in a partial response.
|
1337
1261
|
# @param [String] quota_user
|
1338
|
-
#
|
1339
|
-
# characters.
|
1340
|
-
# @param [String] user_ip
|
1341
|
-
# Deprecated. Please use quotaUser instead.
|
1262
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1263
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1342
1264
|
# @param [Google::Apis::RequestOptions] options
|
1343
1265
|
# Request-specific options
|
1344
1266
|
#
|
@@ -1351,8 +1273,8 @@ module Google
|
|
1351
1273
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1352
1274
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1353
1275
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1354
|
-
def patch_claim(claim_id, claim_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1355
|
-
command = make_simple_command(:patch, 'claims/{claimId}', options)
|
1276
|
+
def patch_claim(claim_id, claim_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1277
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/claims/{claimId}', options)
|
1356
1278
|
command.request_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
1357
1279
|
command.request_object = claim_object
|
1358
1280
|
command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
@@ -1361,7 +1283,6 @@ module Google
|
|
1361
1283
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1362
1284
|
command.query['fields'] = fields unless fields.nil?
|
1363
1285
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1364
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1365
1286
|
execute_or_queue_command(command, &block)
|
1366
1287
|
end
|
1367
1288
|
|
@@ -1369,19 +1290,17 @@ module Google
|
|
1369
1290
|
# update a claim's status from active to inactive to effectively release the
|
1370
1291
|
# claim.
|
1371
1292
|
# @param [String] claim_id
|
1372
|
-
# The claimId parameter specifies the claim ID of the claim being updated.
|
1293
|
+
# The *claimId* parameter specifies the claim ID of the claim being updated.
|
1373
1294
|
# @param [Google::Apis::YoutubePartnerV1::Claim] claim_object
|
1374
1295
|
# @param [String] on_behalf_of_content_owner
|
1375
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1296
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1376
1297
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1377
1298
|
# associated with multiple content owners.
|
1378
1299
|
# @param [String] fields
|
1379
1300
|
# Selector specifying which fields to include in a partial response.
|
1380
1301
|
# @param [String] quota_user
|
1381
|
-
#
|
1382
|
-
# characters.
|
1383
|
-
# @param [String] user_ip
|
1384
|
-
# Deprecated. Please use quotaUser instead.
|
1302
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1303
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1385
1304
|
# @param [Google::Apis::RequestOptions] options
|
1386
1305
|
# Request-specific options
|
1387
1306
|
#
|
@@ -1394,8 +1313,8 @@ module Google
|
|
1394
1313
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1395
1314
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1396
1315
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1397
|
-
def update_claim(claim_id, claim_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1398
|
-
command = make_simple_command(:put, 'claims/{claimId}', options)
|
1316
|
+
def update_claim(claim_id, claim_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1317
|
+
command = make_simple_command(:put, 'youtube/partner/v1/claims/{claimId}', options)
|
1399
1318
|
command.request_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
1400
1319
|
command.request_object = claim_object
|
1401
1320
|
command.response_representation = Google::Apis::YoutubePartnerV1::Claim::Representation
|
@@ -1404,139 +1323,22 @@ module Google
|
|
1404
1323
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1405
1324
|
command.query['fields'] = fields unless fields.nil?
|
1406
1325
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1407
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1408
|
-
execute_or_queue_command(command, &block)
|
1409
|
-
end
|
1410
|
-
|
1411
|
-
# Retrieves advertising options for the content owner associated with the
|
1412
|
-
# authenticated user.
|
1413
|
-
# @param [String] on_behalf_of_content_owner
|
1414
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1415
|
-
# user is acting on behalf of. This parameter supports users whose accounts are
|
1416
|
-
# associated with multiple content owners.
|
1417
|
-
# @param [String] fields
|
1418
|
-
# Selector specifying which fields to include in a partial response.
|
1419
|
-
# @param [String] quota_user
|
1420
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1421
|
-
# characters.
|
1422
|
-
# @param [String] user_ip
|
1423
|
-
# Deprecated. Please use quotaUser instead.
|
1424
|
-
# @param [Google::Apis::RequestOptions] options
|
1425
|
-
# Request-specific options
|
1426
|
-
#
|
1427
|
-
# @yield [result, err] Result & error if block supplied
|
1428
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption] parsed result object
|
1429
|
-
# @yieldparam err [StandardError] error object if request failed
|
1430
|
-
#
|
1431
|
-
# @return [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption]
|
1432
|
-
#
|
1433
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1434
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1435
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1436
|
-
def get_content_owner_advertising_option(on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1437
|
-
command = make_simple_command(:get, 'contentOwnerAdvertisingOptions', options)
|
1438
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption::Representation
|
1439
|
-
command.response_class = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption
|
1440
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1441
|
-
command.query['fields'] = fields unless fields.nil?
|
1442
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1443
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1444
|
-
execute_or_queue_command(command, &block)
|
1445
|
-
end
|
1446
|
-
|
1447
|
-
# Updates advertising options for the content owner associated with the
|
1448
|
-
# authenticated API user. This method supports patch semantics.
|
1449
|
-
# @param [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption] content_owner_advertising_option_object
|
1450
|
-
# @param [String] on_behalf_of_content_owner
|
1451
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1452
|
-
# user is acting on behalf of. This parameter supports users whose accounts are
|
1453
|
-
# associated with multiple content owners.
|
1454
|
-
# @param [String] fields
|
1455
|
-
# Selector specifying which fields to include in a partial response.
|
1456
|
-
# @param [String] quota_user
|
1457
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1458
|
-
# characters.
|
1459
|
-
# @param [String] user_ip
|
1460
|
-
# Deprecated. Please use quotaUser instead.
|
1461
|
-
# @param [Google::Apis::RequestOptions] options
|
1462
|
-
# Request-specific options
|
1463
|
-
#
|
1464
|
-
# @yield [result, err] Result & error if block supplied
|
1465
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption] parsed result object
|
1466
|
-
# @yieldparam err [StandardError] error object if request failed
|
1467
|
-
#
|
1468
|
-
# @return [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption]
|
1469
|
-
#
|
1470
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1471
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1472
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1473
|
-
def patch_content_owner_advertising_option(content_owner_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1474
|
-
command = make_simple_command(:patch, 'contentOwnerAdvertisingOptions', options)
|
1475
|
-
command.request_representation = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption::Representation
|
1476
|
-
command.request_object = content_owner_advertising_option_object
|
1477
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption::Representation
|
1478
|
-
command.response_class = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption
|
1479
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1480
|
-
command.query['fields'] = fields unless fields.nil?
|
1481
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1482
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1483
|
-
execute_or_queue_command(command, &block)
|
1484
|
-
end
|
1485
|
-
|
1486
|
-
# Updates advertising options for the content owner associated with the
|
1487
|
-
# authenticated API user.
|
1488
|
-
# @param [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption] content_owner_advertising_option_object
|
1489
|
-
# @param [String] on_behalf_of_content_owner
|
1490
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1491
|
-
# user is acting on behalf of. This parameter supports users whose accounts are
|
1492
|
-
# associated with multiple content owners.
|
1493
|
-
# @param [String] fields
|
1494
|
-
# Selector specifying which fields to include in a partial response.
|
1495
|
-
# @param [String] quota_user
|
1496
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1497
|
-
# characters.
|
1498
|
-
# @param [String] user_ip
|
1499
|
-
# Deprecated. Please use quotaUser instead.
|
1500
|
-
# @param [Google::Apis::RequestOptions] options
|
1501
|
-
# Request-specific options
|
1502
|
-
#
|
1503
|
-
# @yield [result, err] Result & error if block supplied
|
1504
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption] parsed result object
|
1505
|
-
# @yieldparam err [StandardError] error object if request failed
|
1506
|
-
#
|
1507
|
-
# @return [Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption]
|
1508
|
-
#
|
1509
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1510
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1511
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1512
|
-
def update_content_owner_advertising_option(content_owner_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1513
|
-
command = make_simple_command(:put, 'contentOwnerAdvertisingOptions', options)
|
1514
|
-
command.request_representation = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption::Representation
|
1515
|
-
command.request_object = content_owner_advertising_option_object
|
1516
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption::Representation
|
1517
|
-
command.response_class = Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption
|
1518
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1519
|
-
command.query['fields'] = fields unless fields.nil?
|
1520
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1521
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1522
1326
|
execute_or_queue_command(command, &block)
|
1523
1327
|
end
|
1524
1328
|
|
1525
1329
|
# Retrieves information about the specified content owner.
|
1526
1330
|
# @param [String] content_owner_id
|
1527
|
-
# The contentOwnerId parameter specifies a value that uniquely identifies the
|
1331
|
+
# The *contentOwnerId* parameter specifies a value that uniquely identifies the
|
1528
1332
|
# content owner.
|
1529
1333
|
# @param [String] on_behalf_of_content_owner
|
1530
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1334
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1531
1335
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1532
1336
|
# associated with multiple content owners.
|
1533
1337
|
# @param [String] fields
|
1534
1338
|
# Selector specifying which fields to include in a partial response.
|
1535
1339
|
# @param [String] quota_user
|
1536
|
-
#
|
1537
|
-
# characters.
|
1538
|
-
# @param [String] user_ip
|
1539
|
-
# Deprecated. Please use quotaUser instead.
|
1340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1540
1342
|
# @param [Google::Apis::RequestOptions] options
|
1541
1343
|
# Request-specific options
|
1542
1344
|
#
|
@@ -1549,36 +1351,33 @@ module Google
|
|
1549
1351
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1550
1352
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1551
1353
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1552
|
-
def get_content_owner(content_owner_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1553
|
-
command = make_simple_command(:get, 'contentOwners/{contentOwnerId}', options)
|
1354
|
+
def get_content_owner(content_owner_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1355
|
+
command = make_simple_command(:get, 'youtube/partner/v1/contentOwners/{contentOwnerId}', options)
|
1554
1356
|
command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwner::Representation
|
1555
1357
|
command.response_class = Google::Apis::YoutubePartnerV1::ContentOwner
|
1556
1358
|
command.params['contentOwnerId'] = content_owner_id unless content_owner_id.nil?
|
1557
1359
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1558
1360
|
command.query['fields'] = fields unless fields.nil?
|
1559
1361
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1560
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1561
1362
|
execute_or_queue_command(command, &block)
|
1562
1363
|
end
|
1563
1364
|
|
1564
1365
|
# Retrieves a list of content owners that match the request criteria.
|
1565
1366
|
# @param [Boolean] fetch_mine
|
1566
|
-
# The fetchMine parameter restricts the result set to content owners
|
1567
|
-
# with the currently authenticated API user.
|
1367
|
+
# The *fetchMine* parameter restricts the result set to content owners
|
1368
|
+
# associated with the currently authenticated API user.
|
1568
1369
|
# @param [String] id
|
1569
|
-
# The id parameter specifies a comma-separated list of YouTube content owner
|
1570
|
-
# to retrieve.
|
1370
|
+
# The *id* parameter specifies a comma-separated list of YouTube content owner
|
1371
|
+
# IDs to retrieve.
|
1571
1372
|
# @param [String] on_behalf_of_content_owner
|
1572
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1373
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1573
1374
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1574
1375
|
# associated with multiple content owners.
|
1575
1376
|
# @param [String] fields
|
1576
1377
|
# Selector specifying which fields to include in a partial response.
|
1577
1378
|
# @param [String] quota_user
|
1578
|
-
#
|
1579
|
-
# characters.
|
1580
|
-
# @param [String] user_ip
|
1581
|
-
# Deprecated. Please use quotaUser instead.
|
1379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1582
1381
|
# @param [Google::Apis::RequestOptions] options
|
1583
1382
|
# Request-specific options
|
1584
1383
|
#
|
@@ -1591,8 +1390,8 @@ module Google
|
|
1591
1390
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1592
1391
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1593
1392
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1594
|
-
def list_content_owners(fetch_mine: nil, id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1595
|
-
command = make_simple_command(:get, 'contentOwners', options)
|
1393
|
+
def list_content_owners(fetch_mine: nil, id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1394
|
+
command = make_simple_command(:get, 'youtube/partner/v1/contentOwners', options)
|
1596
1395
|
command.response_representation = Google::Apis::YoutubePartnerV1::ContentOwnerListResponse::Representation
|
1597
1396
|
command.response_class = Google::Apis::YoutubePartnerV1::ContentOwnerListResponse
|
1598
1397
|
command.query['fetchMine'] = fetch_mine unless fetch_mine.nil?
|
@@ -1600,17 +1399,16 @@ module Google
|
|
1600
1399
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1601
1400
|
command.query['fields'] = fields unless fields.nil?
|
1602
1401
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1603
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1604
1402
|
execute_or_queue_command(command, &block)
|
1605
1403
|
end
|
1606
1404
|
|
1607
1405
|
# Inserts a cuepoint into a live broadcast.
|
1608
1406
|
# @param [String] channel_id
|
1609
|
-
# The channelId parameter identifies the channel that owns the broadcast into
|
1407
|
+
# The *channelId* parameter identifies the channel that owns the broadcast into
|
1610
1408
|
# which the cuepoint is being inserted.
|
1611
1409
|
# @param [Google::Apis::YoutubePartnerV1::LiveCuepoint] live_cuepoint_object
|
1612
1410
|
# @param [String] on_behalf_of_content_owner
|
1613
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1411
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1614
1412
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1615
1413
|
# associated with multiple content owners. You can obtain the content owner ID
|
1616
1414
|
# that will serve as the parameter value by calling the YouTube Content ID API's
|
@@ -1618,10 +1416,8 @@ module Google
|
|
1618
1416
|
# @param [String] fields
|
1619
1417
|
# Selector specifying which fields to include in a partial response.
|
1620
1418
|
# @param [String] quota_user
|
1621
|
-
#
|
1622
|
-
# characters.
|
1623
|
-
# @param [String] user_ip
|
1624
|
-
# Deprecated. Please use quotaUser instead.
|
1419
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1420
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1625
1421
|
# @param [Google::Apis::RequestOptions] options
|
1626
1422
|
# Request-specific options
|
1627
1423
|
#
|
@@ -1634,8 +1430,8 @@ module Google
|
|
1634
1430
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1635
1431
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1636
1432
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1637
|
-
def insert_live_cuepoint(channel_id, live_cuepoint_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1638
|
-
command = make_simple_command(:post, 'liveCuepoints', options)
|
1433
|
+
def insert_live_cuepoint(channel_id, live_cuepoint_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1434
|
+
command = make_simple_command(:post, 'youtube/partner/v1/liveCuepoints', options)
|
1639
1435
|
command.request_representation = Google::Apis::YoutubePartnerV1::LiveCuepoint::Representation
|
1640
1436
|
command.request_object = live_cuepoint_object
|
1641
1437
|
command.response_representation = Google::Apis::YoutubePartnerV1::LiveCuepoint::Representation
|
@@ -1644,26 +1440,23 @@ module Google
|
|
1644
1440
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1645
1441
|
command.query['fields'] = fields unless fields.nil?
|
1646
1442
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1647
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1648
1443
|
execute_or_queue_command(command, &block)
|
1649
1444
|
end
|
1650
1445
|
|
1651
1446
|
# Retrieves a list of all metadata provided for an asset, regardless of which
|
1652
1447
|
# content owner provided the data.
|
1653
1448
|
# @param [String] asset_id
|
1654
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
1449
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
1655
1450
|
# you are retrieving a metadata history.
|
1656
1451
|
# @param [String] on_behalf_of_content_owner
|
1657
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1452
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1658
1453
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1659
1454
|
# associated with multiple content owners.
|
1660
1455
|
# @param [String] fields
|
1661
1456
|
# Selector specifying which fields to include in a partial response.
|
1662
1457
|
# @param [String] quota_user
|
1663
|
-
#
|
1664
|
-
# characters.
|
1665
|
-
# @param [String] user_ip
|
1666
|
-
# Deprecated. Please use quotaUser instead.
|
1458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1667
1460
|
# @param [Google::Apis::RequestOptions] options
|
1668
1461
|
# Request-specific options
|
1669
1462
|
#
|
@@ -1676,294 +1469,31 @@ module Google
|
|
1676
1469
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1677
1470
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1678
1471
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1679
|
-
def list_metadata_histories(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1680
|
-
command = make_simple_command(:get, 'metadataHistory', options)
|
1472
|
+
def list_metadata_histories(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1473
|
+
command = make_simple_command(:get, 'youtube/partner/v1/metadataHistory', options)
|
1681
1474
|
command.response_representation = Google::Apis::YoutubePartnerV1::MetadataHistoryListResponse::Representation
|
1682
1475
|
command.response_class = Google::Apis::YoutubePartnerV1::MetadataHistoryListResponse
|
1683
1476
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
1684
1477
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1685
1478
|
command.query['fields'] = fields unless fields.nil?
|
1686
1479
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1687
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1688
|
-
execute_or_queue_command(command, &block)
|
1689
|
-
end
|
1690
|
-
|
1691
|
-
# Delete an order, which moves orders to inactive state and removes any
|
1692
|
-
# associated video.
|
1693
|
-
# @param [String] order_id
|
1694
|
-
# Id of the order to delete.
|
1695
|
-
# @param [String] on_behalf_of_content_owner
|
1696
|
-
# ContentOwnerId that super admin acts in behalf of.
|
1697
|
-
# @param [String] fields
|
1698
|
-
# Selector specifying which fields to include in a partial response.
|
1699
|
-
# @param [String] quota_user
|
1700
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1701
|
-
# characters.
|
1702
|
-
# @param [String] user_ip
|
1703
|
-
# Deprecated. Please use quotaUser instead.
|
1704
|
-
# @param [Google::Apis::RequestOptions] options
|
1705
|
-
# Request-specific options
|
1706
|
-
#
|
1707
|
-
# @yield [result, err] Result & error if block supplied
|
1708
|
-
# @yieldparam result [NilClass] No result returned for this method
|
1709
|
-
# @yieldparam err [StandardError] error object if request failed
|
1710
|
-
#
|
1711
|
-
# @return [void]
|
1712
|
-
#
|
1713
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1714
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1715
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1716
|
-
def delete_order(order_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1717
|
-
command = make_simple_command(:delete, 'orders/{orderId}', options)
|
1718
|
-
command.params['orderId'] = order_id unless order_id.nil?
|
1719
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1720
|
-
command.query['fields'] = fields unless fields.nil?
|
1721
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1722
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1723
|
-
execute_or_queue_command(command, &block)
|
1724
|
-
end
|
1725
|
-
|
1726
|
-
# Retrieve the details of an existing order.
|
1727
|
-
# @param [String] order_id
|
1728
|
-
# The id of the order.
|
1729
|
-
# @param [String] on_behalf_of_content_owner
|
1730
|
-
# ContentOnwerId that super admin acts in behalf of.
|
1731
|
-
# @param [String] fields
|
1732
|
-
# Selector specifying which fields to include in a partial response.
|
1733
|
-
# @param [String] quota_user
|
1734
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1735
|
-
# characters.
|
1736
|
-
# @param [String] user_ip
|
1737
|
-
# Deprecated. Please use quotaUser instead.
|
1738
|
-
# @param [Google::Apis::RequestOptions] options
|
1739
|
-
# Request-specific options
|
1740
|
-
#
|
1741
|
-
# @yield [result, err] Result & error if block supplied
|
1742
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::Order] parsed result object
|
1743
|
-
# @yieldparam err [StandardError] error object if request failed
|
1744
|
-
#
|
1745
|
-
# @return [Google::Apis::YoutubePartnerV1::Order]
|
1746
|
-
#
|
1747
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1748
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1749
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1750
|
-
def get_order(order_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1751
|
-
command = make_simple_command(:get, 'orders/{orderId}', options)
|
1752
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1753
|
-
command.response_class = Google::Apis::YoutubePartnerV1::Order
|
1754
|
-
command.params['orderId'] = order_id unless order_id.nil?
|
1755
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1756
|
-
command.query['fields'] = fields unless fields.nil?
|
1757
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1758
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1759
|
-
execute_or_queue_command(command, &block)
|
1760
|
-
end
|
1761
|
-
|
1762
|
-
# Creates a new basic order entry in the YouTube premium asset order management
|
1763
|
-
# system. You must supply at least a country and channel in the new order.
|
1764
|
-
# @param [Google::Apis::YoutubePartnerV1::Order] order_object
|
1765
|
-
# @param [String] on_behalf_of_content_owner
|
1766
|
-
# ContentOnwerId that super admin acts in behalf of.
|
1767
|
-
# @param [String] fields
|
1768
|
-
# Selector specifying which fields to include in a partial response.
|
1769
|
-
# @param [String] quota_user
|
1770
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1771
|
-
# characters.
|
1772
|
-
# @param [String] user_ip
|
1773
|
-
# Deprecated. Please use quotaUser instead.
|
1774
|
-
# @param [Google::Apis::RequestOptions] options
|
1775
|
-
# Request-specific options
|
1776
|
-
#
|
1777
|
-
# @yield [result, err] Result & error if block supplied
|
1778
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::Order] parsed result object
|
1779
|
-
# @yieldparam err [StandardError] error object if request failed
|
1780
|
-
#
|
1781
|
-
# @return [Google::Apis::YoutubePartnerV1::Order]
|
1782
|
-
#
|
1783
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1784
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1785
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1786
|
-
def insert_order(order_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1787
|
-
command = make_simple_command(:post, 'orders', options)
|
1788
|
-
command.request_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1789
|
-
command.request_object = order_object
|
1790
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1791
|
-
command.response_class = Google::Apis::YoutubePartnerV1::Order
|
1792
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1793
|
-
command.query['fields'] = fields unless fields.nil?
|
1794
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1795
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1796
|
-
execute_or_queue_command(command, &block)
|
1797
|
-
end
|
1798
|
-
|
1799
|
-
# Return a list of orders, filtered by the parameters below, may return more
|
1800
|
-
# than a single page of results.
|
1801
|
-
# @param [String] channel_id
|
1802
|
-
# Filter results to only a specific channel ( use encrypted ID).
|
1803
|
-
# @param [String] content_type
|
1804
|
-
# Filter the results by type, possible values are SHOW or MOVIE.
|
1805
|
-
# @param [String] country
|
1806
|
-
# Filter results by country, two letter ISO country codes are used.
|
1807
|
-
# @param [String] custom_id
|
1808
|
-
# Filter result by orders that have this custom ID.
|
1809
|
-
# @param [String] on_behalf_of_content_owner
|
1810
|
-
# ContentOnwerId that super admin acts in behalf of.
|
1811
|
-
# @param [String] page_token
|
1812
|
-
# The continuation token is an optional value that is only used to page through
|
1813
|
-
# large result sets.
|
1814
|
-
# - To retrieve the next page of results for a request, set this parameter to
|
1815
|
-
# the value of the nextPageToken value from the previous response.
|
1816
|
-
# - To get the previous page of results, set this parameter to the value of the
|
1817
|
-
# previousPageToken value from the previous response.
|
1818
|
-
# @param [String] priority
|
1819
|
-
# Filter results by priority. P0, P1, P2, P3 and P4 are the acceptable options.
|
1820
|
-
# @param [String] production_house
|
1821
|
-
# Filter results by a particular production house. Specified by the name of the
|
1822
|
-
# production house.
|
1823
|
-
# @param [String] q
|
1824
|
-
# Filter results to only orders that contain this string in the title.
|
1825
|
-
# @param [String] status
|
1826
|
-
# Filter results to have this status, available options are STATUS_AVAILED,
|
1827
|
-
# STATUS_ORDERED, STATUS_RECEIVED, STATUS_READY_FOR_QC, STATUS_MOC_FIX,
|
1828
|
-
# STATUS_PARTNER_FIX, STATUS_YOUTUBE_FIX, STATUS_QC_APPROVED, STATUS_INACTIVE,
|
1829
|
-
# STATUS_INGESTION_COMPLETE, STATUS_REORDERED
|
1830
|
-
# @param [String] video_id
|
1831
|
-
# Filter results to orders that are associated with this YouTube external video
|
1832
|
-
# id.
|
1833
|
-
# @param [String] fields
|
1834
|
-
# Selector specifying which fields to include in a partial response.
|
1835
|
-
# @param [String] quota_user
|
1836
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1837
|
-
# characters.
|
1838
|
-
# @param [String] user_ip
|
1839
|
-
# Deprecated. Please use quotaUser instead.
|
1840
|
-
# @param [Google::Apis::RequestOptions] options
|
1841
|
-
# Request-specific options
|
1842
|
-
#
|
1843
|
-
# @yield [result, err] Result & error if block supplied
|
1844
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::OrderListResponse] parsed result object
|
1845
|
-
# @yieldparam err [StandardError] error object if request failed
|
1846
|
-
#
|
1847
|
-
# @return [Google::Apis::YoutubePartnerV1::OrderListResponse]
|
1848
|
-
#
|
1849
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1850
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1851
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1852
|
-
def list_orders(channel_id: nil, content_type: nil, country: nil, custom_id: nil, on_behalf_of_content_owner: nil, page_token: nil, priority: nil, production_house: nil, q: nil, status: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1853
|
-
command = make_simple_command(:get, 'orders', options)
|
1854
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::OrderListResponse::Representation
|
1855
|
-
command.response_class = Google::Apis::YoutubePartnerV1::OrderListResponse
|
1856
|
-
command.query['channelId'] = channel_id unless channel_id.nil?
|
1857
|
-
command.query['contentType'] = content_type unless content_type.nil?
|
1858
|
-
command.query['country'] = country unless country.nil?
|
1859
|
-
command.query['customId'] = custom_id unless custom_id.nil?
|
1860
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1861
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1862
|
-
command.query['priority'] = priority unless priority.nil?
|
1863
|
-
command.query['productionHouse'] = production_house unless production_house.nil?
|
1864
|
-
command.query['q'] = q unless q.nil?
|
1865
|
-
command.query['status'] = status unless status.nil?
|
1866
|
-
command.query['videoId'] = video_id unless video_id.nil?
|
1867
|
-
command.query['fields'] = fields unless fields.nil?
|
1868
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1869
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1870
|
-
execute_or_queue_command(command, &block)
|
1871
|
-
end
|
1872
|
-
|
1873
|
-
# Update the values in an existing order. This method supports patch semantics.
|
1874
|
-
# @param [String] order_id
|
1875
|
-
# The id of the order.
|
1876
|
-
# @param [Google::Apis::YoutubePartnerV1::Order] order_object
|
1877
|
-
# @param [String] on_behalf_of_content_owner
|
1878
|
-
# ContentOwnerId that super admin acts in behalf of.
|
1879
|
-
# @param [String] fields
|
1880
|
-
# Selector specifying which fields to include in a partial response.
|
1881
|
-
# @param [String] quota_user
|
1882
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1883
|
-
# characters.
|
1884
|
-
# @param [String] user_ip
|
1885
|
-
# Deprecated. Please use quotaUser instead.
|
1886
|
-
# @param [Google::Apis::RequestOptions] options
|
1887
|
-
# Request-specific options
|
1888
|
-
#
|
1889
|
-
# @yield [result, err] Result & error if block supplied
|
1890
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::Order] parsed result object
|
1891
|
-
# @yieldparam err [StandardError] error object if request failed
|
1892
|
-
#
|
1893
|
-
# @return [Google::Apis::YoutubePartnerV1::Order]
|
1894
|
-
#
|
1895
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1896
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1897
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1898
|
-
def patch_order(order_id, order_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1899
|
-
command = make_simple_command(:patch, 'orders/{orderId}', options)
|
1900
|
-
command.request_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1901
|
-
command.request_object = order_object
|
1902
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1903
|
-
command.response_class = Google::Apis::YoutubePartnerV1::Order
|
1904
|
-
command.params['orderId'] = order_id unless order_id.nil?
|
1905
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1906
|
-
command.query['fields'] = fields unless fields.nil?
|
1907
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1908
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1909
|
-
execute_or_queue_command(command, &block)
|
1910
|
-
end
|
1911
|
-
|
1912
|
-
# Update the values in an existing order.
|
1913
|
-
# @param [String] order_id
|
1914
|
-
# The id of the order.
|
1915
|
-
# @param [Google::Apis::YoutubePartnerV1::Order] order_object
|
1916
|
-
# @param [String] on_behalf_of_content_owner
|
1917
|
-
# ContentOwnerId that super admin acts in behalf of.
|
1918
|
-
# @param [String] fields
|
1919
|
-
# Selector specifying which fields to include in a partial response.
|
1920
|
-
# @param [String] quota_user
|
1921
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1922
|
-
# characters.
|
1923
|
-
# @param [String] user_ip
|
1924
|
-
# Deprecated. Please use quotaUser instead.
|
1925
|
-
# @param [Google::Apis::RequestOptions] options
|
1926
|
-
# Request-specific options
|
1927
|
-
#
|
1928
|
-
# @yield [result, err] Result & error if block supplied
|
1929
|
-
# @yieldparam result [Google::Apis::YoutubePartnerV1::Order] parsed result object
|
1930
|
-
# @yieldparam err [StandardError] error object if request failed
|
1931
|
-
#
|
1932
|
-
# @return [Google::Apis::YoutubePartnerV1::Order]
|
1933
|
-
#
|
1934
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1935
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1936
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1937
|
-
def update_order(order_id, order_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1938
|
-
command = make_simple_command(:put, 'orders/{orderId}', options)
|
1939
|
-
command.request_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1940
|
-
command.request_object = order_object
|
1941
|
-
command.response_representation = Google::Apis::YoutubePartnerV1::Order::Representation
|
1942
|
-
command.response_class = Google::Apis::YoutubePartnerV1::Order
|
1943
|
-
command.params['orderId'] = order_id unless order_id.nil?
|
1944
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1945
|
-
command.query['fields'] = fields unless fields.nil?
|
1946
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1947
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1948
1480
|
execute_or_queue_command(command, &block)
|
1949
1481
|
end
|
1950
1482
|
|
1951
1483
|
# Retrieves the ownership data provided for the specified asset by the content
|
1952
1484
|
# owner associated with the authenticated user.
|
1953
1485
|
# @param [String] asset_id
|
1954
|
-
# The assetId parameter specifies the YouTube asset ID for which you are
|
1486
|
+
# The *assetId* parameter specifies the YouTube asset ID for which you are
|
1955
1487
|
# retrieving ownership data.
|
1956
1488
|
# @param [String] on_behalf_of_content_owner
|
1957
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1489
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
1958
1490
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
1959
1491
|
# associated with multiple content owners.
|
1960
1492
|
# @param [String] fields
|
1961
1493
|
# Selector specifying which fields to include in a partial response.
|
1962
1494
|
# @param [String] quota_user
|
1963
|
-
#
|
1964
|
-
# characters.
|
1965
|
-
# @param [String] user_ip
|
1966
|
-
# Deprecated. Please use quotaUser instead.
|
1495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1967
1497
|
# @param [Google::Apis::RequestOptions] options
|
1968
1498
|
# Request-specific options
|
1969
1499
|
#
|
@@ -1976,15 +1506,14 @@ module Google
|
|
1976
1506
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1977
1507
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1978
1508
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1979
|
-
def get_ownership(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
1980
|
-
command = make_simple_command(:get, 'assets/{assetId}/ownership', options)
|
1509
|
+
def get_ownership(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1510
|
+
command = make_simple_command(:get, 'youtube/partner/v1/assets/{assetId}/ownership', options)
|
1981
1511
|
command.response_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation
|
1982
1512
|
command.response_class = Google::Apis::YoutubePartnerV1::RightsOwnership
|
1983
1513
|
command.params['assetId'] = asset_id unless asset_id.nil?
|
1984
1514
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
1985
1515
|
command.query['fields'] = fields unless fields.nil?
|
1986
1516
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1987
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1988
1517
|
execute_or_queue_command(command, &block)
|
1989
1518
|
end
|
1990
1519
|
|
@@ -1994,22 +1523,19 @@ module Google
|
|
1994
1523
|
# YouTube algorithmically combines the ownership data received from all of those
|
1995
1524
|
# sources to generate the asset's canonical ownership data, which should provide
|
1996
1525
|
# the most comprehensive and accurate representation of the asset's ownership.
|
1997
|
-
# This method supports patch semantics.
|
1998
1526
|
# @param [String] asset_id
|
1999
|
-
# The assetId parameter specifies the YouTube asset ID of the asset being
|
1527
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset being
|
2000
1528
|
# updated.
|
2001
1529
|
# @param [Google::Apis::YoutubePartnerV1::RightsOwnership] rights_ownership_object
|
2002
1530
|
# @param [String] on_behalf_of_content_owner
|
2003
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1531
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2004
1532
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2005
1533
|
# associated with multiple content owners.
|
2006
1534
|
# @param [String] fields
|
2007
1535
|
# Selector specifying which fields to include in a partial response.
|
2008
1536
|
# @param [String] quota_user
|
2009
|
-
#
|
2010
|
-
# characters.
|
2011
|
-
# @param [String] user_ip
|
2012
|
-
# Deprecated. Please use quotaUser instead.
|
1537
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1538
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2013
1539
|
# @param [Google::Apis::RequestOptions] options
|
2014
1540
|
# Request-specific options
|
2015
1541
|
#
|
@@ -2022,8 +1548,8 @@ module Google
|
|
2022
1548
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2023
1549
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2024
1550
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2025
|
-
def patch_ownership(asset_id, rights_ownership_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2026
|
-
command = make_simple_command(:patch, 'assets/{assetId}/ownership', options)
|
1551
|
+
def patch_ownership(asset_id, rights_ownership_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1552
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/assets/{assetId}/ownership', options)
|
2027
1553
|
command.request_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation
|
2028
1554
|
command.request_object = rights_ownership_object
|
2029
1555
|
command.response_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation
|
@@ -2032,7 +1558,6 @@ module Google
|
|
2032
1558
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2033
1559
|
command.query['fields'] = fields unless fields.nil?
|
2034
1560
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2035
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2036
1561
|
execute_or_queue_command(command, &block)
|
2037
1562
|
end
|
2038
1563
|
|
@@ -2043,20 +1568,18 @@ module Google
|
|
2043
1568
|
# sources to generate the asset's canonical ownership data, which should provide
|
2044
1569
|
# the most comprehensive and accurate representation of the asset's ownership.
|
2045
1570
|
# @param [String] asset_id
|
2046
|
-
# The assetId parameter specifies the YouTube asset ID of the asset being
|
1571
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset being
|
2047
1572
|
# updated.
|
2048
1573
|
# @param [Google::Apis::YoutubePartnerV1::RightsOwnership] rights_ownership_object
|
2049
1574
|
# @param [String] on_behalf_of_content_owner
|
2050
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1575
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2051
1576
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2052
1577
|
# associated with multiple content owners.
|
2053
1578
|
# @param [String] fields
|
2054
1579
|
# Selector specifying which fields to include in a partial response.
|
2055
1580
|
# @param [String] quota_user
|
2056
|
-
#
|
2057
|
-
# characters.
|
2058
|
-
# @param [String] user_ip
|
2059
|
-
# Deprecated. Please use quotaUser instead.
|
1581
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1582
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2060
1583
|
# @param [Google::Apis::RequestOptions] options
|
2061
1584
|
# Request-specific options
|
2062
1585
|
#
|
@@ -2069,8 +1592,8 @@ module Google
|
|
2069
1592
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2070
1593
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2071
1594
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2072
|
-
def update_ownership(asset_id, rights_ownership_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2073
|
-
command = make_simple_command(:put, 'assets/{assetId}/ownership', options)
|
1595
|
+
def update_ownership(asset_id, rights_ownership_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1596
|
+
command = make_simple_command(:put, 'youtube/partner/v1/assets/{assetId}/ownership', options)
|
2074
1597
|
command.request_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation
|
2075
1598
|
command.request_object = rights_ownership_object
|
2076
1599
|
command.response_representation = Google::Apis::YoutubePartnerV1::RightsOwnership::Representation
|
@@ -2079,7 +1602,6 @@ module Google
|
|
2079
1602
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2080
1603
|
command.query['fields'] = fields unless fields.nil?
|
2081
1604
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2082
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2083
1605
|
execute_or_queue_command(command, &block)
|
2084
1606
|
end
|
2085
1607
|
|
@@ -2090,19 +1612,17 @@ module Google
|
|
2090
1612
|
# etc.), the list will contain the most recent data for each content owner and
|
2091
1613
|
# data source.
|
2092
1614
|
# @param [String] asset_id
|
2093
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
1615
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
2094
1616
|
# you are retrieving an ownership data history.
|
2095
1617
|
# @param [String] on_behalf_of_content_owner
|
2096
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1618
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2097
1619
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2098
1620
|
# associated with multiple content owners.
|
2099
1621
|
# @param [String] fields
|
2100
1622
|
# Selector specifying which fields to include in a partial response.
|
2101
1623
|
# @param [String] quota_user
|
2102
|
-
#
|
2103
|
-
# characters.
|
2104
|
-
# @param [String] user_ip
|
2105
|
-
# Deprecated. Please use quotaUser instead.
|
1624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2106
1626
|
# @param [Google::Apis::RequestOptions] options
|
2107
1627
|
# Request-specific options
|
2108
1628
|
#
|
@@ -2115,33 +1635,30 @@ module Google
|
|
2115
1635
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2116
1636
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2117
1637
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2118
|
-
def list_ownership_histories(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2119
|
-
command = make_simple_command(:get, 'ownershipHistory', options)
|
1638
|
+
def list_ownership_histories(asset_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1639
|
+
command = make_simple_command(:get, 'youtube/partner/v1/ownershipHistory', options)
|
2120
1640
|
command.response_representation = Google::Apis::YoutubePartnerV1::OwnershipHistoryListResponse::Representation
|
2121
1641
|
command.response_class = Google::Apis::YoutubePartnerV1::OwnershipHistoryListResponse
|
2122
1642
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
2123
1643
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2124
1644
|
command.query['fields'] = fields unless fields.nil?
|
2125
1645
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2126
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2127
1646
|
execute_or_queue_command(command, &block)
|
2128
1647
|
end
|
2129
1648
|
|
2130
1649
|
# Retrieves information for the specified package.
|
2131
1650
|
# @param [String] package_id
|
2132
|
-
# The packageId parameter specifies the Content Delivery package ID of the
|
1651
|
+
# The *packageId* parameter specifies the Content Delivery package ID of the
|
2133
1652
|
# package being retrieved.
|
2134
1653
|
# @param [String] on_behalf_of_content_owner
|
2135
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1654
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2136
1655
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2137
1656
|
# associated with multiple content owners.
|
2138
1657
|
# @param [String] fields
|
2139
1658
|
# Selector specifying which fields to include in a partial response.
|
2140
1659
|
# @param [String] quota_user
|
2141
|
-
#
|
2142
|
-
# characters.
|
2143
|
-
# @param [String] user_ip
|
2144
|
-
# Deprecated. Please use quotaUser instead.
|
1660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2145
1662
|
# @param [Google::Apis::RequestOptions] options
|
2146
1663
|
# Request-specific options
|
2147
1664
|
#
|
@@ -2154,31 +1671,28 @@ module Google
|
|
2154
1671
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2155
1672
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2156
1673
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2157
|
-
def get_package(package_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2158
|
-
command = make_simple_command(:get, 'package/{packageId}', options)
|
1674
|
+
def get_package(package_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1675
|
+
command = make_simple_command(:get, 'youtube/partner/v1/package/{packageId}', options)
|
2159
1676
|
command.response_representation = Google::Apis::YoutubePartnerV1::Package::Representation
|
2160
1677
|
command.response_class = Google::Apis::YoutubePartnerV1::Package
|
2161
1678
|
command.params['packageId'] = package_id unless package_id.nil?
|
2162
1679
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2163
1680
|
command.query['fields'] = fields unless fields.nil?
|
2164
1681
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2165
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2166
1682
|
execute_or_queue_command(command, &block)
|
2167
1683
|
end
|
2168
1684
|
|
2169
1685
|
# Inserts a metadata-only package.
|
2170
1686
|
# @param [Google::Apis::YoutubePartnerV1::Package] package_object
|
2171
1687
|
# @param [String] on_behalf_of_content_owner
|
2172
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1688
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2173
1689
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2174
1690
|
# associated with multiple content owners.
|
2175
1691
|
# @param [String] fields
|
2176
1692
|
# Selector specifying which fields to include in a partial response.
|
2177
1693
|
# @param [String] quota_user
|
2178
|
-
#
|
2179
|
-
# characters.
|
2180
|
-
# @param [String] user_ip
|
2181
|
-
# Deprecated. Please use quotaUser instead.
|
1694
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1695
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2182
1696
|
# @param [Google::Apis::RequestOptions] options
|
2183
1697
|
# Request-specific options
|
2184
1698
|
#
|
@@ -2191,8 +1705,8 @@ module Google
|
|
2191
1705
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2192
1706
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2193
1707
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2194
|
-
def insert_package(package_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2195
|
-
command = make_simple_command(:post, 'package', options)
|
1708
|
+
def insert_package(package_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1709
|
+
command = make_simple_command(:post, 'youtube/partner/v1/package', options)
|
2196
1710
|
command.request_representation = Google::Apis::YoutubePartnerV1::Package::Representation
|
2197
1711
|
command.request_object = package_object
|
2198
1712
|
command.response_representation = Google::Apis::YoutubePartnerV1::PackageInsertResponse::Representation
|
@@ -2200,25 +1714,22 @@ module Google
|
|
2200
1714
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2201
1715
|
command.query['fields'] = fields unless fields.nil?
|
2202
1716
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2203
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2204
1717
|
execute_or_queue_command(command, &block)
|
2205
1718
|
end
|
2206
1719
|
|
2207
1720
|
# Retrieves the specified saved policy.
|
2208
1721
|
# @param [String] policy_id
|
2209
|
-
# The policyId parameter specifies a value that uniquely identifies the policy
|
1722
|
+
# The *policyId* parameter specifies a value that uniquely identifies the policy
|
2210
1723
|
# being retrieved.
|
2211
1724
|
# @param [String] on_behalf_of_content_owner
|
2212
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1725
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2213
1726
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2214
1727
|
# associated with multiple content owners.
|
2215
1728
|
# @param [String] fields
|
2216
1729
|
# Selector specifying which fields to include in a partial response.
|
2217
1730
|
# @param [String] quota_user
|
2218
|
-
#
|
2219
|
-
# characters.
|
2220
|
-
# @param [String] user_ip
|
2221
|
-
# Deprecated. Please use quotaUser instead.
|
1731
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1732
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2222
1733
|
# @param [Google::Apis::RequestOptions] options
|
2223
1734
|
# Request-specific options
|
2224
1735
|
#
|
@@ -2231,31 +1742,28 @@ module Google
|
|
2231
1742
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2232
1743
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2233
1744
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2234
|
-
def get_policy(policy_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2235
|
-
command = make_simple_command(:get, 'policies/{policyId}', options)
|
1745
|
+
def get_policy(policy_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1746
|
+
command = make_simple_command(:get, 'youtube/partner/v1/policies/{policyId}', options)
|
2236
1747
|
command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
2237
1748
|
command.response_class = Google::Apis::YoutubePartnerV1::Policy
|
2238
1749
|
command.params['policyId'] = policy_id unless policy_id.nil?
|
2239
1750
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2240
1751
|
command.query['fields'] = fields unless fields.nil?
|
2241
1752
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2242
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2243
1753
|
execute_or_queue_command(command, &block)
|
2244
1754
|
end
|
2245
1755
|
|
2246
1756
|
# Creates a saved policy.
|
2247
1757
|
# @param [Google::Apis::YoutubePartnerV1::Policy] policy_object
|
2248
1758
|
# @param [String] on_behalf_of_content_owner
|
2249
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1759
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2250
1760
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2251
1761
|
# associated with multiple content owners.
|
2252
1762
|
# @param [String] fields
|
2253
1763
|
# Selector specifying which fields to include in a partial response.
|
2254
1764
|
# @param [String] quota_user
|
2255
|
-
#
|
2256
|
-
# characters.
|
2257
|
-
# @param [String] user_ip
|
2258
|
-
# Deprecated. Please use quotaUser instead.
|
1765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2259
1767
|
# @param [Google::Apis::RequestOptions] options
|
2260
1768
|
# Request-specific options
|
2261
1769
|
#
|
@@ -2268,8 +1776,8 @@ module Google
|
|
2268
1776
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2269
1777
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2270
1778
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2271
|
-
def insert_policy(policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2272
|
-
command = make_simple_command(:post, 'policies', options)
|
1779
|
+
def insert_policy(policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1780
|
+
command = make_simple_command(:post, 'youtube/partner/v1/policies', options)
|
2273
1781
|
command.request_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
2274
1782
|
command.request_object = policy_object
|
2275
1783
|
command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
@@ -2277,28 +1785,25 @@ module Google
|
|
2277
1785
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2278
1786
|
command.query['fields'] = fields unless fields.nil?
|
2279
1787
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2280
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2281
1788
|
execute_or_queue_command(command, &block)
|
2282
1789
|
end
|
2283
1790
|
|
2284
1791
|
# Retrieves a list of the content owner's saved policies.
|
2285
1792
|
# @param [String] id
|
2286
|
-
# The id parameter specifies a comma-separated list of saved policy IDs to
|
1793
|
+
# The *id* parameter specifies a comma-separated list of saved policy IDs to
|
2287
1794
|
# retrieve. Only policies belonging to the currently authenticated content owner
|
2288
1795
|
# will be available.
|
2289
1796
|
# @param [String] on_behalf_of_content_owner
|
2290
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1797
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2291
1798
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2292
1799
|
# associated with multiple content owners.
|
2293
1800
|
# @param [String] sort
|
2294
|
-
# The sort parameter specifies how the search results should be sorted.
|
1801
|
+
# The *sort* parameter specifies how the search results should be sorted.
|
2295
1802
|
# @param [String] fields
|
2296
1803
|
# Selector specifying which fields to include in a partial response.
|
2297
1804
|
# @param [String] quota_user
|
2298
|
-
#
|
2299
|
-
# characters.
|
2300
|
-
# @param [String] user_ip
|
2301
|
-
# Deprecated. Please use quotaUser instead.
|
1805
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1806
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2302
1807
|
# @param [Google::Apis::RequestOptions] options
|
2303
1808
|
# Request-specific options
|
2304
1809
|
#
|
@@ -2311,8 +1816,8 @@ module Google
|
|
2311
1816
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2312
1817
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2313
1818
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2314
|
-
def list_policies(id: nil, on_behalf_of_content_owner: nil, sort: nil, fields: nil, quota_user: nil,
|
2315
|
-
command = make_simple_command(:get, 'policies', options)
|
1819
|
+
def list_policies(id: nil, on_behalf_of_content_owner: nil, sort: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1820
|
+
command = make_simple_command(:get, 'youtube/partner/v1/policies', options)
|
2316
1821
|
command.response_representation = Google::Apis::YoutubePartnerV1::PolicyList::Representation
|
2317
1822
|
command.response_class = Google::Apis::YoutubePartnerV1::PolicyList
|
2318
1823
|
command.query['id'] = id unless id.nil?
|
@@ -2320,26 +1825,23 @@ module Google
|
|
2320
1825
|
command.query['sort'] = sort unless sort.nil?
|
2321
1826
|
command.query['fields'] = fields unless fields.nil?
|
2322
1827
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2323
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2324
1828
|
execute_or_queue_command(command, &block)
|
2325
1829
|
end
|
2326
1830
|
|
2327
|
-
#
|
1831
|
+
# Patches the specified saved policy.
|
2328
1832
|
# @param [String] policy_id
|
2329
|
-
# The policyId parameter specifies a value that uniquely identifies the policy
|
1833
|
+
# The *policyId* parameter specifies a value that uniquely identifies the policy
|
2330
1834
|
# being updated.
|
2331
1835
|
# @param [Google::Apis::YoutubePartnerV1::Policy] policy_object
|
2332
1836
|
# @param [String] on_behalf_of_content_owner
|
2333
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1837
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2334
1838
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2335
1839
|
# associated with multiple content owners.
|
2336
1840
|
# @param [String] fields
|
2337
1841
|
# Selector specifying which fields to include in a partial response.
|
2338
1842
|
# @param [String] quota_user
|
2339
|
-
#
|
2340
|
-
# characters.
|
2341
|
-
# @param [String] user_ip
|
2342
|
-
# Deprecated. Please use quotaUser instead.
|
1843
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1844
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2343
1845
|
# @param [Google::Apis::RequestOptions] options
|
2344
1846
|
# Request-specific options
|
2345
1847
|
#
|
@@ -2352,8 +1854,8 @@ module Google
|
|
2352
1854
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2353
1855
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2354
1856
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2355
|
-
def patch_policy(policy_id, policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2356
|
-
command = make_simple_command(:patch, 'policies/{policyId}', options)
|
1857
|
+
def patch_policy(policy_id, policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1858
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/policies/{policyId}', options)
|
2357
1859
|
command.request_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
2358
1860
|
command.request_object = policy_object
|
2359
1861
|
command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
@@ -2362,26 +1864,23 @@ module Google
|
|
2362
1864
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2363
1865
|
command.query['fields'] = fields unless fields.nil?
|
2364
1866
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2365
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2366
1867
|
execute_or_queue_command(command, &block)
|
2367
1868
|
end
|
2368
1869
|
|
2369
1870
|
# Updates the specified saved policy.
|
2370
1871
|
# @param [String] policy_id
|
2371
|
-
# The policyId parameter specifies a value that uniquely identifies the policy
|
1872
|
+
# The *policyId* parameter specifies a value that uniquely identifies the policy
|
2372
1873
|
# being updated.
|
2373
1874
|
# @param [Google::Apis::YoutubePartnerV1::Policy] policy_object
|
2374
1875
|
# @param [String] on_behalf_of_content_owner
|
2375
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1876
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2376
1877
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2377
1878
|
# associated with multiple content owners.
|
2378
1879
|
# @param [String] fields
|
2379
1880
|
# Selector specifying which fields to include in a partial response.
|
2380
1881
|
# @param [String] quota_user
|
2381
|
-
#
|
2382
|
-
# characters.
|
2383
|
-
# @param [String] user_ip
|
2384
|
-
# Deprecated. Please use quotaUser instead.
|
1882
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1883
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2385
1884
|
# @param [Google::Apis::RequestOptions] options
|
2386
1885
|
# Request-specific options
|
2387
1886
|
#
|
@@ -2394,8 +1893,8 @@ module Google
|
|
2394
1893
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2395
1894
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2396
1895
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2397
|
-
def update_policy(policy_id, policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2398
|
-
command = make_simple_command(:put, 'policies/{policyId}', options)
|
1896
|
+
def update_policy(policy_id, policy_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1897
|
+
command = make_simple_command(:put, 'youtube/partner/v1/policies/{policyId}', options)
|
2399
1898
|
command.request_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
2400
1899
|
command.request_object = policy_object
|
2401
1900
|
command.response_representation = Google::Apis::YoutubePartnerV1::Policy::Representation
|
@@ -2404,25 +1903,22 @@ module Google
|
|
2404
1903
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2405
1904
|
command.query['fields'] = fields unless fields.nil?
|
2406
1905
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2407
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2408
1906
|
execute_or_queue_command(command, &block)
|
2409
1907
|
end
|
2410
1908
|
|
2411
1909
|
# Retrieves information about the specified reference conflict.
|
2412
1910
|
# @param [String] reference_conflict_id
|
2413
|
-
# The referenceConflictId parameter specifies the YouTube reference conflict
|
2414
|
-
# of the reference conflict being retrieved.
|
1911
|
+
# The *referenceConflictId* parameter specifies the YouTube reference conflict
|
1912
|
+
# ID of the reference conflict being retrieved.
|
2415
1913
|
# @param [String] on_behalf_of_content_owner
|
2416
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1914
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2417
1915
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2418
1916
|
# associated with multiple content owners.
|
2419
1917
|
# @param [String] fields
|
2420
1918
|
# Selector specifying which fields to include in a partial response.
|
2421
1919
|
# @param [String] quota_user
|
2422
|
-
#
|
2423
|
-
# characters.
|
2424
|
-
# @param [String] user_ip
|
2425
|
-
# Deprecated. Please use quotaUser instead.
|
1920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2426
1922
|
# @param [Google::Apis::RequestOptions] options
|
2427
1923
|
# Request-specific options
|
2428
1924
|
#
|
@@ -2435,34 +1931,32 @@ module Google
|
|
2435
1931
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2436
1932
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2437
1933
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2438
|
-
def get_reference_conflict(reference_conflict_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2439
|
-
command = make_simple_command(:get, 'referenceConflicts/{referenceConflictId}', options)
|
1934
|
+
def get_reference_conflict(reference_conflict_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1935
|
+
command = make_simple_command(:get, 'youtube/partner/v1/referenceConflicts/{referenceConflictId}', options)
|
2440
1936
|
command.response_representation = Google::Apis::YoutubePartnerV1::ReferenceConflict::Representation
|
2441
1937
|
command.response_class = Google::Apis::YoutubePartnerV1::ReferenceConflict
|
2442
1938
|
command.params['referenceConflictId'] = reference_conflict_id unless reference_conflict_id.nil?
|
2443
1939
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2444
1940
|
command.query['fields'] = fields unless fields.nil?
|
2445
1941
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2446
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2447
1942
|
execute_or_queue_command(command, &block)
|
2448
1943
|
end
|
2449
1944
|
|
2450
1945
|
# Retrieves a list of unresolved reference conflicts.
|
2451
1946
|
# @param [String] on_behalf_of_content_owner
|
2452
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1947
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2453
1948
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2454
1949
|
# associated with multiple content owners.
|
2455
1950
|
# @param [String] page_token
|
2456
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
2457
|
-
# results to return. Set this parameter to the value of the nextPageToken
|
2458
|
-
# from the previous API response to retrieve the next page of search
|
1951
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
1952
|
+
# of results to return. Set this parameter to the value of the nextPageToken
|
1953
|
+
# value from the previous API response to retrieve the next page of search
|
1954
|
+
# results.
|
2459
1955
|
# @param [String] fields
|
2460
1956
|
# Selector specifying which fields to include in a partial response.
|
2461
1957
|
# @param [String] quota_user
|
2462
|
-
#
|
2463
|
-
# characters.
|
2464
|
-
# @param [String] user_ip
|
2465
|
-
# Deprecated. Please use quotaUser instead.
|
1958
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1959
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2466
1960
|
# @param [Google::Apis::RequestOptions] options
|
2467
1961
|
# Request-specific options
|
2468
1962
|
#
|
@@ -2475,33 +1969,30 @@ module Google
|
|
2475
1969
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2476
1970
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2477
1971
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2478
|
-
def list_reference_conflicts(on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil,
|
2479
|
-
command = make_simple_command(:get, 'referenceConflicts', options)
|
1972
|
+
def list_reference_conflicts(on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1973
|
+
command = make_simple_command(:get, 'youtube/partner/v1/referenceConflicts', options)
|
2480
1974
|
command.response_representation = Google::Apis::YoutubePartnerV1::ReferenceConflictListResponse::Representation
|
2481
1975
|
command.response_class = Google::Apis::YoutubePartnerV1::ReferenceConflictListResponse
|
2482
1976
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2483
1977
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2484
1978
|
command.query['fields'] = fields unless fields.nil?
|
2485
1979
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2486
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2487
1980
|
execute_or_queue_command(command, &block)
|
2488
1981
|
end
|
2489
1982
|
|
2490
1983
|
# Retrieves information about the specified reference.
|
2491
1984
|
# @param [String] reference_id
|
2492
|
-
# The referenceId parameter specifies the YouTube reference ID of the
|
2493
|
-
# being retrieved.
|
1985
|
+
# The *referenceId* parameter specifies the YouTube reference ID of the
|
1986
|
+
# reference being retrieved.
|
2494
1987
|
# @param [String] on_behalf_of_content_owner
|
2495
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
1988
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2496
1989
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2497
1990
|
# associated with multiple content owners.
|
2498
1991
|
# @param [String] fields
|
2499
1992
|
# Selector specifying which fields to include in a partial response.
|
2500
1993
|
# @param [String] quota_user
|
2501
|
-
#
|
2502
|
-
# characters.
|
2503
|
-
# @param [String] user_ip
|
2504
|
-
# Deprecated. Please use quotaUser instead.
|
1994
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1995
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2505
1996
|
# @param [Google::Apis::RequestOptions] options
|
2506
1997
|
# Request-specific options
|
2507
1998
|
#
|
@@ -2514,43 +2005,40 @@ module Google
|
|
2514
2005
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2515
2006
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2516
2007
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2517
|
-
def get_reference(reference_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2518
|
-
command = make_simple_command(:get, 'references/{referenceId}', options)
|
2008
|
+
def get_reference(reference_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2009
|
+
command = make_simple_command(:get, 'youtube/partner/v1/references/{referenceId}', options)
|
2519
2010
|
command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation
|
2520
2011
|
command.response_class = Google::Apis::YoutubePartnerV1::Reference
|
2521
2012
|
command.params['referenceId'] = reference_id unless reference_id.nil?
|
2522
2013
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2523
2014
|
command.query['fields'] = fields unless fields.nil?
|
2524
2015
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2525
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2526
2016
|
execute_or_queue_command(command, &block)
|
2527
2017
|
end
|
2528
2018
|
|
2529
|
-
# Creates a reference in one of the following ways:
|
2530
|
-
#
|
2531
|
-
#
|
2532
|
-
#
|
2533
|
-
#
|
2534
|
-
#
|
2535
|
-
#
|
2536
|
-
#
|
2537
|
-
#
|
2019
|
+
# Creates a reference in one of the following ways: - If your request is
|
2020
|
+
# uploading a reference file, YouTube creates the reference from the provided
|
2021
|
+
# content. You can provide either a video/audio file or a pre-generated
|
2022
|
+
# fingerprint. If you are providing a pre-generated fingerprint, set the
|
2023
|
+
# reference resource's fpDirect property to true in the request body. In this
|
2024
|
+
# flow, you can use either the multipart or resumable upload flows to provide
|
2025
|
+
# the reference content. - If you want to create a reference using a claimed
|
2026
|
+
# video as the reference content, use the claimId parameter to identify the
|
2027
|
+
# claim.
|
2538
2028
|
# @param [Google::Apis::YoutubePartnerV1::Reference] reference_object
|
2539
2029
|
# @param [String] claim_id
|
2540
|
-
# The claimId parameter specifies the YouTube claim ID of an existing claim
|
2541
|
-
# which a reference should be created. (The claimed video is used as the
|
2030
|
+
# The *claimId* parameter specifies the YouTube claim ID of an existing claim
|
2031
|
+
# from which a reference should be created. (The claimed video is used as the
|
2542
2032
|
# reference content.)
|
2543
2033
|
# @param [String] on_behalf_of_content_owner
|
2544
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2034
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2545
2035
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2546
2036
|
# associated with multiple content owners.
|
2547
2037
|
# @param [String] fields
|
2548
2038
|
# Selector specifying which fields to include in a partial response.
|
2549
2039
|
# @param [String] quota_user
|
2550
|
-
#
|
2551
|
-
# characters.
|
2552
|
-
# @param [String] user_ip
|
2553
|
-
# Deprecated. Please use quotaUser instead.
|
2040
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2041
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2554
2042
|
# @param [IO, String] upload_source
|
2555
2043
|
# IO stream or filename containing content to upload
|
2556
2044
|
# @param [String] content_type
|
@@ -2567,11 +2055,11 @@ module Google
|
|
2567
2055
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2568
2056
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2569
2057
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2570
|
-
def insert_reference(reference_object = nil, claim_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2058
|
+
def insert_reference(reference_object = nil, claim_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
2571
2059
|
if upload_source.nil?
|
2572
|
-
command = make_simple_command(:post, 'references', options)
|
2060
|
+
command = make_simple_command(:post, 'youtube/partner/v1/references', options)
|
2573
2061
|
else
|
2574
|
-
command = make_upload_command(:post, 'references', options)
|
2062
|
+
command = make_upload_command(:post, 'youtube/partner/v1/references', options)
|
2575
2063
|
command.upload_source = upload_source
|
2576
2064
|
command.upload_content_type = content_type
|
2577
2065
|
end
|
@@ -2583,33 +2071,31 @@ module Google
|
|
2583
2071
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2584
2072
|
command.query['fields'] = fields unless fields.nil?
|
2585
2073
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2586
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2587
2074
|
execute_or_queue_command(command, &block)
|
2588
2075
|
end
|
2589
2076
|
|
2590
2077
|
# Retrieves a list of references by ID or the list of references for the
|
2591
2078
|
# specified asset.
|
2592
2079
|
# @param [String] asset_id
|
2593
|
-
# The assetId parameter specifies the YouTube asset ID of the asset for which
|
2080
|
+
# The *assetId* parameter specifies the YouTube asset ID of the asset for which
|
2594
2081
|
# you are retrieving references.
|
2595
2082
|
# @param [String] id
|
2596
|
-
# The id parameter specifies a comma-separated list of YouTube reference IDs
|
2597
|
-
# retrieve.
|
2083
|
+
# The *id* parameter specifies a comma-separated list of YouTube reference IDs
|
2084
|
+
# to retrieve.
|
2598
2085
|
# @param [String] on_behalf_of_content_owner
|
2599
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2086
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2600
2087
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2601
2088
|
# associated with multiple content owners.
|
2602
2089
|
# @param [String] page_token
|
2603
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
2604
|
-
# results to return. Set this parameter to the value of the nextPageToken
|
2605
|
-
# from the previous API response to retrieve the next page of search
|
2090
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
2091
|
+
# of results to return. Set this parameter to the value of the nextPageToken
|
2092
|
+
# value from the previous API response to retrieve the next page of search
|
2093
|
+
# results.
|
2606
2094
|
# @param [String] fields
|
2607
2095
|
# Selector specifying which fields to include in a partial response.
|
2608
2096
|
# @param [String] quota_user
|
2609
|
-
#
|
2610
|
-
# characters.
|
2611
|
-
# @param [String] user_ip
|
2612
|
-
# Deprecated. Please use quotaUser instead.
|
2097
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2098
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2613
2099
|
# @param [Google::Apis::RequestOptions] options
|
2614
2100
|
# Request-specific options
|
2615
2101
|
#
|
@@ -2622,8 +2108,8 @@ module Google
|
|
2622
2108
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2623
2109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2624
2110
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2625
|
-
def list_references(asset_id: nil, id: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil,
|
2626
|
-
command = make_simple_command(:get, 'references', options)
|
2111
|
+
def list_references(asset_id: nil, id: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2112
|
+
command = make_simple_command(:get, 'youtube/partner/v1/references', options)
|
2627
2113
|
command.response_representation = Google::Apis::YoutubePartnerV1::ReferenceListResponse::Representation
|
2628
2114
|
command.response_class = Google::Apis::YoutubePartnerV1::ReferenceListResponse
|
2629
2115
|
command.query['assetId'] = asset_id unless asset_id.nil?
|
@@ -2632,31 +2118,28 @@ module Google
|
|
2632
2118
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2633
2119
|
command.query['fields'] = fields unless fields.nil?
|
2634
2120
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2635
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2636
2121
|
execute_or_queue_command(command, &block)
|
2637
2122
|
end
|
2638
2123
|
|
2639
|
-
#
|
2124
|
+
# Patches a reference.
|
2640
2125
|
# @param [String] reference_id
|
2641
|
-
# The referenceId parameter specifies the YouTube reference ID of the
|
2642
|
-
# being updated.
|
2126
|
+
# The *referenceId* parameter specifies the YouTube reference ID of the
|
2127
|
+
# reference being updated.
|
2643
2128
|
# @param [Google::Apis::YoutubePartnerV1::Reference] reference_object
|
2644
2129
|
# @param [String] on_behalf_of_content_owner
|
2645
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2130
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2646
2131
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2647
2132
|
# associated with multiple content owners.
|
2648
2133
|
# @param [Boolean] release_claims
|
2649
|
-
# The releaseClaims parameter indicates that you want to release all match
|
2134
|
+
# The *releaseClaims* parameter indicates that you want to release all match
|
2650
2135
|
# claims associated with this reference. This parameter only works when the
|
2651
2136
|
# claim's status is being updated to 'inactive' - you can then set the parameter'
|
2652
2137
|
# s value to true to release all match claims produced by this reference.
|
2653
2138
|
# @param [String] fields
|
2654
2139
|
# Selector specifying which fields to include in a partial response.
|
2655
2140
|
# @param [String] quota_user
|
2656
|
-
#
|
2657
|
-
# characters.
|
2658
|
-
# @param [String] user_ip
|
2659
|
-
# Deprecated. Please use quotaUser instead.
|
2141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2660
2143
|
# @param [Google::Apis::RequestOptions] options
|
2661
2144
|
# Request-specific options
|
2662
2145
|
#
|
@@ -2669,8 +2152,8 @@ module Google
|
|
2669
2152
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2670
2153
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2671
2154
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2672
|
-
def patch_reference(reference_id, reference_object = nil, on_behalf_of_content_owner: nil, release_claims: nil, fields: nil, quota_user: nil,
|
2673
|
-
command = make_simple_command(:patch, 'references/{referenceId}', options)
|
2155
|
+
def patch_reference(reference_id, reference_object = nil, on_behalf_of_content_owner: nil, release_claims: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2156
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/references/{referenceId}', options)
|
2674
2157
|
command.request_representation = Google::Apis::YoutubePartnerV1::Reference::Representation
|
2675
2158
|
command.request_object = reference_object
|
2676
2159
|
command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation
|
@@ -2680,31 +2163,28 @@ module Google
|
|
2680
2163
|
command.query['releaseClaims'] = release_claims unless release_claims.nil?
|
2681
2164
|
command.query['fields'] = fields unless fields.nil?
|
2682
2165
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2683
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2684
2166
|
execute_or_queue_command(command, &block)
|
2685
2167
|
end
|
2686
2168
|
|
2687
2169
|
# Updates a reference.
|
2688
2170
|
# @param [String] reference_id
|
2689
|
-
# The referenceId parameter specifies the YouTube reference ID of the
|
2690
|
-
# being updated.
|
2171
|
+
# The *referenceId* parameter specifies the YouTube reference ID of the
|
2172
|
+
# reference being updated.
|
2691
2173
|
# @param [Google::Apis::YoutubePartnerV1::Reference] reference_object
|
2692
2174
|
# @param [String] on_behalf_of_content_owner
|
2693
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2175
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2694
2176
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2695
2177
|
# associated with multiple content owners.
|
2696
2178
|
# @param [Boolean] release_claims
|
2697
|
-
# The releaseClaims parameter indicates that you want to release all match
|
2179
|
+
# The *releaseClaims* parameter indicates that you want to release all match
|
2698
2180
|
# claims associated with this reference. This parameter only works when the
|
2699
2181
|
# claim's status is being updated to 'inactive' - you can then set the parameter'
|
2700
2182
|
# s value to true to release all match claims produced by this reference.
|
2701
2183
|
# @param [String] fields
|
2702
2184
|
# Selector specifying which fields to include in a partial response.
|
2703
2185
|
# @param [String] quota_user
|
2704
|
-
#
|
2705
|
-
# characters.
|
2706
|
-
# @param [String] user_ip
|
2707
|
-
# Deprecated. Please use quotaUser instead.
|
2186
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2187
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2708
2188
|
# @param [Google::Apis::RequestOptions] options
|
2709
2189
|
# Request-specific options
|
2710
2190
|
#
|
@@ -2717,8 +2197,8 @@ module Google
|
|
2717
2197
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2718
2198
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2719
2199
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2720
|
-
def update_reference(reference_id, reference_object = nil, on_behalf_of_content_owner: nil, release_claims: nil, fields: nil, quota_user: nil,
|
2721
|
-
command = make_simple_command(:put, 'references/{referenceId}', options)
|
2200
|
+
def update_reference(reference_id, reference_object = nil, on_behalf_of_content_owner: nil, release_claims: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2201
|
+
command = make_simple_command(:put, 'youtube/partner/v1/references/{referenceId}', options)
|
2722
2202
|
command.request_representation = Google::Apis::YoutubePartnerV1::Reference::Representation
|
2723
2203
|
command.request_object = reference_object
|
2724
2204
|
command.response_representation = Google::Apis::YoutubePartnerV1::Reference::Representation
|
@@ -2728,26 +2208,23 @@ module Google
|
|
2728
2208
|
command.query['releaseClaims'] = release_claims unless release_claims.nil?
|
2729
2209
|
command.query['fields'] = fields unless fields.nil?
|
2730
2210
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2731
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2732
2211
|
execute_or_queue_command(command, &block)
|
2733
2212
|
end
|
2734
2213
|
|
2735
2214
|
# Retrieves a list of spreadsheet templates for a content owner.
|
2736
2215
|
# @param [String] locale
|
2737
|
-
# The locale parameter identifies the desired language for templates in the
|
2738
|
-
# response. The value is a string that contains a BCP-47 language code. The
|
2216
|
+
# The *locale* parameter identifies the desired language for templates in the
|
2217
|
+
# API response. The value is a string that contains a BCP-47 language code. The
|
2739
2218
|
# default value is en.
|
2740
2219
|
# @param [String] on_behalf_of_content_owner
|
2741
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2220
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2742
2221
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2743
2222
|
# associated with multiple content owners.
|
2744
2223
|
# @param [String] fields
|
2745
2224
|
# Selector specifying which fields to include in a partial response.
|
2746
2225
|
# @param [String] quota_user
|
2747
|
-
#
|
2748
|
-
# characters.
|
2749
|
-
# @param [String] user_ip
|
2750
|
-
# Deprecated. Please use quotaUser instead.
|
2226
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2227
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2751
2228
|
# @param [Google::Apis::RequestOptions] options
|
2752
2229
|
# Request-specific options
|
2753
2230
|
#
|
@@ -2760,30 +2237,27 @@ module Google
|
|
2760
2237
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2761
2238
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2762
2239
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2763
|
-
def list_spreadsheet_templates(locale: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2764
|
-
command = make_simple_command(:get, 'spreadsheetTemplate', options)
|
2240
|
+
def list_spreadsheet_templates(locale: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2241
|
+
command = make_simple_command(:get, 'youtube/partner/v1/spreadsheetTemplate', options)
|
2765
2242
|
command.response_representation = Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse::Representation
|
2766
2243
|
command.response_class = Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse
|
2767
2244
|
command.query['locale'] = locale unless locale.nil?
|
2768
2245
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2769
2246
|
command.query['fields'] = fields unless fields.nil?
|
2770
2247
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2771
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2772
2248
|
execute_or_queue_command(command, &block)
|
2773
2249
|
end
|
2774
2250
|
|
2775
2251
|
# Retrieves a list of uploaders for a content owner.
|
2776
2252
|
# @param [String] on_behalf_of_content_owner
|
2777
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2253
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2778
2254
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2779
2255
|
# associated with multiple content owners.
|
2780
2256
|
# @param [String] fields
|
2781
2257
|
# Selector specifying which fields to include in a partial response.
|
2782
2258
|
# @param [String] quota_user
|
2783
|
-
#
|
2784
|
-
# characters.
|
2785
|
-
# @param [String] user_ip
|
2786
|
-
# Deprecated. Please use quotaUser instead.
|
2259
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2260
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2787
2261
|
# @param [Google::Apis::RequestOptions] options
|
2788
2262
|
# Request-specific options
|
2789
2263
|
#
|
@@ -2796,30 +2270,27 @@ module Google
|
|
2796
2270
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2797
2271
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2798
2272
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2799
|
-
def list_uploaders(on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2800
|
-
command = make_simple_command(:get, 'uploader', options)
|
2273
|
+
def list_uploaders(on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2274
|
+
command = make_simple_command(:get, 'youtube/partner/v1/uploader', options)
|
2801
2275
|
command.response_representation = Google::Apis::YoutubePartnerV1::UploaderListResponse::Representation
|
2802
2276
|
command.response_class = Google::Apis::YoutubePartnerV1::UploaderListResponse
|
2803
2277
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2804
2278
|
command.query['fields'] = fields unless fields.nil?
|
2805
2279
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2806
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2807
2280
|
execute_or_queue_command(command, &block)
|
2808
2281
|
end
|
2809
2282
|
|
2810
2283
|
# Validate a metadata file.
|
2811
2284
|
# @param [Google::Apis::YoutubePartnerV1::ValidateRequest] validate_request_object
|
2812
2285
|
# @param [String] on_behalf_of_content_owner
|
2813
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2286
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2814
2287
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2815
2288
|
# associated with multiple content owners.
|
2816
2289
|
# @param [String] fields
|
2817
2290
|
# Selector specifying which fields to include in a partial response.
|
2818
2291
|
# @param [String] quota_user
|
2819
|
-
#
|
2820
|
-
# characters.
|
2821
|
-
# @param [String] user_ip
|
2822
|
-
# Deprecated. Please use quotaUser instead.
|
2292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2823
2294
|
# @param [Google::Apis::RequestOptions] options
|
2824
2295
|
# Request-specific options
|
2825
2296
|
#
|
@@ -2832,8 +2303,8 @@ module Google
|
|
2832
2303
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2833
2304
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2834
2305
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2835
|
-
def validate_validator(validate_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2836
|
-
command = make_simple_command(:post, 'validator', options)
|
2306
|
+
def validate_validator(validate_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2307
|
+
command = make_simple_command(:post, 'youtube/partner/v1/validator', options)
|
2837
2308
|
command.request_representation = Google::Apis::YoutubePartnerV1::ValidateRequest::Representation
|
2838
2309
|
command.request_object = validate_request_object
|
2839
2310
|
command.response_representation = Google::Apis::YoutubePartnerV1::ValidateResponse::Representation
|
@@ -2841,23 +2312,20 @@ module Google
|
|
2841
2312
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2842
2313
|
command.query['fields'] = fields unless fields.nil?
|
2843
2314
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2844
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2845
2315
|
execute_or_queue_command(command, &block)
|
2846
2316
|
end
|
2847
2317
|
|
2848
2318
|
# Validate a metadata file asynchronously.
|
2849
2319
|
# @param [Google::Apis::YoutubePartnerV1::ValidateAsyncRequest] validate_async_request_object
|
2850
2320
|
# @param [String] on_behalf_of_content_owner
|
2851
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2321
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2852
2322
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2853
2323
|
# associated with multiple content owners.
|
2854
2324
|
# @param [String] fields
|
2855
2325
|
# Selector specifying which fields to include in a partial response.
|
2856
2326
|
# @param [String] quota_user
|
2857
|
-
#
|
2858
|
-
# characters.
|
2859
|
-
# @param [String] user_ip
|
2860
|
-
# Deprecated. Please use quotaUser instead.
|
2327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2861
2329
|
# @param [Google::Apis::RequestOptions] options
|
2862
2330
|
# Request-specific options
|
2863
2331
|
#
|
@@ -2870,8 +2338,8 @@ module Google
|
|
2870
2338
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2871
2339
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2872
2340
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2873
|
-
def validate_validator_async(validate_async_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2874
|
-
command = make_simple_command(:post, 'validatorAsync', options)
|
2341
|
+
def validate_validator_async(validate_async_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2342
|
+
command = make_simple_command(:post, 'youtube/partner/v1/validatorAsync', options)
|
2875
2343
|
command.request_representation = Google::Apis::YoutubePartnerV1::ValidateAsyncRequest::Representation
|
2876
2344
|
command.request_object = validate_async_request_object
|
2877
2345
|
command.response_representation = Google::Apis::YoutubePartnerV1::ValidateAsyncResponse::Representation
|
@@ -2879,23 +2347,20 @@ module Google
|
|
2879
2347
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2880
2348
|
command.query['fields'] = fields unless fields.nil?
|
2881
2349
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2882
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2883
2350
|
execute_or_queue_command(command, &block)
|
2884
2351
|
end
|
2885
2352
|
|
2886
2353
|
# Get the asynchronous validation status.
|
2887
2354
|
# @param [Google::Apis::YoutubePartnerV1::ValidateStatusRequest] validate_status_request_object
|
2888
2355
|
# @param [String] on_behalf_of_content_owner
|
2889
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2356
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2890
2357
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2891
2358
|
# associated with multiple content owners.
|
2892
2359
|
# @param [String] fields
|
2893
2360
|
# Selector specifying which fields to include in a partial response.
|
2894
2361
|
# @param [String] quota_user
|
2895
|
-
#
|
2896
|
-
# characters.
|
2897
|
-
# @param [String] user_ip
|
2898
|
-
# Deprecated. Please use quotaUser instead.
|
2362
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2363
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2899
2364
|
# @param [Google::Apis::RequestOptions] options
|
2900
2365
|
# Request-specific options
|
2901
2366
|
#
|
@@ -2908,8 +2373,8 @@ module Google
|
|
2908
2373
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2909
2374
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2910
2375
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2911
|
-
def validate_validator_async_status(validate_status_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2912
|
-
command = make_simple_command(:post, 'validatorAsyncStatus', options)
|
2376
|
+
def validate_validator_async_status(validate_status_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2377
|
+
command = make_simple_command(:post, 'youtube/partner/v1/validatorAsyncStatus', options)
|
2913
2378
|
command.request_representation = Google::Apis::YoutubePartnerV1::ValidateStatusRequest::Representation
|
2914
2379
|
command.request_object = validate_status_request_object
|
2915
2380
|
command.response_representation = Google::Apis::YoutubePartnerV1::ValidateStatusResponse::Representation
|
@@ -2917,25 +2382,22 @@ module Google
|
|
2917
2382
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2918
2383
|
command.query['fields'] = fields unless fields.nil?
|
2919
2384
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2920
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2921
2385
|
execute_or_queue_command(command, &block)
|
2922
2386
|
end
|
2923
2387
|
|
2924
2388
|
# Retrieves advertising settings for the specified video.
|
2925
2389
|
# @param [String] video_id
|
2926
|
-
# The videoId parameter specifies the YouTube video ID of the video for which
|
2390
|
+
# The *videoId* parameter specifies the YouTube video ID of the video for which
|
2927
2391
|
# you are retrieving advertising settings.
|
2928
2392
|
# @param [String] on_behalf_of_content_owner
|
2929
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2393
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2930
2394
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2931
2395
|
# associated with multiple content owners.
|
2932
2396
|
# @param [String] fields
|
2933
2397
|
# Selector specifying which fields to include in a partial response.
|
2934
2398
|
# @param [String] quota_user
|
2935
|
-
#
|
2936
|
-
# characters.
|
2937
|
-
# @param [String] user_ip
|
2938
|
-
# Deprecated. Please use quotaUser instead.
|
2399
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2400
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2939
2401
|
# @param [Google::Apis::RequestOptions] options
|
2940
2402
|
# Request-specific options
|
2941
2403
|
#
|
@@ -2948,34 +2410,31 @@ module Google
|
|
2948
2410
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2949
2411
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2950
2412
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2951
|
-
def get_video_advertising_option(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2952
|
-
command = make_simple_command(:get, 'videoAdvertisingOptions/{videoId}', options)
|
2413
|
+
def get_video_advertising_option(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2414
|
+
command = make_simple_command(:get, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}', options)
|
2953
2415
|
command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation
|
2954
2416
|
command.response_class = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption
|
2955
2417
|
command.params['videoId'] = video_id unless video_id.nil?
|
2956
2418
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2957
2419
|
command.query['fields'] = fields unless fields.nil?
|
2958
2420
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2959
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
2960
2421
|
execute_or_queue_command(command, &block)
|
2961
2422
|
end
|
2962
2423
|
|
2963
2424
|
# Retrieves details about the types of allowed ads for a specified partner- or
|
2964
2425
|
# user-uploaded video.
|
2965
2426
|
# @param [String] video_id
|
2966
|
-
# The videoId parameter specifies the YouTube video ID of the video for which
|
2427
|
+
# The *videoId* parameter specifies the YouTube video ID of the video for which
|
2967
2428
|
# you are retrieving advertising options.
|
2968
2429
|
# @param [String] on_behalf_of_content_owner
|
2969
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2430
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
2970
2431
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
2971
2432
|
# associated with multiple content owners.
|
2972
2433
|
# @param [String] fields
|
2973
2434
|
# Selector specifying which fields to include in a partial response.
|
2974
2435
|
# @param [String] quota_user
|
2975
|
-
#
|
2976
|
-
# characters.
|
2977
|
-
# @param [String] user_ip
|
2978
|
-
# Deprecated. Please use quotaUser instead.
|
2436
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2437
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2979
2438
|
# @param [Google::Apis::RequestOptions] options
|
2980
2439
|
# Request-specific options
|
2981
2440
|
#
|
@@ -2988,35 +2447,31 @@ module Google
|
|
2988
2447
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2989
2448
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2990
2449
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2991
|
-
def get_video_advertising_option_enabled_ads(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
2992
|
-
command = make_simple_command(:get, 'videoAdvertisingOptions/{videoId}/getEnabledAds', options)
|
2450
|
+
def get_video_advertising_option_enabled_ads(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2451
|
+
command = make_simple_command(:get, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}/getEnabledAds', options)
|
2993
2452
|
command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse::Representation
|
2994
2453
|
command.response_class = Google::Apis::YoutubePartnerV1::VideoAdvertisingOptionGetEnabledAdsResponse
|
2995
2454
|
command.params['videoId'] = video_id unless video_id.nil?
|
2996
2455
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2997
2456
|
command.query['fields'] = fields unless fields.nil?
|
2998
2457
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2999
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3000
2458
|
execute_or_queue_command(command, &block)
|
3001
2459
|
end
|
3002
2460
|
|
3003
|
-
#
|
3004
|
-
# patch semantics.
|
2461
|
+
# Patches the advertising settings for the specified video.
|
3005
2462
|
# @param [String] video_id
|
3006
|
-
# The videoId parameter specifies the YouTube video ID of the video for which
|
2463
|
+
# The *videoId* parameter specifies the YouTube video ID of the video for which
|
3007
2464
|
# you are updating advertising settings.
|
3008
2465
|
# @param [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] video_advertising_option_object
|
3009
2466
|
# @param [String] on_behalf_of_content_owner
|
3010
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2467
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
3011
2468
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
3012
2469
|
# associated with multiple content owners.
|
3013
2470
|
# @param [String] fields
|
3014
2471
|
# Selector specifying which fields to include in a partial response.
|
3015
2472
|
# @param [String] quota_user
|
3016
|
-
#
|
3017
|
-
# characters.
|
3018
|
-
# @param [String] user_ip
|
3019
|
-
# Deprecated. Please use quotaUser instead.
|
2473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3020
2475
|
# @param [Google::Apis::RequestOptions] options
|
3021
2476
|
# Request-specific options
|
3022
2477
|
#
|
@@ -3029,8 +2484,8 @@ module Google
|
|
3029
2484
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3030
2485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3031
2486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3032
|
-
def patch_video_advertising_option(video_id, video_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
3033
|
-
command = make_simple_command(:patch, 'videoAdvertisingOptions/{videoId}', options)
|
2487
|
+
def patch_video_advertising_option(video_id, video_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2488
|
+
command = make_simple_command(:patch, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}', options)
|
3034
2489
|
command.request_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation
|
3035
2490
|
command.request_object = video_advertising_option_object
|
3036
2491
|
command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation
|
@@ -3039,26 +2494,23 @@ module Google
|
|
3039
2494
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3040
2495
|
command.query['fields'] = fields unless fields.nil?
|
3041
2496
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3042
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3043
2497
|
execute_or_queue_command(command, &block)
|
3044
2498
|
end
|
3045
2499
|
|
3046
2500
|
# Updates the advertising settings for the specified video.
|
3047
2501
|
# @param [String] video_id
|
3048
|
-
# The videoId parameter specifies the YouTube video ID of the video for which
|
2502
|
+
# The *videoId* parameter specifies the YouTube video ID of the video for which
|
3049
2503
|
# you are updating advertising settings.
|
3050
2504
|
# @param [Google::Apis::YoutubePartnerV1::VideoAdvertisingOption] video_advertising_option_object
|
3051
2505
|
# @param [String] on_behalf_of_content_owner
|
3052
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2506
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
3053
2507
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
3054
2508
|
# associated with multiple content owners.
|
3055
2509
|
# @param [String] fields
|
3056
2510
|
# Selector specifying which fields to include in a partial response.
|
3057
2511
|
# @param [String] quota_user
|
3058
|
-
#
|
3059
|
-
# characters.
|
3060
|
-
# @param [String] user_ip
|
3061
|
-
# Deprecated. Please use quotaUser instead.
|
2512
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2513
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3062
2514
|
# @param [Google::Apis::RequestOptions] options
|
3063
2515
|
# Request-specific options
|
3064
2516
|
#
|
@@ -3071,8 +2523,8 @@ module Google
|
|
3071
2523
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3072
2524
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3073
2525
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3074
|
-
def update_video_advertising_option(video_id, video_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
3075
|
-
command = make_simple_command(:put, 'videoAdvertisingOptions/{videoId}', options)
|
2526
|
+
def update_video_advertising_option(video_id, video_advertising_option_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2527
|
+
command = make_simple_command(:put, 'youtube/partner/v1/videoAdvertisingOptions/{videoId}', options)
|
3076
2528
|
command.request_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation
|
3077
2529
|
command.request_object = video_advertising_option_object
|
3078
2530
|
command.response_representation = Google::Apis::YoutubePartnerV1::VideoAdvertisingOption::Representation
|
@@ -3081,62 +2533,58 @@ module Google
|
|
3081
2533
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3082
2534
|
command.query['fields'] = fields unless fields.nil?
|
3083
2535
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3084
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3085
2536
|
execute_or_queue_command(command, &block)
|
3086
2537
|
end
|
3087
2538
|
|
3088
2539
|
# Removes a whitelisted channel for a content owner.
|
3089
2540
|
# @param [String] id
|
3090
|
-
# The id parameter specifies the YouTube channel ID of the channel being
|
3091
|
-
# from whitelist.
|
2541
|
+
# The *id* parameter specifies the YouTube channel ID of the channel being
|
2542
|
+
# removed from whitelist.
|
3092
2543
|
# @param [String] on_behalf_of_content_owner
|
3093
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2544
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
3094
2545
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
3095
2546
|
# associated with multiple content owners.
|
3096
2547
|
# @param [String] fields
|
3097
2548
|
# Selector specifying which fields to include in a partial response.
|
3098
2549
|
# @param [String] quota_user
|
3099
|
-
#
|
3100
|
-
# characters.
|
3101
|
-
# @param [String] user_ip
|
3102
|
-
# Deprecated. Please use quotaUser instead.
|
2550
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2551
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3103
2552
|
# @param [Google::Apis::RequestOptions] options
|
3104
2553
|
# Request-specific options
|
3105
2554
|
#
|
3106
2555
|
# @yield [result, err] Result & error if block supplied
|
3107
|
-
# @yieldparam result [
|
2556
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::Empty] parsed result object
|
3108
2557
|
# @yieldparam err [StandardError] error object if request failed
|
3109
2558
|
#
|
3110
|
-
# @return [
|
2559
|
+
# @return [Google::Apis::YoutubePartnerV1::Empty]
|
3111
2560
|
#
|
3112
2561
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3113
2562
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3114
2563
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3115
|
-
def delete_whitelist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
3116
|
-
command = make_simple_command(:delete, 'whitelists/{id}', options)
|
2564
|
+
def delete_whitelist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2565
|
+
command = make_simple_command(:delete, 'youtube/partner/v1/whitelists/{id}', options)
|
2566
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::Empty::Representation
|
2567
|
+
command.response_class = Google::Apis::YoutubePartnerV1::Empty
|
3117
2568
|
command.params['id'] = id unless id.nil?
|
3118
2569
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3119
2570
|
command.query['fields'] = fields unless fields.nil?
|
3120
2571
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3121
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3122
2572
|
execute_or_queue_command(command, &block)
|
3123
2573
|
end
|
3124
2574
|
|
3125
2575
|
# Retrieves a specific whitelisted channel by ID.
|
3126
2576
|
# @param [String] id
|
3127
|
-
# The id parameter specifies the YouTube channel ID of the whitelisted channel
|
2577
|
+
# The *id* parameter specifies the YouTube channel ID of the whitelisted channel
|
3128
2578
|
# being retrieved.
|
3129
2579
|
# @param [String] on_behalf_of_content_owner
|
3130
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2580
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
3131
2581
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
3132
2582
|
# associated with multiple content owners.
|
3133
2583
|
# @param [String] fields
|
3134
2584
|
# Selector specifying which fields to include in a partial response.
|
3135
2585
|
# @param [String] quota_user
|
3136
|
-
#
|
3137
|
-
# characters.
|
3138
|
-
# @param [String] user_ip
|
3139
|
-
# Deprecated. Please use quotaUser instead.
|
2586
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2587
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3140
2588
|
# @param [Google::Apis::RequestOptions] options
|
3141
2589
|
# Request-specific options
|
3142
2590
|
#
|
@@ -3149,15 +2597,14 @@ module Google
|
|
3149
2597
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3150
2598
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3151
2599
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3152
|
-
def get_whitelist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
3153
|
-
command = make_simple_command(:get, 'whitelists/{id}', options)
|
2600
|
+
def get_whitelist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2601
|
+
command = make_simple_command(:get, 'youtube/partner/v1/whitelists/{id}', options)
|
3154
2602
|
command.response_representation = Google::Apis::YoutubePartnerV1::Whitelist::Representation
|
3155
2603
|
command.response_class = Google::Apis::YoutubePartnerV1::Whitelist
|
3156
2604
|
command.params['id'] = id unless id.nil?
|
3157
2605
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3158
2606
|
command.query['fields'] = fields unless fields.nil?
|
3159
2607
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3160
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3161
2608
|
execute_or_queue_command(command, &block)
|
3162
2609
|
end
|
3163
2610
|
|
@@ -3167,16 +2614,14 @@ module Google
|
|
3167
2614
|
# channels.
|
3168
2615
|
# @param [Google::Apis::YoutubePartnerV1::Whitelist] whitelist_object
|
3169
2616
|
# @param [String] on_behalf_of_content_owner
|
3170
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2617
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
3171
2618
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
3172
2619
|
# associated with multiple content owners.
|
3173
2620
|
# @param [String] fields
|
3174
2621
|
# Selector specifying which fields to include in a partial response.
|
3175
2622
|
# @param [String] quota_user
|
3176
|
-
#
|
3177
|
-
# characters.
|
3178
|
-
# @param [String] user_ip
|
3179
|
-
# Deprecated. Please use quotaUser instead.
|
2623
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2624
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3180
2625
|
# @param [Google::Apis::RequestOptions] options
|
3181
2626
|
# Request-specific options
|
3182
2627
|
#
|
@@ -3189,8 +2634,8 @@ module Google
|
|
3189
2634
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3190
2635
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3191
2636
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3192
|
-
def insert_whitelist(whitelist_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil,
|
3193
|
-
command = make_simple_command(:post, 'whitelists', options)
|
2637
|
+
def insert_whitelist(whitelist_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2638
|
+
command = make_simple_command(:post, 'youtube/partner/v1/whitelists', options)
|
3194
2639
|
command.request_representation = Google::Apis::YoutubePartnerV1::Whitelist::Representation
|
3195
2640
|
command.request_object = whitelist_object
|
3196
2641
|
command.response_representation = Google::Apis::YoutubePartnerV1::Whitelist::Representation
|
@@ -3198,29 +2643,26 @@ module Google
|
|
3198
2643
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
3199
2644
|
command.query['fields'] = fields unless fields.nil?
|
3200
2645
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3201
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3202
2646
|
execute_or_queue_command(command, &block)
|
3203
2647
|
end
|
3204
2648
|
|
3205
2649
|
# Retrieves a list of whitelisted channels for a content owner.
|
3206
2650
|
# @param [String] id
|
3207
|
-
# The id parameter specifies a comma-separated list of YouTube channel IDs
|
3208
|
-
# identify the whitelisted channels you want to retrieve.
|
2651
|
+
# The *id* parameter specifies a comma-separated list of YouTube channel IDs
|
2652
|
+
# that identify the whitelisted channels you want to retrieve.
|
3209
2653
|
# @param [String] on_behalf_of_content_owner
|
3210
|
-
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2654
|
+
# The *onBehalfOfContentOwner* parameter identifies the content owner that the
|
3211
2655
|
# user is acting on behalf of. This parameter supports users whose accounts are
|
3212
2656
|
# associated with multiple content owners.
|
3213
2657
|
# @param [String] page_token
|
3214
|
-
# The pageToken parameter specifies a token that identifies a particular page
|
3215
|
-
# results to return. Set this parameter to the value of the nextPageToken
|
3216
|
-
# from the previous API response to retrieve the next page of results.
|
2658
|
+
# The *pageToken* parameter specifies a token that identifies a particular page
|
2659
|
+
# of results to return. Set this parameter to the value of the nextPageToken
|
2660
|
+
# value from the previous API response to retrieve the next page of results.
|
3217
2661
|
# @param [String] fields
|
3218
2662
|
# Selector specifying which fields to include in a partial response.
|
3219
2663
|
# @param [String] quota_user
|
3220
|
-
#
|
3221
|
-
# characters.
|
3222
|
-
# @param [String] user_ip
|
3223
|
-
# Deprecated. Please use quotaUser instead.
|
2664
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2665
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3224
2666
|
# @param [Google::Apis::RequestOptions] options
|
3225
2667
|
# Request-specific options
|
3226
2668
|
#
|
@@ -3233,8 +2675,8 @@ module Google
|
|
3233
2675
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3234
2676
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3235
2677
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3236
|
-
def list_whitelists(id: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil,
|
3237
|
-
command = make_simple_command(:get, 'whitelists', options)
|
2678
|
+
def list_whitelists(id: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2679
|
+
command = make_simple_command(:get, 'youtube/partner/v1/whitelists', options)
|
3238
2680
|
command.response_representation = Google::Apis::YoutubePartnerV1::WhitelistListResponse::Representation
|
3239
2681
|
command.response_class = Google::Apis::YoutubePartnerV1::WhitelistListResponse
|
3240
2682
|
command.query['id'] = id unless id.nil?
|
@@ -3242,7 +2684,6 @@ module Google
|
|
3242
2684
|
command.query['pageToken'] = page_token unless page_token.nil?
|
3243
2685
|
command.query['fields'] = fields unless fields.nil?
|
3244
2686
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3245
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3246
2687
|
execute_or_queue_command(command, &block)
|
3247
2688
|
end
|
3248
2689
|
|
@@ -3251,7 +2692,6 @@ module Google
|
|
3251
2692
|
def apply_command_defaults(command)
|
3252
2693
|
command.query['key'] = key unless key.nil?
|
3253
2694
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3254
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
3255
2695
|
end
|
3256
2696
|
end
|
3257
2697
|
end
|