google-api-client 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- 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 +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
@@ -1217,9 +1217,15 @@ module Google
|
|
1217
1217
|
# @private
|
1218
1218
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1219
1219
|
property :content, as: 'content'
|
1220
|
+
collection :custom_id, as: 'custom_id'
|
1220
1221
|
property :id, as: 'id'
|
1221
1222
|
property :kind, as: 'kind'
|
1222
1223
|
property :locale, as: 'locale'
|
1224
|
+
property :name, as: 'name'
|
1225
|
+
property :status, as: 'status'
|
1226
|
+
property :time_created, as: 'timeCreated', type: DateTime
|
1227
|
+
|
1228
|
+
property :type, as: 'type'
|
1223
1229
|
property :uploader_name, as: 'uploaderName'
|
1224
1230
|
end
|
1225
1231
|
end
|
@@ -2219,6 +2219,47 @@ module Google
|
|
2219
2219
|
execute_or_queue_command(command, &block)
|
2220
2220
|
end
|
2221
2221
|
|
2222
|
+
# Retrieves information for the specified package.
|
2223
|
+
# @param [String] package_id
|
2224
|
+
# The packageId parameter specifies the Content Delivery package ID of the
|
2225
|
+
# package being retrieved.
|
2226
|
+
# @param [String] on_behalf_of_content_owner
|
2227
|
+
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2228
|
+
# user is acting on behalf of. This parameter supports users whose accounts are
|
2229
|
+
# associated with multiple content owners.
|
2230
|
+
# @param [String] fields
|
2231
|
+
# Selector specifying which fields to include in a partial response.
|
2232
|
+
# @param [String] quota_user
|
2233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2235
|
+
# Overrides userIp if both are provided.
|
2236
|
+
# @param [String] user_ip
|
2237
|
+
# IP address of the site where the request originates. Use this if you want to
|
2238
|
+
# enforce per-user limits.
|
2239
|
+
# @param [Google::Apis::RequestOptions] options
|
2240
|
+
# Request-specific options
|
2241
|
+
#
|
2242
|
+
# @yield [result, err] Result & error if block supplied
|
2243
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::Package] parsed result object
|
2244
|
+
# @yieldparam err [StandardError] error object if request failed
|
2245
|
+
#
|
2246
|
+
# @return [Google::Apis::YoutubePartnerV1::Package]
|
2247
|
+
#
|
2248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2251
|
+
def get_package(package_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2252
|
+
command = make_simple_command(:get, 'package/{packageId}', options)
|
2253
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::Package::Representation
|
2254
|
+
command.response_class = Google::Apis::YoutubePartnerV1::Package
|
2255
|
+
command.params['packageId'] = package_id unless package_id.nil?
|
2256
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2257
|
+
command.query['fields'] = fields unless fields.nil?
|
2258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2259
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2260
|
+
execute_or_queue_command(command, &block)
|
2261
|
+
end
|
2262
|
+
|
2222
2263
|
# Inserts a metadata-only package.
|
2223
2264
|
# @param [Google::Apis::YoutubePartnerV1::Package] package_object
|
2224
2265
|
# @param [String] on_behalf_of_content_owner
|
@@ -26,13 +26,13 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
27
27
|
module YoutubereportingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
30
|
-
|
31
|
-
# View YouTube Analytics reports for your YouTube content
|
32
|
-
AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
|
29
|
+
REVISION = '20170329'
|
33
30
|
|
34
31
|
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
35
32
|
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
33
|
+
|
34
|
+
# View YouTube Analytics reports for your YouTube content
|
35
|
+
AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -22,65 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module YoutubereportingV1
|
24
24
|
|
25
|
-
# Media resource.
|
26
|
-
class Media
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Name of the media resource.
|
30
|
-
# Corresponds to the JSON property `resourceName`
|
31
|
-
# @return [String]
|
32
|
-
attr_accessor :resource_name
|
33
|
-
|
34
|
-
def initialize(**args)
|
35
|
-
update!(**args)
|
36
|
-
end
|
37
|
-
|
38
|
-
# Update properties of this object
|
39
|
-
def update!(**args)
|
40
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# A report type.
|
45
|
-
class ReportType
|
46
|
-
include Google::Apis::Core::Hashable
|
47
|
-
|
48
|
-
# The date/time when this report type was/will be deprecated.
|
49
|
-
# Corresponds to the JSON property `deprecateTime`
|
50
|
-
# @return [String]
|
51
|
-
attr_accessor :deprecate_time
|
52
|
-
|
53
|
-
# The name of the report type (max. 100 characters).
|
54
|
-
# Corresponds to the JSON property `name`
|
55
|
-
# @return [String]
|
56
|
-
attr_accessor :name
|
57
|
-
|
58
|
-
# The ID of the report type (max. 100 characters).
|
59
|
-
# Corresponds to the JSON property `id`
|
60
|
-
# @return [String]
|
61
|
-
attr_accessor :id
|
62
|
-
|
63
|
-
# True if this a system-managed report type; otherwise false. Reporting jobs
|
64
|
-
# for system-managed report types are created automatically and can thus not
|
65
|
-
# be used in the `CreateJob` method.
|
66
|
-
# Corresponds to the JSON property `systemManaged`
|
67
|
-
# @return [Boolean]
|
68
|
-
attr_accessor :system_managed
|
69
|
-
alias_method :system_managed?, :system_managed
|
70
|
-
|
71
|
-
def initialize(**args)
|
72
|
-
update!(**args)
|
73
|
-
end
|
74
|
-
|
75
|
-
# Update properties of this object
|
76
|
-
def update!(**args)
|
77
|
-
@deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
|
78
|
-
@name = args[:name] if args.key?(:name)
|
79
|
-
@id = args[:id] if args.key?(:id)
|
80
|
-
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
25
|
# A report's metadata including the URL from which the report itself can be
|
85
26
|
# downloaded.
|
86
27
|
class Report
|
@@ -158,15 +99,50 @@ module Google
|
|
158
99
|
end
|
159
100
|
end
|
160
101
|
|
102
|
+
# A report type.
|
103
|
+
class ReportType
|
104
|
+
include Google::Apis::Core::Hashable
|
105
|
+
|
106
|
+
# The date/time when this report type was/will be deprecated.
|
107
|
+
# Corresponds to the JSON property `deprecateTime`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :deprecate_time
|
110
|
+
|
111
|
+
# The name of the report type (max. 100 characters).
|
112
|
+
# Corresponds to the JSON property `name`
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :name
|
115
|
+
|
116
|
+
# The ID of the report type (max. 100 characters).
|
117
|
+
# Corresponds to the JSON property `id`
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :id
|
120
|
+
|
121
|
+
# True if this a system-managed report type; otherwise false. Reporting jobs
|
122
|
+
# for system-managed report types are created automatically and can thus not
|
123
|
+
# be used in the `CreateJob` method.
|
124
|
+
# Corresponds to the JSON property `systemManaged`
|
125
|
+
# @return [Boolean]
|
126
|
+
attr_accessor :system_managed
|
127
|
+
alias_method :system_managed?, :system_managed
|
128
|
+
|
129
|
+
def initialize(**args)
|
130
|
+
update!(**args)
|
131
|
+
end
|
132
|
+
|
133
|
+
# Update properties of this object
|
134
|
+
def update!(**args)
|
135
|
+
@deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
|
136
|
+
@name = args[:name] if args.key?(:name)
|
137
|
+
@id = args[:id] if args.key?(:id)
|
138
|
+
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
161
142
|
# Response message for ReportingService.ListReportTypes.
|
162
143
|
class ListReportTypesResponse
|
163
144
|
include Google::Apis::Core::Hashable
|
164
145
|
|
165
|
-
# The list of report types.
|
166
|
-
# Corresponds to the JSON property `reportTypes`
|
167
|
-
# @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
|
168
|
-
attr_accessor :report_types
|
169
|
-
|
170
146
|
# A token to retrieve next page of results.
|
171
147
|
# Pass this value in the
|
172
148
|
# ListReportTypesRequest.page_token
|
@@ -176,14 +152,19 @@ module Google
|
|
176
152
|
# @return [String]
|
177
153
|
attr_accessor :next_page_token
|
178
154
|
|
155
|
+
# The list of report types.
|
156
|
+
# Corresponds to the JSON property `reportTypes`
|
157
|
+
# @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
|
158
|
+
attr_accessor :report_types
|
159
|
+
|
179
160
|
def initialize(**args)
|
180
161
|
update!(**args)
|
181
162
|
end
|
182
163
|
|
183
164
|
# Update properties of this object
|
184
165
|
def update!(**args)
|
185
|
-
@report_types = args[:report_types] if args.key?(:report_types)
|
186
166
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
167
|
+
@report_types = args[:report_types] if args.key?(:report_types)
|
187
168
|
end
|
188
169
|
end
|
189
170
|
|
@@ -220,10 +201,11 @@ module Google
|
|
220
201
|
class Job
|
221
202
|
include Google::Apis::Core::Hashable
|
222
203
|
|
223
|
-
# The
|
224
|
-
#
|
204
|
+
# The date/time when this job will expire/expired. After a job expired, no
|
205
|
+
# new reports are generated.
|
206
|
+
# Corresponds to the JSON property `expireTime`
|
225
207
|
# @return [String]
|
226
|
-
attr_accessor :
|
208
|
+
attr_accessor :expire_time
|
227
209
|
|
228
210
|
# The type of reports this job creates. Corresponds to the ID of a
|
229
211
|
# ReportType.
|
@@ -231,12 +213,6 @@ module Google
|
|
231
213
|
# @return [String]
|
232
214
|
attr_accessor :report_type_id
|
233
215
|
|
234
|
-
# The date/time when this job will expire/expired. After a job expired, no
|
235
|
-
# new reports are generated.
|
236
|
-
# Corresponds to the JSON property `expireTime`
|
237
|
-
# @return [String]
|
238
|
-
attr_accessor :expire_time
|
239
|
-
|
240
216
|
# The name of the job (max. 100 characters).
|
241
217
|
# Corresponds to the JSON property `name`
|
242
218
|
# @return [String]
|
@@ -254,18 +230,23 @@ module Google
|
|
254
230
|
# @return [String]
|
255
231
|
attr_accessor :id
|
256
232
|
|
233
|
+
# The creation date/time of the job.
|
234
|
+
# Corresponds to the JSON property `createTime`
|
235
|
+
# @return [String]
|
236
|
+
attr_accessor :create_time
|
237
|
+
|
257
238
|
def initialize(**args)
|
258
239
|
update!(**args)
|
259
240
|
end
|
260
241
|
|
261
242
|
# Update properties of this object
|
262
243
|
def update!(**args)
|
263
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
264
|
-
@report_type_id = args[:report_type_id] if args.key?(:report_type_id)
|
265
244
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
245
|
+
@report_type_id = args[:report_type_id] if args.key?(:report_type_id)
|
266
246
|
@name = args[:name] if args.key?(:name)
|
267
247
|
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
268
248
|
@id = args[:id] if args.key?(:id)
|
249
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
269
250
|
end
|
270
251
|
end
|
271
252
|
|
@@ -297,6 +278,25 @@ module Google
|
|
297
278
|
@reports = args[:reports] if args.key?(:reports)
|
298
279
|
end
|
299
280
|
end
|
281
|
+
|
282
|
+
# Media resource.
|
283
|
+
class Media
|
284
|
+
include Google::Apis::Core::Hashable
|
285
|
+
|
286
|
+
# Name of the media resource.
|
287
|
+
# Corresponds to the JSON property `resourceName`
|
288
|
+
# @return [String]
|
289
|
+
attr_accessor :resource_name
|
290
|
+
|
291
|
+
def initialize(**args)
|
292
|
+
update!(**args)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Update properties of this object
|
296
|
+
def update!(**args)
|
297
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
298
|
+
end
|
299
|
+
end
|
300
300
|
end
|
301
301
|
end
|
302
302
|
end
|
@@ -22,25 +22,19 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module YoutubereportingV1
|
24
24
|
|
25
|
-
class
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class ReportType
|
25
|
+
class Report
|
32
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
27
|
|
34
28
|
include Google::Apis::Core::JsonObjectSupport
|
35
29
|
end
|
36
30
|
|
37
|
-
class
|
31
|
+
class Empty
|
38
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
33
|
|
40
34
|
include Google::Apis::Core::JsonObjectSupport
|
41
35
|
end
|
42
36
|
|
43
|
-
class
|
37
|
+
class ReportType
|
44
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
39
|
|
46
40
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -71,20 +65,9 @@ module Google
|
|
71
65
|
end
|
72
66
|
|
73
67
|
class Media
|
74
|
-
|
75
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
76
|
-
property :resource_name, as: 'resourceName'
|
77
|
-
end
|
78
|
-
end
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
79
69
|
|
80
|
-
|
81
|
-
# @private
|
82
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
83
|
-
property :deprecate_time, as: 'deprecateTime'
|
84
|
-
property :name, as: 'name'
|
85
|
-
property :id, as: 'id'
|
86
|
-
property :system_managed, as: 'systemManaged'
|
87
|
-
end
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
88
71
|
end
|
89
72
|
|
90
73
|
class Report
|
@@ -106,12 +89,22 @@ module Google
|
|
106
89
|
end
|
107
90
|
end
|
108
91
|
|
92
|
+
class ReportType
|
93
|
+
# @private
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
95
|
+
property :deprecate_time, as: 'deprecateTime'
|
96
|
+
property :name, as: 'name'
|
97
|
+
property :id, as: 'id'
|
98
|
+
property :system_managed, as: 'systemManaged'
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
109
102
|
class ListReportTypesResponse
|
110
103
|
# @private
|
111
104
|
class Representation < Google::Apis::Core::JsonRepresentation
|
105
|
+
property :next_page_token, as: 'nextPageToken'
|
112
106
|
collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
|
113
107
|
|
114
|
-
property :next_page_token, as: 'nextPageToken'
|
115
108
|
end
|
116
109
|
end
|
117
110
|
|
@@ -127,12 +120,12 @@ module Google
|
|
127
120
|
class Job
|
128
121
|
# @private
|
129
122
|
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
-
property :create_time, as: 'createTime'
|
131
|
-
property :report_type_id, as: 'reportTypeId'
|
132
123
|
property :expire_time, as: 'expireTime'
|
124
|
+
property :report_type_id, as: 'reportTypeId'
|
133
125
|
property :name, as: 'name'
|
134
126
|
property :system_managed, as: 'systemManaged'
|
135
127
|
property :id, as: 'id'
|
128
|
+
property :create_time, as: 'createTime'
|
136
129
|
end
|
137
130
|
end
|
138
131
|
|
@@ -144,6 +137,13 @@ module Google
|
|
144
137
|
|
145
138
|
end
|
146
139
|
end
|
140
|
+
|
141
|
+
class Media
|
142
|
+
# @private
|
143
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
144
|
+
property :resource_name, as: 'resourceName'
|
145
|
+
end
|
146
|
+
end
|
147
147
|
end
|
148
148
|
end
|
149
149
|
end
|
@@ -33,66 +33,20 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
35
35
|
class YouTubeReportingService < Google::Apis::Core::BaseService
|
36
|
-
# @return [String]
|
37
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
38
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
39
|
-
attr_accessor :quota_user
|
40
|
-
|
41
36
|
# @return [String]
|
42
37
|
# API key. Your API key identifies your project and provides you with API access,
|
43
38
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
44
39
|
attr_accessor :key
|
45
40
|
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
46
|
def initialize
|
47
47
|
super('https://youtubereporting.googleapis.com/', '')
|
48
48
|
end
|
49
49
|
|
50
|
-
# Lists report types.
|
51
|
-
# @param [Fixnum] page_size
|
52
|
-
# Requested page size. Server may return fewer report types than requested.
|
53
|
-
# If unspecified, server will pick an appropriate default.
|
54
|
-
# @param [String] on_behalf_of_content_owner
|
55
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
56
|
-
# not set, the user is acting for himself (his own channel).
|
57
|
-
# @param [String] page_token
|
58
|
-
# A token identifying a page of results the server should return. Typically,
|
59
|
-
# this is the value of
|
60
|
-
# ListReportTypesResponse.next_page_token
|
61
|
-
# returned in response to the previous call to the `ListReportTypes` method.
|
62
|
-
# @param [Boolean] include_system_managed
|
63
|
-
# If set to true, also system-managed report types will be returned;
|
64
|
-
# otherwise only the report types that can be used to create new reporting
|
65
|
-
# jobs will be returned.
|
66
|
-
# @param [String] quota_user
|
67
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
-
# @param [String] fields
|
70
|
-
# Selector specifying which fields to include in a partial response.
|
71
|
-
# @param [Google::Apis::RequestOptions] options
|
72
|
-
# Request-specific options
|
73
|
-
#
|
74
|
-
# @yield [result, err] Result & error if block supplied
|
75
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
|
76
|
-
# @yieldparam err [StandardError] error object if request failed
|
77
|
-
#
|
78
|
-
# @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
|
79
|
-
#
|
80
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
81
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
82
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
83
|
-
def list_report_types(page_size: nil, on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, quota_user: nil, fields: nil, options: nil, &block)
|
84
|
-
command = make_simple_command(:get, 'v1/reportTypes', options)
|
85
|
-
command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
|
86
|
-
command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
|
87
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
88
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
89
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
90
|
-
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
91
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
92
|
-
command.query['fields'] = fields unless fields.nil?
|
93
|
-
execute_or_queue_command(command, &block)
|
94
|
-
end
|
95
|
-
|
96
50
|
# Method for media download. Download is supported
|
97
51
|
# on the URI `/v1/media/`+name`?alt=media`.
|
98
52
|
# @param [String] resource_name
|
@@ -132,47 +86,7 @@ module Google
|
|
132
86
|
execute_or_queue_command(command, &block)
|
133
87
|
end
|
134
88
|
|
135
|
-
# Deletes a job.
|
136
|
-
# @param [String] job_id
|
137
|
-
# The ID of the job to delete.
|
138
|
-
# @param [String] on_behalf_of_content_owner
|
139
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
140
|
-
# not set, the user is acting for himself (his own channel).
|
141
|
-
# @param [String] quota_user
|
142
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
143
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
144
|
-
# @param [String] fields
|
145
|
-
# Selector specifying which fields to include in a partial response.
|
146
|
-
# @param [Google::Apis::RequestOptions] options
|
147
|
-
# Request-specific options
|
148
|
-
#
|
149
|
-
# @yield [result, err] Result & error if block supplied
|
150
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
|
151
|
-
# @yieldparam err [StandardError] error object if request failed
|
152
|
-
#
|
153
|
-
# @return [Google::Apis::YoutubereportingV1::Empty]
|
154
|
-
#
|
155
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
156
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
157
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
158
|
-
def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
159
|
-
command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
|
160
|
-
command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
|
161
|
-
command.response_class = Google::Apis::YoutubereportingV1::Empty
|
162
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
163
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
164
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
165
|
-
command.query['fields'] = fields unless fields.nil?
|
166
|
-
execute_or_queue_command(command, &block)
|
167
|
-
end
|
168
|
-
|
169
89
|
# Lists jobs.
|
170
|
-
# @param [Fixnum] page_size
|
171
|
-
# Requested page size. Server may return fewer jobs than requested.
|
172
|
-
# If unspecified, server will pick an appropriate default.
|
173
|
-
# @param [String] on_behalf_of_content_owner
|
174
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
175
|
-
# not set, the user is acting for himself (his own channel).
|
176
90
|
# @param [String] page_token
|
177
91
|
# A token identifying a page of results the server should return. Typically,
|
178
92
|
# this is the value of
|
@@ -182,6 +96,12 @@ module Google
|
|
182
96
|
# If set to true, also system-managed jobs will be returned; otherwise only
|
183
97
|
# user-created jobs will be returned. System-managed jobs can neither be
|
184
98
|
# modified nor deleted.
|
99
|
+
# @param [Fixnum] page_size
|
100
|
+
# Requested page size. Server may return fewer jobs than requested.
|
101
|
+
# If unspecified, server will pick an appropriate default.
|
102
|
+
# @param [String] on_behalf_of_content_owner
|
103
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
104
|
+
# not set, the user is acting for himself (his own channel).
|
185
105
|
# @param [String] quota_user
|
186
106
|
# Available to use for quota purposes for server-side applications. Can be any
|
187
107
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -199,14 +119,14 @@ module Google
|
|
199
119
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
200
120
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
201
121
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
202
|
-
def list_jobs(
|
122
|
+
def list_jobs(page_token: nil, include_system_managed: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
203
123
|
command = make_simple_command(:get, 'v1/jobs', options)
|
204
124
|
command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
|
205
125
|
command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
|
206
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
207
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
208
126
|
command.query['pageToken'] = page_token unless page_token.nil?
|
209
127
|
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
128
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
129
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
210
130
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
211
131
|
command.query['fields'] = fields unless fields.nil?
|
212
132
|
execute_or_queue_command(command, &block)
|
@@ -280,6 +200,40 @@ module Google
|
|
280
200
|
execute_or_queue_command(command, &block)
|
281
201
|
end
|
282
202
|
|
203
|
+
# Deletes a job.
|
204
|
+
# @param [String] job_id
|
205
|
+
# The ID of the job to delete.
|
206
|
+
# @param [String] on_behalf_of_content_owner
|
207
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
208
|
+
# not set, the user is acting for himself (his own channel).
|
209
|
+
# @param [String] quota_user
|
210
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
211
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
212
|
+
# @param [String] fields
|
213
|
+
# Selector specifying which fields to include in a partial response.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::YoutubereportingV1::Empty]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
|
228
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
|
229
|
+
command.response_class = Google::Apis::YoutubereportingV1::Empty
|
230
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
231
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
command.query['fields'] = fields unless fields.nil?
|
234
|
+
execute_or_queue_command(command, &block)
|
235
|
+
end
|
236
|
+
|
283
237
|
# Lists reports created by a specific job.
|
284
238
|
# Returns NOT_FOUND if the job does not exist.
|
285
239
|
# @param [String] job_id
|
@@ -372,12 +326,58 @@ module Google
|
|
372
326
|
command.query['fields'] = fields unless fields.nil?
|
373
327
|
execute_or_queue_command(command, &block)
|
374
328
|
end
|
329
|
+
|
330
|
+
# Lists report types.
|
331
|
+
# @param [String] on_behalf_of_content_owner
|
332
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
333
|
+
# not set, the user is acting for himself (his own channel).
|
334
|
+
# @param [String] page_token
|
335
|
+
# A token identifying a page of results the server should return. Typically,
|
336
|
+
# this is the value of
|
337
|
+
# ListReportTypesResponse.next_page_token
|
338
|
+
# returned in response to the previous call to the `ListReportTypes` method.
|
339
|
+
# @param [Boolean] include_system_managed
|
340
|
+
# If set to true, also system-managed report types will be returned;
|
341
|
+
# otherwise only the report types that can be used to create new reporting
|
342
|
+
# jobs will be returned.
|
343
|
+
# @param [Fixnum] page_size
|
344
|
+
# Requested page size. Server may return fewer report types than requested.
|
345
|
+
# If unspecified, server will pick an appropriate default.
|
346
|
+
# @param [String] quota_user
|
347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
349
|
+
# @param [String] fields
|
350
|
+
# Selector specifying which fields to include in a partial response.
|
351
|
+
# @param [Google::Apis::RequestOptions] options
|
352
|
+
# Request-specific options
|
353
|
+
#
|
354
|
+
# @yield [result, err] Result & error if block supplied
|
355
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
|
356
|
+
# @yieldparam err [StandardError] error object if request failed
|
357
|
+
#
|
358
|
+
# @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
|
359
|
+
#
|
360
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
361
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
362
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
363
|
+
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)
|
364
|
+
command = make_simple_command(:get, 'v1/reportTypes', options)
|
365
|
+
command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
|
366
|
+
command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
|
367
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
368
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
369
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
370
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
372
|
+
command.query['fields'] = fields unless fields.nil?
|
373
|
+
execute_or_queue_command(command, &block)
|
374
|
+
end
|
375
375
|
|
376
376
|
protected
|
377
377
|
|
378
378
|
def apply_command_defaults(command)
|
379
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
380
379
|
command.query['key'] = key unless key.nil?
|
380
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
381
381
|
end
|
382
382
|
end
|
383
383
|
end
|