google-api-client 0.12.0 → 0.13.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 +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -48,11 +48,61 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
52
|
-
#
|
51
|
+
# Method for media download. Download is supported
|
52
|
+
# on the URI `/v1/media/`+name`?alt=media`.
|
53
|
+
# @param [String] resource_name
|
54
|
+
# Name of the media that is being downloaded. See
|
55
|
+
# ReadRequest.resource_name.
|
56
|
+
# @param [String] quota_user
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [IO, String] download_dest
|
62
|
+
# IO stream or filename to receive content download
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::YoutubereportingV1::Media]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def download_medium(resource_name, quota_user: nil, fields: nil, download_dest: nil, options: nil, &block)
|
76
|
+
if download_dest.nil?
|
77
|
+
command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
|
78
|
+
else
|
79
|
+
command = make_download_command(:get, 'v1/media/{+resourceName}', options)
|
80
|
+
command.download_dest = download_dest
|
81
|
+
end
|
82
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
|
83
|
+
command.response_class = Google::Apis::YoutubereportingV1::Media
|
84
|
+
command.params['resourceName'] = resource_name unless resource_name.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Lists jobs.
|
53
91
|
# @param [String] on_behalf_of_content_owner
|
54
92
|
# The content owner's external ID on which behalf the user is acting on. If
|
55
93
|
# not set, the user is acting for himself (his own channel).
|
94
|
+
# @param [String] page_token
|
95
|
+
# A token identifying a page of results the server should return. Typically,
|
96
|
+
# this is the value of
|
97
|
+
# ListReportTypesResponse.next_page_token
|
98
|
+
# returned in response to the previous call to the `ListJobs` method.
|
99
|
+
# @param [Boolean] include_system_managed
|
100
|
+
# If set to true, also system-managed jobs will be returned; otherwise only
|
101
|
+
# user-created jobs will be returned. System-managed jobs can neither be
|
102
|
+
# modified nor deleted.
|
103
|
+
# @param [Fixnum] page_size
|
104
|
+
# Requested page size. Server may return fewer jobs than requested.
|
105
|
+
# If unspecified, server will pick an appropriate default.
|
56
106
|
# @param [String] quota_user
|
57
107
|
# Available to use for quota purposes for server-side applications. Can be any
|
58
108
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -62,29 +112,30 @@ module Google
|
|
62
112
|
# Request-specific options
|
63
113
|
#
|
64
114
|
# @yield [result, err] Result & error if block supplied
|
65
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::
|
115
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
|
66
116
|
# @yieldparam err [StandardError] error object if request failed
|
67
117
|
#
|
68
|
-
# @return [Google::Apis::YoutubereportingV1::
|
118
|
+
# @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
|
69
119
|
#
|
70
120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def
|
74
|
-
command = make_simple_command(:
|
75
|
-
command.
|
76
|
-
command.
|
77
|
-
command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
78
|
-
command.response_class = Google::Apis::YoutubereportingV1::Job
|
123
|
+
def list_jobs(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
124
|
+
command = make_simple_command(:get, 'v1/jobs', options)
|
125
|
+
command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
|
126
|
+
command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
|
79
127
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
128
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
129
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
130
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
80
131
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
132
|
command.query['fields'] = fields unless fields.nil?
|
82
133
|
execute_or_queue_command(command, &block)
|
83
134
|
end
|
84
135
|
|
85
|
-
#
|
136
|
+
# Gets a job.
|
86
137
|
# @param [String] job_id
|
87
|
-
# The ID of the job to
|
138
|
+
# The ID of the job to retrieve.
|
88
139
|
# @param [String] on_behalf_of_content_owner
|
89
140
|
# The content owner's external ID on which behalf the user is acting on. If
|
90
141
|
# not set, the user is acting for himself (his own channel).
|
@@ -97,18 +148,18 @@ module Google
|
|
97
148
|
# Request-specific options
|
98
149
|
#
|
99
150
|
# @yield [result, err] Result & error if block supplied
|
100
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::
|
151
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
|
101
152
|
# @yieldparam err [StandardError] error object if request failed
|
102
153
|
#
|
103
|
-
# @return [Google::Apis::YoutubereportingV1::
|
154
|
+
# @return [Google::Apis::YoutubereportingV1::Job]
|
104
155
|
#
|
105
156
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
157
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
158
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
-
def
|
109
|
-
command = make_simple_command(:
|
110
|
-
command.response_representation = Google::Apis::YoutubereportingV1::
|
111
|
-
command.response_class = Google::Apis::YoutubereportingV1::
|
159
|
+
def get_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
160
|
+
command = make_simple_command(:get, 'v1/jobs/{jobId}', options)
|
161
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
162
|
+
command.response_class = Google::Apis::YoutubereportingV1::Job
|
112
163
|
command.params['jobId'] = job_id unless job_id.nil?
|
113
164
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
114
165
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -116,19 +167,8 @@ module Google
|
|
116
167
|
execute_or_queue_command(command, &block)
|
117
168
|
end
|
118
169
|
|
119
|
-
#
|
120
|
-
# @param [
|
121
|
-
# A token identifying a page of results the server should return. Typically,
|
122
|
-
# this is the value of
|
123
|
-
# ListReportTypesResponse.next_page_token
|
124
|
-
# returned in response to the previous call to the `ListJobs` method.
|
125
|
-
# @param [Boolean] include_system_managed
|
126
|
-
# If set to true, also system-managed jobs will be returned; otherwise only
|
127
|
-
# user-created jobs will be returned. System-managed jobs can neither be
|
128
|
-
# modified nor deleted.
|
129
|
-
# @param [Fixnum] page_size
|
130
|
-
# Requested page size. Server may return fewer jobs than requested.
|
131
|
-
# If unspecified, server will pick an appropriate default.
|
170
|
+
# Creates a job and returns it.
|
171
|
+
# @param [Google::Apis::YoutubereportingV1::Job] job_object
|
132
172
|
# @param [String] on_behalf_of_content_owner
|
133
173
|
# The content owner's external ID on which behalf the user is acting on. If
|
134
174
|
# not set, the user is acting for himself (his own channel).
|
@@ -141,30 +181,29 @@ module Google
|
|
141
181
|
# Request-specific options
|
142
182
|
#
|
143
183
|
# @yield [result, err] Result & error if block supplied
|
144
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::
|
184
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
|
145
185
|
# @yieldparam err [StandardError] error object if request failed
|
146
186
|
#
|
147
|
-
# @return [Google::Apis::YoutubereportingV1::
|
187
|
+
# @return [Google::Apis::YoutubereportingV1::Job]
|
148
188
|
#
|
149
189
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
190
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
191
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
-
def
|
153
|
-
command = make_simple_command(:
|
154
|
-
command.
|
155
|
-
command.
|
156
|
-
command.
|
157
|
-
command.
|
158
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
192
|
+
def create_job(job_object = nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:post, 'v1/jobs', options)
|
194
|
+
command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
195
|
+
command.request_object = job_object
|
196
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
197
|
+
command.response_class = Google::Apis::YoutubereportingV1::Job
|
159
198
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
160
199
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
161
200
|
command.query['fields'] = fields unless fields.nil?
|
162
201
|
execute_or_queue_command(command, &block)
|
163
202
|
end
|
164
203
|
|
165
|
-
#
|
204
|
+
# Deletes a job.
|
166
205
|
# @param [String] job_id
|
167
|
-
# The ID of the job to
|
206
|
+
# The ID of the job to delete.
|
168
207
|
# @param [String] on_behalf_of_content_owner
|
169
208
|
# The content owner's external ID on which behalf the user is acting on. If
|
170
209
|
# not set, the user is acting for himself (his own channel).
|
@@ -177,18 +216,18 @@ module Google
|
|
177
216
|
# Request-specific options
|
178
217
|
#
|
179
218
|
# @yield [result, err] Result & error if block supplied
|
180
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::
|
219
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
|
181
220
|
# @yieldparam err [StandardError] error object if request failed
|
182
221
|
#
|
183
|
-
# @return [Google::Apis::YoutubereportingV1::
|
222
|
+
# @return [Google::Apis::YoutubereportingV1::Empty]
|
184
223
|
#
|
185
224
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
225
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
226
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
|
-
def
|
189
|
-
command = make_simple_command(:
|
190
|
-
command.response_representation = Google::Apis::YoutubereportingV1::
|
191
|
-
command.response_class = Google::Apis::YoutubereportingV1::
|
227
|
+
def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
228
|
+
command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
|
229
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
|
230
|
+
command.response_class = Google::Apis::YoutubereportingV1::Empty
|
192
231
|
command.params['jobId'] = job_id unless job_id.nil?
|
193
232
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
194
233
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -202,14 +241,14 @@ module Google
|
|
202
241
|
# The ID of the job.
|
203
242
|
# @param [String] created_after
|
204
243
|
# If set, only reports created after the specified date/time are returned.
|
205
|
-
# @param [String] start_time_at_or_after
|
206
|
-
# If set, only reports whose start time is greater than or equal the
|
207
|
-
# specified date/time are returned.
|
208
244
|
# @param [String] page_token
|
209
245
|
# A token identifying a page of results the server should return. Typically,
|
210
246
|
# this is the value of
|
211
247
|
# ListReportsResponse.next_page_token
|
212
248
|
# returned in response to the previous call to the `ListReports` method.
|
249
|
+
# @param [String] start_time_at_or_after
|
250
|
+
# If set, only reports whose start time is greater than or equal the
|
251
|
+
# specified date/time are returned.
|
213
252
|
# @param [Fixnum] page_size
|
214
253
|
# Requested page size. Server may return fewer report types than requested.
|
215
254
|
# If unspecified, server will pick an appropriate default.
|
@@ -236,14 +275,14 @@ module Google
|
|
236
275
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
237
276
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
238
277
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
239
|
-
def list_job_reports(job_id, created_after: nil,
|
278
|
+
def list_job_reports(job_id, created_after: nil, page_token: nil, start_time_at_or_after: nil, page_size: nil, on_behalf_of_content_owner: nil, start_time_before: nil, quota_user: nil, fields: nil, options: nil, &block)
|
240
279
|
command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options)
|
241
280
|
command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation
|
242
281
|
command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse
|
243
282
|
command.params['jobId'] = job_id unless job_id.nil?
|
244
283
|
command.query['createdAfter'] = created_after unless created_after.nil?
|
245
|
-
command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
|
246
284
|
command.query['pageToken'] = page_token unless page_token.nil?
|
285
|
+
command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
|
247
286
|
command.query['pageSize'] = page_size unless page_size.nil?
|
248
287
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
249
288
|
command.query['startTimeBefore'] = start_time_before unless start_time_before.nil?
|
@@ -290,6 +329,9 @@ module Google
|
|
290
329
|
end
|
291
330
|
|
292
331
|
# Lists report types.
|
332
|
+
# @param [String] on_behalf_of_content_owner
|
333
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
334
|
+
# not set, the user is acting for himself (his own channel).
|
293
335
|
# @param [String] page_token
|
294
336
|
# A token identifying a page of results the server should return. Typically,
|
295
337
|
# this is the value of
|
@@ -302,9 +344,6 @@ module Google
|
|
302
344
|
# @param [Fixnum] page_size
|
303
345
|
# Requested page size. Server may return fewer report types than requested.
|
304
346
|
# If unspecified, server will pick an appropriate default.
|
305
|
-
# @param [String] on_behalf_of_content_owner
|
306
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
307
|
-
# not set, the user is acting for himself (his own channel).
|
308
347
|
# @param [String] quota_user
|
309
348
|
# Available to use for quota purposes for server-side applications. Can be any
|
310
349
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -322,53 +361,14 @@ module Google
|
|
322
361
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
323
362
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
324
363
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
325
|
-
def list_report_types(
|
364
|
+
def list_report_types(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
326
365
|
command = make_simple_command(:get, 'v1/reportTypes', options)
|
327
366
|
command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
|
328
367
|
command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
|
368
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
329
369
|
command.query['pageToken'] = page_token unless page_token.nil?
|
330
370
|
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
331
371
|
command.query['pageSize'] = page_size unless page_size.nil?
|
332
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
333
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
334
|
-
command.query['fields'] = fields unless fields.nil?
|
335
|
-
execute_or_queue_command(command, &block)
|
336
|
-
end
|
337
|
-
|
338
|
-
# Method for media download. Download is supported
|
339
|
-
# on the URI `/v1/media/`+name`?alt=media`.
|
340
|
-
# @param [String] resource_name
|
341
|
-
# Name of the media that is being downloaded. See
|
342
|
-
# ReadRequest.resource_name.
|
343
|
-
# @param [String] quota_user
|
344
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
345
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
346
|
-
# @param [String] fields
|
347
|
-
# Selector specifying which fields to include in a partial response.
|
348
|
-
# @param [IO, String] download_dest
|
349
|
-
# IO stream or filename to receive content download
|
350
|
-
# @param [Google::Apis::RequestOptions] options
|
351
|
-
# Request-specific options
|
352
|
-
#
|
353
|
-
# @yield [result, err] Result & error if block supplied
|
354
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
|
355
|
-
# @yieldparam err [StandardError] error object if request failed
|
356
|
-
#
|
357
|
-
# @return [Google::Apis::YoutubereportingV1::Media]
|
358
|
-
#
|
359
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
360
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
361
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
362
|
-
def download_medium(resource_name, quota_user: nil, fields: nil, download_dest: nil, options: nil, &block)
|
363
|
-
if download_dest.nil?
|
364
|
-
command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
|
365
|
-
else
|
366
|
-
command = make_download_command(:get, 'v1/media/{+resourceName}', options)
|
367
|
-
command.download_dest = download_dest
|
368
|
-
end
|
369
|
-
command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
|
370
|
-
command.response_class = Google::Apis::YoutubereportingV1::Media
|
371
|
-
command.params['resourceName'] = resource_name unless resource_name.nil?
|
372
372
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
373
|
command.query['fields'] = fields unless fields.nil?
|
374
374
|
execute_or_queue_command(command, &block)
|
@@ -233,9 +233,9 @@ module Google
|
|
233
233
|
def annotate_resource(name, resource, parent_resource = nil)
|
234
234
|
@strip_prefixes << name
|
235
235
|
resource.parent = parent_resource unless parent_resource.nil?
|
236
|
-
resource.
|
236
|
+
resource.api_methods.each do |_k, v|
|
237
237
|
annotate_method(v, resource)
|
238
|
-
end unless resource.
|
238
|
+
end unless resource.api_methods.nil?
|
239
239
|
|
240
240
|
resource.resources.each do |k, v|
|
241
241
|
annotate_resource(k, v, resource)
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
|
95
95
|
def all_methods
|
96
96
|
m = []
|
97
|
-
m <<
|
97
|
+
m << api_methods.values unless api_methods.nil?
|
98
98
|
m << resources.map { |_k, r| r.all_methods } unless resources.nil?
|
99
99
|
m.flatten
|
100
100
|
end
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
|
128
128
|
def all_methods
|
129
129
|
m = []
|
130
|
-
m <<
|
130
|
+
m << api_methods.values unless api_methods.nil?
|
131
131
|
m << resources.map { |_k, r| r.all_methods } unless resources.nil?
|
132
132
|
m.flatten
|
133
133
|
end
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-06-
|
14
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|