google-api-client 0.9.28 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +10 -0
- data/api_names.yaml +36512 -36326
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
- 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.rb +3 -3
- data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
- data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
- data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
- data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
- data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
- data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
- data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
- data/generated/google/apis/cloudtrace_v1.rb +8 -8
- data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +406 -31
- data/generated/google/apis/compute_beta/representations.rb +154 -0
- data/generated/google/apis/compute_beta/service.rb +262 -9
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +17 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
- data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
- data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
- data/generated/google/apis/dataproc_v1/representations.rb +262 -244
- data/generated/google/apis/dataproc_v1/service.rb +298 -243
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +728 -728
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +932 -932
- data/generated/google/apis/genomics_v1/representations.rb +205 -205
- data/generated/google/apis/genomics_v1/service.rb +1228 -1228
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +60 -60
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -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 +21 -21
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +232 -232
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
- data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
- data/generated/google/apis/logging_v2beta1/service.rb +331 -306
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +253 -253
- data/generated/google/apis/monitoring_v3/representations.rb +58 -58
- data/generated/google/apis/monitoring_v3/service.rb +135 -135
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +985 -855
- data/generated/google/apis/people_v1/representations.rb +227 -220
- data/generated/google/apis/people_v1/service.rb +58 -52
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +257 -257
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +390 -390
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +149 -141
- data/generated/google/apis/script_v1/representations.rb +26 -27
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
- data/generated/google/apis/sheets_v4/representations.rb +850 -834
- data/generated/google/apis/sheets_v4/service.rb +192 -192
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +927 -800
- data/generated/google/apis/slides_v1/representations.rb +253 -211
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
- data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
- data/generated/google/apis/speech_v1beta1/service.rb +51 -54
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +888 -885
- data/generated/google/apis/vision_v1/representations.rb +139 -139
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
- data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
- data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
- data/google-api-client.gemspec +2 -2
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- metadata +36 -30
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see http://developers.google.com/youtube/analytics/
|
26
26
|
module YoutubeAnalyticsV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170208'
|
29
29
|
|
30
30
|
# Manage your YouTube account
|
31
31
|
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
@@ -423,6 +423,9 @@ module Google
|
|
423
423
|
# semicolon (;), and the returned result table will satisfy both filters. For
|
424
424
|
# example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts
|
425
425
|
# the result set to include data for the given video in Italy.
|
426
|
+
# @param [Boolean] include_historical_channel_data
|
427
|
+
# If set to true historical data (i.e. channel data from before the linking of
|
428
|
+
# the channel to the content owner) will be retrieved.
|
426
429
|
# @param [Fixnum] max_results
|
427
430
|
# The maximum number of rows to include in the response.
|
428
431
|
# @param [String] sort
|
@@ -453,7 +456,7 @@ module Google
|
|
453
456
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
454
457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
455
458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
456
|
-
def query_report(ids, start_date, end_date, metrics, currency: nil, dimensions: nil, filters: nil, max_results: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
459
|
+
def query_report(ids, start_date, end_date, metrics, currency: nil, dimensions: nil, filters: nil, include_historical_channel_data: nil, max_results: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
457
460
|
command = make_simple_command(:get, 'reports', options)
|
458
461
|
command.response_representation = Google::Apis::YoutubeAnalyticsV1::ResultTable::Representation
|
459
462
|
command.response_class = Google::Apis::YoutubeAnalyticsV1::ResultTable
|
@@ -462,6 +465,7 @@ module Google
|
|
462
465
|
command.query['end-date'] = end_date unless end_date.nil?
|
463
466
|
command.query['filters'] = filters unless filters.nil?
|
464
467
|
command.query['ids'] = ids unless ids.nil?
|
468
|
+
command.query['include-historical-channel-data'] = include_historical_channel_data unless include_historical_channel_data.nil?
|
465
469
|
command.query['max-results'] = max_results unless max_results.nil?
|
466
470
|
command.query['metrics'] = metrics unless metrics.nil?
|
467
471
|
command.query['sort'] = sort unless sort.nil?
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/youtube/partner/
|
26
26
|
module YoutubePartnerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170207'
|
29
29
|
|
30
30
|
# View and manage your assets and associated content on YouTube
|
31
31
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
27
27
|
module YoutubereportingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20170213'
|
30
30
|
|
31
31
|
# View YouTube Analytics reports for your YouTube content
|
32
32
|
AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
|
@@ -22,22 +22,22 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module YoutubereportingV1
|
24
24
|
|
25
|
-
#
|
26
|
-
|
25
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
26
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
27
|
+
# or the response type of an API method. For instance:
|
28
|
+
# service Foo `
|
29
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
30
|
+
# `
|
31
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
32
|
+
class Empty
|
27
33
|
include Google::Apis::Core::Hashable
|
28
34
|
|
29
|
-
# Name of the media resource.
|
30
|
-
# Corresponds to the JSON property `resourceName`
|
31
|
-
# @return [String]
|
32
|
-
attr_accessor :resource_name
|
33
|
-
|
34
35
|
def initialize(**args)
|
35
36
|
update!(**args)
|
36
37
|
end
|
37
38
|
|
38
39
|
# Update properties of this object
|
39
40
|
def update!(**args)
|
40
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -46,22 +46,32 @@ module Google
|
|
46
46
|
class Report
|
47
47
|
include Google::Apis::Core::Hashable
|
48
48
|
|
49
|
+
# The date/time when this report was created.
|
50
|
+
# Corresponds to the JSON property `createTime`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :create_time
|
53
|
+
|
54
|
+
# The ID of the job that created this report.
|
55
|
+
# Corresponds to the JSON property `jobId`
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :job_id
|
58
|
+
|
49
59
|
# The server-generated ID of the report.
|
50
60
|
# Corresponds to the JSON property `id`
|
51
61
|
# @return [String]
|
52
62
|
attr_accessor :id
|
53
63
|
|
64
|
+
# The date/time when the job this report belongs to will expire/expired.
|
65
|
+
# Corresponds to the JSON property `jobExpireTime`
|
66
|
+
# @return [String]
|
67
|
+
attr_accessor :job_expire_time
|
68
|
+
|
54
69
|
# The end of the time period that the report instance covers. The value is
|
55
70
|
# exclusive.
|
56
71
|
# Corresponds to the JSON property `endTime`
|
57
72
|
# @return [String]
|
58
73
|
attr_accessor :end_time
|
59
74
|
|
60
|
-
# The date/time when the job this report belongs to will expire/expired.
|
61
|
-
# Corresponds to the JSON property `jobExpireTime`
|
62
|
-
# @return [String]
|
63
|
-
attr_accessor :job_expire_time
|
64
|
-
|
65
75
|
# The URL from which the report can be downloaded (max. 1000 characters).
|
66
76
|
# Corresponds to the JSON property `downloadUrl`
|
67
77
|
# @return [String]
|
@@ -73,77 +83,19 @@ module Google
|
|
73
83
|
# @return [String]
|
74
84
|
attr_accessor :start_time
|
75
85
|
|
76
|
-
# The date/time when this report was created.
|
77
|
-
# Corresponds to the JSON property `createTime`
|
78
|
-
# @return [String]
|
79
|
-
attr_accessor :create_time
|
80
|
-
|
81
|
-
# The ID of the job that created this report.
|
82
|
-
# Corresponds to the JSON property `jobId`
|
83
|
-
# @return [String]
|
84
|
-
attr_accessor :job_id
|
85
|
-
|
86
86
|
def initialize(**args)
|
87
87
|
update!(**args)
|
88
88
|
end
|
89
89
|
|
90
90
|
# Update properties of this object
|
91
91
|
def update!(**args)
|
92
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
93
|
+
@job_id = args[:job_id] if args.key?(:job_id)
|
92
94
|
@id = args[:id] if args.key?(:id)
|
93
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
94
95
|
@job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
|
96
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
95
97
|
@download_url = args[:download_url] if args.key?(:download_url)
|
96
98
|
@start_time = args[:start_time] if args.key?(:start_time)
|
97
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
98
|
-
@job_id = args[:job_id] if args.key?(:job_id)
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
103
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
104
|
-
# or the response type of an API method. For instance:
|
105
|
-
# service Foo `
|
106
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
107
|
-
# `
|
108
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
109
|
-
class Empty
|
110
|
-
include Google::Apis::Core::Hashable
|
111
|
-
|
112
|
-
def initialize(**args)
|
113
|
-
update!(**args)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Update properties of this object
|
117
|
-
def update!(**args)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
# Response message for ReportingService.ListReportTypes.
|
122
|
-
class ListReportTypesResponse
|
123
|
-
include Google::Apis::Core::Hashable
|
124
|
-
|
125
|
-
# The list of report types.
|
126
|
-
# Corresponds to the JSON property `reportTypes`
|
127
|
-
# @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
|
128
|
-
attr_accessor :report_types
|
129
|
-
|
130
|
-
# A token to retrieve next page of results.
|
131
|
-
# Pass this value in the
|
132
|
-
# ListReportTypesRequest.page_token
|
133
|
-
# field in the subsequent call to `ListReportTypes` method to retrieve the next
|
134
|
-
# page of results.
|
135
|
-
# Corresponds to the JSON property `nextPageToken`
|
136
|
-
# @return [String]
|
137
|
-
attr_accessor :next_page_token
|
138
|
-
|
139
|
-
def initialize(**args)
|
140
|
-
update!(**args)
|
141
|
-
end
|
142
|
-
|
143
|
-
# Update properties of this object
|
144
|
-
def update!(**args)
|
145
|
-
@report_types = args[:report_types] if args.key?(:report_types)
|
146
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
147
99
|
end
|
148
100
|
end
|
149
101
|
|
@@ -187,6 +139,35 @@ module Google
|
|
187
139
|
end
|
188
140
|
end
|
189
141
|
|
142
|
+
# Response message for ReportingService.ListReportTypes.
|
143
|
+
class ListReportTypesResponse
|
144
|
+
include Google::Apis::Core::Hashable
|
145
|
+
|
146
|
+
# The list of report types.
|
147
|
+
# Corresponds to the JSON property `reportTypes`
|
148
|
+
# @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
|
149
|
+
attr_accessor :report_types
|
150
|
+
|
151
|
+
# A token to retrieve next page of results.
|
152
|
+
# Pass this value in the
|
153
|
+
# ListReportTypesRequest.page_token
|
154
|
+
# field in the subsequent call to `ListReportTypes` method to retrieve the next
|
155
|
+
# page of results.
|
156
|
+
# Corresponds to the JSON property `nextPageToken`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :next_page_token
|
159
|
+
|
160
|
+
def initialize(**args)
|
161
|
+
update!(**args)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Update properties of this object
|
165
|
+
def update!(**args)
|
166
|
+
@report_types = args[:report_types] if args.key?(:report_types)
|
167
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
190
171
|
# Response message for ReportingService.ListJobs.
|
191
172
|
class ListJobsResponse
|
192
173
|
include Google::Apis::Core::Hashable
|
@@ -273,11 +254,6 @@ module Google
|
|
273
254
|
class ListReportsResponse
|
274
255
|
include Google::Apis::Core::Hashable
|
275
256
|
|
276
|
-
# The list of report types.
|
277
|
-
# Corresponds to the JSON property `reports`
|
278
|
-
# @return [Array<Google::Apis::YoutubereportingV1::Report>]
|
279
|
-
attr_accessor :reports
|
280
|
-
|
281
257
|
# A token to retrieve next page of results.
|
282
258
|
# Pass this value in the
|
283
259
|
# ListReportsRequest.page_token
|
@@ -287,14 +263,38 @@ module Google
|
|
287
263
|
# @return [String]
|
288
264
|
attr_accessor :next_page_token
|
289
265
|
|
266
|
+
# The list of report types.
|
267
|
+
# Corresponds to the JSON property `reports`
|
268
|
+
# @return [Array<Google::Apis::YoutubereportingV1::Report>]
|
269
|
+
attr_accessor :reports
|
270
|
+
|
290
271
|
def initialize(**args)
|
291
272
|
update!(**args)
|
292
273
|
end
|
293
274
|
|
294
275
|
# Update properties of this object
|
295
276
|
def update!(**args)
|
296
|
-
@reports = args[:reports] if args.key?(:reports)
|
297
277
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
278
|
+
@reports = args[:reports] if args.key?(:reports)
|
279
|
+
end
|
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
298
|
end
|
299
299
|
end
|
300
300
|
end
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module YoutubereportingV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Empty
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class ReportType
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -46,53 +46,56 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class ListJobsResponse
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Job
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class ListReportsResponse
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class Media
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class Empty
|
74
74
|
# @private
|
75
75
|
class Representation < Google::Apis::Core::JsonRepresentation
|
76
|
-
property :resource_name, as: 'resourceName'
|
77
76
|
end
|
78
77
|
end
|
79
78
|
|
80
79
|
class Report
|
81
80
|
# @private
|
82
81
|
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
property :create_time, as: 'createTime'
|
83
|
+
property :job_id, as: 'jobId'
|
83
84
|
property :id, as: 'id'
|
84
|
-
property :end_time, as: 'endTime'
|
85
85
|
property :job_expire_time, as: 'jobExpireTime'
|
86
|
+
property :end_time, as: 'endTime'
|
86
87
|
property :download_url, as: 'downloadUrl'
|
87
88
|
property :start_time, as: 'startTime'
|
88
|
-
property :create_time, as: 'createTime'
|
89
|
-
property :job_id, as: 'jobId'
|
90
89
|
end
|
91
90
|
end
|
92
91
|
|
93
|
-
class
|
92
|
+
class ReportType
|
94
93
|
# @private
|
95
94
|
class Representation < Google::Apis::Core::JsonRepresentation
|
95
|
+
property :id, as: 'id'
|
96
|
+
property :system_managed, as: 'systemManaged'
|
97
|
+
property :deprecate_time, as: 'deprecateTime'
|
98
|
+
property :name, as: 'name'
|
96
99
|
end
|
97
100
|
end
|
98
101
|
|
@@ -105,16 +108,6 @@ module Google
|
|
105
108
|
end
|
106
109
|
end
|
107
110
|
|
108
|
-
class ReportType
|
109
|
-
# @private
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
111
|
-
property :id, as: 'id'
|
112
|
-
property :system_managed, as: 'systemManaged'
|
113
|
-
property :deprecate_time, as: 'deprecateTime'
|
114
|
-
property :name, as: 'name'
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
111
|
class ListJobsResponse
|
119
112
|
# @private
|
120
113
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -139,9 +132,16 @@ module Google
|
|
139
132
|
class ListReportsResponse
|
140
133
|
# @private
|
141
134
|
class Representation < Google::Apis::Core::JsonRepresentation
|
135
|
+
property :next_page_token, as: 'nextPageToken'
|
142
136
|
collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
|
143
137
|
|
144
|
-
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class Media
|
142
|
+
# @private
|
143
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
144
|
+
property :resource_name, as: 'resourceName'
|
145
145
|
end
|
146
146
|
end
|
147
147
|
end
|
@@ -47,6 +47,52 @@ module Google
|
|
47
47
|
super('https://youtubereporting.googleapis.com/', '')
|
48
48
|
end
|
49
49
|
|
50
|
+
# Lists report types.
|
51
|
+
# @param [String] page_token
|
52
|
+
# A token identifying a page of results the server should return. Typically,
|
53
|
+
# this is the value of
|
54
|
+
# ListReportTypesResponse.next_page_token
|
55
|
+
# returned in response to the previous call to the `ListReportTypes` method.
|
56
|
+
# @param [Boolean] include_system_managed
|
57
|
+
# If set to true, also system-managed report types will be returned;
|
58
|
+
# otherwise only the report types that can be used to create new reporting
|
59
|
+
# jobs will be returned.
|
60
|
+
# @param [Fixnum] page_size
|
61
|
+
# Requested page size. Server may return fewer report types than requested.
|
62
|
+
# If unspecified, server will pick an appropriate default.
|
63
|
+
# @param [String] on_behalf_of_content_owner
|
64
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
65
|
+
# not set, the user is acting for himself (his own channel).
|
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_token: nil, include_system_managed: nil, page_size: nil, on_behalf_of_content_owner: 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['pageToken'] = page_token unless page_token.nil?
|
88
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
89
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
90
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.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
|
+
|
50
96
|
# Method for media download. Download is supported
|
51
97
|
# on the URI `/v1/media/`+name`?alt=media`.
|
52
98
|
# @param [String] resource_name
|
@@ -240,14 +286,14 @@ module Google
|
|
240
286
|
# The ID of the job.
|
241
287
|
# @param [String] created_after
|
242
288
|
# If set, only reports created after the specified date/time are returned.
|
243
|
-
# @param [String] start_time_at_or_after
|
244
|
-
# If set, only reports whose start time is greater than or equal the
|
245
|
-
# specified date/time are returned.
|
246
289
|
# @param [String] page_token
|
247
290
|
# A token identifying a page of results the server should return. Typically,
|
248
291
|
# this is the value of
|
249
292
|
# ListReportsResponse.next_page_token
|
250
293
|
# returned in response to the previous call to the `ListReports` method.
|
294
|
+
# @param [String] start_time_at_or_after
|
295
|
+
# If set, only reports whose start time is greater than or equal the
|
296
|
+
# specified date/time are returned.
|
251
297
|
# @param [Fixnum] page_size
|
252
298
|
# Requested page size. Server may return fewer report types than requested.
|
253
299
|
# If unspecified, server will pick an appropriate default.
|
@@ -274,14 +320,14 @@ module Google
|
|
274
320
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
275
321
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
276
322
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
277
|
-
def list_job_reports(job_id, created_after: nil,
|
323
|
+
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)
|
278
324
|
command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options)
|
279
325
|
command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation
|
280
326
|
command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse
|
281
327
|
command.params['jobId'] = job_id unless job_id.nil?
|
282
328
|
command.query['createdAfter'] = created_after unless created_after.nil?
|
283
|
-
command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
|
284
329
|
command.query['pageToken'] = page_token unless page_token.nil?
|
330
|
+
command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
|
285
331
|
command.query['pageSize'] = page_size unless page_size.nil?
|
286
332
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
287
333
|
command.query['startTimeBefore'] = start_time_before unless start_time_before.nil?
|
@@ -326,52 +372,6 @@ module Google
|
|
326
372
|
command.query['fields'] = fields unless fields.nil?
|
327
373
|
execute_or_queue_command(command, &block)
|
328
374
|
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
|
|