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