google-api-client 0.20.1 → 0.21.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 +140 -0
- data/README.md +3 -12
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
- data/generated/google/apis/admin_directory_v1.rb +3 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
- data/generated/google/apis/admin_directory_v1/service.rb +363 -577
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +21 -35
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +117 -195
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v2_4/service.rb +21 -35
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +32 -60
- data/generated/google/apis/analytics_v3/representations.rb +8 -12
- data/generated/google/apis/analytics_v3/service.rb +261 -435
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
- data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
- data/generated/google/apis/androidpublisher_v3.rb +34 -0
- data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +6 -10
- data/generated/google/apis/appsmarket_v2/service.rb +12 -20
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +18 -30
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +67 -9
- data/generated/google/apis/bigquery_v2/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2/service.rb +69 -115
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/blogger_v2/service.rb +30 -50
- data/generated/google/apis/blogger_v3/service.rb +102 -170
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +156 -260
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +114 -190
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +6 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +18 -30
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +0 -69
- data/generated/google/apis/classroom_v1/representations.rb +0 -31
- data/generated/google/apis/classroom_v1/service.rb +0 -88
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
- data/generated/google/apis/cloudiot_v1/service.rb +398 -1
- data/generated/google/apis/cloudkms_v1.rb +2 -2
- data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
- data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
- data/generated/google/apis/composer_v1beta1/service.rb +462 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
- data/generated/google/apis/compute_alpha/representations.rb +1063 -335
- data/generated/google/apis/compute_alpha/service.rb +3532 -3368
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +150 -53
- data/generated/google/apis/compute_beta/representations.rb +23 -0
- data/generated/google/apis/compute_beta/service.rb +1269 -2077
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +46 -43
- data/generated/google/apis/compute_v1/service.rb +1022 -1666
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +20 -15
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +33 -31
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +186 -14
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/container_v1beta1/service.rb +111 -31
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +173 -8
- data/generated/google/apis/content_v2/representations.rb +71 -0
- data/generated/google/apis/content_v2/service.rb +246 -410
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
- data/generated/google/apis/content_v2sandbox/service.rb +63 -105
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +9 -15
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +6 -6
- data/generated/google/apis/dataproc_v1/service.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
- data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
- data/generated/google/apis/datastore_v1.rb +2 -2
- data/generated/google/apis/datastore_v1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +2 -2
- data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
- data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
- data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
- data/generated/google/apis/discovery_v1/service.rb +9 -15
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +116 -1572
- data/generated/google/apis/dlp_v2/representations.rb +673 -1405
- data/generated/google/apis/dlp_v2/service.rb +24 -24
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +49 -81
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2/service.rb +49 -81
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dns_v2beta1/service.rb +49 -81
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +205 -341
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +120 -200
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +2 -2
- data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +45 -75
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1/service.rb +99 -165
- data/generated/google/apis/fusiontables_v2/service.rb +105 -175
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +84 -140
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +162 -270
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +41 -7
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
- data/generated/google/apis/gmail_v1/service.rb +189 -315
- data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
- data/generated/google/apis/groupssettings_v1/service.rb +12 -20
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +29 -7
- data/generated/google/apis/iam_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
- data/generated/google/apis/jobs_v2.rb +38 -0
- data/generated/google/apis/jobs_v2/classes.rb +3378 -0
- data/generated/google/apis/jobs_v2/representations.rb +1067 -0
- data/generated/google/apis/jobs_v2/service.rb +754 -0
- data/generated/google/apis/licensing_v1/service.rb +24 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +55 -5
- data/generated/google/apis/logging_v2/representations.rb +16 -0
- data/generated/google/apis/logging_v2/service.rb +6 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
- data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
- data/generated/google/apis/logging_v2beta1/service.rb +6 -4
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +75 -125
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +65 -28
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +27 -45
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +15 -25
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
- data/generated/google/apis/photoslibrary_v1.rb +49 -0
- data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
- data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
- data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +63 -105
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +30 -50
- data/generated/google/apis/pubsub_v1.rb +2 -2
- data/generated/google/apis/pubsub_v1/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
- data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
- data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
- data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
- data/generated/google/apis/redis_v1beta1/service.rb +426 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
- data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
- data/generated/google/apis/reseller_v1/service.rb +54 -90
- data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
- data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
- data/generated/google/apis/runtimeconfig_v1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/script_v1.rb +8 -2
- data/generated/google/apis/script_v1/classes.rb +3 -3
- data/generated/google/apis/script_v1/service.rb +8 -2
- data/generated/google/apis/servicebroker_v1.rb +36 -0
- data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
- data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
- data/generated/google/apis/servicebroker_v1/service.rb +168 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
- data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
- data/generated/google/apis/servicecontrol_v1.rb +2 -2
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +2 -2
- data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +421 -0
- data/generated/google/apis/sheets_v4/representations.rb +120 -0
- data/generated/google/apis/site_verification_v1/service.rb +24 -40
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +6 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +39 -12
- data/generated/google/apis/spanner_v1/service.rb +2 -2
- data/generated/google/apis/spectrum_v1explorer.rb +1 -1
- data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +12 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
- data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -6
- data/generated/google/apis/storage_v1/service.rb +144 -240
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +75 -125
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +105 -175
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +19 -122
- data/generated/google/apis/surveys_v2/representations.rb +0 -38
- data/generated/google/apis/surveys_v2/service.rb +27 -157
- data/generated/google/apis/tagmanager_v1/service.rb +153 -255
- data/generated/google/apis/tagmanager_v2/service.rb +222 -370
- data/generated/google/apis/tasks_v1/service.rb +45 -75
- data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/urlshortener_v1/service.rb +12 -20
- data/generated/google/apis/vault_v1.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +34 -0
- data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
- data/generated/google/apis/videointelligence_v1/service.rb +246 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
- data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
- data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/webfonts_v1/service.rb +6 -10
- data/generated/google/apis/webmasters_v3/service.rb +42 -70
- data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v2.rb +46 -0
- data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
- data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
- data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -168
- data/generated/google/apis/youtube_v3/representations.rb +0 -62
- data/generated/google/apis/youtube_v3/service.rb +216 -415
- data/lib/google/apis/generator/helpers.rb +3 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +50 -38
- data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
- data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
- data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
- data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
- data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
- data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
- data/generated/google/apis/prediction_v1_2.rb +0 -44
- data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
- data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
- data/generated/google/apis/prediction_v1_2/service.rb +0 -287
- data/generated/google/apis/prediction_v1_3.rb +0 -44
- data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
- data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
- data/generated/google/apis/prediction_v1_3/service.rb +0 -284
- data/generated/google/apis/prediction_v1_4.rb +0 -44
- data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
- data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
- data/generated/google/apis/prediction_v1_4/service.rb +0 -284
- data/generated/google/apis/prediction_v1_5.rb +0 -44
- data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
- data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
- data/generated/google/apis/prediction_v1_5/service.rb +0 -357
- data/generated/google/apis/prediction_v1_6.rb +0 -47
- data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
- data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
- data/generated/google/apis/prediction_v1_6/service.rb +0 -381
- data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
- data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
- data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -0,0 +1,232 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module YoutubeAnalyticsV2
|
24
|
+
|
25
|
+
class EmptyResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ErrorProto
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Errors
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Group
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GroupContentDetails
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GroupItem
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GroupItemResource
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GroupSnippet
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListGroupItemsResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListGroupsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class QueryResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ResultTableColumnHeader
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class EmptyResponse
|
98
|
+
# @private
|
99
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
+
property :errors, as: 'errors', class: Google::Apis::YoutubeAnalyticsV2::Errors, decorator: Google::Apis::YoutubeAnalyticsV2::Errors::Representation
|
101
|
+
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class ErrorProto
|
106
|
+
# @private
|
107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
108
|
+
collection :argument, as: 'argument'
|
109
|
+
property :code, as: 'code'
|
110
|
+
property :debug_info, as: 'debugInfo'
|
111
|
+
property :domain, as: 'domain'
|
112
|
+
property :external_error_message, as: 'externalErrorMessage'
|
113
|
+
property :location, as: 'location'
|
114
|
+
property :location_type, as: 'locationType'
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
class Errors
|
119
|
+
# @private
|
120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
121
|
+
property :code, as: 'code'
|
122
|
+
collection :error, as: 'error', class: Google::Apis::YoutubeAnalyticsV2::ErrorProto, decorator: Google::Apis::YoutubeAnalyticsV2::ErrorProto::Representation
|
123
|
+
|
124
|
+
property :request_id, as: 'requestId'
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
class Group
|
129
|
+
# @private
|
130
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
131
|
+
property :content_details, as: 'contentDetails', class: Google::Apis::YoutubeAnalyticsV2::GroupContentDetails, decorator: Google::Apis::YoutubeAnalyticsV2::GroupContentDetails::Representation
|
132
|
+
|
133
|
+
property :errors, as: 'errors', class: Google::Apis::YoutubeAnalyticsV2::Errors, decorator: Google::Apis::YoutubeAnalyticsV2::Errors::Representation
|
134
|
+
|
135
|
+
property :etag, as: 'etag'
|
136
|
+
property :id, as: 'id'
|
137
|
+
property :kind, as: 'kind'
|
138
|
+
property :snippet, as: 'snippet', class: Google::Apis::YoutubeAnalyticsV2::GroupSnippet, decorator: Google::Apis::YoutubeAnalyticsV2::GroupSnippet::Representation
|
139
|
+
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
class GroupContentDetails
|
144
|
+
# @private
|
145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
146
|
+
property :item_count, :numeric_string => true, as: 'itemCount'
|
147
|
+
property :item_type, as: 'itemType'
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
class GroupItem
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
property :errors, as: 'errors', class: Google::Apis::YoutubeAnalyticsV2::Errors, decorator: Google::Apis::YoutubeAnalyticsV2::Errors::Representation
|
155
|
+
|
156
|
+
property :etag, as: 'etag'
|
157
|
+
property :group_id, as: 'groupId'
|
158
|
+
property :id, as: 'id'
|
159
|
+
property :kind, as: 'kind'
|
160
|
+
property :resource, as: 'resource', class: Google::Apis::YoutubeAnalyticsV2::GroupItemResource, decorator: Google::Apis::YoutubeAnalyticsV2::GroupItemResource::Representation
|
161
|
+
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class GroupItemResource
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :id, as: 'id'
|
169
|
+
property :kind, as: 'kind'
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
class GroupSnippet
|
174
|
+
# @private
|
175
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
176
|
+
property :published_at, as: 'publishedAt'
|
177
|
+
property :title, as: 'title'
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
class ListGroupItemsResponse
|
182
|
+
# @private
|
183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
+
property :errors, as: 'errors', class: Google::Apis::YoutubeAnalyticsV2::Errors, decorator: Google::Apis::YoutubeAnalyticsV2::Errors::Representation
|
185
|
+
|
186
|
+
property :etag, as: 'etag'
|
187
|
+
collection :items, as: 'items', class: Google::Apis::YoutubeAnalyticsV2::GroupItem, decorator: Google::Apis::YoutubeAnalyticsV2::GroupItem::Representation
|
188
|
+
|
189
|
+
property :kind, as: 'kind'
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class ListGroupsResponse
|
194
|
+
# @private
|
195
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
+
property :errors, as: 'errors', class: Google::Apis::YoutubeAnalyticsV2::Errors, decorator: Google::Apis::YoutubeAnalyticsV2::Errors::Representation
|
197
|
+
|
198
|
+
property :etag, as: 'etag'
|
199
|
+
collection :items, as: 'items', class: Google::Apis::YoutubeAnalyticsV2::Group, decorator: Google::Apis::YoutubeAnalyticsV2::Group::Representation
|
200
|
+
|
201
|
+
property :kind, as: 'kind'
|
202
|
+
property :next_page_token, as: 'nextPageToken'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
class QueryResponse
|
207
|
+
# @private
|
208
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
+
collection :column_headers, as: 'columnHeaders', class: Google::Apis::YoutubeAnalyticsV2::ResultTableColumnHeader, decorator: Google::Apis::YoutubeAnalyticsV2::ResultTableColumnHeader::Representation
|
210
|
+
|
211
|
+
property :errors, as: 'errors', class: Google::Apis::YoutubeAnalyticsV2::Errors, decorator: Google::Apis::YoutubeAnalyticsV2::Errors::Representation
|
212
|
+
|
213
|
+
property :kind, as: 'kind'
|
214
|
+
collection :rows, as: 'rows', :class => Array do
|
215
|
+
include Representable::JSON::Collection
|
216
|
+
items
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class ResultTableColumnHeader
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
property :column_type, as: 'columnType'
|
226
|
+
property :data_type, as: 'dataType'
|
227
|
+
property :name, as: 'name'
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
@@ -0,0 +1,478 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module YoutubeAnalyticsV2
|
23
|
+
# YouTube Analytics API
|
24
|
+
#
|
25
|
+
# Retrieves your YouTube Analytics data.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/youtube_analytics_v2'
|
29
|
+
#
|
30
|
+
# YoutubeAnalytics = Google::Apis::YoutubeAnalyticsV2 # Alias the module
|
31
|
+
# service = YoutubeAnalytics::YouTubeAnalyticsService.new
|
32
|
+
#
|
33
|
+
# @see http://developers.google.com/youtube/analytics
|
34
|
+
class YouTubeAnalyticsService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://youtubeanalytics.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Removes an item from a group.
|
51
|
+
# @param [String] id
|
52
|
+
# The `id` parameter specifies the YouTube group item ID of the group item
|
53
|
+
# that is being deleted.
|
54
|
+
# @param [String] on_behalf_of_content_owner
|
55
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
56
|
+
# This parameter is intended exclusively for YouTube content partners that
|
57
|
+
# own and manage many different YouTube channels.
|
58
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
59
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
60
|
+
# of the content owner specified in the parameter value. It allows content
|
61
|
+
# owners to authenticate once and get access to all their video and channel
|
62
|
+
# data, without having to provide authentication credentials for each
|
63
|
+
# individual channel. The account that the user authenticates with must be
|
64
|
+
# linked to the specified YouTube content owner.
|
65
|
+
# @param [String] fields
|
66
|
+
# Selector specifying which fields to include in a partial response.
|
67
|
+
# @param [String] quota_user
|
68
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
69
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
70
|
+
# @param [Google::Apis::RequestOptions] options
|
71
|
+
# Request-specific options
|
72
|
+
#
|
73
|
+
# @yield [result, err] Result & error if block supplied
|
74
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::EmptyResponse] parsed result object
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
76
|
+
#
|
77
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::EmptyResponse]
|
78
|
+
#
|
79
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
+
def delete_group_item(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
83
|
+
command = make_simple_command(:delete, 'v2/groupItems', options)
|
84
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::EmptyResponse::Representation
|
85
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::EmptyResponse
|
86
|
+
command.query['id'] = id unless id.nil?
|
87
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Creates a group item.
|
94
|
+
# @param [Google::Apis::YoutubeAnalyticsV2::GroupItem] group_item_object
|
95
|
+
# @param [String] on_behalf_of_content_owner
|
96
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
97
|
+
# This parameter is intended exclusively for YouTube content partners that
|
98
|
+
# own and manage many different YouTube channels.
|
99
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
100
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
101
|
+
# of the content owner specified in the parameter value. It allows content
|
102
|
+
# owners to authenticate once and get access to all their video and channel
|
103
|
+
# data, without having to provide authentication credentials for each
|
104
|
+
# individual channel. The account that the user authenticates with must be
|
105
|
+
# linked to the specified YouTube content owner.
|
106
|
+
# @param [String] fields
|
107
|
+
# Selector specifying which fields to include in a partial response.
|
108
|
+
# @param [String] quota_user
|
109
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
110
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
111
|
+
# @param [Google::Apis::RequestOptions] options
|
112
|
+
# Request-specific options
|
113
|
+
#
|
114
|
+
# @yield [result, err] Result & error if block supplied
|
115
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::GroupItem] parsed result object
|
116
|
+
# @yieldparam err [StandardError] error object if request failed
|
117
|
+
#
|
118
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::GroupItem]
|
119
|
+
#
|
120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
123
|
+
def insert_group_item(group_item_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
124
|
+
command = make_simple_command(:post, 'v2/groupItems', options)
|
125
|
+
command.request_representation = Google::Apis::YoutubeAnalyticsV2::GroupItem::Representation
|
126
|
+
command.request_object = group_item_object
|
127
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::GroupItem::Representation
|
128
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::GroupItem
|
129
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
130
|
+
command.query['fields'] = fields unless fields.nil?
|
131
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
132
|
+
execute_or_queue_command(command, &block)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Returns a collection of group items that match the API request parameters.
|
136
|
+
# @param [String] group_id
|
137
|
+
# The `groupId` parameter specifies the unique ID of the group for which you
|
138
|
+
# want to retrieve group items.
|
139
|
+
# @param [String] on_behalf_of_content_owner
|
140
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
141
|
+
# This parameter is intended exclusively for YouTube content partners that
|
142
|
+
# own and manage many different YouTube channels.
|
143
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
144
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
145
|
+
# of the content owner specified in the parameter value. It allows content
|
146
|
+
# owners to authenticate once and get access to all their video and channel
|
147
|
+
# data, without having to provide authentication credentials for each
|
148
|
+
# individual channel. The account that the user authenticates with must be
|
149
|
+
# linked to the specified YouTube content owner.
|
150
|
+
# @param [String] fields
|
151
|
+
# Selector specifying which fields to include in a partial response.
|
152
|
+
# @param [String] quota_user
|
153
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
154
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
155
|
+
# @param [Google::Apis::RequestOptions] options
|
156
|
+
# Request-specific options
|
157
|
+
#
|
158
|
+
# @yield [result, err] Result & error if block supplied
|
159
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::ListGroupItemsResponse] parsed result object
|
160
|
+
# @yieldparam err [StandardError] error object if request failed
|
161
|
+
#
|
162
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::ListGroupItemsResponse]
|
163
|
+
#
|
164
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
165
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
166
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
167
|
+
def list_group_items(group_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
168
|
+
command = make_simple_command(:get, 'v2/groupItems', options)
|
169
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::ListGroupItemsResponse::Representation
|
170
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::ListGroupItemsResponse
|
171
|
+
command.query['groupId'] = group_id unless group_id.nil?
|
172
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
173
|
+
command.query['fields'] = fields unless fields.nil?
|
174
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
175
|
+
execute_or_queue_command(command, &block)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Deletes a group.
|
179
|
+
# @param [String] id
|
180
|
+
# The `id` parameter specifies the YouTube group ID of the group that is
|
181
|
+
# being deleted.
|
182
|
+
# @param [String] on_behalf_of_content_owner
|
183
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
184
|
+
# This parameter is intended exclusively for YouTube content partners that
|
185
|
+
# own and manage many different YouTube channels.
|
186
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
187
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
188
|
+
# of the content owner specified in the parameter value. It allows content
|
189
|
+
# owners to authenticate once and get access to all their video and channel
|
190
|
+
# data, without having to provide authentication credentials for each
|
191
|
+
# individual channel. The account that the user authenticates with must be
|
192
|
+
# linked to the specified YouTube content owner.
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
195
|
+
# @param [String] quota_user
|
196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
198
|
+
# @param [Google::Apis::RequestOptions] options
|
199
|
+
# Request-specific options
|
200
|
+
#
|
201
|
+
# @yield [result, err] Result & error if block supplied
|
202
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::EmptyResponse] parsed result object
|
203
|
+
# @yieldparam err [StandardError] error object if request failed
|
204
|
+
#
|
205
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::EmptyResponse]
|
206
|
+
#
|
207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
+
def delete_group(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:delete, 'v2/groups', options)
|
212
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::EmptyResponse::Representation
|
213
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::EmptyResponse
|
214
|
+
command.query['id'] = id unless id.nil?
|
215
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
216
|
+
command.query['fields'] = fields unless fields.nil?
|
217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
218
|
+
execute_or_queue_command(command, &block)
|
219
|
+
end
|
220
|
+
|
221
|
+
# Creates a group.
|
222
|
+
# @param [Google::Apis::YoutubeAnalyticsV2::Group] group_object
|
223
|
+
# @param [String] on_behalf_of_content_owner
|
224
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
225
|
+
# This parameter is intended exclusively for YouTube content partners that
|
226
|
+
# own and manage many different YouTube channels.
|
227
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
228
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
229
|
+
# of the content owner specified in the parameter value. It allows content
|
230
|
+
# owners to authenticate once and get access to all their video and channel
|
231
|
+
# data, without having to provide authentication credentials for each
|
232
|
+
# individual channel. The account that the user authenticates with must be
|
233
|
+
# linked to the specified YouTube content owner.
|
234
|
+
# @param [String] fields
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
236
|
+
# @param [String] quota_user
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
240
|
+
# Request-specific options
|
241
|
+
#
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
243
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::Group] parsed result object
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
245
|
+
#
|
246
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::Group]
|
247
|
+
#
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
+
def insert_group(group_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
252
|
+
command = make_simple_command(:post, 'v2/groups', options)
|
253
|
+
command.request_representation = Google::Apis::YoutubeAnalyticsV2::Group::Representation
|
254
|
+
command.request_object = group_object
|
255
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::Group::Representation
|
256
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::Group
|
257
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
258
|
+
command.query['fields'] = fields unless fields.nil?
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
260
|
+
execute_or_queue_command(command, &block)
|
261
|
+
end
|
262
|
+
|
263
|
+
# Returns a collection of groups that match the API request parameters. For
|
264
|
+
# example, you can retrieve all groups that the authenticated user owns,
|
265
|
+
# or you can retrieve one or more groups by their unique IDs.
|
266
|
+
# @param [String] id
|
267
|
+
# The `id` parameter specifies a comma-separated list of the YouTube group
|
268
|
+
# ID(s) for the resource(s) that are being retrieved. Each group must be
|
269
|
+
# owned by the authenticated user. In a `group` resource, the `id` property
|
270
|
+
# specifies the group's YouTube group ID.
|
271
|
+
# Note that if you do not specify a value for the `id` parameter, then you
|
272
|
+
# must set the `mine` parameter to `true`.
|
273
|
+
# @param [Boolean] mine
|
274
|
+
# This parameter can only be used in a properly authorized request. Set this
|
275
|
+
# parameter's value to true to retrieve all groups owned by the authenticated
|
276
|
+
# user.
|
277
|
+
# @param [String] on_behalf_of_content_owner
|
278
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
279
|
+
# This parameter is intended exclusively for YouTube content partners that
|
280
|
+
# own and manage many different YouTube channels.
|
281
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
282
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
283
|
+
# of the content owner specified in the parameter value. It allows content
|
284
|
+
# owners to authenticate once and get access to all their video and channel
|
285
|
+
# data, without having to provide authentication credentials for each
|
286
|
+
# individual channel. The account that the user authenticates with must be
|
287
|
+
# linked to the specified YouTube content owner.
|
288
|
+
# @param [String] page_token
|
289
|
+
# The `pageToken` parameter identifies a specific page in the result set that
|
290
|
+
# should be returned. In an API response, the `nextPageToken` property
|
291
|
+
# identifies the next page that can be retrieved.
|
292
|
+
# @param [String] fields
|
293
|
+
# Selector specifying which fields to include in a partial response.
|
294
|
+
# @param [String] quota_user
|
295
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
296
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
297
|
+
# @param [Google::Apis::RequestOptions] options
|
298
|
+
# Request-specific options
|
299
|
+
#
|
300
|
+
# @yield [result, err] Result & error if block supplied
|
301
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::ListGroupsResponse] parsed result object
|
302
|
+
# @yieldparam err [StandardError] error object if request failed
|
303
|
+
#
|
304
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::ListGroupsResponse]
|
305
|
+
#
|
306
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
307
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
308
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
309
|
+
def list_groups(id: nil, mine: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
310
|
+
command = make_simple_command(:get, 'v2/groups', options)
|
311
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::ListGroupsResponse::Representation
|
312
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::ListGroupsResponse
|
313
|
+
command.query['id'] = id unless id.nil?
|
314
|
+
command.query['mine'] = mine unless mine.nil?
|
315
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
316
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
317
|
+
command.query['fields'] = fields unless fields.nil?
|
318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
319
|
+
execute_or_queue_command(command, &block)
|
320
|
+
end
|
321
|
+
|
322
|
+
# Modifies a group. For example, you could change a group's title.
|
323
|
+
# @param [Google::Apis::YoutubeAnalyticsV2::Group] group_object
|
324
|
+
# @param [String] on_behalf_of_content_owner
|
325
|
+
# This parameter can only be used in a properly authorized request. **Note:**
|
326
|
+
# This parameter is intended exclusively for YouTube content partners that
|
327
|
+
# own and manage many different YouTube channels.
|
328
|
+
# The `onBehalfOfContentOwner` parameter indicates that the request's
|
329
|
+
# authorization credentials identify a YouTube user who is acting on behalf
|
330
|
+
# of the content owner specified in the parameter value. It allows content
|
331
|
+
# owners to authenticate once and get access to all their video and channel
|
332
|
+
# data, without having to provide authentication credentials for each
|
333
|
+
# individual channel. The account that the user authenticates with must be
|
334
|
+
# linked to the specified YouTube content owner.
|
335
|
+
# @param [String] fields
|
336
|
+
# Selector specifying which fields to include in a partial response.
|
337
|
+
# @param [String] quota_user
|
338
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
339
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
340
|
+
# @param [Google::Apis::RequestOptions] options
|
341
|
+
# Request-specific options
|
342
|
+
#
|
343
|
+
# @yield [result, err] Result & error if block supplied
|
344
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::Group] parsed result object
|
345
|
+
# @yieldparam err [StandardError] error object if request failed
|
346
|
+
#
|
347
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::Group]
|
348
|
+
#
|
349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
352
|
+
def update_group(group_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
|
353
|
+
command = make_simple_command(:put, 'v2/groups', options)
|
354
|
+
command.request_representation = Google::Apis::YoutubeAnalyticsV2::Group::Representation
|
355
|
+
command.request_object = group_object
|
356
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::Group::Representation
|
357
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::Group
|
358
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
359
|
+
command.query['fields'] = fields unless fields.nil?
|
360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
|
+
execute_or_queue_command(command, &block)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Retrieve your YouTube Analytics reports.
|
365
|
+
# @param [String] currency
|
366
|
+
# The currency to which financial metrics should be converted. The default is
|
367
|
+
# US Dollar (USD). If the result contains no financial metrics, this flag
|
368
|
+
# will be ignored. Responds with an error if the specified currency is not
|
369
|
+
# recognized.",
|
370
|
+
# pattern: [A-Z]`3`
|
371
|
+
# @param [String] dimensions
|
372
|
+
# A comma-separated list of YouTube Analytics dimensions, such as `views` or
|
373
|
+
# `ageGroup,gender`. See the [Available
|
374
|
+
# Reports](/youtube/analytics/v2/available_reports) document for a list of
|
375
|
+
# the reports that you can retrieve and the dimensions used for those
|
376
|
+
# reports. Also see the [Dimensions](/youtube/analytics/v2/dimsmets/dims)
|
377
|
+
# document for definitions of those dimensions."
|
378
|
+
# pattern: [0-9a-zA-Z,]+
|
379
|
+
# @param [String] end_date
|
380
|
+
# The end date for fetching YouTube Analytics data. The value should be in
|
381
|
+
# `YYYY-MM-DD` format.
|
382
|
+
# required: true, pattern: [0-9]`4`-[0-9]`2`-[0-9]`2`
|
383
|
+
# @param [String] filters
|
384
|
+
# A list of filters that should be applied when retrieving YouTube Analytics
|
385
|
+
# data. The [Available Reports](/youtube/analytics/v2/available_reports)
|
386
|
+
# document identifies the dimensions that can be used to filter each report,
|
387
|
+
# and the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document defines
|
388
|
+
# those dimensions. If a request uses multiple filters, join them together
|
389
|
+
# with a semicolon (`;`), and the returned result table will satisfy both
|
390
|
+
# filters. For example, a filters parameter value of
|
391
|
+
# `video==dMH0bHeiRNg;country==IT` restricts the result set to include data
|
392
|
+
# for the given video in Italy.",
|
393
|
+
# @param [String] ids
|
394
|
+
# Identifies the YouTube channel or content owner for which you are
|
395
|
+
# retrieving YouTube Analytics data.
|
396
|
+
# - To request data for a YouTube user, set the `ids` parameter value to
|
397
|
+
# `channel==CHANNEL_ID`, where `CHANNEL_ID` specifies the unique YouTube
|
398
|
+
# channel ID.
|
399
|
+
# - To request data for a YouTube CMS content owner, set the `ids` parameter
|
400
|
+
# value to `contentOwner==OWNER_NAME`, where `OWNER_NAME` is the CMS name
|
401
|
+
# of the content owner.
|
402
|
+
# required: true, pattern: [a-zA-Z]+==[a-zA-Z0-9_+-]+
|
403
|
+
# @param [Boolean] include_historical_channel_data
|
404
|
+
# If set to true historical data (i.e. channel data from before the linking
|
405
|
+
# of the channel to the content owner) will be retrieved.",
|
406
|
+
# @param [Fixnum] max_results
|
407
|
+
# The maximum number of rows to include in the response.",
|
408
|
+
# minValue: 1
|
409
|
+
# @param [String] metrics
|
410
|
+
# A comma-separated list of YouTube Analytics metrics, such as `views` or
|
411
|
+
# `likes,dislikes`. See the
|
412
|
+
# [Available Reports](/youtube/analytics/v2/available_reports) document for
|
413
|
+
# a list of the reports that you can retrieve and the metrics
|
414
|
+
# available in each report, and see the
|
415
|
+
# [Metrics](/youtube/analytics/v2/dimsmets/mets) document for definitions of
|
416
|
+
# those metrics.
|
417
|
+
# required: true, pattern: [0-9a-zA-Z,]+
|
418
|
+
# @param [String] sort
|
419
|
+
# A comma-separated list of dimensions or metrics that determine the sort
|
420
|
+
# order for YouTube Analytics data. By default the sort order is ascending.
|
421
|
+
# The '`-`' prefix causes descending sort order.",
|
422
|
+
# pattern: [-0-9a-zA-Z,]+
|
423
|
+
# @param [String] start_date
|
424
|
+
# The start date for fetching YouTube Analytics data. The value should be in
|
425
|
+
# `YYYY-MM-DD` format.
|
426
|
+
# required: true, pattern: "[0-9]`4`-[0-9]`2`-[0-9]`2`
|
427
|
+
# @param [Fixnum] start_index
|
428
|
+
# An index of the first entity to retrieve. Use this parameter as a
|
429
|
+
# pagination mechanism along with the max-results parameter (one-based,
|
430
|
+
# inclusive).",
|
431
|
+
# minValue: 1
|
432
|
+
# @param [String] fields
|
433
|
+
# Selector specifying which fields to include in a partial response.
|
434
|
+
# @param [String] quota_user
|
435
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
436
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
437
|
+
# @param [Google::Apis::RequestOptions] options
|
438
|
+
# Request-specific options
|
439
|
+
#
|
440
|
+
# @yield [result, err] Result & error if block supplied
|
441
|
+
# @yieldparam result [Google::Apis::YoutubeAnalyticsV2::QueryResponse] parsed result object
|
442
|
+
# @yieldparam err [StandardError] error object if request failed
|
443
|
+
#
|
444
|
+
# @return [Google::Apis::YoutubeAnalyticsV2::QueryResponse]
|
445
|
+
#
|
446
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
447
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
448
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
449
|
+
def query_report(currency: nil, dimensions: nil, end_date: nil, filters: nil, ids: nil, include_historical_channel_data: nil, max_results: nil, metrics: nil, sort: nil, start_date: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
|
450
|
+
command = make_simple_command(:get, 'v2/reports', options)
|
451
|
+
command.response_representation = Google::Apis::YoutubeAnalyticsV2::QueryResponse::Representation
|
452
|
+
command.response_class = Google::Apis::YoutubeAnalyticsV2::QueryResponse
|
453
|
+
command.query['currency'] = currency unless currency.nil?
|
454
|
+
command.query['dimensions'] = dimensions unless dimensions.nil?
|
455
|
+
command.query['endDate'] = end_date unless end_date.nil?
|
456
|
+
command.query['filters'] = filters unless filters.nil?
|
457
|
+
command.query['ids'] = ids unless ids.nil?
|
458
|
+
command.query['includeHistoricalChannelData'] = include_historical_channel_data unless include_historical_channel_data.nil?
|
459
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
460
|
+
command.query['metrics'] = metrics unless metrics.nil?
|
461
|
+
command.query['sort'] = sort unless sort.nil?
|
462
|
+
command.query['startDate'] = start_date unless start_date.nil?
|
463
|
+
command.query['startIndex'] = start_index unless start_index.nil?
|
464
|
+
command.query['fields'] = fields unless fields.nil?
|
465
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
466
|
+
execute_or_queue_command(command, &block)
|
467
|
+
end
|
468
|
+
|
469
|
+
protected
|
470
|
+
|
471
|
+
def apply_command_defaults(command)
|
472
|
+
command.query['key'] = key unless key.nil?
|
473
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
474
|
+
end
|
475
|
+
end
|
476
|
+
end
|
477
|
+
end
|
478
|
+
end
|